]> git.saurik.com Git - wxWidgets.git/blame - configure
Let's have new sample distributed.
[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"
2b850ae1 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 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_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_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_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_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_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
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
f10e38c4 941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
77ffb593 942 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 943 --enable-zipstream use wxZip streams
a848cd7e
SC
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
9a8f0513 955 --enable-xrc use XRC resources sub-library
a848cd7e
SC
956 --enable-constraints use layout-constraints system
957 --enable-printarch use printing architecture
958 --enable-mdi use multiple document interface architecture
8a7b1113 959 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
960 --enable-loggui use standard GUI logger
961 --enable-logwin use wxLogWindow
962 --enable-logdialog use wxLogDialog
646b6ec1 963 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 964 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
965 --enable-postscript use wxPostscriptDC device context (default for gtk+)
966 --enable-prologio not available; see contrib
967 --enable-resources not available; see contrib
968 --enable-clipboard use wxClipboard class
969 --enable-dnd use Drag'n'Drop classes
970 --enable-metafile use win32 metafiles
971 --enable-controls use all usual controls
972 --enable-accel use accelerators
973 --enable-button use wxButton class
974 --enable-bmpbutton use wxBitmapButton class
975 --enable-calendar use wxCalendarCtrl class
976 --enable-caret use wxCaret class
977 --enable-checkbox use wxCheckBox class
978 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
979 --enable-choice use wxChoice class
92bbdbcd 980 --enable-choicebook use wxChoicebook class
a848cd7e 981 --enable-combobox use wxComboBox class
a57d600f 982 --enable-comboctrl use wxComboCtrl class
da98e9be 983 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
984 --enable-display use wxDisplay class
985 --enable-gauge use wxGauge class
986 --enable-grid use wxGrid class
20e34ecc 987 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 988 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
989 --enable-imaglist use wxImageList class
990 --enable-listbook use wxListbook class
991 --enable-listbox use wxListBox class
992 --enable-listctrl use wxListCtrl class
993 --enable-notebook use wxNotebook class
a57d600f 994 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
995 --enable-radiobox use wxRadioBox class
996 --enable-radiobtn use wxRadioButton class
997 --enable-sash use wxSashWindow class
998 --enable-scrollbar use wxScrollBar class and scrollable windows
999 --enable-slider use wxSlider class
1000 --enable-spinbtn use wxSpinButton class
1001 --enable-spinctrl use wxSpinCtrl class
1002 --enable-splitter use wxSplitterWindow class
1003 --enable-statbmp use wxStaticBitmap class
1004 --enable-statbox use wxStaticBox class
1005 --enable-statline use wxStaticLine class
1006 --enable-stattext use wxStaticText class
1007 --enable-statusbar use wxStatusBar class
1008 --enable-tabdialog use wxTabControl class
1009 --enable-textctrl use wxTextCtrl class
1010 --enable-togglebtn use wxToggleButton class
1011 --enable-toolbar use wxToolBar class
1012 --enable-tbarnative use native wxToolBar class
1013 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1014 --enable-treebook use wxTreebook class
5ec3bc43 1015 --enable-toolbook use wxToolbook class
a848cd7e
SC
1016 --enable-treectrl use wxTreeCtrl class
1017 --enable-tipwindow use wxTipWindow class
1018 --enable-popupwin use wxPopUpWindow class
1019 --enable-commondlg use all common dialogs
1020 --enable-choicedlg use wxChoiceDialog
1021 --enable-coldlg use wxColourDialog
1022 --enable-filedlg use wxFileDialog
1023 --enable-finddlg use wxFindReplaceDialog
1024 --enable-fontdlg use wxFontDialog
1025 --enable-dirdlg use wxDirDialog
1026 --enable-msgdlg use wxMessageDialog
1027 --enable-numberdlg use wxNumberEntryDialog
1028 --enable-splash use wxSplashScreen
1029 --enable-textdlg use wxTextDialog
1030 --enable-tipdlg use startup tips
1031 --enable-progressdlg use wxProgressDialog
1032 --enable-wizarddlg use wxWizard
1033 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1034 --enable-miniframe use wxMiniFrame class
1035 --enable-tooltips use wxToolTip class
1036 --enable-splines use spline drawing code
fbe2ca43 1037 --enable-mousewheel use mousewheel
a848cd7e
SC
1038 --enable-validators use wxValidator and derived classes
1039 --enable-busyinfo use wxBusyInfo
4cb1d3da 1040 --enable-joystick use wxJoystick
38b4a946 1041 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1042 --enable-dragimage use wxDragImage
1043 --enable-accessibility enable accessibility support
38b4a946 1044 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1045 --enable-palette use wxPalette class
1046 --enable-image use wxImage class
1047 --enable-gif use gif images (GIF file format)
1048 --enable-pcx use pcx images (PCX file format)
1049 --enable-iff use iff images (IFF file format)
1050 --enable-pnm use pnm images (PNM file format)
1051 --enable-xpm use xpm images (XPM file format)
1052 --enable-icocur use Windows ICO and CUR formats
77ffb593 1053 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1054 --enable-vendor=VENDOR vendor name (win32 DLL only)
1055 --disable-largefile omit support for large files
1056 --disable-gtktest do not try to compile and run a test GTK+ program
1057 --disable-gtktest Do not try to compile and run a test GTK program
1058 --disable-sdltest Do not try to compile and run a test SDL program
1059 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1060 --disable-dependency-tracking
1061 don't use dependency tracking even if the compiler
1062 can
ebee3cd0
VS
1063 --disable-precomp-headers
1064 don't use precompiled headers even if compiler can
a848cd7e
SC
1065
1066Optional Packages:
1067 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1068 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1069 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1070 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1071 --with-motif use Motif/Lesstif
1072 --with-mac use Mac OS X
1073 --with-cocoa use Cocoa
1074 --with-wine use Wine
1075 --with-msw use MS-Windows
1076 --with-pm use OS/2 Presentation Manager
1077 --with-mgl use SciTech MGL
1078 --with-microwin use MicroWindows
1079 --with-x11 use X11
1080 --with-libpng use libpng (PNG image format)
1081 --with-libjpeg use libjpeg (JPEG file format)
1082 --with-libtiff use libtiff (TIFF file format)
1083 --with-libxpm use libxpm (XPM file format)
1084 --with-libmspack use libmspack (CHM help files loading)
1085 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1086 --with-gnomeprint use GNOME print for printing under GNOME
1087 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1088 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1089 --with-opengl use OpenGL (or Mesa)
1090 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1091 --with-regex enable support for wxRegEx class
1092 --with-zlib use zlib for LZW compression
1093 --with-odbc use the IODBC and wxODBC classes
1094 --with-expat enable XML support using expat parser
ceec2216 1095 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1096 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1097 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1098 --with-x use the X Window System
1099 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1100 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1101 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1102 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1103 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1104
1105Some influential environment variables:
dcc1b6ad
VS
1106 CC C compiler command
1107 CFLAGS C compiler flags
1108 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1109 nonstandard directory <lib dir>
1110 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1111 headers in a nonstandard directory <include dir>
1112 CPP C preprocessor
1113 CXX C++ compiler command
1114 CXXFLAGS C++ compiler flags
1115 CXXCPP C++ preprocessor
a848cd7e
SC
1116
1117Use these variables to override the choices made by `configure' or to help
1118it to find libraries and programs with nonstandard names/locations.
1119
77ffb593 1120Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1121_ACEOF
1122fi
1123
1124if test "$ac_init_help" = "recursive"; then
1125 # If there are subdirs, report their specific --help.
1126 ac_popdir=`pwd`
1127 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1128 test -d $ac_dir || continue
1129 ac_builddir=.
1130
1131if test "$ac_dir" != .; then
1132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1133 # A "../" for each directory in $ac_dir_suffix.
1134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135else
1136 ac_dir_suffix= ac_top_builddir=
1137fi
1138
1139case $srcdir in
1140 .) # No --srcdir option. We are building in place.
1141 ac_srcdir=.
1142 if test -z "$ac_top_builddir"; then
1143 ac_top_srcdir=.
1144 else
1145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146 fi ;;
1147 [\\/]* | ?:[\\/]* ) # Absolute path.
1148 ac_srcdir=$srcdir$ac_dir_suffix;
1149 ac_top_srcdir=$srcdir ;;
1150 *) # Relative path.
1151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1153esac
ac1cb8d3
VS
1154
1155# Do not use `cd foo && pwd` to compute absolute paths, because
1156# the directories may not exist.
1157case `pwd` in
1158.) ac_abs_builddir="$ac_dir";;
1159*)
1160 case "$ac_dir" in
1161 .) ac_abs_builddir=`pwd`;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_builddir=${ac_top_builddir}.;;
1168*)
1169 case ${ac_top_builddir}. in
1170 .) ac_abs_top_builddir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1173 esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_srcdir=$ac_srcdir;;
1177*)
1178 case $ac_srcdir in
1179 .) ac_abs_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1182 esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_top_srcdir=$ac_top_srcdir;;
1186*)
1187 case $ac_top_srcdir in
1188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1191 esac;;
1192esac
a848cd7e
SC
1193
1194 cd $ac_dir
1195 # Check for guested configure; otherwise get Cygnus style configure.
1196 if test -f $ac_srcdir/configure.gnu; then
1197 echo
1198 $SHELL $ac_srcdir/configure.gnu --help=recursive
1199 elif test -f $ac_srcdir/configure; then
1200 echo
1201 $SHELL $ac_srcdir/configure --help=recursive
1202 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1203 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1204 echo
1205 $ac_configure --help
1206 else
1207 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1208 fi
6954625c 1209 cd "$ac_popdir"
a848cd7e
SC
1210 done
1211fi
1212
1213test -n "$ac_init_help" && exit 0
1214if $ac_init_version; then
1215 cat <<\_ACEOF
dd8df4fc 1216wxWidgets configure 2.7.0
ac1cb8d3 1217generated by GNU Autoconf 2.59
a848cd7e 1218
ac1cb8d3 1219Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1220This configure script is free software; the Free Software Foundation
1221gives unlimited permission to copy, distribute and modify it.
1222_ACEOF
1223 exit 0
1224fi
1225exec 5>config.log
1226cat >&5 <<_ACEOF
1227This file contains any messages produced by compilers while
1228running configure, to aid debugging if configure makes a mistake.
1229
dd8df4fc 1230It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1231generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1232
1233 $ $0 $@
1234
1235_ACEOF
1236{
1237cat <<_ASUNAME
1238## --------- ##
1239## Platform. ##
1240## --------- ##
1241
1242hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1243uname -m = `(uname -m) 2>/dev/null || echo unknown`
1244uname -r = `(uname -r) 2>/dev/null || echo unknown`
1245uname -s = `(uname -s) 2>/dev/null || echo unknown`
1246uname -v = `(uname -v) 2>/dev/null || echo unknown`
1247
1248/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1249/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1250
1251/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1252/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1253/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1254hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1255/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1256/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1257/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1258
1259_ASUNAME
1260
1261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1262for as_dir in $PATH
1263do
1264 IFS=$as_save_IFS
1265 test -z "$as_dir" && as_dir=.
1266 echo "PATH: $as_dir"
1267done
1268
1269} >&5
1270
1271cat >&5 <<_ACEOF
1272
1273
1274## ----------- ##
1275## Core tests. ##
1276## ----------- ##
1277
1278_ACEOF
1279
1280
1281# Keep a trace of the command line.
1282# Strip out --no-create and --no-recursion so they do not pile up.
1283# Strip out --silent because we don't want to record it for future runs.
1284# Also quote any args containing shell meta-characters.
1285# Make two passes to allow for proper duplicate-argument suppression.
1286ac_configure_args=
1287ac_configure_args0=
1288ac_configure_args1=
1289ac_sep=
1290ac_must_keep_next=false
1291for ac_pass in 1 2
1292do
1293 for ac_arg
1294 do
1295 case $ac_arg in
1296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1299 continue ;;
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 esac
1303 case $ac_pass in
1304 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1305 2)
1306 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1307 if test $ac_must_keep_next = true; then
ac1cb8d3 1308 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1309 else
ac1cb8d3
VS
1310 case $ac_arg in
1311 *=* | --config-cache | -C | -disable-* | --disable-* \
1312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1314 | -with-* | --with-* | -without-* | --without-* | --x)
1315 case "$ac_configure_args0 " in
1316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1317 esac
1318 ;;
1319 -* ) ac_must_keep_next=true ;;
1320 esac
a848cd7e
SC
1321 fi
1322 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1323 # Get rid of the leading space.
1324 ac_sep=" "
1325 ;;
1326 esac
1327 done
1328done
1329$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1330$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1331
1332# When interrupted or exit'd, cleanup temporary files, and complete
1333# config.log. We remove comments because anyway the quotes in there
1334# would cause problems or look ugly.
1335# WARNING: Be sure not to use single quotes in there, as some shells,
1336# such as our DU 5.0 friend, will then `close' the trap.
1337trap 'exit_status=$?
1338 # Save into config.log some information that might help in debugging.
1339 {
1340 echo
1341
1342 cat <<\_ASBOX
1343## ---------------- ##
1344## Cache variables. ##
1345## ---------------- ##
1346_ASBOX
1347 echo
1348 # The following way of writing the cache mishandles newlines in values,
1349{
1350 (set) 2>&1 |
1351 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1352 *ac_space=\ *)
1353 sed -n \
ac1cb8d3
VS
1354 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1356 ;;
1357 *)
1358 sed -n \
ac1cb8d3 1359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1360 ;;
1361 esac;
1362}
1363 echo
1364
1365 cat <<\_ASBOX
1366## ----------------- ##
1367## Output variables. ##
1368## ----------------- ##
1369_ASBOX
1370 echo
1371 for ac_var in $ac_subst_vars
1372 do
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1375 done | sort
1376 echo
1377
1378 if test -n "$ac_subst_files"; then
1379 cat <<\_ASBOX
1380## ------------- ##
1381## Output files. ##
1382## ------------- ##
1383_ASBOX
1384 echo
1385 for ac_var in $ac_subst_files
1386 do
1387 eval ac_val=$`echo $ac_var`
ac1cb8d3 1388 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1389 done | sort
1390 echo
1391 fi
1392
1393 if test -s confdefs.h; then
1394 cat <<\_ASBOX
1395## ----------- ##
1396## confdefs.h. ##
1397## ----------- ##
1398_ASBOX
1399 echo
1400 sed "/^$/d" confdefs.h | sort
1401 echo
1402 fi
1403 test "$ac_signal" != 0 &&
1404 echo "$as_me: caught signal $ac_signal"
1405 echo "$as_me: exit $exit_status"
1406 } >&5
ac1cb8d3 1407 rm -f core *.core &&
a848cd7e
SC
1408 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1409 exit $exit_status
1410 ' 0
1411for ac_signal in 1 2 13 15; do
1412 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1413done
1414ac_signal=0
1415
1416# confdefs.h avoids OS command line length limits that DEFS can exceed.
1417rm -rf conftest* confdefs.h
1418# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1419echo >confdefs.h
1420
1421# Predefined preprocessor variables.
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_NAME "$PACKAGE_NAME"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1430_ACEOF
1431
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_VERSION "$PACKAGE_VERSION"
1435_ACEOF
1436
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_STRING "$PACKAGE_STRING"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1445_ACEOF
1446
1447
1448# Let the site file select an alternate cache file if it wants to.
1449# Prefer explicitly selected file to automatically selected ones.
1450if test -z "$CONFIG_SITE"; then
1451 if test "x$prefix" != xNONE; then
1452 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1453 else
1454 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1455 fi
1456fi
1457for ac_site_file in $CONFIG_SITE; do
1458 if test -r "$ac_site_file"; then
1459 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1460echo "$as_me: loading site script $ac_site_file" >&6;}
1461 sed 's/^/| /' "$ac_site_file" >&5
1462 . "$ac_site_file"
1463 fi
1464done
1465
1466if test -r "$cache_file"; then
1467 # Some versions of bash will fail to source /dev/null (special
1468 # files actually), so we avoid doing that.
1469 if test -f "$cache_file"; then
1470 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1471echo "$as_me: loading cache $cache_file" >&6;}
1472 case $cache_file in
1473 [\\/]* | ?:[\\/]* ) . $cache_file;;
1474 *) . ./$cache_file;;
1475 esac
1476 fi
1477else
1478 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1479echo "$as_me: creating cache $cache_file" >&6;}
1480 >$cache_file
1481fi
1482
1483# Check that the precious variables saved in the cache have kept the same
1484# value.
1485ac_cache_corrupted=false
1486for ac_var in `(set) 2>&1 |
ac1cb8d3 1487 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1489 eval ac_new_set=\$ac_env_${ac_var}_set
1490 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1491 eval ac_new_val="\$ac_env_${ac_var}_value"
1492 case $ac_old_set,$ac_new_set in
1493 set,)
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1495echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1496 ac_cache_corrupted=: ;;
1497 ,set)
1498 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1501 ,);;
1502 *)
1503 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1504 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1505echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1506 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1507echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1508 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1509echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1510 ac_cache_corrupted=:
a848cd7e
SC
1511 fi;;
1512 esac
1513 # Pass precious variables to config.status.
1514 if test "$ac_new_set" = set; then
1515 case $ac_new_val in
1516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1517 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1518 *) ac_arg=$ac_var=$ac_new_val ;;
1519 esac
1520 case " $ac_configure_args " in
1521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1522 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1523 esac
1524 fi
1525done
1526if $ac_cache_corrupted; then
1527 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1528echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1529 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1530echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1531 { (exit 1); exit 1; }; }
1532fi
1533
1534ac_ext=c
1535ac_cpp='$CPP $CPPFLAGS'
1536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569ac_aux_dir=
1570for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571 if test -f $ac_dir/install-sh; then
1572 ac_aux_dir=$ac_dir
1573 ac_install_sh="$ac_aux_dir/install-sh -c"
1574 break
1575 elif test -f $ac_dir/install.sh; then
1576 ac_aux_dir=$ac_dir
1577 ac_install_sh="$ac_aux_dir/install.sh -c"
1578 break
1579 elif test -f $ac_dir/shtool; then
1580 ac_aux_dir=$ac_dir
1581 ac_install_sh="$ac_aux_dir/shtool install -c"
1582 break
1583 fi
1584done
1585if test -z "$ac_aux_dir"; then
1586 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588 { (exit 1); exit 1; }; }
1589fi
1590ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1593
1594# Make sure we can run config.sub.
1595$ac_config_sub sun4 >/dev/null 2>&1 ||
1596 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598 { (exit 1); exit 1; }; }
1599
1600echo "$as_me:$LINENO: checking build system type" >&5
1601echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602if test "${ac_cv_build+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 ac_cv_build_alias=$build_alias
1606test -z "$ac_cv_build_alias" &&
1607 ac_cv_build_alias=`$ac_config_guess`
1608test -z "$ac_cv_build_alias" &&
1609 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611 { (exit 1); exit 1; }; }
1612ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1616
1617fi
1618echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619echo "${ECHO_T}$ac_cv_build" >&6
1620build=$ac_cv_build
1621build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626echo "$as_me:$LINENO: checking host system type" >&5
1627echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628if test "${ac_cv_host+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 ac_cv_host_alias=$host_alias
1632test -z "$ac_cv_host_alias" &&
1633 ac_cv_host_alias=$ac_cv_build_alias
1634ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641echo "${ECHO_T}$ac_cv_host" >&6
1642host=$ac_cv_host
1643host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648echo "$as_me:$LINENO: checking target system type" >&5
1649echo $ECHO_N "checking target system type... $ECHO_C" >&6
1650if test "${ac_cv_target+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 ac_cv_target_alias=$target_alias
1654test "x$ac_cv_target_alias" = "x" &&
1655 ac_cv_target_alias=$ac_cv_host_alias
1656ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1658echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661fi
1662echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1663echo "${ECHO_T}$ac_cv_target" >&6
1664target=$ac_cv_target
1665target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670# The aliases save the names the user supplied, while $host etc.
1671# will get canonicalized.
1672test -n "$target_alias" &&
1673 test "$program_prefix$program_suffix$program_transform_name" = \
1674 NONENONEs,x,x, &&
1675 program_prefix=${target_alias}-
1676
1677
1678
ceec2216 1679wx_major_version_number=2
dd8df4fc
VZ
1680wx_minor_version_number=7
1681wx_release_number=0
1682wx_subrelease_number=0
a848cd7e 1683
ceec2216
RL
1684WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1685WX_VERSION=$WX_RELEASE.$wx_release_number
1686WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1687
ceec2216 1688WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1689
a848cd7e
SC
1690
1691
1692
1693USE_UNIX=1
1694USE_OS2=0
1695USE_WIN32=0
1696USE_DOS=0
1697USE_BEOS=0
1698USE_MAC=0
1699
1700USE_AIX=
1701USE_BSD= USE_DARWIN= USE_FREEBSD=
1702USE_GNU= USE_HPUX=
1703USE_LINUX=
1704USE_NETBSD=
1705USE_OPENBSD=
1706USE_OSF= USE_SGI=
1707USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1708USE_ULTRIX=
1709USE_UNIXWARE=
1710
1711USE_ALPHA=
1712
1713NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1714
1715ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1716
1717DEFAULT_wxUSE_COCOA=0
1718DEFAULT_wxUSE_GTK=0
1719DEFAULT_wxUSE_MAC=0
1720DEFAULT_wxUSE_MGL=0
1721DEFAULT_wxUSE_MICROWIN=0
1722DEFAULT_wxUSE_MOTIF=0
1723DEFAULT_wxUSE_MSW=0
1724DEFAULT_wxUSE_PM=0
1725DEFAULT_wxUSE_X11=0
1726
1727DEFAULT_DEFAULT_wxUSE_COCOA=0
1728DEFAULT_DEFAULT_wxUSE_GTK=0
1729DEFAULT_DEFAULT_wxUSE_MAC=0
1730DEFAULT_DEFAULT_wxUSE_MGL=0
1731DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1732DEFAULT_DEFAULT_wxUSE_MOTIF=0
1733DEFAULT_DEFAULT_wxUSE_MSW=0
1734DEFAULT_DEFAULT_wxUSE_PM=0
1735DEFAULT_DEFAULT_wxUSE_X11=0
1736
1737PROGRAM_EXT=
1738SO_SUFFIX=so
1739SAMPLES_RPATH_FLAG=
1740SAMPLES_RPATH_POSTLINK=
1741
a03b8b04
RD
1742DEFAULT_STD_FLAG=yes
1743
a848cd7e
SC
1744case "${host}" in
1745 *-hp-hpux* )
1746 USE_HPUX=1
1747 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1748 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1749 SO_SUFFIX=sl
1750 cat >>confdefs.h <<\_ACEOF
1751#define __HPUX__ 1
1752_ACEOF
1753
2eef8513 1754
c92ad099 1755 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1756 ;;
1757 *-*-linux* )
1758 USE_LINUX=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __LINUX__ 1
1761_ACEOF
1762
1763 TMP=`uname -m`
1764 if test "x$TMP" = "xalpha"; then
1765 USE_ALPHA=1
1766 cat >>confdefs.h <<\_ACEOF
1767#define __ALPHA__ 1
1768_ACEOF
1769
1770 fi
1771 DEFAULT_DEFAULT_wxUSE_GTK=1
1772 ;;
1773 *-*-gnu* | *-*-k*bsd*-gnu )
1774 USE_GNU=1
1775 TMP=`uname -m`
1776 if test "x$TMP" = "xalpha"; then
1777 USE_ALPHA=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __ALPHA__ 1
1780_ACEOF
1781
1782 fi
1783 DEFAULT_DEFAULT_wxUSE_GTK=1
1784 ;;
1785 *-*-irix5* | *-*-irix6* )
1786 USE_SGI=1
1787 USE_SVR4=1
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SGI__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SVR4__ 1
1794_ACEOF
1795
1796 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797 ;;
1798 *-*-solaris2* )
1799 USE_SUN=1
1800 USE_SOLARIS=1
1801 USE_SVR4=1
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUN__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SOLARIS__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __SVR4__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1816 ;;
1817 *-*-sunos4* )
1818 USE_SUN=1
1819 USE_SUNOS=1
1820 USE_BSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __SUN__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __SUNOS__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1834 ;;
1835 *-*-freebsd*)
1836 USE_BSD=1
1837 USE_FREEBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __FREEBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-openbsd*)
1849 USE_BSD=1
1850 USE_OPENBSD=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __OPENBSD__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __BSD__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_GTK=1
1860 ;;
1861 *-*-netbsd*)
1862 USE_BSD=1
1863 USE_NETBSD=1
1864 cat >>confdefs.h <<\_ACEOF
1865#define __NETBSD__ 1
1866_ACEOF
1867
1868 cat >>confdefs.h <<\_ACEOF
1869#define __BSD__ 1
1870_ACEOF
1871
1872 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1873 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1874
def7c04a 1875 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1876 ;;
1877 *-*-osf* )
1878 USE_ALPHA=1
1879 USE_OSF=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __ALPHA__ 1
1882_ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885#define __OSF__ 1
1886_ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1890 ;;
1891 *-*-dgux5* )
1892 USE_ALPHA=1
1893 USE_SVR4=1
1894 cat >>confdefs.h <<\_ACEOF
1895#define __ALPHA__ 1
1896_ACEOF
1897
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SVR4__ 1
1900_ACEOF
1901
1902 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1903 ;;
1904 *-*-sysv5* )
1905 USE_SYSV=1
1906 USE_SVR4=1
1907 cat >>confdefs.h <<\_ACEOF
1908#define __SYSV__ 1
1909_ACEOF
1910
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SVR4__ 1
1913_ACEOF
1914
1915 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1916 ;;
1917 *-*-aix* )
1918 USE_AIX=1
1919 USE_SYSV=1
1920 USE_SVR4=1
1921 SO_SUFFIX=a
1922 cat >>confdefs.h <<\_ACEOF
1923#define __AIX__ 1
1924_ACEOF
1925
1926 cat >>confdefs.h <<\_ACEOF
1927#define __SYSV__ 1
1928_ACEOF
1929
1930 cat >>confdefs.h <<\_ACEOF
1931#define __SVR4__ 1
1932_ACEOF
1933
1934 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1935 ;;
1936
1937 *-*-*UnixWare*)
1938 USE_SYSV=1
1939 USE_SVR4=1
1940 USE_UNIXWARE=1
1941 cat >>confdefs.h <<\_ACEOF
1942#define __UNIXWARE__ 1
1943_ACEOF
1944
1945 ;;
1946
1947 *-*-cygwin* | *-*-mingw32* )
1948 SO_SUFFIX=dll
1949 PROGRAM_EXT=".exe"
a848cd7e 1950 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1951 DEFAULT_STD_FLAG=no
a848cd7e
SC
1952 ;;
1953
1954 *-pc-msdosdjgpp )
1955 USE_UNIX=0
1956 USE_DOS=1
1957 cat >>confdefs.h <<\_ACEOF
1958#define __DOS__ 1
1959_ACEOF
1960
1961 PROGRAM_EXT=".exe"
1962 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1963 ;;
1964
1965 *-pc-os2_emx | *-pc-os2-emx )
1966 cat >>confdefs.h <<\_ACEOF
1967#define __EMX__ 1
1968_ACEOF
1969
1970 USE_OS2=1
1971 cat >>confdefs.h <<\_ACEOF
1972#define __OS2__ 1
1973_ACEOF
1974
1975 PROGRAM_EXT=".exe"
1976 DEFAULT_DEFAULT_wxUSE_PM=1
1977 CXX=gcc
1978 LDFLAGS="$LDFLAGS -Zcrtdll"
1979 ac_executable_extensions=".exe"
1980 export ac_executable_extensions
1981 ac_save_IFS="$IFS"
1982 IFS='\\'
1983 ac_TEMP_PATH=
1984 for ac_dir in $PATH; do
1985 IFS=$ac_save_IFS
1986 if test -z "$ac_TEMP_PATH"; then
1987 ac_TEMP_PATH="$ac_dir"
1988 else
1989 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1990 fi
1991 done
1992 export PATH="$ac_TEMP_PATH"
1993 unset ac_TEMP_PATH
a03b8b04 1994 DEFAULT_STD_FLAG=no
a848cd7e
SC
1995 ;;
1996
cfda0ea8 1997 *-*-darwin* )
a848cd7e
SC
1998 USE_BSD=1
1999 USE_DARWIN=1
2000 SO_SUFFIX=dylib
2001 cat >>confdefs.h <<\_ACEOF
2002#define __BSD__ 1
2003_ACEOF
2004
2005 cat >>confdefs.h <<\_ACEOF
2006#define __DARWIN__ 1
a848cd7e
SC
2007_ACEOF
2008
2009 cat >>confdefs.h <<\_ACEOF
2010#define TARGET_CARBON 1
2011_ACEOF
2012
2013 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2014 DEFAULT_STD_FLAG=no
a848cd7e 2015 ;;
1e9e8aba
DE
2016 powerpc-apple-macos* )
2017 USE_UNIX=0
2018 ac_cv_c_bigendian=yes
2019 SO_SUFFIX=shlib
2020 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2021 DEFAULT_STD_FLAG=no
1e9e8aba 2022 ;;
a848cd7e
SC
2023
2024 *-*-beos* )
2025 USE_BEOS=1
2026 cat >>confdefs.h <<\_ACEOF
2027#define __BEOS__ 1
2028_ACEOF
2029
2030 ;;
2031
2032 *)
2033 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2034echo "$as_me: error: unknown system type ${host}." >&2;}
2035 { (exit 1); exit 1; }; }
2036esac
2037
2038
2039
2040
2041 wx_arg_cache_file="configarg.cache"
2042 echo "loading argument cache $wx_arg_cache_file"
2043 rm -f ${wx_arg_cache_file}.tmp
2044 touch ${wx_arg_cache_file}.tmp
2045 touch ${wx_arg_cache_file}
2046
2047
2048DEBUG_CONFIGURE=0
2049if test $DEBUG_CONFIGURE = 1; then
2050 DEFAULT_wxUSE_UNIVERSAL=no
2051 DEFAULT_wxUSE_STL=no
2052
2053 DEFAULT_wxUSE_NANOX=no
2054
2055 DEFAULT_wxUSE_THREADS=yes
2056
2057 DEFAULT_wxUSE_SHARED=yes
2058 DEFAULT_wxUSE_OPTIMISE=no
2059 DEFAULT_wxUSE_PROFILE=no
2060 DEFAULT_wxUSE_NO_DEPS=no
2061 DEFAULT_wxUSE_NO_RTTI=no
2062 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2063 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2064 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2065 DEFAULT_wxUSE_PERMISSIVE=no
2066 DEFAULT_wxUSE_DEBUG_FLAG=yes
2067 DEFAULT_wxUSE_DEBUG_INFO=yes
2068 DEFAULT_wxUSE_DEBUG_GDB=yes
2069 DEFAULT_wxUSE_MEM_TRACING=no
2070 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2071 DEFAULT_wxUSE_DMALLOC=no
2072 DEFAULT_wxUSE_APPLE_IEEE=no
2073
2074 DEFAULT_wxUSE_EXCEPTIONS=no
2075 DEFAULT_wxUSE_LOG=yes
2076 DEFAULT_wxUSE_LOGWINDOW=no
2077 DEFAULT_wxUSE_LOGGUI=no
2078 DEFAULT_wxUSE_LOGDIALOG=no
2079
2080 DEFAULT_wxUSE_GUI=yes
2081 DEFAULT_wxUSE_CONTROLS=no
2082
2083 DEFAULT_wxUSE_REGEX=no
2084 DEFAULT_wxUSE_XML=no
2085 DEFAULT_wxUSE_EXPAT=no
2086 DEFAULT_wxUSE_ZLIB=no
2087 DEFAULT_wxUSE_LIBPNG=no
2088 DEFAULT_wxUSE_LIBJPEG=no
2089 DEFAULT_wxUSE_LIBTIFF=no
2090 DEFAULT_wxUSE_LIBXPM=no
2091 DEFAULT_wxUSE_LIBMSPACK=no
2092 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2093 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2094 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2095 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2096 DEFAULT_wxUSE_ODBC=no
2097 DEFAULT_wxUSE_OPENGL=no
2098
2099 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2100 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2101 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2102 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2103 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2104 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2105 DEFAULT_wxUSE_CMDLINE_PARSER=no
2106 DEFAULT_wxUSE_DATETIME=no
2107 DEFAULT_wxUSE_TIMER=no
2108 DEFAULT_wxUSE_STOPWATCH=no
2109 DEFAULT_wxUSE_FILE=no
2110 DEFAULT_wxUSE_FFILE=no
07158944 2111 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2112 DEFAULT_wxUSE_TEXTBUFFER=no
2113 DEFAULT_wxUSE_TEXTFILE=no
2114 DEFAULT_wxUSE_SOUND=no
3b57de8b 2115 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2116 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2117 DEFAULT_wxUSE_INTL=no
2118 DEFAULT_wxUSE_CONFIG=no
2119 DEFAULT_wxUSE_FONTMAP=no
2120 DEFAULT_wxUSE_STREAMS=no
2121 DEFAULT_wxUSE_SOCKETS=no
2122 DEFAULT_wxUSE_OLE=no
2123 DEFAULT_wxUSE_DATAOBJ=no
2124 DEFAULT_wxUSE_DIALUP_MANAGER=no
2125 DEFAULT_wxUSE_JOYSTICK=no
2126 DEFAULT_wxUSE_DYNLIB_CLASS=no
2127 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2128 DEFAULT_wxUSE_LONGLONG=no
2129 DEFAULT_wxUSE_GEOMETRY=no
2130
2131 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2132 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2133 DEFAULT_wxUSE_POSTSCRIPT=no
2134
2135 DEFAULT_wxUSE_CLIPBOARD=no
2136 DEFAULT_wxUSE_TOOLTIPS=no
2137 DEFAULT_wxUSE_DRAG_AND_DROP=no
2138 DEFAULT_wxUSE_DRAGIMAGE=no
2139 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2140 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2141
8a7b1113 2142 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2143 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2144 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2145 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2146
2147 DEFAULT_wxUSE_RESOURCES=no
2148 DEFAULT_wxUSE_CONSTRAINTS=no
2149 DEFAULT_wxUSE_IPC=no
2150 DEFAULT_wxUSE_HELP=no
2151 DEFAULT_wxUSE_MS_HTML_HELP=no
2152 DEFAULT_wxUSE_WXHTML_HELP=no
2153 DEFAULT_wxUSE_TREELAYOUT=no
2154 DEFAULT_wxUSE_METAFILE=no
2155 DEFAULT_wxUSE_MIMETYPE=no
2156 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2157 DEFAULT_wxUSE_PROTOCOL=no
2158 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2159 DEFAULT_wxUSE_PROTOCOL_FTP=no
2160 DEFAULT_wxUSE_PROTOCOL_FILE=no
2161 DEFAULT_wxUSE_URL=no
2162
2163 DEFAULT_wxUSE_COMMONDLGS=no
2164 DEFAULT_wxUSE_CHOICEDLG=no
2165 DEFAULT_wxUSE_COLOURDLG=no
2166 DEFAULT_wxUSE_DIRDLG=no
2167 DEFAULT_wxUSE_FILEDLG=no
2168 DEFAULT_wxUSE_FINDREPLDLG=no
2169 DEFAULT_wxUSE_FONTDLG=no
2170 DEFAULT_wxUSE_MSGDLG=no
2171 DEFAULT_wxUSE_NUMBERDLG=no
2172 DEFAULT_wxUSE_TEXTDLG=no
2173 DEFAULT_wxUSE_SPLASH=no
2174 DEFAULT_wxUSE_STARTUP_TIPS=no
2175 DEFAULT_wxUSE_PROGRESSDLG=no
2176 DEFAULT_wxUSE_WIZARDDLG=no
2177
2178 DEFAULT_wxUSE_MENUS=no
2179 DEFAULT_wxUSE_MINIFRAME=no
2180 DEFAULT_wxUSE_HTML=no
91dea314 2181 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2182 DEFAULT_wxUSE_XRC=no
646b6ec1 2183 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2184 DEFAULT_wxUSE_FILESYSTEM=no
2185 DEFAULT_wxUSE_FS_INET=no
2186 DEFAULT_wxUSE_FS_ZIP=no
2187 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2188 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2189 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2190 DEFAULT_wxUSE_VALIDATORS=no
2191
2192 DEFAULT_wxUSE_ACCEL=no
2193 DEFAULT_wxUSE_BUTTON=no
2194 DEFAULT_wxUSE_BMPBUTTON=no
2195 DEFAULT_wxUSE_CALCTRL=no
2196 DEFAULT_wxUSE_CARET=no
2197 DEFAULT_wxUSE_CHECKBOX=no
2198 DEFAULT_wxUSE_CHECKLST=no
2199 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2200 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2201 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2202 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2203 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2204 DEFAULT_wxUSE_DISPLAY=no
2205 DEFAULT_wxUSE_GAUGE=no
2206 DEFAULT_wxUSE_GRID=no
6954625c 2207 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2208 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2209 DEFAULT_wxUSE_IMAGLIST=no
2210 DEFAULT_wxUSE_LISTBOOK=no
2211 DEFAULT_wxUSE_LISTBOX=no
2212 DEFAULT_wxUSE_LISTCTRL=no
2213 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2214 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2215 DEFAULT_wxUSE_RADIOBOX=no
2216 DEFAULT_wxUSE_RADIOBTN=no
2217 DEFAULT_wxUSE_SASH=no
2218 DEFAULT_wxUSE_SCROLLBAR=no
2219 DEFAULT_wxUSE_SLIDER=no
2220 DEFAULT_wxUSE_SPINBTN=no
2221 DEFAULT_wxUSE_SPINCTRL=no
2222 DEFAULT_wxUSE_SPLITTER=no
2223 DEFAULT_wxUSE_STATBMP=no
2224 DEFAULT_wxUSE_STATBOX=no
2225 DEFAULT_wxUSE_STATLINE=no
2226 DEFAULT_wxUSE_STATTEXT=no
2227 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2228 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2229 DEFAULT_wxUSE_TEXTCTRL=no
2230 DEFAULT_wxUSE_TOGGLEBTN=no
2231 DEFAULT_wxUSE_TOOLBAR=no
2232 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2233 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2234 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2235 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2236 DEFAULT_wxUSE_TREECTRL=no
2237 DEFAULT_wxUSE_POPUPWIN=no
2238 DEFAULT_wxUSE_TIPWINDOW=no
2239
2240 DEFAULT_wxUSE_UNICODE=no
2241 DEFAULT_wxUSE_UNICODE_MSLU=no
2242 DEFAULT_wxUSE_WCSRTOMBS=no
2243
2244 DEFAULT_wxUSE_PALETTE=no
2245 DEFAULT_wxUSE_IMAGE=no
2246 DEFAULT_wxUSE_GIF=no
2247 DEFAULT_wxUSE_PCX=no
2248 DEFAULT_wxUSE_PNM=no
2249 DEFAULT_wxUSE_IFF=no
2250 DEFAULT_wxUSE_XPM=no
2251 DEFAULT_wxUSE_ICO_CUR=no
2252 DEFAULT_wxUSE_ACCESSIBILITY=no
2253
2254 DEFAULT_wxUSE_MONOLITHIC=no
2255 DEFAULT_wxUSE_PLUGINS=no
2256 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2257else
2258 DEFAULT_wxUSE_UNIVERSAL=no
2259 DEFAULT_wxUSE_STL=no
2260
2261 DEFAULT_wxUSE_NANOX=no
2262
2263 DEFAULT_wxUSE_THREADS=yes
2264
2265 DEFAULT_wxUSE_SHARED=yes
2266 DEFAULT_wxUSE_OPTIMISE=yes
2267 DEFAULT_wxUSE_PROFILE=no
2268 DEFAULT_wxUSE_NO_DEPS=no
2269 DEFAULT_wxUSE_NO_RTTI=no
2270 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2271 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2272 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2273 DEFAULT_wxUSE_PERMISSIVE=no
2274 DEFAULT_wxUSE_DEBUG_FLAG=no
2275 DEFAULT_wxUSE_DEBUG_INFO=no
2276 DEFAULT_wxUSE_DEBUG_GDB=no
2277 DEFAULT_wxUSE_MEM_TRACING=no
2278 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2279 DEFAULT_wxUSE_DMALLOC=no
2280 DEFAULT_wxUSE_APPLE_IEEE=yes
2281
2282 DEFAULT_wxUSE_EXCEPTIONS=yes
2283 DEFAULT_wxUSE_LOG=yes
2284 DEFAULT_wxUSE_LOGWINDOW=yes
2285 DEFAULT_wxUSE_LOGGUI=yes
2286 DEFAULT_wxUSE_LOGDIALOG=yes
2287
2288 DEFAULT_wxUSE_GUI=yes
2289
2290 DEFAULT_wxUSE_REGEX=yes
2291 DEFAULT_wxUSE_XML=yes
2292 DEFAULT_wxUSE_EXPAT=yes
2293 DEFAULT_wxUSE_ZLIB=yes
2294 DEFAULT_wxUSE_LIBPNG=yes
2295 DEFAULT_wxUSE_LIBJPEG=yes
2296 DEFAULT_wxUSE_LIBTIFF=yes
2297 DEFAULT_wxUSE_LIBXPM=yes
2298 DEFAULT_wxUSE_LIBMSPACK=yes
2299 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2300 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2301 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2302 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2303 DEFAULT_wxUSE_ODBC=no
52cb607e 2304 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2305
2306 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2307 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2308 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2309 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2310 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2311 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2312 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2313 DEFAULT_wxUSE_DATETIME=yes
2314 DEFAULT_wxUSE_TIMER=yes
2315 DEFAULT_wxUSE_STOPWATCH=yes
2316 DEFAULT_wxUSE_FILE=yes
2317 DEFAULT_wxUSE_FFILE=yes
07158944 2318 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2319 DEFAULT_wxUSE_TEXTBUFFER=yes
2320 DEFAULT_wxUSE_TEXTFILE=yes
2321 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2322 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2323 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2324 DEFAULT_wxUSE_INTL=yes
2325 DEFAULT_wxUSE_CONFIG=yes
2326 DEFAULT_wxUSE_FONTMAP=yes
2327 DEFAULT_wxUSE_STREAMS=yes
2328 DEFAULT_wxUSE_SOCKETS=yes
2329 DEFAULT_wxUSE_OLE=yes
2330 DEFAULT_wxUSE_DATAOBJ=yes
2331 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2332 DEFAULT_wxUSE_JOYSTICK=yes
2333 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2334 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2335 DEFAULT_wxUSE_LONGLONG=yes
2336 DEFAULT_wxUSE_GEOMETRY=yes
2337
2338 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2339 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2340 DEFAULT_wxUSE_POSTSCRIPT=yes
2341
2342 DEFAULT_wxUSE_CLIPBOARD=yes
2343 DEFAULT_wxUSE_TOOLTIPS=yes
2344 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2345 DEFAULT_wxUSE_DRAGIMAGE=yes
2346 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2347 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2348
8a7b1113 2349 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2350 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2351 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2352 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2353
2354 DEFAULT_wxUSE_RESOURCES=no
2355 DEFAULT_wxUSE_CONSTRAINTS=yes
2356 DEFAULT_wxUSE_IPC=yes
2357 DEFAULT_wxUSE_HELP=yes
2358 DEFAULT_wxUSE_MS_HTML_HELP=yes
2359 DEFAULT_wxUSE_WXHTML_HELP=yes
2360 DEFAULT_wxUSE_TREELAYOUT=yes
2361 DEFAULT_wxUSE_METAFILE=yes
2362 DEFAULT_wxUSE_MIMETYPE=yes
2363 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2364 DEFAULT_wxUSE_PROTOCOL=yes
2365 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2366 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2367 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2368 DEFAULT_wxUSE_URL=yes
2369
2370 DEFAULT_wxUSE_COMMONDLGS=yes
2371 DEFAULT_wxUSE_CHOICEDLG=yes
2372 DEFAULT_wxUSE_COLOURDLG=yes
2373 DEFAULT_wxUSE_DIRDLG=yes
2374 DEFAULT_wxUSE_FILEDLG=yes
2375 DEFAULT_wxUSE_FINDREPLDLG=yes
2376 DEFAULT_wxUSE_FONTDLG=yes
2377 DEFAULT_wxUSE_MSGDLG=yes
2378 DEFAULT_wxUSE_NUMBERDLG=yes
2379 DEFAULT_wxUSE_TEXTDLG=yes
2380 DEFAULT_wxUSE_SPLASH=yes
2381 DEFAULT_wxUSE_STARTUP_TIPS=yes
2382 DEFAULT_wxUSE_PROGRESSDLG=yes
2383 DEFAULT_wxUSE_WIZARDDLG=yes
2384
2385 DEFAULT_wxUSE_MENUS=yes
2386 DEFAULT_wxUSE_MINIFRAME=yes
2387 DEFAULT_wxUSE_HTML=yes
91dea314 2388 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2389 DEFAULT_wxUSE_XRC=yes
646b6ec1 2390 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2391 DEFAULT_wxUSE_FILESYSTEM=yes
2392 DEFAULT_wxUSE_FS_INET=yes
2393 DEFAULT_wxUSE_FS_ZIP=yes
2394 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2395 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2396 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2397 DEFAULT_wxUSE_VALIDATORS=yes
2398
2399 DEFAULT_wxUSE_ACCEL=yes
2400 DEFAULT_wxUSE_BUTTON=yes
2401 DEFAULT_wxUSE_BMPBUTTON=yes
2402 DEFAULT_wxUSE_CALCTRL=yes
2403 DEFAULT_wxUSE_CARET=yes
2404 DEFAULT_wxUSE_CHECKBOX=yes
2405 DEFAULT_wxUSE_CHECKLST=yes
2406 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2407 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2408 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2409 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2410 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2411 DEFAULT_wxUSE_DISPLAY=yes
2412 DEFAULT_wxUSE_GAUGE=yes
2413 DEFAULT_wxUSE_GRID=yes
6954625c 2414 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2415 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2416 DEFAULT_wxUSE_IMAGLIST=yes
2417 DEFAULT_wxUSE_LISTBOOK=yes
2418 DEFAULT_wxUSE_LISTBOX=yes
2419 DEFAULT_wxUSE_LISTCTRL=yes
2420 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2421 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2422 DEFAULT_wxUSE_RADIOBOX=yes
2423 DEFAULT_wxUSE_RADIOBTN=yes
2424 DEFAULT_wxUSE_SASH=yes
2425 DEFAULT_wxUSE_SCROLLBAR=yes
2426 DEFAULT_wxUSE_SLIDER=yes
2427 DEFAULT_wxUSE_SPINBTN=yes
2428 DEFAULT_wxUSE_SPINCTRL=yes
2429 DEFAULT_wxUSE_SPLITTER=yes
2430 DEFAULT_wxUSE_STATBMP=yes
2431 DEFAULT_wxUSE_STATBOX=yes
2432 DEFAULT_wxUSE_STATLINE=yes
2433 DEFAULT_wxUSE_STATTEXT=yes
2434 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2435 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2436 DEFAULT_wxUSE_TEXTCTRL=yes
2437 DEFAULT_wxUSE_TOGGLEBTN=yes
2438 DEFAULT_wxUSE_TOOLBAR=yes
2439 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2440 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2441 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2442 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2443 DEFAULT_wxUSE_TREECTRL=yes
2444 DEFAULT_wxUSE_POPUPWIN=yes
2445 DEFAULT_wxUSE_TIPWINDOW=yes
2446
78de529b 2447 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2448 DEFAULT_wxUSE_UNICODE_MSLU=yes
2449 DEFAULT_wxUSE_WCSRTOMBS=no
2450
2451 DEFAULT_wxUSE_PALETTE=yes
2452 DEFAULT_wxUSE_IMAGE=yes
2453 DEFAULT_wxUSE_GIF=yes
2454 DEFAULT_wxUSE_PCX=yes
2455 DEFAULT_wxUSE_IFF=no
2456 DEFAULT_wxUSE_PNM=yes
2457 DEFAULT_wxUSE_XPM=yes
2458 DEFAULT_wxUSE_ICO_CUR=yes
2459 DEFAULT_wxUSE_ACCESSIBILITY=no
2460
2461 DEFAULT_wxUSE_MONOLITHIC=no
2462 DEFAULT_wxUSE_PLUGINS=no
2463 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2464
f34ca037 2465 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2466fi
2467
2468
2469
f34ca037 2470
a848cd7e
SC
2471for toolkit in `echo $ALL_TOOLKITS`; do
2472 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2473 if test "x$LINE" != "x" ; then
2474 has_toolkit_in_cache=1
2475 eval "DEFAULT_$LINE"
2476 eval "CACHE_$toolkit=1"
f34ca037
MW
2477
2478 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2479 if test "x$LINE" != "x" ; then
2480 eval "DEFAULT_$LINE"
2481 fi
a848cd7e
SC
2482 fi
2483done
2484
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2489echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-gui or --disable-gui was given.
2492if test "${enable_gui+set}" = set; then
2493 enableval="$enable_gui"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_gui='wxUSE_GUI=yes'
2497 else
2498 ac_cv_use_gui='wxUSE_GUI=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2511
2512fi;
2513
2514 eval "$ac_cv_use_gui"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_GUI" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-monolithic or --disable-monolithic was given.
2533if test "${enable_monolithic+set}" = set; then
2534 enableval="$enable_monolithic"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2538 else
2539 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2552
2553fi;
2554
2555 eval "$ac_cv_use_monolithic"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_MONOLITHIC" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566 fi
2567
2568
2569 enablestring=
2570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2571echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2572 no_cache=0
2573 # Check whether --enable-plugins or --disable-plugins was given.
2574if test "${enable_plugins+set}" = set; then
2575 enableval="$enable_plugins"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2579 else
2580 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2581 fi
2582
2583else
2584
2585 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2593
2594fi;
2595
2596 eval "$ac_cv_use_plugins"
2597 if test "$no_cache" != 1; then
2598 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2599 fi
2600
2601 if test "$wxUSE_PLUGINS" = yes; then
2602 echo "$as_me:$LINENO: result: yes" >&5
2603echo "${ECHO_T}yes" >&6
2604 else
2605 echo "$as_me:$LINENO: result: no" >&5
2606echo "${ECHO_T}no" >&6
2607 fi
2608
2609
1c14217d
VZ
2610 withstring=without
2611 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2612echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2613 no_cache=0
2614
2615# Check whether --with-subdirs or --without-subdirs was given.
2616if test "${with_subdirs+set}" = set; then
2617 withval="$with_subdirs"
2618
2619 if test "$withval" = yes; then
2620 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2621 else
2622 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2623 fi
2624
2625else
2626
2627 LINE=`grep "wxWITH_SUBDIRS" ${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_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2635
2636fi;
2637
2638 eval "$ac_cv_use_subdirs"
2639 if test "$no_cache" != 1; then
2640 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2641 fi
2642
2643 if test "$wxWITH_SUBDIRS" = 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
a848cd7e
SC
2652if test "$wxUSE_GUI" = "yes"; then
2653
2654
2655 enablestring=
2656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2657echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2658 no_cache=0
2659 # Check whether --enable-universal or --disable-universal was given.
2660if test "${enable_universal+set}" = set; then
2661 enableval="$enable_universal"
2662
2663 if test "$enableval" = yes; then
2664 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2665 else
2666 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2667 fi
2668
2669else
2670
2671 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2679
2680fi;
2681
2682 eval "$ac_cv_use_universal"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_UNIVERSAL" = yes; then
2688 echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
2690 else
2691 echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6
2693 fi
2694
2695
2696# Check whether --with-gtk or --without-gtk was given.
2697if test "${with_gtk+set}" = set; then
2698 withval="$with_gtk"
2699 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2700fi;
2701
2702# Check whether --with-motif or --without-motif was given.
2703if test "${with_motif+set}" = set; then
2704 withval="$with_motif"
2705 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2706fi;
2707
2708# Check whether --with-mac or --without-mac was given.
2709if test "${with_mac+set}" = set; then
2710 withval="$with_mac"
c228d3a4 2711 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2712fi;
2713
2714# Check whether --with-cocoa or --without-cocoa was given.
2715if test "${with_cocoa+set}" = set; then
2716 withval="$with_cocoa"
c228d3a4 2717 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2718fi;
2719
2720# Check whether --with-wine or --without-wine was given.
2721if test "${with_wine+set}" = set; then
2722 withval="$with_wine"
2723 wxUSE_WINE="$withval" CACHE_WINE=1
2724fi;
2725
2726# Check whether --with-msw or --without-msw was given.
2727if test "${with_msw+set}" = set; then
2728 withval="$with_msw"
2729 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2730fi;
2731
2732# Check whether --with-pm or --without-pm was given.
2733if test "${with_pm+set}" = set; then
2734 withval="$with_pm"
2735 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2736fi;
2737
2738# Check whether --with-mgl or --without-mgl was given.
2739if test "${with_mgl+set}" = set; then
2740 withval="$with_mgl"
2741 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2742fi;
2743
2744# Check whether --with-microwin or --without-microwin was given.
2745if test "${with_microwin+set}" = set; then
2746 withval="$with_microwin"
2747 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2748fi;
2749
2750# Check whether --with-x11 or --without-x11 was given.
2751if test "${with_x11+set}" = set; then
2752 withval="$with_x11"
2753 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2754fi;
2755
2756 enablestring=
2757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2758echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2759 no_cache=0
2760 # Check whether --enable-nanox or --disable-nanox was given.
2761if test "${enable_nanox+set}" = set; then
2762 enableval="$enable_nanox"
2763
2764 if test "$enableval" = yes; then
2765 ac_cv_use_nanox='wxUSE_NANOX=yes'
2766 else
2767 ac_cv_use_nanox='wxUSE_NANOX=no'
2768 fi
2769
2770else
2771
2772 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2773 if test "x$LINE" != x ; then
2774 eval "DEFAULT_$LINE"
2775 else
2776 no_cache=1
2777 fi
2778
2779 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2780
2781fi;
2782
2783 eval "$ac_cv_use_nanox"
2784 if test "$no_cache" != 1; then
2785 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2786 fi
2787
2788 if test "$wxUSE_NANOX" = yes; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790echo "${ECHO_T}yes" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
2794 fi
2795
2796
f34ca037
MW
2797# Check whether --enable-gtk2 or --disable-gtk2 was given.
2798if test "${enable_gtk2+set}" = set; then
2799 enableval="$enable_gtk2"
2800 wxUSE_GTK2="$enableval"
2801fi;
a848cd7e 2802
a848cd7e
SC
2803 enablestring=
2804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2805echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2806 no_cache=0
2807 # Check whether --enable-gpe or --disable-gpe was given.
2808if test "${enable_gpe+set}" = set; then
2809 enableval="$enable_gpe"
2810
2811 if test "$enableval" = yes; then
2812 ac_cv_use_gpe='wxUSE_GPE=yes'
2813 else
2814 ac_cv_use_gpe='wxUSE_GPE=no'
2815 fi
2816
2817else
2818
2819 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2827
2828fi;
2829
2830 eval "$ac_cv_use_gpe"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_GPE" = yes; then
2836 echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
2841 fi
2842
2843
2844
2845 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2846echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2847 no_cache=0
2848
2849# Check whether --with-libpng or --without-libpng was given.
2850if test "${with_libpng+set}" = set; then
2851 withval="$with_libpng"
2852
2853 if test "$withval" = yes; then
2854 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2855 elif test "$withval" = no; then
2856 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2857 elif test "$withval" = sys; then
2858 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2859 elif test "$withval" = builtin; then
2860 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867else
2868
2869 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2877
2878fi;
2879
2880 eval "$ac_cv_use_libpng"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_LIBPNG" = yes; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
2888 elif test "$wxUSE_LIBPNG" = no; then
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 elif test "$wxUSE_LIBPNG" = sys; then
2892 echo "$as_me:$LINENO: result: system version" >&5
2893echo "${ECHO_T}system version" >&6
2894 elif test "$wxUSE_LIBPNG" = builtin; then
2895 echo "$as_me:$LINENO: result: builtin version" >&5
2896echo "${ECHO_T}builtin version" >&6
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2899echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903
2904 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2905echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2906 no_cache=0
2907
2908# Check whether --with-libjpeg or --without-libjpeg was given.
2909if test "${with_libjpeg+set}" = set; then
2910 withval="$with_libjpeg"
2911
2912 if test "$withval" = yes; then
2913 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2914 elif test "$withval" = no; then
2915 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2916 elif test "$withval" = sys; then
2917 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2918 elif test "$withval" = builtin; then
2919 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2920 else
2921 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2922echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2923 { (exit 1); exit 1; }; }
2924 fi
2925
2926else
2927
2928 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2929 if test "x$LINE" != x ; then
2930 eval "DEFAULT_$LINE"
2931 else
2932 no_cache=1
2933 fi
2934
2935 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2936
2937fi;
2938
2939 eval "$ac_cv_use_libjpeg"
2940 if test "$no_cache" != 1; then
2941 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2942 fi
2943
2944 if test "$wxUSE_LIBJPEG" = yes; then
2945 echo "$as_me:$LINENO: result: yes" >&5
2946echo "${ECHO_T}yes" >&6
2947 elif test "$wxUSE_LIBJPEG" = no; then
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
2950 elif test "$wxUSE_LIBJPEG" = sys; then
2951 echo "$as_me:$LINENO: result: system version" >&5
2952echo "${ECHO_T}system version" >&6
2953 elif test "$wxUSE_LIBJPEG" = builtin; then
2954 echo "$as_me:$LINENO: result: builtin version" >&5
2955echo "${ECHO_T}builtin version" >&6
2956 else
2957 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2958echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2959 { (exit 1); exit 1; }; }
2960 fi
2961
2962
2963 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2964echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2965 no_cache=0
2966
2967# Check whether --with-libtiff or --without-libtiff was given.
2968if test "${with_libtiff+set}" = set; then
2969 withval="$with_libtiff"
2970
2971 if test "$withval" = yes; then
2972 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2973 elif test "$withval" = no; then
2974 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2975 elif test "$withval" = sys; then
2976 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2977 elif test "$withval" = builtin; then
2978 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2979 else
2980 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2981echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2982 { (exit 1); exit 1; }; }
2983 fi
2984
2985else
2986
2987 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2988 if test "x$LINE" != x ; then
2989 eval "DEFAULT_$LINE"
2990 else
2991 no_cache=1
2992 fi
2993
2994 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2995
2996fi;
2997
2998 eval "$ac_cv_use_libtiff"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_LIBTIFF" = yes; then
3004 echo "$as_me:$LINENO: result: yes" >&5
3005echo "${ECHO_T}yes" >&6
3006 elif test "$wxUSE_LIBTIFF" = no; then
3007 echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6
3009 elif test "$wxUSE_LIBTIFF" = sys; then
3010 echo "$as_me:$LINENO: result: system version" >&5
3011echo "${ECHO_T}system version" >&6
3012 elif test "$wxUSE_LIBTIFF" = builtin; then
3013 echo "$as_me:$LINENO: result: builtin version" >&5
3014echo "${ECHO_T}builtin version" >&6
3015 else
3016 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3017echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3018 { (exit 1); exit 1; }; }
3019 fi
3020
3021
3022 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3023echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3024 no_cache=0
3025
3026# Check whether --with-libxpm or --without-libxpm was given.
3027if test "${with_libxpm+set}" = set; then
3028 withval="$with_libxpm"
3029
3030 if test "$withval" = yes; then
3031 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3032 elif test "$withval" = no; then
3033 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3034 elif test "$withval" = sys; then
3035 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3036 elif test "$withval" = builtin; then
3037 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3038 else
3039 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3040echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043
3044else
3045
3046 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3054
3055fi;
3056
3057 eval "$ac_cv_use_libxpm"
3058 if test "$no_cache" != 1; then
3059 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3060 fi
3061
3062 if test "$wxUSE_LIBXPM" = yes; then
3063 echo "$as_me:$LINENO: result: yes" >&5
3064echo "${ECHO_T}yes" >&6
3065 elif test "$wxUSE_LIBXPM" = no; then
3066 echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
3068 elif test "$wxUSE_LIBXPM" = sys; then
3069 echo "$as_me:$LINENO: result: system version" >&5
3070echo "${ECHO_T}system version" >&6
3071 elif test "$wxUSE_LIBXPM" = builtin; then
3072 echo "$as_me:$LINENO: result: builtin version" >&5
3073echo "${ECHO_T}builtin version" >&6
3074 else
3075 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3076echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3077 { (exit 1); exit 1; }; }
3078 fi
3079
3080
1c14217d
VZ
3081 withstring=
3082 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3083echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3084 no_cache=0
3085
3086# Check whether --with-libmspack or --without-libmspack was given.
3087if test "${with_libmspack+set}" = set; then
3088 withval="$with_libmspack"
3089
3090 if test "$withval" = yes; then
3091 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3092 else
3093 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3106
3107fi;
3108
3109 eval "$ac_cv_use_libmspack"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_LIBMSPACK" = yes; then
3115 echo "$as_me:$LINENO: result: yes" >&5
3116echo "${ECHO_T}yes" >&6
3117 else
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120 fi
3121
3122
1c14217d
VZ
3123 withstring=
3124 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3125echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3126 no_cache=0
3127
3128# Check whether --with-sdl or --without-sdl was given.
3129if test "${with_sdl+set}" = set; then
3130 withval="$with_sdl"
3131
3132 if test "$withval" = yes; then
3133 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3134 else
3135 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3136 fi
3137
3138else
3139
3140 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3148
3149fi;
3150
3151 eval "$ac_cv_use_sdl"
3152 if test "$no_cache" != 1; then
3153 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3154 fi
3155
3156 if test "$wxUSE_LIBSDL" = yes; then
3157 echo "$as_me:$LINENO: result: yes" >&5
3158echo "${ECHO_T}yes" >&6
3159 else
3160 echo "$as_me:$LINENO: result: no" >&5
3161echo "${ECHO_T}no" >&6
3162 fi
3163
3164
1c14217d
VZ
3165 withstring=
3166 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3167echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3168 no_cache=0
3169
3170# Check whether --with-gnomeprint or --without-gnomeprint was given.
3171if test "${with_gnomeprint+set}" = set; then
3172 withval="$with_gnomeprint"
3173
3174 if test "$withval" = yes; then
3175 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3176 else
3177 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3178 fi
3179
3180else
3181
3182 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3190
3191fi;
3192
3193 eval "$ac_cv_use_gnomeprint"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200echo "${ECHO_T}yes" >&6
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203echo "${ECHO_T}no" >&6
3204 fi
3205
3206
2b850ae1
RR
3207 withstring=
3208 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3209echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3210 no_cache=0
3211
3212# Check whether --with-gnomevfs or --without-gnomevfs was given.
3213if test "${with_gnomevfs+set}" = set; then
3214 withval="$with_gnomevfs"
3215
3216 if test "$withval" = yes; then
3217 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3218 else
3219 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3220 fi
3221
3222else
3223
3224 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3225 if test "x$LINE" != x ; then
3226 eval "DEFAULT_$LINE"
3227 else
3228 no_cache=1
3229 fi
3230
3231 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3232
3233fi;
3234
3235 eval "$ac_cv_use_gnomevfs"
3236 if test "$no_cache" != 1; then
3237 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3238 fi
3239
3240 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3241 echo "$as_me:$LINENO: result: yes" >&5
3242echo "${ECHO_T}yes" >&6
3243 else
3244 echo "$as_me:$LINENO: result: no" >&5
3245echo "${ECHO_T}no" >&6
3246 fi
3247
3248
3565d135
RR
3249 withstring=
3250 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3251echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3252 no_cache=0
3253
3254# Check whether --with-hildon or --without-hildon was given.
3255if test "${with_hildon+set}" = set; then
3256 withval="$with_hildon"
3257
3258 if test "$withval" = yes; then
3259 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3260 else
3261 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3262 fi
3263
3264else
3265
3266 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3274
3275fi;
3276
3277 eval "$ac_cv_use_hildon"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_LIBHILDON" = yes; then
3283 echo "$as_me:$LINENO: result: yes" >&5
3284echo "${ECHO_T}yes" >&6
3285 else
3286 echo "$as_me:$LINENO: result: no" >&5
3287echo "${ECHO_T}no" >&6
3288 fi
3289
3290
1c14217d
VZ
3291 withstring=
3292 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3293echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3294 no_cache=0
3295
3296# Check whether --with-opengl or --without-opengl was given.
3297if test "${with_opengl+set}" = set; then
3298 withval="$with_opengl"
3299
3300 if test "$withval" = yes; then
3301 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3302 else
3303 ac_cv_use_opengl='wxUSE_OPENGL=no'
3304 fi
3305
3306else
3307
3308 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3309 if test "x$LINE" != x ; then
3310 eval "DEFAULT_$LINE"
3311 else
3312 no_cache=1
3313 fi
3314
3315 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3316
3317fi;
3318
3319 eval "$ac_cv_use_opengl"
3320 if test "$no_cache" != 1; then
3321 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3322 fi
3323
3324 if test "$wxUSE_OPENGL" = yes; then
3325 echo "$as_me:$LINENO: result: yes" >&5
3326echo "${ECHO_T}yes" >&6
3327 else
3328 echo "$as_me:$LINENO: result: no" >&5
3329echo "${ECHO_T}no" >&6
3330 fi
3331
3332
3333fi
3334
3335
1c14217d
VZ
3336 withstring=
3337 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3338echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3339 no_cache=0
3340
3341# Check whether --with-dmalloc or --without-dmalloc was given.
3342if test "${with_dmalloc+set}" = set; then
3343 withval="$with_dmalloc"
3344
3345 if test "$withval" = yes; then
3346 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3347 else
3348 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3349 fi
3350
3351else
3352
3353 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3361
3362fi;
3363
3364 eval "$ac_cv_use_dmalloc"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_DMALLOC" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371echo "${ECHO_T}yes" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375 fi
3376
3377
3378 echo "$as_me:$LINENO: checking for --with-regex" >&5
3379echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3380 no_cache=0
3381
3382# Check whether --with-regex or --without-regex was given.
3383if test "${with_regex+set}" = set; then
3384 withval="$with_regex"
3385
3386 if test "$withval" = yes; then
3387 ac_cv_use_regex='wxUSE_REGEX=yes'
3388 elif test "$withval" = no; then
3389 ac_cv_use_regex='wxUSE_REGEX=no'
3390 elif test "$withval" = sys; then
3391 ac_cv_use_regex='wxUSE_REGEX=sys'
3392 elif test "$withval" = builtin; then
3393 ac_cv_use_regex='wxUSE_REGEX=builtin'
3394 else
3395 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3396echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3397 { (exit 1); exit 1; }; }
3398 fi
3399
3400else
3401
3402 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3403 if test "x$LINE" != x ; then
3404 eval "DEFAULT_$LINE"
3405 else
3406 no_cache=1
3407 fi
3408
3409 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3410
3411fi;
3412
3413 eval "$ac_cv_use_regex"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_REGEX" = yes; then
3419 echo "$as_me:$LINENO: result: yes" >&5
3420echo "${ECHO_T}yes" >&6
3421 elif test "$wxUSE_REGEX" = no; then
3422 echo "$as_me:$LINENO: result: no" >&5
3423echo "${ECHO_T}no" >&6
3424 elif test "$wxUSE_REGEX" = sys; then
3425 echo "$as_me:$LINENO: result: system version" >&5
3426echo "${ECHO_T}system version" >&6
3427 elif test "$wxUSE_REGEX" = builtin; then
3428 echo "$as_me:$LINENO: result: builtin version" >&5
3429echo "${ECHO_T}builtin version" >&6
3430 else
3431 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3432echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3433 { (exit 1); exit 1; }; }
3434 fi
3435
3436
3437 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3438echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3439 no_cache=0
3440
3441# Check whether --with-zlib or --without-zlib was given.
3442if test "${with_zlib+set}" = set; then
3443 withval="$with_zlib"
3444
3445 if test "$withval" = yes; then
3446 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3447 elif test "$withval" = no; then
3448 ac_cv_use_zlib='wxUSE_ZLIB=no'
3449 elif test "$withval" = sys; then
3450 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3451 elif test "$withval" = builtin; then
3452 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3453 else
3454 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3455echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3456 { (exit 1); exit 1; }; }
3457 fi
3458
3459else
3460
3461 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3462 if test "x$LINE" != x ; then
3463 eval "DEFAULT_$LINE"
3464 else
3465 no_cache=1
3466 fi
3467
3468 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3469
3470fi;
3471
3472 eval "$ac_cv_use_zlib"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_ZLIB" = yes; then
3478 echo "$as_me:$LINENO: result: yes" >&5
3479echo "${ECHO_T}yes" >&6
3480 elif test "$wxUSE_ZLIB" = no; then
3481 echo "$as_me:$LINENO: result: no" >&5
3482echo "${ECHO_T}no" >&6
3483 elif test "$wxUSE_ZLIB" = sys; then
3484 echo "$as_me:$LINENO: result: system version" >&5
3485echo "${ECHO_T}system version" >&6
3486 elif test "$wxUSE_ZLIB" = builtin; then
3487 echo "$as_me:$LINENO: result: builtin version" >&5
3488echo "${ECHO_T}builtin version" >&6
3489 else
3490 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3491echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3492 { (exit 1); exit 1; }; }
3493 fi
3494
3495
3496 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3497echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3498 no_cache=0
3499
3500# Check whether --with-odbc or --without-odbc was given.
3501if test "${with_odbc+set}" = set; then
3502 withval="$with_odbc"
3503
3504 if test "$withval" = yes; then
3505 ac_cv_use_odbc='wxUSE_ODBC=yes'
3506 elif test "$withval" = no; then
3507 ac_cv_use_odbc='wxUSE_ODBC=no'
3508 elif test "$withval" = sys; then
3509 ac_cv_use_odbc='wxUSE_ODBC=sys'
3510 elif test "$withval" = builtin; then
3511 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3512 else
3513 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3514echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3515 { (exit 1); exit 1; }; }
3516 fi
3517
3518else
3519
3520 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3528
3529fi;
3530
3531 eval "$ac_cv_use_odbc"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_ODBC" = yes; then
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
3539 elif test "$wxUSE_ODBC" = no; then
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
3542 elif test "$wxUSE_ODBC" = sys; then
3543 echo "$as_me:$LINENO: result: system version" >&5
3544echo "${ECHO_T}system version" >&6
3545 elif test "$wxUSE_ODBC" = builtin; then
3546 echo "$as_me:$LINENO: result: builtin version" >&5
3547echo "${ECHO_T}builtin version" >&6
3548 else
3549 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3550echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3551 { (exit 1); exit 1; }; }
3552 fi
3553
3554
3555 echo "$as_me:$LINENO: checking for --with-expat" >&5
3556echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3557 no_cache=0
3558
3559# Check whether --with-expat or --without-expat was given.
3560if test "${with_expat+set}" = set; then
3561 withval="$with_expat"
3562
3563 if test "$withval" = yes; then
3564 ac_cv_use_expat='wxUSE_EXPAT=yes'
3565 elif test "$withval" = no; then
3566 ac_cv_use_expat='wxUSE_EXPAT=no'
3567 elif test "$withval" = sys; then
3568 ac_cv_use_expat='wxUSE_EXPAT=sys'
3569 elif test "$withval" = builtin; then
3570 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3571 else
3572 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3573echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3574 { (exit 1); exit 1; }; }
3575 fi
3576
3577else
3578
3579 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3580 if test "x$LINE" != x ; then
3581 eval "DEFAULT_$LINE"
3582 else
3583 no_cache=1
3584 fi
3585
3586 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3587
3588fi;
3589
3590 eval "$ac_cv_use_expat"
3591 if test "$no_cache" != 1; then
3592 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3593 fi
3594
3595 if test "$wxUSE_EXPAT" = yes; then
3596 echo "$as_me:$LINENO: result: yes" >&5
3597echo "${ECHO_T}yes" >&6
3598 elif test "$wxUSE_EXPAT" = no; then
3599 echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
3601 elif test "$wxUSE_EXPAT" = sys; then
3602 echo "$as_me:$LINENO: result: system version" >&5
3603echo "${ECHO_T}system version" >&6
3604 elif test "$wxUSE_EXPAT" = builtin; then
3605 echo "$as_me:$LINENO: result: builtin version" >&5
3606echo "${ECHO_T}builtin version" >&6
3607 else
3608 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3609echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3610 { (exit 1); exit 1; }; }
3611 fi
3612
3613
3614
3615
3616 enablestring=
3617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3618echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3619 no_cache=0
3620 # Check whether --enable-shared or --disable-shared was given.
3621if test "${enable_shared+set}" = set; then
3622 enableval="$enable_shared"
3623
3624 if test "$enableval" = yes; then
3625 ac_cv_use_shared='wxUSE_SHARED=yes'
3626 else
3627 ac_cv_use_shared='wxUSE_SHARED=no'
3628 fi
3629
3630else
3631
3632 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3633 if test "x$LINE" != x ; then
3634 eval "DEFAULT_$LINE"
3635 else
3636 no_cache=1
3637 fi
3638
3639 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3640
3641fi;
3642
3643 eval "$ac_cv_use_shared"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_SHARED" = yes; then
3649 echo "$as_me:$LINENO: result: yes" >&5
3650echo "${ECHO_T}yes" >&6
3651 else
3652 echo "$as_me:$LINENO: result: no" >&5
3653echo "${ECHO_T}no" >&6
3654 fi
3655
3656
3657 enablestring=
3658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3659echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3660 no_cache=0
3661 # Check whether --enable-optimise or --disable-optimise was given.
3662if test "${enable_optimise+set}" = set; then
3663 enableval="$enable_optimise"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3667 else
3668 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3669 fi
3670
3671else
3672
3673 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3681
3682fi;
3683
3684 eval "$ac_cv_use_optimise"
3685 if test "$no_cache" != 1; then
3686 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3687 fi
3688
3689 if test "$wxUSE_OPTIMISE" = yes; then
3690 echo "$as_me:$LINENO: result: yes" >&5
3691echo "${ECHO_T}yes" >&6
3692 else
3693 echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6
3695 fi
3696
3697
3698 enablestring=
3699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3700echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3701 no_cache=0
3702 # Check whether --enable-debug or --disable-debug was given.
3703if test "${enable_debug+set}" = set; then
3704 enableval="$enable_debug"
3705
3706 if test "$enableval" = yes; then
3707 ac_cv_use_debug='wxUSE_DEBUG=yes'
3708 else
3709 ac_cv_use_debug='wxUSE_DEBUG=no'
3710 fi
3711
3712else
3713
3714 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3715 if test "x$LINE" != x ; then
3716 eval "DEFAULT_$LINE"
3717 else
3718 no_cache=1
3719 fi
3720
3721 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3722
3723fi;
3724
3725 eval "$ac_cv_use_debug"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$wxUSE_DEBUG" = yes; then
3731 echo "$as_me:$LINENO: result: yes" >&5
3732echo "${ECHO_T}yes" >&6
3733 else
3734 echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
3736 fi
3737
3738
3739 enablestring=
3740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3741echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3742 no_cache=0
3743 # Check whether --enable-stl or --disable-stl was given.
3744if test "${enable_stl+set}" = set; then
3745 enableval="$enable_stl"
3746
3747 if test "$enableval" = yes; then
3748 ac_cv_use_stl='wxUSE_STL=yes'
3749 else
3750 ac_cv_use_stl='wxUSE_STL=no'
3751 fi
3752
3753else
3754
3755 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
3762 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3763
3764fi;
3765
3766 eval "$ac_cv_use_stl"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$wxUSE_STL" = yes; then
3772 echo "$as_me:$LINENO: result: yes" >&5
3773echo "${ECHO_T}yes" >&6
3774 else
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
3777 fi
3778
3779if test "$USE_OS2" = "1"; then
69120ee4 3780 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3781
3782 enablestring=
3783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3784echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3785 no_cache=0
3786 # Check whether --enable-omf or --disable-omf was given.
3787if test "${enable_omf+set}" = set; then
3788 enableval="$enable_omf"
3789
3790 if test "$enableval" = yes; then
3791 ac_cv_use_omf='wxUSE_OMF=yes'
3792 else
3793 ac_cv_use_omf='wxUSE_OMF=no'
3794 fi
3795
3796else
3797
3798 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3799 if test "x$LINE" != x ; then
3800 eval "DEFAULT_$LINE"
3801 else
3802 no_cache=1
3803 fi
3804
3805 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3806
3807fi;
3808
3809 eval "$ac_cv_use_omf"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_OMF" = yes; then
3815 echo "$as_me:$LINENO: result: yes" >&5
3816echo "${ECHO_T}yes" >&6
3817 else
3818 echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6
3820 fi
3821
3822fi
3823
3824if test "$wxUSE_DEBUG" = "yes"; then
3825 DEFAULT_wxUSE_DEBUG_FLAG=yes
3826 DEFAULT_wxUSE_DEBUG_INFO=yes
3827 BUILD=debug
3828elif test "$wxUSE_DEBUG" = "no"; then
3829 DEFAULT_wxUSE_DEBUG_FLAG=no
3830 DEFAULT_wxUSE_DEBUG_INFO=no
3831 BUILD=release
3832fi
3833
3834
3835 enablestring=
3836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3837echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3838 no_cache=0
3839 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3840if test "${enable_debug_flag+set}" = set; then
3841 enableval="$enable_debug_flag"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3845 else
3846 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3847 fi
3848
3849else
3850
3851 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3859
3860fi;
3861
3862 eval "$ac_cv_use_debug_flag"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_DEBUG_FLAG" = yes; then
3868 echo "$as_me:$LINENO: result: yes" >&5
3869echo "${ECHO_T}yes" >&6
3870 else
3871 echo "$as_me:$LINENO: result: no" >&5
3872echo "${ECHO_T}no" >&6
3873 fi
3874
3875
3876 enablestring=
3877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3878echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3879 no_cache=0
3880 # Check whether --enable-debug_info or --disable-debug_info was given.
3881if test "${enable_debug_info+set}" = set; then
3882 enableval="$enable_debug_info"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3886 else
3887 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3888 fi
3889
3890else
3891
3892 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3900
3901fi;
3902
3903 eval "$ac_cv_use_debug_info"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_DEBUG_INFO" = yes; then
3909 echo "$as_me:$LINENO: result: yes" >&5
3910echo "${ECHO_T}yes" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
3914 fi
3915
3916
3917 enablestring=
3918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3919echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3920 no_cache=0
3921 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3922if test "${enable_debug_gdb+set}" = set; then
3923 enableval="$enable_debug_gdb"
3924
3925 if test "$enableval" = yes; then
3926 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3927 else
3928 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3929 fi
3930
3931else
3932
3933 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3941
3942fi;
3943
3944 eval "$ac_cv_use_debug_gdb"
3945 if test "$no_cache" != 1; then
3946 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3947 fi
3948
3949 if test "$wxUSE_DEBUG_GDB" = yes; then
3950 echo "$as_me:$LINENO: result: yes" >&5
3951echo "${ECHO_T}yes" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
3955 fi
3956
3957
3958 enablestring=
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3960echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3961 no_cache=0
3962 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3963if test "${enable_debug_cntxt+set}" = set; then
3964 enableval="$enable_debug_cntxt"
3965
3966 if test "$enableval" = yes; then
3967 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3968 else
3969 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3970 fi
3971
3972else
3973
3974 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3982
3983fi;
3984
3985 eval "$ac_cv_use_debug_cntxt"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3991 echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996 fi
3997
3998
3999 enablestring=
4000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4001echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4002 no_cache=0
4003 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4004if test "${enable_mem_tracing+set}" = set; then
4005 enableval="$enable_mem_tracing"
4006
4007 if test "$enableval" = yes; then
4008 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4009 else
4010 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4011 fi
4012
4013else
4014
4015 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4016 if test "x$LINE" != x ; then
4017 eval "DEFAULT_$LINE"
4018 else
4019 no_cache=1
4020 fi
4021
4022 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4023
4024fi;
4025
4026 eval "$ac_cv_use_mem_tracing"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_MEM_TRACING" = yes; then
4032 echo "$as_me:$LINENO: result: yes" >&5
4033echo "${ECHO_T}yes" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037 fi
4038
4039
4040 enablestring=
4041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4042echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4043 no_cache=0
4044 # Check whether --enable-profile or --disable-profile was given.
4045if test "${enable_profile+set}" = set; then
4046 enableval="$enable_profile"
4047
4048 if test "$enableval" = yes; then
4049 ac_cv_use_profile='wxUSE_PROFILE=yes'
4050 else
4051 ac_cv_use_profile='wxUSE_PROFILE=no'
4052 fi
4053
4054else
4055
4056 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4064
4065fi;
4066
4067 eval "$ac_cv_use_profile"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_PROFILE" = yes; then
4073 echo "$as_me:$LINENO: result: yes" >&5
4074echo "${ECHO_T}yes" >&6
4075 else
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
4078 fi
4079
4080
4081 enablestring=
4082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4083echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4084 no_cache=0
4085 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4086if test "${enable_no_rtti+set}" = set; then
4087 enableval="$enable_no_rtti"
4088
4089 if test "$enableval" = yes; then
4090 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4091 else
4092 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4093 fi
4094
4095else
4096
4097 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4105
4106fi;
4107
4108 eval "$ac_cv_use_no_rtti"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_NO_RTTI" = yes; then
4114 echo "$as_me:$LINENO: result: yes" >&5
4115echo "${ECHO_T}yes" >&6
4116 else
4117 echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
4119 fi
4120
4121
4122 enablestring=
4123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4124echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4125 no_cache=0
4126 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4127if test "${enable_no_exceptions+set}" = set; then
4128 enableval="$enable_no_exceptions"
4129
4130 if test "$enableval" = yes; then
4131 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4132 else
4133 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4134 fi
4135
4136else
4137
4138 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4139 if test "x$LINE" != x ; then
4140 eval "DEFAULT_$LINE"
4141 else
4142 no_cache=1
4143 fi
4144
4145 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4146
4147fi;
4148
4149 eval "$ac_cv_use_no_exceptions"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4155 echo "$as_me:$LINENO: result: yes" >&5
4156echo "${ECHO_T}yes" >&6
4157 else
4158 echo "$as_me:$LINENO: result: no" >&5
4159echo "${ECHO_T}no" >&6
4160 fi
4161
4162
4163 enablestring=
4164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4165echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4166 no_cache=0
4167 # Check whether --enable-permissive or --disable-permissive was given.
4168if test "${enable_permissive+set}" = set; then
4169 enableval="$enable_permissive"
4170
4171 if test "$enableval" = yes; then
4172 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4173 else
4174 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4175 fi
4176
4177else
4178
4179 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4180 if test "x$LINE" != x ; then
4181 eval "DEFAULT_$LINE"
4182 else
4183 no_cache=1
4184 fi
4185
4186 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4187
4188fi;
4189
4190 eval "$ac_cv_use_permissive"
4191 if test "$no_cache" != 1; then
4192 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4193 fi
4194
4195 if test "$wxUSE_PERMISSIVE" = yes; then
4196 echo "$as_me:$LINENO: result: yes" >&5
4197echo "${ECHO_T}yes" >&6
4198 else
4199 echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6
4201 fi
4202
4203
4204 enablestring=
4205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4206echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4207 no_cache=0
4208 # Check whether --enable-no_deps or --disable-no_deps was given.
4209if test "${enable_no_deps+set}" = set; then
4210 enableval="$enable_no_deps"
4211
4212 if test "$enableval" = yes; then
4213 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4214 else
4215 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4216 fi
4217
4218else
4219
4220 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4228
4229fi;
4230
4231 eval "$ac_cv_use_no_deps"
4232 if test "$no_cache" != 1; then
4233 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4234 fi
4235
4236 if test "$wxUSE_NO_DEPS" = yes; then
4237 echo "$as_me:$LINENO: result: yes" >&5
4238echo "${ECHO_T}yes" >&6
4239 else
4240 echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6
4242 fi
4243
4244
7afc46ab
KO
4245 enablestring=
4246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4247echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4248 no_cache=0
4249 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4250if test "${enable_universal_binary+set}" = set; then
4251 enableval="$enable_universal_binary"
4252
4253 if test "$enableval" = yes; then
4254 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4255 else
4256 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4257 fi
4258
4259else
4260
4261 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
4268 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4269
4270fi;
4271
4272 eval "$ac_cv_use_universal_binary"
4273 if test "$no_cache" != 1; then
4274 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4275 fi
4276
4277 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4278 echo "$as_me:$LINENO: result: yes" >&5
4279echo "${ECHO_T}yes" >&6
4280 else
4281 echo "$as_me:$LINENO: result: no" >&5
4282echo "${ECHO_T}no" >&6
4283 fi
4284
4285
a848cd7e 4286
dee1a63f
MB
4287 enablestring=enable
4288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4289echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4290 no_cache=0
dee1a63f
MB
4291 # Check whether --enable-compat24 or --disable-compat24 was given.
4292if test "${enable_compat24+set}" = set; then
4293 enableval="$enable_compat24"
a848cd7e
SC
4294
4295 if test "$enableval" = yes; then
dee1a63f 4296 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4297 else
dee1a63f 4298 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4299 fi
4300
4301else
4302
dee1a63f 4303 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4304 if test "x$LINE" != x ; then
4305 eval "DEFAULT_$LINE"
4306 else
4307 no_cache=1
4308 fi
4309
dee1a63f 4310 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4311
4312fi;
4313
dee1a63f 4314 eval "$ac_cv_use_compat24"
a848cd7e 4315 if test "$no_cache" != 1; then
dee1a63f 4316 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4317 fi
4318
dee1a63f 4319 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4320 echo "$as_me:$LINENO: result: yes" >&5
4321echo "${ECHO_T}yes" >&6
4322 else
4323 echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
4325 fi
4326
4327
4328 enablestring=disable
dee1a63f
MB
4329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4330echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4331 no_cache=0
dee1a63f
MB
4332 # Check whether --enable-compat26 or --disable-compat26 was given.
4333if test "${enable_compat26+set}" = set; then
4334 enableval="$enable_compat26"
a848cd7e
SC
4335
4336 if test "$enableval" = yes; then
dee1a63f 4337 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4338 else
dee1a63f 4339 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4340 fi
4341
4342else
4343
dee1a63f 4344 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
dee1a63f 4351 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4352
4353fi;
4354
dee1a63f 4355 eval "$ac_cv_use_compat26"
a848cd7e 4356 if test "$no_cache" != 1; then
dee1a63f 4357 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4358 fi
4359
dee1a63f 4360 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4361 echo "$as_me:$LINENO: result: yes" >&5
4362echo "${ECHO_T}yes" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365echo "${ECHO_T}no" >&6
4366 fi
4367
4368
ffa0583f
RL
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4375if test "${enable_rpath+set}" = set; then
4376 enableval="$enable_rpath"
ffa0583f
RL
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_rpath='wxUSE_RPATH=yes'
4380 else
4381 ac_cv_use_rpath='wxUSE_RPATH=no'
4382 fi
4383
4384else
4385
4386 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4394
a848cd7e
SC
4395fi;
4396
ffa0583f
RL
4397 eval "$ac_cv_use_rpath"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_RPATH" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408 fi
4409
a848cd7e
SC
4410
4411
4412
4413
4414 enablestring=
4415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4416echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4417 no_cache=0
4418 # Check whether --enable-intl or --disable-intl was given.
4419if test "${enable_intl+set}" = set; then
4420 enableval="$enable_intl"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_intl='wxUSE_INTL=yes'
4424 else
4425 ac_cv_use_intl='wxUSE_INTL=no'
4426 fi
4427
4428else
4429
4430 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4438
4439fi;
4440
4441 eval "$ac_cv_use_intl"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_INTL" = yes; then
4447 echo "$as_me:$LINENO: result: yes" >&5
4448echo "${ECHO_T}yes" >&6
4449 else
4450 echo "$as_me:$LINENO: result: no" >&5
4451echo "${ECHO_T}no" >&6
4452 fi
4453
4454
4455 enablestring=
4456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4457echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4458 no_cache=0
4459 # Check whether --enable-config or --disable-config was given.
4460if test "${enable_config+set}" = set; then
4461 enableval="$enable_config"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_config='wxUSE_CONFIG=yes'
4465 else
4466 ac_cv_use_config='wxUSE_CONFIG=no'
4467 fi
4468
4469else
4470
4471 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4479
4480fi;
4481
4482 eval "$ac_cv_use_config"
4483 if test "$no_cache" != 1; then
4484 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4485 fi
4486
4487 if test "$wxUSE_CONFIG" = yes; then
4488 echo "$as_me:$LINENO: result: yes" >&5
4489echo "${ECHO_T}yes" >&6
4490 else
4491 echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6
4493 fi
4494
4495
4496
4497 enablestring=
4498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4499echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4500 no_cache=0
4501 # Check whether --enable-protocols or --disable-protocols was given.
4502if test "${enable_protocols+set}" = set; then
4503 enableval="$enable_protocols"
4504
4505 if test "$enableval" = yes; then
4506 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4507 else
4508 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4509 fi
4510
4511else
4512
4513 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4521
4522fi;
4523
4524 eval "$ac_cv_use_protocols"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_PROTOCOL" = yes; then
4530 echo "$as_me:$LINENO: result: yes" >&5
4531echo "${ECHO_T}yes" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535 fi
4536
4537
4538 enablestring=
4539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4540echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4541 no_cache=0
4542 # Check whether --enable-ftp or --disable-ftp was given.
4543if test "${enable_ftp+set}" = set; then
4544 enableval="$enable_ftp"
4545
4546 if test "$enableval" = yes; then
4547 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4548 else
4549 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4550 fi
4551
4552else
4553
4554 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4562
4563fi;
4564
4565 eval "$ac_cv_use_ftp"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4571 echo "$as_me:$LINENO: result: yes" >&5
4572echo "${ECHO_T}yes" >&6
4573 else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576 fi
4577
4578
4579 enablestring=
4580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4581echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4582 no_cache=0
4583 # Check whether --enable-http or --disable-http was given.
4584if test "${enable_http+set}" = set; then
4585 enableval="$enable_http"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4589 else
4590 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4591 fi
4592
4593else
4594
4595 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4603
4604fi;
4605
4606 eval "$ac_cv_use_http"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6
4617 fi
4618
4619
4620 enablestring=
4621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4622echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4623 no_cache=0
4624 # Check whether --enable-fileproto or --disable-fileproto was given.
4625if test "${enable_fileproto+set}" = set; then
4626 enableval="$enable_fileproto"
4627
4628 if test "$enableval" = yes; then
4629 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4630 else
4631 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4632 fi
4633
4634else
4635
4636 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4637 if test "x$LINE" != x ; then
4638 eval "DEFAULT_$LINE"
4639 else
4640 no_cache=1
4641 fi
4642
4643 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4644
4645fi;
4646
4647 eval "$ac_cv_use_fileproto"
4648 if test "$no_cache" != 1; then
4649 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4650 fi
4651
4652 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4653 echo "$as_me:$LINENO: result: yes" >&5
4654echo "${ECHO_T}yes" >&6
4655 else
4656 echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658 fi
4659
4660
4661 enablestring=
4662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4663echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4664 no_cache=0
4665 # Check whether --enable-sockets or --disable-sockets was given.
4666if test "${enable_sockets+set}" = set; then
4667 enableval="$enable_sockets"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4671 else
4672 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4673 fi
4674
4675else
4676
4677 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4685
4686fi;
4687
4688 eval "$ac_cv_use_sockets"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_SOCKETS" = yes; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695echo "${ECHO_T}yes" >&6
4696 else
4697 echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699 fi
4700
4701
4702 enablestring=
4703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4704echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4705 no_cache=0
4706 # Check whether --enable-ole or --disable-ole was given.
4707if test "${enable_ole+set}" = set; then
4708 enableval="$enable_ole"
4709
4710 if test "$enableval" = yes; then
4711 ac_cv_use_ole='wxUSE_OLE=yes'
4712 else
4713 ac_cv_use_ole='wxUSE_OLE=no'
4714 fi
4715
4716else
4717
4718 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4719 if test "x$LINE" != x ; then
4720 eval "DEFAULT_$LINE"
4721 else
4722 no_cache=1
4723 fi
4724
4725 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4726
4727fi;
4728
4729 eval "$ac_cv_use_ole"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_OLE" = yes; then
4735 echo "$as_me:$LINENO: result: yes" >&5
4736echo "${ECHO_T}yes" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6
4740 fi
4741
4742
4743 enablestring=
4744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4745echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4746 no_cache=0
4747 # Check whether --enable-dataobj or --disable-dataobj was given.
4748if test "${enable_dataobj+set}" = set; then
4749 enableval="$enable_dataobj"
4750
4751 if test "$enableval" = yes; then
4752 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4753 else
4754 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4755 fi
4756
4757else
4758
4759 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4767
4768fi;
4769
4770 eval "$ac_cv_use_dataobj"
4771 if test "$no_cache" != 1; then
4772 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4773 fi
4774
4775 if test "$wxUSE_DATAOBJ" = yes; then
4776 echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6
4778 else
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781 fi
4782
4783
4784
4785 enablestring=
4786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4787echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4788 no_cache=0
4789 # Check whether --enable-ipc or --disable-ipc was given.
4790if test "${enable_ipc+set}" = set; then
4791 enableval="$enable_ipc"
4792
4793 if test "$enableval" = yes; then
4794 ac_cv_use_ipc='wxUSE_IPC=yes'
4795 else
4796 ac_cv_use_ipc='wxUSE_IPC=no'
4797 fi
4798
4799else
4800
4801 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4802 if test "x$LINE" != x ; then
4803 eval "DEFAULT_$LINE"
4804 else
4805 no_cache=1
4806 fi
4807
4808 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4809
4810fi;
4811
4812 eval "$ac_cv_use_ipc"
4813 if test "$no_cache" != 1; then
4814 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4815 fi
4816
4817 if test "$wxUSE_IPC" = yes; then
4818 echo "$as_me:$LINENO: result: yes" >&5
4819echo "${ECHO_T}yes" >&6
4820 else
4821 echo "$as_me:$LINENO: result: no" >&5
4822echo "${ECHO_T}no" >&6
4823 fi
4824
4825
4826
4827 enablestring=
4828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4829echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4830 no_cache=0
4831 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4832if test "${enable_apple_ieee+set}" = set; then
4833 enableval="$enable_apple_ieee"
4834
4835 if test "$enableval" = yes; then
4836 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4837 else
4838 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4839 fi
4840
4841else
4842
4843 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4851
4852fi;
4853
4854 eval "$ac_cv_use_apple_ieee"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_APPLE_IEEE" = yes; then
4860 echo "$as_me:$LINENO: result: yes" >&5
4861echo "${ECHO_T}yes" >&6
4862 else
4863 echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
4865 fi
4866
4867
81f90336
MW
4868 enablestring=
4869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4870echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4871 no_cache=0
4872 # Check whether --enable-arcstream or --disable-arcstream was given.
4873if test "${enable_arcstream+set}" = set; then
4874 enableval="$enable_arcstream"
4875
4876 if test "$enableval" = yes; then
9e8e867f 4877 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4878 else
9e8e867f 4879 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4880 fi
4881
4882else
4883
9e8e867f 4884 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4885 if test "x$LINE" != x ; then
4886 eval "DEFAULT_$LINE"
4887 else
4888 no_cache=1
4889 fi
4890
9e8e867f 4891 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4892
4893fi;
4894
4895 eval "$ac_cv_use_arcstream"
4896 if test "$no_cache" != 1; then
4897 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4898 fi
4899
9e8e867f 4900 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4901 echo "$as_me:$LINENO: result: yes" >&5
4902echo "${ECHO_T}yes" >&6
4903 else
4904 echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6
4906 fi
4907
4908
a848cd7e 4909 enablestring=
36b6448c
VZ
4910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4911echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4912 no_cache=0
36b6448c
VZ
4913 # Check whether --enable-backtrace or --disable-backtrace was given.
4914if test "${enable_backtrace+set}" = set; then
4915 enableval="$enable_backtrace"
a848cd7e
SC
4916
4917 if test "$enableval" = yes; then
36b6448c 4918 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4919 else
36b6448c 4920 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4921 fi
4922
4923else
4924
36b6448c 4925 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4926 if test "x$LINE" != x ; then
4927 eval "DEFAULT_$LINE"
4928 else
4929 no_cache=1
4930 fi
4931
36b6448c 4932 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4933
4934fi;
4935
36b6448c 4936 eval "$ac_cv_use_backtrace"
a848cd7e 4937 if test "$no_cache" != 1; then
36b6448c 4938 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4939 fi
4940
36b6448c 4941 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4942 echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
4944 else
4945 echo "$as_me:$LINENO: result: no" >&5
4946echo "${ECHO_T}no" >&6
4947 fi
4948
4949
eaff0f0d 4950 enablestring=
36b6448c
VZ
4951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4952echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4953 no_cache=0
36b6448c
VZ
4954 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4955if test "${enable_catch_segvs+set}" = set; then
4956 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4957
4958 if test "$enableval" = yes; then
36b6448c 4959 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4960 else
36b6448c 4961 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4962 fi
4963
4964else
4965
36b6448c 4966 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4967 if test "x$LINE" != x ; then
4968 eval "DEFAULT_$LINE"
4969 else
4970 no_cache=1
4971 fi
4972
36b6448c 4973 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4974
4975fi;
4976
36b6448c 4977 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4978 if test "$no_cache" != 1; then
36b6448c 4979 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4980 fi
4981
36b6448c 4982 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4983 echo "$as_me:$LINENO: result: yes" >&5
4984echo "${ECHO_T}yes" >&6
4985 else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988 fi
4989
4990
a848cd7e
SC
4991 enablestring=
4992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4993echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4994 no_cache=0
4995 # Check whether --enable-cmdline or --disable-cmdline was given.
4996if test "${enable_cmdline+set}" = set; then
4997 enableval="$enable_cmdline"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5001 else
5002 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5003 fi
5004
5005else
5006
5007 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5015
5016fi;
5017
5018 eval "$ac_cv_use_cmdline"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5024 echo "$as_me:$LINENO: result: yes" >&5
5025echo "${ECHO_T}yes" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029 fi
5030
5031
5032 enablestring=
5033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5034echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5035 no_cache=0
5036 # Check whether --enable-datetime or --disable-datetime was given.
5037if test "${enable_datetime+set}" = set; then
5038 enableval="$enable_datetime"
5039
5040 if test "$enableval" = yes; then
5041 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5042 else
5043 ac_cv_use_datetime='wxUSE_DATETIME=no'
5044 fi
5045
5046else
5047
5048 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5049 if test "x$LINE" != x ; then
5050 eval "DEFAULT_$LINE"
5051 else
5052 no_cache=1
5053 fi
5054
5055 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5056
5057fi;
5058
5059 eval "$ac_cv_use_datetime"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5062 fi
5063
5064 if test "$wxUSE_DATETIME" = yes; then
5065 echo "$as_me:$LINENO: result: yes" >&5
5066echo "${ECHO_T}yes" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070 fi
5071
5072
36b6448c
VZ
5073 enablestring=
5074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5075echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5076 no_cache=0
5077 # Check whether --enable-debugreport or --disable-debugreport was given.
5078if test "${enable_debugreport+set}" = set; then
5079 enableval="$enable_debugreport"
5080
5081 if test "$enableval" = yes; then
5082 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5083 else
5084 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5085 fi
5086
5087else
5088
5089 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5097
5098fi;
5099
5100 eval "$ac_cv_use_debugreport"
5101 if test "$no_cache" != 1; then
5102 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5103 fi
5104
5105 if test "$wxUSE_DEBUGREPORT" = yes; then
5106 echo "$as_me:$LINENO: result: yes" >&5
5107echo "${ECHO_T}yes" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111 fi
5112
5113
a848cd7e
SC
5114 enablestring=
5115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5116echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5117 no_cache=0
5118 # Check whether --enable-dialupman or --disable-dialupman was given.
5119if test "${enable_dialupman+set}" = set; then
5120 enableval="$enable_dialupman"
5121
5122 if test "$enableval" = yes; then
5123 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5124 else
5125 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5126 fi
5127
5128else
5129
5130 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5131 if test "x$LINE" != x ; then
5132 eval "DEFAULT_$LINE"
5133 else
5134 no_cache=1
5135 fi
5136
5137 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5138
5139fi;
5140
5141 eval "$ac_cv_use_dialupman"
5142 if test "$no_cache" != 1; then
5143 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5144 fi
5145
5146 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5147 echo "$as_me:$LINENO: result: yes" >&5
5148echo "${ECHO_T}yes" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151echo "${ECHO_T}no" >&6
5152 fi
5153
5154
5155 enablestring=
5156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5157echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5158 no_cache=0
5159 # Check whether --enable-dynlib or --disable-dynlib was given.
5160if test "${enable_dynlib+set}" = set; then
5161 enableval="$enable_dynlib"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5165 else
5166 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5179
5180fi;
5181
5182 eval "$ac_cv_use_dynlib"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189echo "${ECHO_T}yes" >&6
5190 else
5191 echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193 fi
5194
5195
5196 enablestring=
5197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5198echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5199 no_cache=0
5200 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5201if test "${enable_dynamicloader+set}" = set; then
5202 enableval="$enable_dynamicloader"
5203
5204 if test "$enableval" = yes; then
5205 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5206 else
5207 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5208 fi
5209
5210else
5211
5212 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5213 if test "x$LINE" != x ; then
5214 eval "DEFAULT_$LINE"
5215 else
5216 no_cache=1
5217 fi
5218
5219 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5220
5221fi;
5222
5223 eval "$ac_cv_use_dynamicloader"
5224 if test "$no_cache" != 1; then
5225 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5226 fi
5227
5228 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234 fi
5235
5236
5237 enablestring=
5238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5239echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5240 no_cache=0
5241 # Check whether --enable-exceptions or --disable-exceptions was given.
5242if test "${enable_exceptions+set}" = set; then
5243 enableval="$enable_exceptions"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5247 else
5248 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5249 fi
5250
5251else
5252
5253 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5261
5262fi;
5263
5264 eval "$ac_cv_use_exceptions"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_EXCEPTIONS" = yes; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271echo "${ECHO_T}yes" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275 fi
5276
5277
5278 enablestring=
5279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5280echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5281 no_cache=0
5282 # Check whether --enable-ffile or --disable-ffile was given.
5283if test "${enable_ffile+set}" = set; then
5284 enableval="$enable_ffile"
5285
5286 if test "$enableval" = yes; then
5287 ac_cv_use_ffile='wxUSE_FFILE=yes'
5288 else
5289 ac_cv_use_ffile='wxUSE_FFILE=no'
5290 fi
5291
5292else
5293
5294 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5302
5303fi;
5304
5305 eval "$ac_cv_use_ffile"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_FFILE" = yes; then
5311 echo "$as_me:$LINENO: result: yes" >&5
5312echo "${ECHO_T}yes" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316 fi
5317
5318
5319 enablestring=
5320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5321echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5322 no_cache=0
5323 # Check whether --enable-file or --disable-file was given.
5324if test "${enable_file+set}" = set; then
5325 enableval="$enable_file"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_file='wxUSE_FILE=yes'
5329 else
5330 ac_cv_use_file='wxUSE_FILE=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5343
5344fi;
5345
5346 eval "$ac_cv_use_file"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_FILE" = yes; then
5352 echo "$as_me:$LINENO: result: yes" >&5
5353echo "${ECHO_T}yes" >&6
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357 fi
5358
5359
5360 enablestring=
5361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5362echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5363 no_cache=0
5364 # Check whether --enable-filesystem or --disable-filesystem was given.
5365if test "${enable_filesystem+set}" = set; then
5366 enableval="$enable_filesystem"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5370 else
5371 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5372 fi
5373
5374else
5375
5376 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5384
5385fi;
5386
5387 eval "$ac_cv_use_filesystem"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_FILESYSTEM" = yes; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394echo "${ECHO_T}yes" >&6
5395 else
5396 echo "$as_me:$LINENO: result: no" >&5
5397echo "${ECHO_T}no" >&6
5398 fi
5399
5400
5401 enablestring=
5402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5403echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5404 no_cache=0
5405 # Check whether --enable-fontmap or --disable-fontmap was given.
5406if test "${enable_fontmap+set}" = set; then
5407 enableval="$enable_fontmap"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5411 else
5412 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5413 fi
5414
5415else
5416
5417 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5425
5426fi;
5427
5428 eval "$ac_cv_use_fontmap"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_FONTMAP" = yes; then
5434 echo "$as_me:$LINENO: result: yes" >&5
5435echo "${ECHO_T}yes" >&6
5436 else
5437 echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439 fi
5440
5441
5442 enablestring=
5443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5444echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5445 no_cache=0
5446 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5447if test "${enable_fs_inet+set}" = set; then
5448 enableval="$enable_fs_inet"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5452 else
5453 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5454 fi
5455
5456else
5457
5458 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5466
5467fi;
5468
5469 eval "$ac_cv_use_fs_inet"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_FS_INET" = yes; then
5475 echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480 fi
5481
5482
5483 enablestring=
5484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5485echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5486 no_cache=0
5487 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5488if test "${enable_fs_zip+set}" = set; then
5489 enableval="$enable_fs_zip"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5493 else
5494 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5495 fi
5496
5497else
5498
5499 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5507
5508fi;
5509
5510 eval "$ac_cv_use_fs_zip"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_FS_ZIP" = yes; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517echo "${ECHO_T}yes" >&6
5518 else
5519 echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521 fi
5522
5523
5524 enablestring=
5525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5526echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5527 no_cache=0
5528 # Check whether --enable-geometry or --disable-geometry was given.
5529if test "${enable_geometry+set}" = set; then
5530 enableval="$enable_geometry"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5534 else
5535 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5536 fi
5537
5538else
5539
5540 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5548
5549fi;
5550
5551 eval "$ac_cv_use_geometry"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_GEOMETRY" = yes; then
5557 echo "$as_me:$LINENO: result: yes" >&5
5558echo "${ECHO_T}yes" >&6
5559 else
5560 echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6
5562 fi
5563
5564
5565 enablestring=
5566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5567echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5568 no_cache=0
5569 # Check whether --enable-log or --disable-log was given.
5570if test "${enable_log+set}" = set; then
5571 enableval="$enable_log"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_log='wxUSE_LOG=yes'
5575 else
5576 ac_cv_use_log='wxUSE_LOG=no'
5577 fi
5578
5579else
5580
5581 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5589
5590fi;
5591
5592 eval "$ac_cv_use_log"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_LOG" = yes; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599echo "${ECHO_T}yes" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603 fi
5604
5605
5606 enablestring=
5607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5608echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5609 no_cache=0
5610 # Check whether --enable-longlong or --disable-longlong was given.
5611if test "${enable_longlong+set}" = set; then
5612 enableval="$enable_longlong"
5613
5614 if test "$enableval" = yes; then
5615 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5616 else
5617 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5618 fi
5619
5620else
5621
5622 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5630
5631fi;
5632
5633 eval "$ac_cv_use_longlong"
5634 if test "$no_cache" != 1; then
5635 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5636 fi
5637
5638 if test "$wxUSE_LONGLONG" = yes; then
5639 echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644 fi
5645
5646
5647 enablestring=
5648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5649echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5650 no_cache=0
5651 # Check whether --enable-mimetype or --disable-mimetype was given.
5652if test "${enable_mimetype+set}" = set; then
5653 enableval="$enable_mimetype"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5657 else
5658 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5659 fi
5660
5661else
5662
5663 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5671
5672fi;
5673
5674 eval "$ac_cv_use_mimetype"
5675 if test "$no_cache" != 1; then
5676 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5677 fi
5678
5679 if test "$wxUSE_MIMETYPE" = yes; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681echo "${ECHO_T}yes" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685 fi
5686
5687
5688 enablestring=
5689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5690echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5691 no_cache=0
5692 # Check whether --enable-mslu or --disable-mslu was given.
5693if test "${enable_mslu+set}" = set; then
5694 enableval="$enable_mslu"
5695
5696 if test "$enableval" = yes; then
5697 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5698 else
5699 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5700 fi
5701
5702else
5703
5704 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5712
5713fi;
5714
5715 eval "$ac_cv_use_mslu"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_UNICODE_MSLU" = yes; then
5721 echo "$as_me:$LINENO: result: yes" >&5
5722echo "${ECHO_T}yes" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726 fi
5727
5728
5729 enablestring=
5730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5731echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5732 no_cache=0
5733 # Check whether --enable-snglinst or --disable-snglinst was given.
5734if test "${enable_snglinst+set}" = set; then
5735 enableval="$enable_snglinst"
5736
5737 if test "$enableval" = yes; then
5738 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5739 else
5740 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5741 fi
5742
5743else
5744
5745 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5746 if test "x$LINE" != x ; then
5747 eval "DEFAULT_$LINE"
5748 else
5749 no_cache=1
5750 fi
5751
5752 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5753
5754fi;
5755
5756 eval "$ac_cv_use_snglinst"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5762 echo "$as_me:$LINENO: result: yes" >&5
5763echo "${ECHO_T}yes" >&6
5764 else
5765 echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767 fi
5768
5769
5770 enablestring=
07158944
VZ
5771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5772echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5773 no_cache=0
07158944
VZ
5774 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5775if test "${enable_std_iostreams+set}" = set; then
5776 enableval="$enable_std_iostreams"
a848cd7e
SC
5777
5778 if test "$enableval" = yes; then
07158944 5779 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5780 else
07158944 5781 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5782 fi
5783
5784else
5785
07158944 5786 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
07158944 5793 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5794
5795fi;
5796
07158944 5797 eval "$ac_cv_use_std_iostreams"
a848cd7e 5798 if test "$no_cache" != 1; then
07158944 5799 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5800 fi
5801
07158944 5802 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5803 echo "$as_me:$LINENO: result: yes" >&5
5804echo "${ECHO_T}yes" >&6
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808 fi
5809
5810
59746b65
MW
5811 enablestring=
5812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5813echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5814 no_cache=0
5815 # Check whether --enable-std_string or --disable-std_string was given.
5816if test "${enable_std_string+set}" = set; then
5817 enableval="$enable_std_string"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5821 else
5822 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5823 fi
5824
5825else
5826
5827 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5835
5836fi;
5837
5838 eval "$ac_cv_use_std_string"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_STD_STRING" = yes; then
5844 echo "$as_me:$LINENO: result: yes" >&5
5845echo "${ECHO_T}yes" >&6
5846 else
5847 echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849 fi
5850
5851
a848cd7e 5852 enablestring=
07158944
VZ
5853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5854echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5855 no_cache=0
07158944
VZ
5856 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5857if test "${enable_stdpaths+set}" = set; then
5858 enableval="$enable_stdpaths"
a848cd7e
SC
5859
5860 if test "$enableval" = yes; then
07158944 5861 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5862 else
07158944 5863 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5864 fi
5865
5866else
5867
07158944 5868 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
07158944 5875 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5876
5877fi;
5878
07158944 5879 eval "$ac_cv_use_stdpaths"
a848cd7e 5880 if test "$no_cache" != 1; then
07158944 5881 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5882 fi
5883
07158944 5884 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5885 echo "$as_me:$LINENO: result: yes" >&5
5886echo "${ECHO_T}yes" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890 fi
5891
5892
5893 enablestring=
5894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5895echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5896 no_cache=0
5897 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5898if test "${enable_stopwatch+set}" = set; then
5899 enableval="$enable_stopwatch"
5900
5901 if test "$enableval" = yes; then
5902 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5903 else
5904 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5905 fi
5906
5907else
5908
5909 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5917
5918fi;
5919
5920 eval "$ac_cv_use_stopwatch"
5921 if test "$no_cache" != 1; then
5922 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5923 fi
5924
5925 if test "$wxUSE_STOPWATCH" = yes; then
5926 echo "$as_me:$LINENO: result: yes" >&5
5927echo "${ECHO_T}yes" >&6
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931 fi
5932
5933
07158944
VZ
5934 enablestring=
5935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5936echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5937 no_cache=0
5938 # Check whether --enable-streams or --disable-streams was given.
5939if test "${enable_streams+set}" = set; then
5940 enableval="$enable_streams"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_streams='wxUSE_STREAMS=yes'
5944 else
5945 ac_cv_use_streams='wxUSE_STREAMS=no'
5946 fi
5947
5948else
5949
5950 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5958
5959fi;
5960
5961 eval "$ac_cv_use_streams"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_STREAMS" = yes; then
5967 echo "$as_me:$LINENO: result: yes" >&5
5968echo "${ECHO_T}yes" >&6
5969 else
5970 echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6
5972 fi
5973
5974
a848cd7e
SC
5975 enablestring=
5976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5977echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5978 no_cache=0
5979 # Check whether --enable-system_options or --disable-system_options was given.
5980if test "${enable_system_options+set}" = set; then
5981 enableval="$enable_system_options"
5982
5983 if test "$enableval" = yes; then
5984 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5985 else
5986 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5987 fi
5988
5989else
5990
5991 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5992 if test "x$LINE" != x ; then
5993 eval "DEFAULT_$LINE"
5994 else
5995 no_cache=1
5996 fi
5997
5998 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5999
6000fi;
6001
6002 eval "$ac_cv_use_system_options"
6003 if test "$no_cache" != 1; then
6004 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6005 fi
6006
6007 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6008 echo "$as_me:$LINENO: result: yes" >&5
6009echo "${ECHO_T}yes" >&6
6010 else
6011 echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
6013 fi
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-textbuf or --disable-textbuf was given.
6021if test "${enable_textbuf+set}" = set; then
6022 enableval="$enable_textbuf"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6026 else
6027 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6040
6041fi;
6042
6043 eval "$ac_cv_use_textbuf"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_TEXTBUFFER" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
6057 enablestring=
6058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6059echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6060 no_cache=0
6061 # Check whether --enable-textfile or --disable-textfile was given.
6062if test "${enable_textfile+set}" = set; then
6063 enableval="$enable_textfile"
6064
6065 if test "$enableval" = yes; then
6066 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6067 else
6068 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6069 fi
6070
6071else
6072
6073 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6074 if test "x$LINE" != x ; then
6075 eval "DEFAULT_$LINE"
6076 else
6077 no_cache=1
6078 fi
6079
6080 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6081
6082fi;
6083
6084 eval "$ac_cv_use_textfile"
6085 if test "$no_cache" != 1; then
6086 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6087 fi
6088
6089 if test "$wxUSE_TEXTFILE" = yes; then
6090 echo "$as_me:$LINENO: result: yes" >&5
6091echo "${ECHO_T}yes" >&6
6092 else
6093 echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095 fi
6096
6097
6098 enablestring=
6099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6100echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6101 no_cache=0
6102 # Check whether --enable-timer or --disable-timer was given.
6103if test "${enable_timer+set}" = set; then
6104 enableval="$enable_timer"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_timer='wxUSE_TIMER=yes'
6108 else
6109 ac_cv_use_timer='wxUSE_TIMER=no'
6110 fi
6111
6112else
6113
6114 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6122
6123fi;
6124
6125 eval "$ac_cv_use_timer"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_TIMER" = yes; then
6131 echo "$as_me:$LINENO: result: yes" >&5
6132echo "${ECHO_T}yes" >&6
6133 else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136 fi
6137
6138
6139 enablestring=
6140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6141echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6142 no_cache=0
6143 # Check whether --enable-unicode or --disable-unicode was given.
6144if test "${enable_unicode+set}" = set; then
6145 enableval="$enable_unicode"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6149 else
6150 ac_cv_use_unicode='wxUSE_UNICODE=no'
6151 fi
6152
6153else
6154
6155 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6163
6164fi;
6165
6166 eval "$ac_cv_use_unicode"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_UNICODE" = yes; then
6172 echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
6177 fi
6178
6179
6180 enablestring=
6181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6182echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6183 no_cache=0
6184 # Check whether --enable-sound or --disable-sound was given.
6185if test "${enable_sound+set}" = set; then
6186 enableval="$enable_sound"
6187
6188 if test "$enableval" = yes; then
6189 ac_cv_use_sound='wxUSE_SOUND=yes'
6190 else
6191 ac_cv_use_sound='wxUSE_SOUND=no'
6192 fi
6193
6194else
6195
6196 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6197 if test "x$LINE" != x ; then
6198 eval "DEFAULT_$LINE"
6199 else
6200 no_cache=1
6201 fi
6202
6203 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6204
6205fi;
6206
6207 eval "$ac_cv_use_sound"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_SOUND" = yes; then
6213 echo "$as_me:$LINENO: result: yes" >&5
6214echo "${ECHO_T}yes" >&6
6215 else
6216 echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6
6218 fi
6219
6220
3b57de8b
RL
6221 enablestring=
6222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6223echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6224 no_cache=0
6225 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6226if test "${enable_mediactrl+set}" = set; then
6227 enableval="$enable_mediactrl"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6231 else
6232 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6233 fi
6234
6235else
6236
6237 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6245
6246fi;
6247
6248 eval "$ac_cv_use_mediactrl"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_MEDIACTRL" = yes; then
6254 echo "$as_me:$LINENO: result: yes" >&5
6255echo "${ECHO_T}yes" >&6
6256 else
6257 echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6
6259 fi
6260
6261
f10e38c4
VZ
6262 enablestring=
6263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6264echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6265 no_cache=0
6266 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6267if test "${enable_gstreamer8+set}" = set; then
6268 enableval="$enable_gstreamer8"
6269
6270 if test "$enableval" = yes; then
6271 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6272 else
6273 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6274 fi
6275
6276else
6277
6278 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6279 if test "x$LINE" != x ; then
6280 eval "DEFAULT_$LINE"
6281 else
6282 no_cache=1
6283 fi
6284
6285 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6286
6287fi;
6288
6289 eval "$ac_cv_use_gstreamer8"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_GSTREAMER8" = yes; then
6295 echo "$as_me:$LINENO: result: yes" >&5
6296echo "${ECHO_T}yes" >&6
6297 else
6298 echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
6300 fi
6301
6302
a848cd7e
SC
6303 enablestring=
6304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6305echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6306 no_cache=0
6307 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6308if test "${enable_wxprintfv+set}" = set; then
6309 enableval="$enable_wxprintfv"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6313 else
6314 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6315 fi
6316
6317else
6318
6319 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6327
6328fi;
6329
6330 eval "$ac_cv_use_wxprintfv"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6336 echo "$as_me:$LINENO: result: yes" >&5
6337echo "${ECHO_T}yes" >&6
6338 else
6339 echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6
6341 fi
6342
6343
6344 enablestring=
6345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6346echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6347 no_cache=0
6348 # Check whether --enable-zipstream or --disable-zipstream was given.
6349if test "${enable_zipstream+set}" = set; then
6350 enableval="$enable_zipstream"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6354 else
6355 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6356 fi
6357
6358else
6359
6360 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6368
6369fi;
6370
6371 eval "$ac_cv_use_zipstream"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_ZIPSTREAM" = yes; then
6377 echo "$as_me:$LINENO: result: yes" >&5
6378echo "${ECHO_T}yes" >&6
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382 fi
6383
6384
a848cd7e
SC
6385
6386 enablestring=
6387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6388echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6389 no_cache=0
6390 # Check whether --enable-url or --disable-url was given.
6391if test "${enable_url+set}" = set; then
6392 enableval="$enable_url"
6393
6394 if test "$enableval" = yes; then
6395 ac_cv_use_url='wxUSE_URL=yes'
6396 else
6397 ac_cv_use_url='wxUSE_URL=no'
6398 fi
6399
6400else
6401
6402 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6403 if test "x$LINE" != x ; then
6404 eval "DEFAULT_$LINE"
6405 else
6406 no_cache=1
6407 fi
6408
6409 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6410
6411fi;
6412
6413 eval "$ac_cv_use_url"
6414 if test "$no_cache" != 1; then
6415 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6416 fi
6417
6418 if test "$wxUSE_URL" = yes; then
6419 echo "$as_me:$LINENO: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
6421 else
6422 echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
6424 fi
6425
6426
6427 enablestring=
6428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6429echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6430 no_cache=0
6431 # Check whether --enable-protocol or --disable-protocol was given.
6432if test "${enable_protocol+set}" = set; then
6433 enableval="$enable_protocol"
6434
6435 if test "$enableval" = yes; then
6436 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6437 else
6438 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6439 fi
6440
6441else
6442
6443 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6444 if test "x$LINE" != x ; then
6445 eval "DEFAULT_$LINE"
6446 else
6447 no_cache=1
6448 fi
6449
6450 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6451
6452fi;
6453
6454 eval "$ac_cv_use_protocol"
6455 if test "$no_cache" != 1; then
6456 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6457 fi
6458
6459 if test "$wxUSE_PROTOCOL" = yes; then
6460 echo "$as_me:$LINENO: result: yes" >&5
6461echo "${ECHO_T}yes" >&6
6462 else
6463 echo "$as_me:$LINENO: result: no" >&5
6464echo "${ECHO_T}no" >&6
6465 fi
6466
6467
6468 enablestring=
6469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6470echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6471 no_cache=0
6472 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6473if test "${enable_protocol_http+set}" = set; then
6474 enableval="$enable_protocol_http"
6475
6476 if test "$enableval" = yes; then
6477 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6478 else
6479 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6480 fi
6481
6482else
6483
6484 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6485 if test "x$LINE" != x ; then
6486 eval "DEFAULT_$LINE"
6487 else
6488 no_cache=1
6489 fi
6490
6491 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6492
6493fi;
6494
6495 eval "$ac_cv_use_protocol_http"
6496 if test "$no_cache" != 1; then
6497 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6498 fi
6499
6500 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6501 echo "$as_me:$LINENO: result: yes" >&5
6502echo "${ECHO_T}yes" >&6
6503 else
6504 echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6
6506 fi
6507
6508
6509 enablestring=
6510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6511echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6512 no_cache=0
6513 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6514if test "${enable_protocol_ftp+set}" = set; then
6515 enableval="$enable_protocol_ftp"
6516
6517 if test "$enableval" = yes; then
6518 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6519 else
6520 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6521 fi
6522
6523else
6524
6525 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6526 if test "x$LINE" != x ; then
6527 eval "DEFAULT_$LINE"
6528 else
6529 no_cache=1
6530 fi
6531
6532 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6533
6534fi;
6535
6536 eval "$ac_cv_use_protocol_ftp"
6537 if test "$no_cache" != 1; then
6538 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6539 fi
6540
6541 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6542 echo "$as_me:$LINENO: result: yes" >&5
6543echo "${ECHO_T}yes" >&6
6544 else
6545 echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
6547 fi
6548
6549
6550 enablestring=
6551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6552echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6553 no_cache=0
6554 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6555if test "${enable_protocol_file+set}" = set; then
6556 enableval="$enable_protocol_file"
6557
6558 if test "$enableval" = yes; then
6559 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6560 else
6561 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6562 fi
6563
6564else
6565
6566 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6567 if test "x$LINE" != x ; then
6568 eval "DEFAULT_$LINE"
6569 else
6570 no_cache=1
6571 fi
6572
6573 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6574
6575fi;
6576
6577 eval "$ac_cv_use_protocol_file"
6578 if test "$no_cache" != 1; then
6579 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6580 fi
6581
6582 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6583 echo "$as_me:$LINENO: result: yes" >&5
6584echo "${ECHO_T}yes" >&6
6585 else
6586 echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6
6588 fi
6589
6590
6591
6592
6593
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6596echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-threads or --disable-threads was given.
6599if test "${enable_threads+set}" = set; then
6600 enableval="$enable_threads"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_threads='wxUSE_THREADS=yes'
6604 else
6605 ac_cv_use_threads='wxUSE_THREADS=no'
6606 fi
6607
6608else
6609
6610 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6618
6619fi;
6620
6621 eval "$ac_cv_use_threads"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_THREADS" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6
6632 fi
6633
6634
6635if test "$wxUSE_GUI" = "yes"; then
6636
6637
6638
6639 enablestring=
6640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6641echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6642 no_cache=0
6643 # Check whether --enable-docview or --disable-docview was given.
6644if test "${enable_docview+set}" = set; then
6645 enableval="$enable_docview"
6646
6647 if test "$enableval" = yes; then
6648 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6649 else
6650 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6651 fi
6652
6653else
6654
6655 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6656 if test "x$LINE" != x ; then
6657 eval "DEFAULT_$LINE"
6658 else
6659 no_cache=1
6660 fi
6661
6662 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6663
6664fi;
6665
6666 eval "$ac_cv_use_docview"
6667 if test "$no_cache" != 1; then
6668 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6669 fi
6670
6671 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6672 echo "$as_me:$LINENO: result: yes" >&5
6673echo "${ECHO_T}yes" >&6
6674 else
6675 echo "$as_me:$LINENO: result: no" >&5
6676echo "${ECHO_T}no" >&6
6677 fi
6678
6679
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6682echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-help or --disable-help was given.
6685if test "${enable_help+set}" = set; then
6686 enableval="$enable_help"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_help='wxUSE_HELP=yes'
6690 else
6691 ac_cv_use_help='wxUSE_HELP=no'
6692 fi
6693
6694else
6695
6696 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6704
6705fi;
6706
6707 eval "$ac_cv_use_help"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_HELP" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6723echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6726if test "${enable_mshtmlhelp+set}" = set; then
6727 enableval="$enable_mshtmlhelp"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6731 else
6732 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6745
6746fi;
6747
6748 eval "$ac_cv_use_mshtmlhelp"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_MS_HTML_HELP" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762 enablestring=
6763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6764echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6765 no_cache=0
6766 # Check whether --enable-html or --disable-html was given.
6767if test "${enable_html+set}" = set; then
6768 enableval="$enable_html"
6769
6770 if test "$enableval" = yes; then
6771 ac_cv_use_html='wxUSE_HTML=yes'
6772 else
6773 ac_cv_use_html='wxUSE_HTML=no'
6774 fi
6775
6776else
6777
6778 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
6785 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6786
6787fi;
6788
6789 eval "$ac_cv_use_html"
6790 if test "$no_cache" != 1; then
6791 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6792 fi
6793
6794 if test "$wxUSE_HTML" = yes; then
6795 echo "$as_me:$LINENO: result: yes" >&5
6796echo "${ECHO_T}yes" >&6
6797 else
6798 echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6
6800 fi
6801
6802
6803 enablestring=
6804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6805echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6806 no_cache=0
6807 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6808if test "${enable_htmlhelp+set}" = set; then
6809 enableval="$enable_htmlhelp"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6813 else
6814 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6815 fi
6816
6817else
6818
6819 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6827
6828fi;
6829
6830 eval "$ac_cv_use_htmlhelp"
6831 if test "$no_cache" != 1; then
6832 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6833 fi
6834
6835 if test "$wxUSE_WXHTML_HELP" = yes; then
6836 echo "$as_me:$LINENO: result: yes" >&5
6837echo "${ECHO_T}yes" >&6
6838 else
6839 echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6
6841 fi
6842
6843
9a8f0513
VS
6844 enablestring=
6845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6846echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6847 no_cache=0
6848 # Check whether --enable-xrc or --disable-xrc was given.
6849if test "${enable_xrc+set}" = set; then
6850 enableval="$enable_xrc"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_xrc='wxUSE_XRC=yes'
6854 else
6855 ac_cv_use_xrc='wxUSE_XRC=no'
6856 fi
6857
6858else
6859
6860 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6868
6869fi;
6870
6871 eval "$ac_cv_use_xrc"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_XRC" = yes; then
6877 echo "$as_me:$LINENO: result: yes" >&5
6878echo "${ECHO_T}yes" >&6
6879 else
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
6882 fi
6883
6884
a848cd7e
SC
6885 enablestring=
6886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6887echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6888 no_cache=0
6889 # Check whether --enable-constraints or --disable-constraints was given.
6890if test "${enable_constraints+set}" = set; then
6891 enableval="$enable_constraints"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6895 else
6896 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6897 fi
6898
6899else
6900
6901 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6909
6910fi;
6911
6912 eval "$ac_cv_use_constraints"
6913 if test "$no_cache" != 1; then
6914 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6915 fi
6916
6917 if test "$wxUSE_CONSTRAINTS" = yes; then
6918 echo "$as_me:$LINENO: result: yes" >&5
6919echo "${ECHO_T}yes" >&6
6920 else
6921 echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6
6923 fi
6924
6925
6926 enablestring=
6927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6928echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6929 no_cache=0
6930 # Check whether --enable-printarch or --disable-printarch was given.
6931if test "${enable_printarch+set}" = set; then
6932 enableval="$enable_printarch"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6936 else
6937 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6938 fi
6939
6940else
6941
6942 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6950
6951fi;
6952
6953 eval "$ac_cv_use_printarch"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6959 echo "$as_me:$LINENO: result: yes" >&5
6960echo "${ECHO_T}yes" >&6
6961 else
6962 echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
6964 fi
6965
6966
6967 enablestring=
6968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6969echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6970 no_cache=0
6971 # Check whether --enable-mdi or --disable-mdi was given.
6972if test "${enable_mdi+set}" = set; then
6973 enableval="$enable_mdi"
6974
6975 if test "$enableval" = yes; then
8a7b1113 6976 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6977 else
8a7b1113 6978 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6979 fi
6980
6981else
6982
8a7b1113 6983 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
8a7b1113 6990 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6991
6992fi;
6993
6994 eval "$ac_cv_use_mdi"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6997 fi
6998
8a7b1113
VZ
6999 if test "$wxUSE_MDI" = yes; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6
7002 else
7003 echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6
7005 fi
7006
7007
7008 enablestring=
7009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7010echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7011 no_cache=0
7012 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7013if test "${enable_mdidoc+set}" = set; then
7014 enableval="$enable_mdidoc"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7018 else
7019 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7032
7033fi;
7034
7035 eval "$ac_cv_use_mdidoc"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7038 fi
7039
a848cd7e
SC
7040 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
7043 else
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
7046 fi
7047
7048
7049 enablestring=
7050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7051echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7052 no_cache=0
7053 # Check whether --enable-loggui or --disable-loggui was given.
7054if test "${enable_loggui+set}" = set; then
7055 enableval="$enable_loggui"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7059 else
7060 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7061 fi
7062
7063else
7064
7065 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7073
7074fi;
7075
7076 eval "$ac_cv_use_loggui"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_LOGGUI" = yes; then
7082 echo "$as_me:$LINENO: result: yes" >&5
7083echo "${ECHO_T}yes" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087 fi
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-logwin or --disable-logwin was given.
7095if test "${enable_logwin+set}" = set; then
7096 enableval="$enable_logwin"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7100 else
7101 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7114
7115fi;
7116
7117 eval "$ac_cv_use_logwin"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_LOGWINDOW" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-logdialog or --disable-logdialog was given.
7136if test "${enable_logdialog+set}" = set; then
7137 enableval="$enable_logdialog"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7141 else
7142 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7155
7156fi;
7157
7158 eval "$ac_cv_use_logdialog"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_LOGDIALOG" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
646b6ec1
VS
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-webkit or --disable-webkit was given.
7177if test "${enable_webkit+set}" = set; then
7178 enableval="$enable_webkit"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7182 else
7183 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7196
7197fi;
7198
7199 eval "$ac_cv_use_webkit"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_WEBKIT" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
91dea314
MW
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-html or --disable-html was given.
7218if test "${enable_html+set}" = set; then
7219 enableval="$enable_html"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7223 else
7224 ac_cv_use_html='wxUSE_RICHTEXT=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7237
7238fi;
7239
7240 eval "$ac_cv_use_html"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_RICHTEXT" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
a848cd7e
SC
7254
7255 enablestring=
7256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7257echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7258 no_cache=0
7259 # Check whether --enable-postscript or --disable-postscript was given.
7260if test "${enable_postscript+set}" = set; then
7261 enableval="$enable_postscript"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7265 else
7266 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7279
7280fi;
7281
7282 eval "$ac_cv_use_postscript"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_POSTSCRIPT" = yes; then
7288 echo "$as_me:$LINENO: result: yes" >&5
7289echo "${ECHO_T}yes" >&6
7290 else
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
7293 fi
7294
7295
7296
7297
7298
7299 enablestring=
7300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7301echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7302 no_cache=0
7303 # Check whether --enable-prologio or --disable-prologio was given.
7304if test "${enable_prologio+set}" = set; then
7305 enableval="$enable_prologio"
7306
7307 if test "$enableval" = yes; then
7308 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7309 else
7310 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7311 fi
7312
7313else
7314
7315 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7316 if test "x$LINE" != x ; then
7317 eval "DEFAULT_$LINE"
7318 else
7319 no_cache=1
7320 fi
7321
7322 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7323
7324fi;
7325
7326 eval "$ac_cv_use_prologio"
7327 if test "$no_cache" != 1; then
7328 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7329 fi
7330
7331 if test "$wxUSE_PROLOGIO" = yes; then
7332 echo "$as_me:$LINENO: result: yes" >&5
7333echo "${ECHO_T}yes" >&6
7334 else
7335 echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6
7337 fi
7338
7339
7340 enablestring=
7341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7342echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7343 no_cache=0
7344 # Check whether --enable-resources or --disable-resources was given.
7345if test "${enable_resources+set}" = set; then
7346 enableval="$enable_resources"
7347
7348 if test "$enableval" = yes; then
7349 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7350 else
7351 ac_cv_use_resources='wxUSE_RESOURCES=no'
7352 fi
7353
7354else
7355
7356 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7357 if test "x$LINE" != x ; then
7358 eval "DEFAULT_$LINE"
7359 else
7360 no_cache=1
7361 fi
7362
7363 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7364
7365fi;
7366
7367 eval "$ac_cv_use_resources"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_RESOURCES" = yes; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374echo "${ECHO_T}yes" >&6
7375 else
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
7378 fi
7379
7380
7381
7382
7383 enablestring=
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7385echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-clipboard or --disable-clipboard was given.
7388if test "${enable_clipboard+set}" = set; then
7389 enableval="$enable_clipboard"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7393 else
7394 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7407
7408fi;
7409
7410 eval "$ac_cv_use_clipboard"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_CLIPBOARD" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421 fi
7422
7423
7424 enablestring=
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7426echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-dnd or --disable-dnd was given.
7429if test "${enable_dnd+set}" = set; then
7430 enableval="$enable_dnd"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7434 else
7435 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7436 fi
7437
7438else
7439
7440 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7448
7449fi;
7450
7451 eval "$ac_cv_use_dnd"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462 fi
7463
7464
7465 enablestring=
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7467echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-metafile or --disable-metafile was given.
7470if test "${enable_metafile+set}" = set; then
7471 enableval="$enable_metafile"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7475 else
7476 ac_cv_use_metafile='wxUSE_METAFILE=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7489
7490fi;
7491
7492 eval "$ac_cv_use_metafile"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_METAFILE" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 fi
7504
7505
7506
7507
7508
7509 enablestring=
7510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7511echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7512 no_cache=0
7513 # Check whether --enable-controls or --disable-controls was given.
7514if test "${enable_controls+set}" = set; then
7515 enableval="$enable_controls"
7516
7517 if test "$enableval" = yes; then
7518 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7519 else
7520 ac_cv_use_controls='wxUSE_CONTROLS=no'
7521 fi
7522
7523else
7524
7525 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
7532 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7533
7534fi;
7535
7536 eval "$ac_cv_use_controls"
7537 if test "$no_cache" != 1; then
7538 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7539 fi
7540
7541 if test "$wxUSE_CONTROLS" = yes; then
7542 echo "$as_me:$LINENO: result: yes" >&5
7543echo "${ECHO_T}yes" >&6
7544 else
7545 echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547 fi
7548
7549
7550if test "$wxUSE_CONTROLS" = "yes"; then
7551 DEFAULT_wxUSE_ACCEL=yes
7552 DEFAULT_wxUSE_BMPBUTTON=yes
7553 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7554 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7555 DEFAULT_wxUSE_CARET=yes
7556 DEFAULT_wxUSE_COMBOBOX=yes
7557 DEFAULT_wxUSE_CHECKBOX=yes
7558 DEFAULT_wxUSE_CHECKLISTBOX=yes
7559 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7560 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7561 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7562 DEFAULT_wxUSE_GAUGE=yes
7563 DEFAULT_wxUSE_GRID=yes
6954625c 7564 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7565 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7566 DEFAULT_wxUSE_IMAGLIST=yes
7567 DEFAULT_wxUSE_LISTBOOK=yes
7568 DEFAULT_wxUSE_LISTBOX=yes
7569 DEFAULT_wxUSE_LISTCTRL=yes
7570 DEFAULT_wxUSE_NOTEBOOK=yes
7571 DEFAULT_wxUSE_RADIOBOX=yes
7572 DEFAULT_wxUSE_RADIOBTN=yes
7573 DEFAULT_wxUSE_SASH=yes
7574 DEFAULT_wxUSE_SCROLLBAR=yes
7575 DEFAULT_wxUSE_SLIDER=yes
7576 DEFAULT_wxUSE_SPINBTN=yes
7577 DEFAULT_wxUSE_SPINCTRL=yes
7578 DEFAULT_wxUSE_SPLITTER=yes
7579 DEFAULT_wxUSE_STATBMP=yes
7580 DEFAULT_wxUSE_STATBOX=yes
7581 DEFAULT_wxUSE_STATLINE=yes
7582 DEFAULT_wxUSE_STATUSBAR=yes
7583 DEFAULT_wxUSE_TAB_DIALOG=yes
7584 DEFAULT_wxUSE_TOGGLEBTN=yes
7585 DEFAULT_wxUSE_TOOLBAR=yes
7586 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7587 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7588 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7589 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7590 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7591 DEFAULT_wxUSE_TREECTRL=yes
7592 DEFAULT_wxUSE_POPUPWIN=yes
7593 DEFAULT_wxUSE_TIPWINDOW=yes
7594elif test "$wxUSE_CONTROLS" = "no"; then
7595 DEFAULT_wxUSE_ACCEL=no
7596 DEFAULT_wxUSE_BMPBUTTON=no
7597 DEFAULT_wxUSE_BUTTON=no
7598 DEFAULT_wxUSE_CALCTRL=no
7599 DEFAULT_wxUSE_CARET=no
7600 DEFAULT_wxUSE_COMBOBOX=no
7601 DEFAULT_wxUSE_CHECKBOX=no
7602 DEFAULT_wxUSE_CHECKLISTBOX=no
7603 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7604 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7605 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7606 DEFAULT_wxUSE_GAUGE=no
7607 DEFAULT_wxUSE_GRID=no
6954625c 7608 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7609 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7610 DEFAULT_wxUSE_IMAGLIST=no
7611 DEFAULT_wxUSE_LISTBOOK=no
7612 DEFAULT_wxUSE_LISTBOX=no
7613 DEFAULT_wxUSE_LISTCTRL=no
7614 DEFAULT_wxUSE_NOTEBOOK=no
7615 DEFAULT_wxUSE_RADIOBOX=no
7616 DEFAULT_wxUSE_RADIOBTN=no
7617 DEFAULT_wxUSE_SASH=no
7618 DEFAULT_wxUSE_SCROLLBAR=no
7619 DEFAULT_wxUSE_SLIDER=no
7620 DEFAULT_wxUSE_SPINBTN=no
7621 DEFAULT_wxUSE_SPINCTRL=no
7622 DEFAULT_wxUSE_SPLITTER=no
7623 DEFAULT_wxUSE_STATBMP=no
7624 DEFAULT_wxUSE_STATBOX=no
7625 DEFAULT_wxUSE_STATLINE=no
7626 DEFAULT_wxUSE_STATUSBAR=no
7627 DEFAULT_wxUSE_TAB_DIALOG=no
7628 DEFAULT_wxUSE_TOGGLEBTN=no
7629 DEFAULT_wxUSE_TOOLBAR=no
7630 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7631 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7632 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7633 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7634 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7635 DEFAULT_wxUSE_TREECTRL=no
7636 DEFAULT_wxUSE_POPUPWIN=no
7637 DEFAULT_wxUSE_TIPWINDOW=no
7638fi
7639
a848cd7e
SC
7640
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7643echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-accel or --disable-accel was given.
7646if test "${enable_accel+set}" = set; then
7647 enableval="$enable_accel"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_accel='wxUSE_ACCEL=yes'
7651 else
7652 ac_cv_use_accel='wxUSE_ACCEL=no'
7653 fi
7654
7655else
7656
7657 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7665
7666fi;
7667
7668 eval "$ac_cv_use_accel"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_ACCEL" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679 fi
7680
7681
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7684echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-button or --disable-button was given.
7687if test "${enable_button+set}" = set; then
7688 enableval="$enable_button"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_button='wxUSE_BUTTON=yes'
7692 else
7693 ac_cv_use_button='wxUSE_BUTTON=no'
7694 fi
7695
7696else
7697
7698 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7706
7707fi;
7708
7709 eval "$ac_cv_use_button"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_BUTTON" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7725echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7728if test "${enable_bmpbutton+set}" = set; then
7729 enableval="$enable_bmpbutton"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7733 else
7734 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7747
7748fi;
7749
7750 eval "$ac_cv_use_bmpbutton"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_BMPBUTTON" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761 fi
7762
7763
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7766echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-calendar or --disable-calendar was given.
7769if test "${enable_calendar+set}" = set; then
7770 enableval="$enable_calendar"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7774 else
7775 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7788
7789fi;
7790
7791 eval "$ac_cv_use_calendar"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_CALCTRL" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802 fi
7803
7804
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7807echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-caret or --disable-caret was given.
7810if test "${enable_caret+set}" = set; then
7811 enableval="$enable_caret"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_caret='wxUSE_CARET=yes'
7815 else
7816 ac_cv_use_caret='wxUSE_CARET=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7829
7830fi;
7831
7832 eval "$ac_cv_use_caret"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_CARET" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843 fi
7844
7845
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7848echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-checkbox or --disable-checkbox was given.
7851if test "${enable_checkbox+set}" = set; then
7852 enableval="$enable_checkbox"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7856 else
7857 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7858 fi
7859
7860else
7861
7862 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7870
7871fi;
7872
7873 eval "$ac_cv_use_checkbox"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_CHECKBOX" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 fi
7885
7886
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7889echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-checklst or --disable-checklst was given.
7892if test "${enable_checklst+set}" = set; then
7893 enableval="$enable_checklst"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7897 else
7898 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7911
7912fi;
7913
7914 eval "$ac_cv_use_checklst"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_CHECKLST" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-choice or --disable-choice was given.
7933if test "${enable_choice+set}" = set; then
7934 enableval="$enable_choice"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_choice='wxUSE_CHOICE=yes'
7938 else
7939 ac_cv_use_choice='wxUSE_CHOICE=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7952
7953fi;
7954
7955 eval "$ac_cv_use_choice"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_CHOICE" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966 fi
7967
7968
92bbdbcd
WS
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7971echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-choicebook or --disable-choicebook was given.
7974if test "${enable_choicebook+set}" = set; then
7975 enableval="$enable_choicebook"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7979 else
7980 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7981 fi
7982
7983else
7984
7985 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7993
7994fi;
7995
7996 eval "$ac_cv_use_choicebook"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_CHOICEBOOK" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007 fi
8008
8009
a848cd7e
SC
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8012echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-combobox or --disable-combobox was given.
8015if test "${enable_combobox+set}" = set; then
8016 enableval="$enable_combobox"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8020 else
8021 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8022 fi
8023
8024else
8025
8026 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8034
8035fi;
8036
8037 eval "$ac_cv_use_combobox"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_COMBOBOX" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047echo "${ECHO_T}no" >&6
8048 fi
8049
8050
642bcba9 8051 enablestring=
a57d600f
VZ
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8053echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8054 no_cache=0
a57d600f
VZ
8055 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8056if test "${enable_comboctrl+set}" = set; then
8057 enableval="$enable_comboctrl"
642bcba9
VZ
8058
8059 if test "$enableval" = yes; then
a57d600f 8060 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8061 else
a57d600f 8062 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8063 fi
8064
8065else
8066
a57d600f 8067 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
a57d600f 8074 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8075
8076fi;
8077
a57d600f 8078 eval "$ac_cv_use_comboctrl"
642bcba9 8079 if test "$no_cache" != 1; then
a57d600f 8080 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8081 fi
8082
a57d600f 8083 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089 fi
8090
8091
da98e9be
VZ
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8094echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-datepick or --disable-datepick was given.
8097if test "${enable_datepick+set}" = set; then
8098 enableval="$enable_datepick"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8102 else
8103 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8116
8117fi;
8118
8119 eval "$ac_cv_use_datepick"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_DATEPICKCTRL" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130 fi
8131
8132
a848cd7e
SC
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8135echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-display or --disable-display was given.
8138if test "${enable_display+set}" = set; then
8139 enableval="$enable_display"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_display='wxUSE_DISPLAY=yes'
8143 else
8144 ac_cv_use_display='wxUSE_DISPLAY=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8157
8158fi;
8159
8160 eval "$ac_cv_use_display"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_DISPLAY" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8176echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-gauge or --disable-gauge was given.
8179if test "${enable_gauge+set}" = set; then
8180 enableval="$enable_gauge"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8184 else
8185 ac_cv_use_gauge='wxUSE_GAUGE=no'
8186 fi
8187
8188else
8189
8190 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8198
8199fi;
8200
8201 eval "$ac_cv_use_gauge"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_GAUGE" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8217echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-grid or --disable-grid was given.
8220if test "${enable_grid+set}" = set; then
8221 enableval="$enable_grid"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_grid='wxUSE_GRID=yes'
8225 else
8226 ac_cv_use_grid='wxUSE_GRID=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8239
8240fi;
8241
8242 eval "$ac_cv_use_grid"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_GRID" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253 fi
8254
8255
20e34ecc
RR
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8258echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8261if test "${enable_dataviewctrl+set}" = set; then
8262 enableval="$enable_dataviewctrl"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8266 else
8267 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8280
8281fi;
8282
8283 eval "$ac_cv_use_dataviewctrl"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294 fi
8295
8296
6954625c
VZ
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8299echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8302if test "${enable_hyperlink+set}" = set; then
8303 enableval="$enable_hyperlink"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8307 else
8308 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8321
8322fi;
8323
8324 eval "$ac_cv_use_hyperlink"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335 fi
8336
8337
a848cd7e
SC
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8340echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-imaglist or --disable-imaglist was given.
8343if test "${enable_imaglist+set}" = set; then
8344 enableval="$enable_imaglist"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8348 else
8349 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8362
8363fi;
8364
8365 eval "$ac_cv_use_imaglist"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_IMAGLIST" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8381echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-listbook or --disable-listbook was given.
8384if test "${enable_listbook+set}" = set; then
8385 enableval="$enable_listbook"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8389 else
8390 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8391 fi
8392
8393else
8394
8395 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8403
8404fi;
8405
8406 eval "$ac_cv_use_listbook"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_LISTBOOK" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8422echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-listbox or --disable-listbox was given.
8425if test "${enable_listbox+set}" = set; then
8426 enableval="$enable_listbox"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8430 else
8431 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8444
8445fi;
8446
8447 eval "$ac_cv_use_listbox"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_LISTBOX" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8463echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-listctrl or --disable-listctrl was given.
8466if test "${enable_listctrl+set}" = set; then
8467 enableval="$enable_listctrl"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8471 else
8472 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8473 fi
8474
8475else
8476
8477 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8485
8486fi;
8487
8488 eval "$ac_cv_use_listctrl"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_LISTCTRL" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8504echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-notebook or --disable-notebook was given.
8507if test "${enable_notebook+set}" = set; then
8508 enableval="$enable_notebook"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8512 else
8513 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8526
8527fi;
8528
8529 eval "$ac_cv_use_notebook"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_NOTEBOOK" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540 fi
8541
8542
642bcba9 8543 enablestring=
a57d600f
VZ
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8545echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8546 no_cache=0
a57d600f
VZ
8547 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8548if test "${enable_odcombobox+set}" = set; then
8549 enableval="$enable_odcombobox"
642bcba9
VZ
8550
8551 if test "$enableval" = yes; then
a57d600f 8552 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8553 else
a57d600f 8554 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8555 fi
8556
8557else
8558
a57d600f 8559 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
a57d600f 8566 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8567
8568fi;
8569
a57d600f 8570 eval "$ac_cv_use_odcombobox"
642bcba9 8571 if test "$no_cache" != 1; then
a57d600f 8572 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8573 fi
8574
a57d600f 8575 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581 fi
8582
8583
a848cd7e
SC
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8586echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-radiobox or --disable-radiobox was given.
8589if test "${enable_radiobox+set}" = set; then
8590 enableval="$enable_radiobox"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8594 else
8595 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8596 fi
8597
8598else
8599
8600 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8608
8609fi;
8610
8611 eval "$ac_cv_use_radiobox"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_RADIOBOX" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8627echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8630if test "${enable_radiobtn+set}" = set; then
8631 enableval="$enable_radiobtn"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8635 else
8636 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8637 fi
8638
8639else
8640
8641 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8649
8650fi;
8651
8652 eval "$ac_cv_use_radiobtn"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_RADIOBTN" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8668echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-sash or --disable-sash was given.
8671if test "${enable_sash+set}" = set; then
8672 enableval="$enable_sash"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_sash='wxUSE_SASH=yes'
8676 else
8677 ac_cv_use_sash='wxUSE_SASH=no'
8678 fi
8679
8680else
8681
8682 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8690
8691fi;
8692
8693 eval "$ac_cv_use_sash"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_SASH" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8709echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8712if test "${enable_scrollbar+set}" = set; then
8713 enableval="$enable_scrollbar"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8717 else
8718 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8719 fi
8720
8721else
8722
8723 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8731
8732fi;
8733
8734 eval "$ac_cv_use_scrollbar"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_SCROLLBAR" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8750echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-slider or --disable-slider was given.
8753if test "${enable_slider+set}" = set; then
8754 enableval="$enable_slider"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_slider='wxUSE_SLIDER=yes'
8758 else
8759 ac_cv_use_slider='wxUSE_SLIDER=no'
8760 fi
8761
8762else
8763
8764 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8772
8773fi;
8774
8775 eval "$ac_cv_use_slider"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_SLIDER" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8791echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8794if test "${enable_spinbtn+set}" = set; then
8795 enableval="$enable_spinbtn"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8799 else
8800 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8801 fi
8802
8803else
8804
8805 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8813
8814fi;
8815
8816 eval "$ac_cv_use_spinbtn"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_SPINBTN" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8835if test "${enable_spinctrl+set}" = set; then
8836 enableval="$enable_spinctrl"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8840 else
8841 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8842 fi
8843
8844else
8845
8846 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8854
8855fi;
8856
8857 eval "$ac_cv_use_spinctrl"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_SPINCTRL" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-splitter or --disable-splitter was given.
8876if test "${enable_splitter+set}" = set; then
8877 enableval="$enable_splitter"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8881 else
8882 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8883 fi
8884
8885else
8886
8887 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8895
8896fi;
8897
8898 eval "$ac_cv_use_splitter"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_SPLITTER" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912 enablestring=
8913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8914echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8915 no_cache=0
8916 # Check whether --enable-statbmp or --disable-statbmp was given.
8917if test "${enable_statbmp+set}" = set; then
8918 enableval="$enable_statbmp"
8919
8920 if test "$enableval" = yes; then
8921 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8922 else
8923 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8924 fi
8925
8926else
8927
8928 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8929 if test "x$LINE" != x ; then
8930 eval "DEFAULT_$LINE"
8931 else
8932 no_cache=1
8933 fi
8934
8935 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8936
8937fi;
8938
8939 eval "$ac_cv_use_statbmp"
8940 if test "$no_cache" != 1; then
8941 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8942 fi
8943
8944 if test "$wxUSE_STATBMP" = yes; then
8945 echo "$as_me:$LINENO: result: yes" >&5
8946echo "${ECHO_T}yes" >&6
8947 else
8948 echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
8950 fi
8951
8952
8953 enablestring=
8954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8955echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8956 no_cache=0
8957 # Check whether --enable-statbox or --disable-statbox was given.
8958if test "${enable_statbox+set}" = set; then
8959 enableval="$enable_statbox"
8960
8961 if test "$enableval" = yes; then
8962 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8963 else
8964 ac_cv_use_statbox='wxUSE_STATBOX=no'
8965 fi
8966
8967else
8968
8969 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8970 if test "x$LINE" != x ; then
8971 eval "DEFAULT_$LINE"
8972 else
8973 no_cache=1
8974 fi
8975
8976 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8977
8978fi;
8979
8980 eval "$ac_cv_use_statbox"
8981 if test "$no_cache" != 1; then
8982 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8983 fi
8984
8985 if test "$wxUSE_STATBOX" = yes; then
8986 echo "$as_me:$LINENO: result: yes" >&5
8987echo "${ECHO_T}yes" >&6
8988 else
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
8991 fi
8992
8993
8994 enablestring=
8995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8996echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8997 no_cache=0
8998 # Check whether --enable-statline or --disable-statline was given.
8999if test "${enable_statline+set}" = set; then
9000 enableval="$enable_statline"
9001
9002 if test "$enableval" = yes; then
9003 ac_cv_use_statline='wxUSE_STATLINE=yes'
9004 else
9005 ac_cv_use_statline='wxUSE_STATLINE=no'
9006 fi
9007
9008else
9009
9010 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9011 if test "x$LINE" != x ; then
9012 eval "DEFAULT_$LINE"
9013 else
9014 no_cache=1
9015 fi
9016
9017 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9018
9019fi;
9020
9021 eval "$ac_cv_use_statline"
9022 if test "$no_cache" != 1; then
9023 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9024 fi
9025
9026 if test "$wxUSE_STATLINE" = yes; then
9027 echo "$as_me:$LINENO: result: yes" >&5
9028echo "${ECHO_T}yes" >&6
9029 else
9030 echo "$as_me:$LINENO: result: no" >&5
9031echo "${ECHO_T}no" >&6
9032 fi
9033
9034
9035 enablestring=
9036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9037echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9038 no_cache=0
9039 # Check whether --enable-stattext or --disable-stattext was given.
9040if test "${enable_stattext+set}" = set; then
9041 enableval="$enable_stattext"
9042
9043 if test "$enableval" = yes; then
9044 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9045 else
9046 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9047 fi
9048
9049else
9050
9051 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9052 if test "x$LINE" != x ; then
9053 eval "DEFAULT_$LINE"
9054 else
9055 no_cache=1
9056 fi
9057
9058 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9059
9060fi;
9061
9062 eval "$ac_cv_use_stattext"
9063 if test "$no_cache" != 1; then
9064 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9065 fi
9066
9067 if test "$wxUSE_STATTEXT" = yes; then
9068 echo "$as_me:$LINENO: result: yes" >&5
9069echo "${ECHO_T}yes" >&6
9070 else
9071 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
9073 fi
9074
9075
9076 enablestring=
9077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9078echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9079 no_cache=0
9080 # Check whether --enable-statusbar or --disable-statusbar was given.
9081if test "${enable_statusbar+set}" = set; then
9082 enableval="$enable_statusbar"
9083
9084 if test "$enableval" = yes; then
9085 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9086 else
9087 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9088 fi
9089
9090else
9091
9092 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9093 if test "x$LINE" != x ; then
9094 eval "DEFAULT_$LINE"
9095 else
9096 no_cache=1
9097 fi
9098
9099 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9100
9101fi;
9102
9103 eval "$ac_cv_use_statusbar"
9104 if test "$no_cache" != 1; then
9105 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9106 fi
9107
9108 if test "$wxUSE_STATUSBAR" = yes; then
9109 echo "$as_me:$LINENO: result: yes" >&5
9110echo "${ECHO_T}yes" >&6
9111 else
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
9114 fi
9115
9116
9117 enablestring=
9118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9119echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9120 no_cache=0
9121 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9122if test "${enable_tabdialog+set}" = set; then
9123 enableval="$enable_tabdialog"
9124
9125 if test "$enableval" = yes; then
f10e38c4 9126 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9127 else
f10e38c4 9128 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9129 fi
9130
9131else
9132
f10e38c4 9133 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9134 if test "x$LINE" != x ; then
9135 eval "DEFAULT_$LINE"
9136 else
9137 no_cache=1
9138 fi
9139
f10e38c4 9140 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9141
9142fi;
9143
9144 eval "$ac_cv_use_tabdialog"
9145 if test "$no_cache" != 1; then
9146 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9147 fi
9148
f10e38c4 9149 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9150 echo "$as_me:$LINENO: result: yes" >&5
9151echo "${ECHO_T}yes" >&6
9152 else
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
9155 fi
9156
9157
9158 enablestring=
9159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9160echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9161 no_cache=0
9162 # Check whether --enable-textctrl or --disable-textctrl was given.
9163if test "${enable_textctrl+set}" = set; then
9164 enableval="$enable_textctrl"
9165
9166 if test "$enableval" = yes; then
9167 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9168 else
9169 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9170 fi
9171
9172else
9173
9174 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9175 if test "x$LINE" != x ; then
9176 eval "DEFAULT_$LINE"
9177 else
9178 no_cache=1
9179 fi
9180
9181 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9182
9183fi;
9184
9185 eval "$ac_cv_use_textctrl"
9186 if test "$no_cache" != 1; then
9187 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9188 fi
9189
9190 if test "$wxUSE_TEXTCTRL" = yes; then
9191 echo "$as_me:$LINENO: result: yes" >&5
9192echo "${ECHO_T}yes" >&6
9193 else
9194 echo "$as_me:$LINENO: result: no" >&5
9195echo "${ECHO_T}no" >&6
9196 fi
9197
9198
9199 enablestring=
9200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9201echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9202 no_cache=0
9203 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9204if test "${enable_togglebtn+set}" = set; then
9205 enableval="$enable_togglebtn"
9206
9207 if test "$enableval" = yes; then
9208 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9209 else
9210 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9211 fi
9212
9213else
9214
9215 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9216 if test "x$LINE" != x ; then
9217 eval "DEFAULT_$LINE"
9218 else
9219 no_cache=1
9220 fi
9221
9222 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9223
9224fi;
9225
9226 eval "$ac_cv_use_togglebtn"
9227 if test "$no_cache" != 1; then
9228 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9229 fi
9230
9231 if test "$wxUSE_TOGGLEBTN" = yes; then
9232 echo "$as_me:$LINENO: result: yes" >&5
9233echo "${ECHO_T}yes" >&6
9234 else
9235 echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
9237 fi
9238
9239
9240 enablestring=
9241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9242echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9243 no_cache=0
9244 # Check whether --enable-toolbar or --disable-toolbar was given.
9245if test "${enable_toolbar+set}" = set; then
9246 enableval="$enable_toolbar"
9247
9248 if test "$enableval" = yes; then
9249 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9250 else
9251 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9252 fi
9253
9254else
9255
9256 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9257 if test "x$LINE" != x ; then
9258 eval "DEFAULT_$LINE"
9259 else
9260 no_cache=1
9261 fi
9262
9263 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9264
9265fi;
9266
9267 eval "$ac_cv_use_toolbar"
9268 if test "$no_cache" != 1; then
9269 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9270 fi
9271
9272 if test "$wxUSE_TOOLBAR" = yes; then
9273 echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6
9275 else
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
9278 fi
9279
9280
9281 enablestring=
9282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9283echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9284 no_cache=0
9285 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9286if test "${enable_tbarnative+set}" = set; then
9287 enableval="$enable_tbarnative"
9288
9289 if test "$enableval" = yes; then
9290 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9291 else
9292 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9293 fi
9294
9295else
9296
9297 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9298 if test "x$LINE" != x ; then
9299 eval "DEFAULT_$LINE"
9300 else
9301 no_cache=1
9302 fi
9303
9304 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9305
9306fi;
9307
9308 eval "$ac_cv_use_tbarnative"
9309 if test "$no_cache" != 1; then
9310 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9311 fi
9312
9313 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9314 echo "$as_me:$LINENO: result: yes" >&5
9315echo "${ECHO_T}yes" >&6
9316 else
9317 echo "$as_me:$LINENO: result: no" >&5
9318echo "${ECHO_T}no" >&6
9319 fi
9320
9321
9322 enablestring=
9323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9324echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9325 no_cache=0
9326 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9327if test "${enable_tbarsmpl+set}" = set; then
9328 enableval="$enable_tbarsmpl"
9329
9330 if test "$enableval" = yes; then
9331 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9332 else
9333 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9334 fi
9335
9336else
9337
9338 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9339 if test "x$LINE" != x ; then
9340 eval "DEFAULT_$LINE"
9341 else
9342 no_cache=1
9343 fi
9344
9345 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9346
9347fi;
9348
9349 eval "$ac_cv_use_tbarsmpl"
9350 if test "$no_cache" != 1; then
9351 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9352 fi
9353
9354 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9355 echo "$as_me:$LINENO: result: yes" >&5
9356echo "${ECHO_T}yes" >&6
9357 else
9358 echo "$as_me:$LINENO: result: no" >&5
9359echo "${ECHO_T}no" >&6
9360 fi
9361
9362
0093c2fc
VZ
9363 enablestring=
9364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9365echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9366 no_cache=0
9367 # Check whether --enable-treebook or --disable-treebook was given.
9368if test "${enable_treebook+set}" = set; then
9369 enableval="$enable_treebook"
9370
9371 if test "$enableval" = yes; then
9372 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9373 else
9374 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9375 fi
9376
9377else
9378
9379 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9380 if test "x$LINE" != x ; then
9381 eval "DEFAULT_$LINE"
9382 else
9383 no_cache=1
9384 fi
9385
9386 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9387
9388fi;
9389
9390 eval "$ac_cv_use_treebook"
9391 if test "$no_cache" != 1; then
9392 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9393 fi
9394
9395 if test "$wxUSE_TREEBOOK" = yes; then
9396 echo "$as_me:$LINENO: result: yes" >&5
9397echo "${ECHO_T}yes" >&6
9398 else
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
9401 fi
9402
9403
5ec3bc43
JS
9404 enablestring=
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9406echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9407 no_cache=0
9408 # Check whether --enable-toolbook or --disable-toolbook was given.
9409if test "${enable_toolbook+set}" = set; then
9410 enableval="$enable_toolbook"
9411
9412 if test "$enableval" = yes; then
9413 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9414 else
9415 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9416 fi
9417
9418else
9419
9420 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
9427 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9428
9429fi;
9430
9431 eval "$ac_cv_use_toolbook"
9432 if test "$no_cache" != 1; then
9433 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9434 fi
9435
9436 if test "$wxUSE_TOOLBOOK" = yes; then
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
9439 else
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442 fi
9443
9444
a848cd7e
SC
9445 enablestring=
9446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9447echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9448 no_cache=0
9449 # Check whether --enable-treectrl or --disable-treectrl was given.
9450if test "${enable_treectrl+set}" = set; then
9451 enableval="$enable_treectrl"
9452
9453 if test "$enableval" = yes; then
9454 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9455 else
9456 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9457 fi
9458
9459else
9460
9461 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9462 if test "x$LINE" != x ; then
9463 eval "DEFAULT_$LINE"
9464 else
9465 no_cache=1
9466 fi
9467
9468 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9469
9470fi;
9471
9472 eval "$ac_cv_use_treectrl"
9473 if test "$no_cache" != 1; then
9474 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9475 fi
9476
9477 if test "$wxUSE_TREECTRL" = yes; then
9478 echo "$as_me:$LINENO: result: yes" >&5
9479echo "${ECHO_T}yes" >&6
9480 else
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
9483 fi
9484
9485
9486 enablestring=
9487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9488echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9489 no_cache=0
9490 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9491if test "${enable_tipwindow+set}" = set; then
9492 enableval="$enable_tipwindow"
9493
9494 if test "$enableval" = yes; then
9495 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9496 else
9497 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9498 fi
9499
9500else
9501
9502 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9503 if test "x$LINE" != x ; then
9504 eval "DEFAULT_$LINE"
9505 else
9506 no_cache=1
9507 fi
9508
9509 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9510
9511fi;
9512
9513 eval "$ac_cv_use_tipwindow"
9514 if test "$no_cache" != 1; then
9515 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9516 fi
9517
9518 if test "$wxUSE_TIPWINDOW" = yes; then
9519 echo "$as_me:$LINENO: result: yes" >&5
9520echo "${ECHO_T}yes" >&6
9521 else
9522 echo "$as_me:$LINENO: result: no" >&5
9523echo "${ECHO_T}no" >&6
9524 fi
9525
9526
9527 enablestring=
9528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9529echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9530 no_cache=0
9531 # Check whether --enable-popupwin or --disable-popupwin was given.
9532if test "${enable_popupwin+set}" = set; then
9533 enableval="$enable_popupwin"
9534
9535 if test "$enableval" = yes; then
9536 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9537 else
9538 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9539 fi
9540
9541else
9542
9543 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9544 if test "x$LINE" != x ; then
9545 eval "DEFAULT_$LINE"
9546 else
9547 no_cache=1
9548 fi
9549
9550 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9551
9552fi;
9553
9554 eval "$ac_cv_use_popupwin"
9555 if test "$no_cache" != 1; then
9556 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9557 fi
9558
9559 if test "$wxUSE_POPUPWIN" = yes; then
9560 echo "$as_me:$LINENO: result: yes" >&5
9561echo "${ECHO_T}yes" >&6
9562 else
9563 echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
9565 fi
9566
9567
9568
9569
9570 enablestring=
9571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9572echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9573 no_cache=0
9574 # Check whether --enable-commondlg or --disable-commondlg was given.
9575if test "${enable_commondlg+set}" = set; then
9576 enableval="$enable_commondlg"
9577
9578 if test "$enableval" = yes; then
9579 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9580 else
9581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9582 fi
9583
9584else
9585
9586 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9587 if test "x$LINE" != x ; then
9588 eval "DEFAULT_$LINE"
9589 else
9590 no_cache=1
9591 fi
9592
9593 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9594
9595fi;
9596
9597 eval "$ac_cv_use_commondlg"
9598 if test "$no_cache" != 1; then
9599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9600 fi
9601
9602 if test "$wxUSE_COMMONDLGS" = yes; then
9603 echo "$as_me:$LINENO: result: yes" >&5
9604echo "${ECHO_T}yes" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
9608 fi
9609
9610
9611 enablestring=
9612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9613echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9614 no_cache=0
9615 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9616if test "${enable_choicedlg+set}" = set; then
9617 enableval="$enable_choicedlg"
9618
9619 if test "$enableval" = yes; then
9620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9621 else
9622 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9623 fi
9624
9625else
9626
9627 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9628 if test "x$LINE" != x ; then
9629 eval "DEFAULT_$LINE"
9630 else
9631 no_cache=1
9632 fi
9633
9634 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9635
9636fi;
9637
9638 eval "$ac_cv_use_choicedlg"
9639 if test "$no_cache" != 1; then
9640 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9641 fi
9642
9643 if test "$wxUSE_CHOICEDLG" = yes; then
9644 echo "$as_me:$LINENO: result: yes" >&5
9645echo "${ECHO_T}yes" >&6
9646 else
9647 echo "$as_me:$LINENO: result: no" >&5
9648echo "${ECHO_T}no" >&6
9649 fi
9650
9651
9652 enablestring=
9653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9654echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9655 no_cache=0
9656 # Check whether --enable-coldlg or --disable-coldlg was given.
9657if test "${enable_coldlg+set}" = set; then
9658 enableval="$enable_coldlg"
9659
9660 if test "$enableval" = yes; then
9661 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9662 else
9663 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9664 fi
9665
9666else
9667
9668 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9669 if test "x$LINE" != x ; then
9670 eval "DEFAULT_$LINE"
9671 else
9672 no_cache=1
9673 fi
9674
9675 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9676
9677fi;
9678
9679 eval "$ac_cv_use_coldlg"
9680 if test "$no_cache" != 1; then
9681 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9682 fi
9683
9684 if test "$wxUSE_COLOURDLG" = yes; then
9685 echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6
9687 else
9688 echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6
9690 fi
9691
9692
9693 enablestring=
9694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9695echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9696 no_cache=0
9697 # Check whether --enable-filedlg or --disable-filedlg was given.
9698if test "${enable_filedlg+set}" = set; then
9699 enableval="$enable_filedlg"
9700
9701 if test "$enableval" = yes; then
9702 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9703 else
9704 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9705 fi
9706
9707else
9708
9709 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9710 if test "x$LINE" != x ; then
9711 eval "DEFAULT_$LINE"
9712 else
9713 no_cache=1
9714 fi
9715
9716 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9717
9718fi;
9719
9720 eval "$ac_cv_use_filedlg"
9721 if test "$no_cache" != 1; then
9722 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9723 fi
9724
9725 if test "$wxUSE_FILEDLG" = yes; then
9726 echo "$as_me:$LINENO: result: yes" >&5
9727echo "${ECHO_T}yes" >&6
9728 else
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
9731 fi
9732
9733
9734 enablestring=
9735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9736echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9737 no_cache=0
9738 # Check whether --enable-finddlg or --disable-finddlg was given.
9739if test "${enable_finddlg+set}" = set; then
9740 enableval="$enable_finddlg"
9741
9742 if test "$enableval" = yes; then
9743 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9744 else
9745 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9746 fi
9747
9748else
9749
9750 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9751 if test "x$LINE" != x ; then
9752 eval "DEFAULT_$LINE"
9753 else
9754 no_cache=1
9755 fi
9756
9757 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9758
9759fi;
9760
9761 eval "$ac_cv_use_finddlg"
9762 if test "$no_cache" != 1; then
9763 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9764 fi
9765
9766 if test "$wxUSE_FINDREPLDLG" = yes; then
9767 echo "$as_me:$LINENO: result: yes" >&5
9768echo "${ECHO_T}yes" >&6
9769 else
9770 echo "$as_me:$LINENO: result: no" >&5
9771echo "${ECHO_T}no" >&6
9772 fi
9773
9774
9775 enablestring=
9776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9777echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9778 no_cache=0
9779 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9780if test "${enable_fontdlg+set}" = set; then
9781 enableval="$enable_fontdlg"
9782
9783 if test "$enableval" = yes; then
9784 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9785 else
9786 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9787 fi
9788
9789else
9790
9791 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9792 if test "x$LINE" != x ; then
9793 eval "DEFAULT_$LINE"
9794 else
9795 no_cache=1
9796 fi
9797
9798 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9799
9800fi;
9801
9802 eval "$ac_cv_use_fontdlg"
9803 if test "$no_cache" != 1; then
9804 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9805 fi
9806
9807 if test "$wxUSE_FONTDLG" = yes; then
9808 echo "$as_me:$LINENO: result: yes" >&5
9809echo "${ECHO_T}yes" >&6
9810 else
9811 echo "$as_me:$LINENO: result: no" >&5
9812echo "${ECHO_T}no" >&6
9813 fi
9814
9815
9816 enablestring=
9817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9818echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9819 no_cache=0
9820 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9821if test "${enable_dirdlg+set}" = set; then
9822 enableval="$enable_dirdlg"
9823
9824 if test "$enableval" = yes; then
9825 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9826 else
9827 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9828 fi
9829
9830else
9831
9832 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9833 if test "x$LINE" != x ; then
9834 eval "DEFAULT_$LINE"
9835 else
9836 no_cache=1
9837 fi
9838
9839 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9840
9841fi;
9842
9843 eval "$ac_cv_use_dirdlg"
9844 if test "$no_cache" != 1; then
9845 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9846 fi
9847
9848 if test "$wxUSE_DIRDLG" = yes; then
9849 echo "$as_me:$LINENO: result: yes" >&5
9850echo "${ECHO_T}yes" >&6
9851 else
9852 echo "$as_me:$LINENO: result: no" >&5
9853echo "${ECHO_T}no" >&6
9854 fi
9855
9856
9857 enablestring=
9858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9859echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9860 no_cache=0
9861 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9862if test "${enable_msgdlg+set}" = set; then
9863 enableval="$enable_msgdlg"
9864
9865 if test "$enableval" = yes; then
9866 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9867 else
9868 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9869 fi
9870
9871else
9872
9873 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9874 if test "x$LINE" != x ; then
9875 eval "DEFAULT_$LINE"
9876 else
9877 no_cache=1
9878 fi
9879
9880 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9881
9882fi;
9883
9884 eval "$ac_cv_use_msgdlg"
9885 if test "$no_cache" != 1; then
9886 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9887 fi
9888
9889 if test "$wxUSE_MSGDLG" = yes; then
9890 echo "$as_me:$LINENO: result: yes" >&5
9891echo "${ECHO_T}yes" >&6
9892 else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895 fi
9896
9897
9898 enablestring=
9899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9900echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9901 no_cache=0
9902 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9903if test "${enable_numberdlg+set}" = set; then
9904 enableval="$enable_numberdlg"
9905
9906 if test "$enableval" = yes; then
9907 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9908 else
9909 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9910 fi
9911
9912else
9913
9914 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9915 if test "x$LINE" != x ; then
9916 eval "DEFAULT_$LINE"
9917 else
9918 no_cache=1
9919 fi
9920
9921 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9922
9923fi;
9924
9925 eval "$ac_cv_use_numberdlg"
9926 if test "$no_cache" != 1; then
9927 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9928 fi
9929
9930 if test "$wxUSE_NUMBERDLG" = yes; then
9931 echo "$as_me:$LINENO: result: yes" >&5
9932echo "${ECHO_T}yes" >&6
9933 else
9934 echo "$as_me:$LINENO: result: no" >&5
9935echo "${ECHO_T}no" >&6
9936 fi
9937
9938
9939 enablestring=
9940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9941echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9942 no_cache=0
9943 # Check whether --enable-splash or --disable-splash was given.
9944if test "${enable_splash+set}" = set; then
9945 enableval="$enable_splash"
9946
9947 if test "$enableval" = yes; then
9948 ac_cv_use_splash='wxUSE_SPLASH=yes'
9949 else
9950 ac_cv_use_splash='wxUSE_SPLASH=no'
9951 fi
9952
9953else
9954
9955 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9956 if test "x$LINE" != x ; then
9957 eval "DEFAULT_$LINE"
9958 else
9959 no_cache=1
9960 fi
9961
9962 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9963
9964fi;
9965
9966 eval "$ac_cv_use_splash"
9967 if test "$no_cache" != 1; then
9968 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9969 fi
9970
9971 if test "$wxUSE_SPLASH" = yes; then
9972 echo "$as_me:$LINENO: result: yes" >&5
9973echo "${ECHO_T}yes" >&6
9974 else
9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
9977 fi
9978
9979
9980 enablestring=
9981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9982echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9983 no_cache=0
9984 # Check whether --enable-textdlg or --disable-textdlg was given.
9985if test "${enable_textdlg+set}" = set; then
9986 enableval="$enable_textdlg"
9987
9988 if test "$enableval" = yes; then
9989 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9990 else
9991 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9992 fi
9993
9994else
9995
9996 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9997 if test "x$LINE" != x ; then
9998 eval "DEFAULT_$LINE"
9999 else
10000 no_cache=1
10001 fi
10002
10003 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10004
10005fi;
10006
10007 eval "$ac_cv_use_textdlg"
10008 if test "$no_cache" != 1; then
10009 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10010 fi
10011
10012 if test "$wxUSE_TEXTDLG" = yes; then
10013 echo "$as_me:$LINENO: result: yes" >&5
10014echo "${ECHO_T}yes" >&6
10015 else
10016 echo "$as_me:$LINENO: result: no" >&5
10017echo "${ECHO_T}no" >&6
10018 fi
10019
10020
10021 enablestring=
10022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10023echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10024 no_cache=0
10025 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10026if test "${enable_tipdlg+set}" = set; then
10027 enableval="$enable_tipdlg"
10028
10029 if test "$enableval" = yes; then
10030 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10031 else
10032 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10033 fi
10034
10035else
10036
10037 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10038 if test "x$LINE" != x ; then
10039 eval "DEFAULT_$LINE"
10040 else
10041 no_cache=1
10042 fi
10043
10044 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10045
10046fi;
10047
10048 eval "$ac_cv_use_tipdlg"
10049 if test "$no_cache" != 1; then
10050 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10051 fi
10052
10053 if test "$wxUSE_STARTUP_TIPS" = yes; then
10054 echo "$as_me:$LINENO: result: yes" >&5
10055echo "${ECHO_T}yes" >&6
10056 else
10057 echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
10059 fi
10060
10061
10062 enablestring=
10063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10064echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10065 no_cache=0
10066 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10067if test "${enable_progressdlg+set}" = set; then
10068 enableval="$enable_progressdlg"
10069
10070 if test "$enableval" = yes; then
10071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10072 else
10073 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10074 fi
10075
10076else
10077
10078 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10079 if test "x$LINE" != x ; then
10080 eval "DEFAULT_$LINE"
10081 else
10082 no_cache=1
10083 fi
10084
10085 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10086
10087fi;
10088
10089 eval "$ac_cv_use_progressdlg"
10090 if test "$no_cache" != 1; then
10091 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10092 fi
10093
10094 if test "$wxUSE_PROGRESSDLG" = yes; then
10095 echo "$as_me:$LINENO: result: yes" >&5
10096echo "${ECHO_T}yes" >&6
10097 else
10098 echo "$as_me:$LINENO: result: no" >&5
10099echo "${ECHO_T}no" >&6
10100 fi
10101
10102
10103 enablestring=
10104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10105echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10106 no_cache=0
10107 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10108if test "${enable_wizarddlg+set}" = set; then
10109 enableval="$enable_wizarddlg"
10110
10111 if test "$enableval" = yes; then
10112 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10113 else
10114 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10115 fi
10116
10117else
10118
10119 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10120 if test "x$LINE" != x ; then
10121 eval "DEFAULT_$LINE"
10122 else
10123 no_cache=1
10124 fi
10125
10126 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10127
10128fi;
10129
10130 eval "$ac_cv_use_wizarddlg"
10131 if test "$no_cache" != 1; then
10132 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10133 fi
10134
10135 if test "$wxUSE_WIZARDDLG" = yes; then
10136 echo "$as_me:$LINENO: result: yes" >&5
10137echo "${ECHO_T}yes" >&6
10138 else
10139 echo "$as_me:$LINENO: result: no" >&5
10140echo "${ECHO_T}no" >&6
10141 fi
10142
10143
10144
10145
10146 enablestring=
10147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10148echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10149 no_cache=0
10150 # Check whether --enable-menus or --disable-menus was given.
10151if test "${enable_menus+set}" = set; then
10152 enableval="$enable_menus"
10153
10154 if test "$enableval" = yes; then
10155 ac_cv_use_menus='wxUSE_MENUS=yes'
10156 else
10157 ac_cv_use_menus='wxUSE_MENUS=no'
10158 fi
10159
10160else
10161
10162 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10163 if test "x$LINE" != x ; then
10164 eval "DEFAULT_$LINE"
10165 else
10166 no_cache=1
10167 fi
10168
10169 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10170
10171fi;
10172
10173 eval "$ac_cv_use_menus"
10174 if test "$no_cache" != 1; then
10175 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10176 fi
10177
10178 if test "$wxUSE_MENUS" = yes; then
10179 echo "$as_me:$LINENO: result: yes" >&5
10180echo "${ECHO_T}yes" >&6
10181 else
10182 echo "$as_me:$LINENO: result: no" >&5
10183echo "${ECHO_T}no" >&6
10184 fi
10185
10186
10187 enablestring=
10188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10189echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10190 no_cache=0
10191 # Check whether --enable-miniframe or --disable-miniframe was given.
10192if test "${enable_miniframe+set}" = set; then
10193 enableval="$enable_miniframe"
10194
10195 if test "$enableval" = yes; then
10196 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10197 else
10198 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10199 fi
10200
10201else
10202
10203 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10204 if test "x$LINE" != x ; then
10205 eval "DEFAULT_$LINE"
10206 else
10207 no_cache=1
10208 fi
10209
10210 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10211
10212fi;
10213
10214 eval "$ac_cv_use_miniframe"
10215 if test "$no_cache" != 1; then
10216 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10217 fi
10218
10219 if test "$wxUSE_MINIFRAME" = yes; then
10220 echo "$as_me:$LINENO: result: yes" >&5
10221echo "${ECHO_T}yes" >&6
10222 else
10223 echo "$as_me:$LINENO: result: no" >&5
10224echo "${ECHO_T}no" >&6
10225 fi
10226
10227
10228 enablestring=
10229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10230echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10231 no_cache=0
10232 # Check whether --enable-tooltips or --disable-tooltips was given.
10233if test "${enable_tooltips+set}" = set; then
10234 enableval="$enable_tooltips"
10235
10236 if test "$enableval" = yes; then
10237 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10238 else
10239 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10240 fi
10241
10242else
10243
10244 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10245 if test "x$LINE" != x ; then
10246 eval "DEFAULT_$LINE"
10247 else
10248 no_cache=1
10249 fi
10250
10251 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10252
10253fi;
10254
10255 eval "$ac_cv_use_tooltips"
10256 if test "$no_cache" != 1; then
10257 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10258 fi
10259
10260 if test "$wxUSE_TOOLTIPS" = yes; then
10261 echo "$as_me:$LINENO: result: yes" >&5
10262echo "${ECHO_T}yes" >&6
10263 else
10264 echo "$as_me:$LINENO: result: no" >&5
10265echo "${ECHO_T}no" >&6
10266 fi
10267
10268
10269 enablestring=
10270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10271echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10272 no_cache=0
10273 # Check whether --enable-splines or --disable-splines was given.
10274if test "${enable_splines+set}" = set; then
10275 enableval="$enable_splines"
10276
10277 if test "$enableval" = yes; then
10278 ac_cv_use_splines='wxUSE_SPLINES=yes'
10279 else
10280 ac_cv_use_splines='wxUSE_SPLINES=no'
10281 fi
10282
10283else
10284
10285 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10286 if test "x$LINE" != x ; then
10287 eval "DEFAULT_$LINE"
10288 else
10289 no_cache=1
10290 fi
10291
10292 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10293
10294fi;
10295
10296 eval "$ac_cv_use_splines"
10297 if test "$no_cache" != 1; then
10298 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10299 fi
10300
10301 if test "$wxUSE_SPLINES" = yes; then
10302 echo "$as_me:$LINENO: result: yes" >&5
10303echo "${ECHO_T}yes" >&6
10304 else
10305 echo "$as_me:$LINENO: result: no" >&5
10306echo "${ECHO_T}no" >&6
10307 fi
10308
10309
fbe2ca43
SN
10310 enablestring=
10311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10312echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10313 no_cache=0
10314 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10315if test "${enable_mousewheel+set}" = set; then
10316 enableval="$enable_mousewheel"
10317
10318 if test "$enableval" = yes; then
10319 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10320 else
10321 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10322 fi
10323
10324else
10325
10326 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10327 if test "x$LINE" != x ; then
10328 eval "DEFAULT_$LINE"
10329 else
10330 no_cache=1
10331 fi
10332
10333 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10334
10335fi;
10336
10337 eval "$ac_cv_use_mousewheel"
10338 if test "$no_cache" != 1; then
10339 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10340 fi
10341
10342 if test "$wxUSE_MOUSEWHEEL" = yes; then
10343 echo "$as_me:$LINENO: result: yes" >&5
10344echo "${ECHO_T}yes" >&6
10345 else
10346 echo "$as_me:$LINENO: result: no" >&5
10347echo "${ECHO_T}no" >&6
10348 fi
10349
10350
a848cd7e
SC
10351 enablestring=
10352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10353echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10354 no_cache=0
10355 # Check whether --enable-validators or --disable-validators was given.
10356if test "${enable_validators+set}" = set; then
10357 enableval="$enable_validators"
10358
10359 if test "$enableval" = yes; then
10360 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10361 else
10362 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10363 fi
10364
10365else
10366
10367 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10368 if test "x$LINE" != x ; then
10369 eval "DEFAULT_$LINE"
10370 else
10371 no_cache=1
10372 fi
10373
10374 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10375
10376fi;
10377
10378 eval "$ac_cv_use_validators"
10379 if test "$no_cache" != 1; then
10380 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10381 fi
10382
10383 if test "$wxUSE_VALIDATORS" = yes; then
10384 echo "$as_me:$LINENO: result: yes" >&5
10385echo "${ECHO_T}yes" >&6
10386 else
10387 echo "$as_me:$LINENO: result: no" >&5
10388echo "${ECHO_T}no" >&6
10389 fi
10390
10391
10392 enablestring=
10393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10394echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10395 no_cache=0
10396 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10397if test "${enable_busyinfo+set}" = set; then
10398 enableval="$enable_busyinfo"
10399
10400 if test "$enableval" = yes; then
10401 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10402 else
10403 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10404 fi
10405
10406else
10407
10408 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10409 if test "x$LINE" != x ; then
10410 eval "DEFAULT_$LINE"
10411 else
10412 no_cache=1
10413 fi
10414
10415 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10416
10417fi;
10418
10419 eval "$ac_cv_use_busyinfo"
10420 if test "$no_cache" != 1; then
10421 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10422 fi
10423
10424 if test "$wxUSE_BUSYINFO" = yes; then
10425 echo "$as_me:$LINENO: result: yes" >&5
10426echo "${ECHO_T}yes" >&6
10427 else
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
10430 fi
10431
10432
10433 enablestring=
10434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10435echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10436 no_cache=0
10437 # Check whether --enable-joystick or --disable-joystick was given.
10438if test "${enable_joystick+set}" = set; then
10439 enableval="$enable_joystick"
10440
10441 if test "$enableval" = yes; then
10442 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10443 else
10444 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10445 fi
10446
10447else
10448
10449 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10450 if test "x$LINE" != x ; then
10451 eval "DEFAULT_$LINE"
10452 else
10453 no_cache=1
10454 fi
10455
10456 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10457
10458fi;
10459
10460 eval "$ac_cv_use_joystick"
10461 if test "$no_cache" != 1; then
10462 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10463 fi
10464
10465 if test "$wxUSE_JOYSTICK" = yes; then
10466 echo "$as_me:$LINENO: result: yes" >&5
10467echo "${ECHO_T}yes" >&6
10468 else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471 fi
10472
10473
10474 enablestring=
10475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10476echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10477 no_cache=0
10478 # Check whether --enable-metafile or --disable-metafile was given.
10479if test "${enable_metafile+set}" = set; then
10480 enableval="$enable_metafile"
10481
10482 if test "$enableval" = yes; then
10483 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10484 else
10485 ac_cv_use_metafile='wxUSE_METAFILE=no'
10486 fi
10487
10488else
10489
10490 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10491 if test "x$LINE" != x ; then
10492 eval "DEFAULT_$LINE"
10493 else
10494 no_cache=1
10495 fi
10496
10497 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10498
10499fi;
10500
10501 eval "$ac_cv_use_metafile"
10502 if test "$no_cache" != 1; then
10503 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10504 fi
10505
10506 if test "$wxUSE_METAFILE" = yes; then
10507 echo "$as_me:$LINENO: result: yes" >&5
10508echo "${ECHO_T}yes" >&6
10509 else
10510 echo "$as_me:$LINENO: result: no" >&5
10511echo "${ECHO_T}no" >&6
10512 fi
10513
10514
10515 enablestring=
10516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10517echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10518 no_cache=0
10519 # Check whether --enable-dragimage or --disable-dragimage was given.
10520if test "${enable_dragimage+set}" = set; then
10521 enableval="$enable_dragimage"
10522
10523 if test "$enableval" = yes; then
10524 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10525 else
10526 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10527 fi
10528
10529else
10530
10531 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10532 if test "x$LINE" != x ; then
10533 eval "DEFAULT_$LINE"
10534 else
10535 no_cache=1
10536 fi
10537
10538 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10539
10540fi;
10541
10542 eval "$ac_cv_use_dragimage"
10543 if test "$no_cache" != 1; then
10544 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10545 fi
10546
10547 if test "$wxUSE_DRAGIMAGE" = yes; then
10548 echo "$as_me:$LINENO: result: yes" >&5
10549echo "${ECHO_T}yes" >&6
10550 else
10551 echo "$as_me:$LINENO: result: no" >&5
10552echo "${ECHO_T}no" >&6
10553 fi
10554
10555
10556 enablestring=
10557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10558echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10559 no_cache=0
10560 # Check whether --enable-accessibility or --disable-accessibility was given.
10561if test "${enable_accessibility+set}" = set; then
10562 enableval="$enable_accessibility"
10563
10564 if test "$enableval" = yes; then
10565 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10566 else
10567 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10568 fi
10569
10570else
10571
10572 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10573 if test "x$LINE" != x ; then
10574 eval "DEFAULT_$LINE"
10575 else
10576 no_cache=1
10577 fi
10578
10579 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10580
10581fi;
10582
10583 eval "$ac_cv_use_accessibility"
10584 if test "$no_cache" != 1; then
10585 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10586 fi
10587
10588 if test "$wxUSE_ACCESSIBILITY" = yes; then
10589 echo "$as_me:$LINENO: result: yes" >&5
10590echo "${ECHO_T}yes" >&6
10591 else
10592 echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6
10594 fi
10595
10596
38b4a946
VZ
10597if test "$wxUSE_MSW" = "1"; then
10598
10599 enablestring=
10600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10601echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10602 no_cache=0
10603 # Check whether --enable-dccache or --disable-dccache was given.
10604if test "${enable_dccache+set}" = set; then
10605 enableval="$enable_dccache"
10606
10607 if test "$enableval" = yes; then
10608 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10609 else
10610 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10611 fi
10612
10613else
10614
10615 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10616 if test "x$LINE" != x ; then
10617 eval "DEFAULT_$LINE"
10618 else
10619 no_cache=1
10620 fi
10621
10622 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10623
10624fi;
10625
10626 eval "$ac_cv_use_dccache"
10627 if test "$no_cache" != 1; then
10628 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10629 fi
10630
10631 if test "$wxUSE_DC_CACHEING" = yes; then
10632 echo "$as_me:$LINENO: result: yes" >&5
10633echo "${ECHO_T}yes" >&6
10634 else
10635 echo "$as_me:$LINENO: result: no" >&5
10636echo "${ECHO_T}no" >&6
10637 fi
10638
10639fi
10640
a848cd7e
SC
10641
10642
10643 enablestring=
10644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10645echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10646 no_cache=0
10647 # Check whether --enable-palette or --disable-palette was given.
10648if test "${enable_palette+set}" = set; then
10649 enableval="$enable_palette"
10650
10651 if test "$enableval" = yes; then
10652 ac_cv_use_palette='wxUSE_PALETTE=yes'
10653 else
10654 ac_cv_use_palette='wxUSE_PALETTE=no'
10655 fi
10656
10657else
10658
10659 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10660 if test "x$LINE" != x ; then
10661 eval "DEFAULT_$LINE"
10662 else
10663 no_cache=1
10664 fi
10665
10666 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10667
10668fi;
10669
10670 eval "$ac_cv_use_palette"
10671 if test "$no_cache" != 1; then
10672 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10673 fi
10674
10675 if test "$wxUSE_PALETTE" = yes; then
10676 echo "$as_me:$LINENO: result: yes" >&5
10677echo "${ECHO_T}yes" >&6
10678 else
10679 echo "$as_me:$LINENO: result: no" >&5
10680echo "${ECHO_T}no" >&6
10681 fi
10682
10683
10684 enablestring=
10685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10686echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10687 no_cache=0
10688 # Check whether --enable-image or --disable-image was given.
10689if test "${enable_image+set}" = set; then
10690 enableval="$enable_image"
10691
10692 if test "$enableval" = yes; then
10693 ac_cv_use_image='wxUSE_IMAGE=yes'
10694 else
10695 ac_cv_use_image='wxUSE_IMAGE=no'
10696 fi
10697
10698else
10699
10700 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10701 if test "x$LINE" != x ; then
10702 eval "DEFAULT_$LINE"
10703 else
10704 no_cache=1
10705 fi
10706
10707 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10708
10709fi;
10710
10711 eval "$ac_cv_use_image"
10712 if test "$no_cache" != 1; then
10713 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10714 fi
10715
10716 if test "$wxUSE_IMAGE" = yes; then
10717 echo "$as_me:$LINENO: result: yes" >&5
10718echo "${ECHO_T}yes" >&6
10719 else
10720 echo "$as_me:$LINENO: result: no" >&5
10721echo "${ECHO_T}no" >&6
10722 fi
10723
10724
10725 enablestring=
10726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10727echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10728 no_cache=0
10729 # Check whether --enable-gif or --disable-gif was given.
10730if test "${enable_gif+set}" = set; then
10731 enableval="$enable_gif"
10732
10733 if test "$enableval" = yes; then
10734 ac_cv_use_gif='wxUSE_GIF=yes'
10735 else
10736 ac_cv_use_gif='wxUSE_GIF=no'
10737 fi
10738
10739else
10740
10741 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10742 if test "x$LINE" != x ; then
10743 eval "DEFAULT_$LINE"
10744 else
10745 no_cache=1
10746 fi
10747
10748 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10749
10750fi;
10751
10752 eval "$ac_cv_use_gif"
10753 if test "$no_cache" != 1; then
10754 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10755 fi
10756
10757 if test "$wxUSE_GIF" = yes; then
10758 echo "$as_me:$LINENO: result: yes" >&5
10759echo "${ECHO_T}yes" >&6
10760 else
10761 echo "$as_me:$LINENO: result: no" >&5
10762echo "${ECHO_T}no" >&6
10763 fi
10764
10765
10766 enablestring=
10767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10768echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10769 no_cache=0
10770 # Check whether --enable-pcx or --disable-pcx was given.
10771if test "${enable_pcx+set}" = set; then
10772 enableval="$enable_pcx"
10773
10774 if test "$enableval" = yes; then
10775 ac_cv_use_pcx='wxUSE_PCX=yes'
10776 else
10777 ac_cv_use_pcx='wxUSE_PCX=no'
10778 fi
10779
10780else
10781
10782 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10783 if test "x$LINE" != x ; then
10784 eval "DEFAULT_$LINE"
10785 else
10786 no_cache=1
10787 fi
10788
10789 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10790
10791fi;
10792
10793 eval "$ac_cv_use_pcx"
10794 if test "$no_cache" != 1; then
10795 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10796 fi
10797
10798 if test "$wxUSE_PCX" = yes; then
10799 echo "$as_me:$LINENO: result: yes" >&5
10800echo "${ECHO_T}yes" >&6
10801 else
10802 echo "$as_me:$LINENO: result: no" >&5
10803echo "${ECHO_T}no" >&6
10804 fi
10805
10806
10807 enablestring=
10808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10809echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10810 no_cache=0
10811 # Check whether --enable-iff or --disable-iff was given.
10812if test "${enable_iff+set}" = set; then
10813 enableval="$enable_iff"
10814
10815 if test "$enableval" = yes; then
10816 ac_cv_use_iff='wxUSE_IFF=yes'
10817 else
10818 ac_cv_use_iff='wxUSE_IFF=no'
10819 fi
10820
10821else
10822
10823 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10824 if test "x$LINE" != x ; then
10825 eval "DEFAULT_$LINE"
10826 else
10827 no_cache=1
10828 fi
10829
10830 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10831
10832fi;
10833
10834 eval "$ac_cv_use_iff"
10835 if test "$no_cache" != 1; then
10836 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10837 fi
10838
10839 if test "$wxUSE_IFF" = yes; then
10840 echo "$as_me:$LINENO: result: yes" >&5
10841echo "${ECHO_T}yes" >&6
10842 else
10843 echo "$as_me:$LINENO: result: no" >&5
10844echo "${ECHO_T}no" >&6
10845 fi
10846
10847
10848 enablestring=
10849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10850echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10851 no_cache=0
10852 # Check whether --enable-pnm or --disable-pnm was given.
10853if test "${enable_pnm+set}" = set; then
10854 enableval="$enable_pnm"
10855
10856 if test "$enableval" = yes; then
10857 ac_cv_use_pnm='wxUSE_PNM=yes'
10858 else
10859 ac_cv_use_pnm='wxUSE_PNM=no'
10860 fi
10861
10862else
10863
10864 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10865 if test "x$LINE" != x ; then
10866 eval "DEFAULT_$LINE"
10867 else
10868 no_cache=1
10869 fi
10870
10871 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10872
10873fi;
10874
10875 eval "$ac_cv_use_pnm"
10876 if test "$no_cache" != 1; then
10877 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10878 fi
10879
10880 if test "$wxUSE_PNM" = yes; then
10881 echo "$as_me:$LINENO: result: yes" >&5
10882echo "${ECHO_T}yes" >&6
10883 else
10884 echo "$as_me:$LINENO: result: no" >&5
10885echo "${ECHO_T}no" >&6
10886 fi
10887
10888
10889 enablestring=
10890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10891echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10892 no_cache=0
10893 # Check whether --enable-xpm or --disable-xpm was given.
10894if test "${enable_xpm+set}" = set; then
10895 enableval="$enable_xpm"
10896
10897 if test "$enableval" = yes; then
10898 ac_cv_use_xpm='wxUSE_XPM=yes'
10899 else
10900 ac_cv_use_xpm='wxUSE_XPM=no'
10901 fi
10902
10903else
10904
10905 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10906 if test "x$LINE" != x ; then
10907 eval "DEFAULT_$LINE"
10908 else
10909 no_cache=1
10910 fi
10911
10912 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10913
10914fi;
10915
10916 eval "$ac_cv_use_xpm"
10917 if test "$no_cache" != 1; then
10918 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10919 fi
10920
10921 if test "$wxUSE_XPM" = yes; then
10922 echo "$as_me:$LINENO: result: yes" >&5
10923echo "${ECHO_T}yes" >&6
10924 else
10925 echo "$as_me:$LINENO: result: no" >&5
10926echo "${ECHO_T}no" >&6
10927 fi
10928
10929
10930 enablestring=
10931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10932echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10933 no_cache=0
10934 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10935if test "${enable_ico_cur+set}" = set; then
10936 enableval="$enable_ico_cur"
10937
10938 if test "$enableval" = yes; then
10939 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10940 else
10941 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10942 fi
10943
10944else
10945
10946 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10947 if test "x$LINE" != x ; then
10948 eval "DEFAULT_$LINE"
10949 else
10950 no_cache=1
10951 fi
10952
10953 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10954
10955fi;
10956
10957 eval "$ac_cv_use_ico_cur"
10958 if test "$no_cache" != 1; then
10959 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10960 fi
10961
10962 if test "$wxUSE_ICO_CUR" = yes; then
10963 echo "$as_me:$LINENO: result: yes" >&5
10964echo "${ECHO_T}yes" >&6
10965 else
10966 echo "$as_me:$LINENO: result: no" >&5
10967echo "${ECHO_T}no" >&6
10968 fi
10969
10970
10971fi
10972
10973
10974
ceec2216
RL
10975# Check whether --with-flavour or --without-flavour was given.
10976if test "${with_flavour+set}" = set; then
10977 withval="$with_flavour"
10978 WX_FLAVOUR="$withval"
10979fi;
10980
10981
10982
a848cd7e
SC
10983 enablestring=
10984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10985echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10986 no_cache=0
10987 # Check whether --enable-official_build or --disable-official_build was given.
10988if test "${enable_official_build+set}" = set; then
10989 enableval="$enable_official_build"
10990
10991 if test "$enableval" = yes; then
10992 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10993 else
10994 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10995 fi
10996
10997else
10998
10999 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11000 if test "x$LINE" != x ; then
11001 eval "DEFAULT_$LINE"
11002 else
11003 no_cache=1
11004 fi
11005
11006 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11007
11008fi;
11009
11010 eval "$ac_cv_use_official_build"
11011 if test "$no_cache" != 1; then
11012 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11013 fi
11014
11015 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11016 echo "$as_me:$LINENO: result: yes" >&5
11017echo "${ECHO_T}yes" >&6
11018 else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021 fi
11022
11023# Check whether --enable-vendor or --disable-vendor was given.
11024if test "${enable_vendor+set}" = set; then
11025 enableval="$enable_vendor"
11026 VENDOR="$enableval"
11027fi;
11028if test "x$VENDOR" = "x"; then
11029 VENDOR="custom"
11030fi
11031
a848cd7e
SC
11032
11033
11034
11035 echo "saving argument cache $wx_arg_cache_file"
11036 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11037
11038
11039
11040echo "$as_me:$LINENO: checking for toolkit" >&5
11041echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11042
11043# In Wine, we need to default to MSW, not GTK or MOTIF
11044if test "$wxUSE_WINE" = "yes"; then
11045 DEFAULT_DEFAULT_wxUSE_GTK=0
11046 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11047 DEFAULT_DEFAULT_wxUSE_MSW=1
11048 wxUSE_SHARED=no
11049fi
11050
f597b41c 11051
a848cd7e
SC
11052if test "$wxUSE_GUI" = "yes"; then
11053
11054 if test "$USE_BEOS" = 1; then
11055 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11056echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11057 { (exit 1); exit 1; }; }
11058 fi
11059
11060 if test "$TOOLKIT_GIVEN" = 1; then
11061 for toolkit in `echo $ALL_TOOLKITS`; do
11062 var=wxUSE_$toolkit
11063 eval "value=\$${var}"
f34ca037
MW
11064 if test "x$value" = "xno"; then
11065 eval "$var=0"
11066 elif test "x$value" != "x"; then
11067 eval "$var=1"
11068 fi
11069
11070 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11071 eval "wx${toolkit}_VERSION=$value"
11072 fi
a848cd7e
SC
11073 done
11074 else
11075 for toolkit in `echo $ALL_TOOLKITS`; do
11076 if test "$has_toolkit_in_cache" != 1; then
11077 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11078 else
11079 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11080
11081 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11082 if test "x$version" != "x"; then
11083 eval "wx${toolkit}_VERSION=$version"
11084 fi
a848cd7e
SC
11085 fi
11086 eval "wxUSE_$toolkit=\$${var}"
11087 done
11088 fi
11089
11090 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11091 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11092 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11093
11094 case "${host}" in
11095 *-pc-os2_emx | *-pc-os2-emx )
11096 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11097 esac
11098
11099 case "$NUM_TOOLKITS" in
11100 1)
11101 ;;
11102 0)
11103 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11104echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11105 { (exit 1); exit 1; }; }
11106 ;;
11107 *)
11108 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11109echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11110 { (exit 1); exit 1; }; }
11111 esac
11112
f34ca037
MW
11113 # to be removed when --disable-gtk2 isn't needed
11114 if test "x$wxUSE_GTK2" = "xyes"; then
11115 wxGTK_VERSION=2
11116 elif test "x$wxUSE_GTK2" = "xno"; then
11117 wxGTK_VERSION=1
11118 fi
11119
a848cd7e
SC
11120 for toolkit in `echo $ALL_TOOLKITS`; do
11121 var=wxUSE_$toolkit
11122 eval "value=\$${var}"
11123 if test "x$value" != x; then
11124 cache_var=CACHE_$toolkit
11125 eval "cache=\$${cache_var}"
11126 if test "$cache" = 1; then
11127 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11128 eval "version=\$wx${toolkit}_VERSION"
11129 if test "x$version" != "x"; then
11130 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11131 fi
a848cd7e
SC
11132 fi
11133 if test "$value" = 1; then
11134 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11135 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11136echo "${ECHO_T}$toolkit_echo" >&6
11137 fi
11138 fi
11139 done
11140else
11141 if test "x$host_alias" != "x"; then
11142 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11143echo "${ECHO_T}base ($host_alias hosted) only" >&6
11144 else
11145 echo "$as_me:$LINENO: result: base only" >&5
11146echo "${ECHO_T}base only" >&6
11147 fi
11148fi
11149
11150wants_win32=0
11151doesnt_want_win32=0
11152case "${host}" in
11153 *-*-cygwin*)
11154 if test "$wxUSE_MSW" = 1 ; then
11155 wants_win32=1
7275146d 11156 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11157 else
11158 doesnt_want_win32=1
11159 fi
11160 ;;
11161 *-*-mingw*)
11162 wants_win32=1
11163 ;;
11164esac
11165
11166if test "$wxUSE_WINE" = "yes"; then
11167 wants_win32=1
11168 CC=winegcc
11169 CXX=wineg++
a848cd7e
SC
11170 LDFLAGS_GUI="-mwindows"
11171fi
11172
11173if test "$wants_win32" = 1 ; then
11174 USE_UNIX=0
11175 USE_WIN32=1
11176 cat >>confdefs.h <<\_ACEOF
11177#define __WIN32__ 1
11178_ACEOF
11179
11180 cat >>confdefs.h <<\_ACEOF
11181#define __WIN95__ 1
11182_ACEOF
11183
11184 cat >>confdefs.h <<\_ACEOF
11185#define __WINDOWS__ 1
11186_ACEOF
11187
11188 cat >>confdefs.h <<\_ACEOF
11189#define __GNUWIN32__ 1
11190_ACEOF
11191
11192 cat >>confdefs.h <<\_ACEOF
11193#define STRICT 1
11194_ACEOF
11195
11196 cat >>confdefs.h <<\_ACEOF
11197#define WINVER 0x0400
11198_ACEOF
11199
11200fi
11201if test "$doesnt_want_win32" = 1 ; then
11202 USE_UNIX=1
11203 USE_WIN32=0
11204fi
11205
11206if test "$USE_UNIX" = 1 ; then
11207 wxUSE_UNIX=yes
11208 cat >>confdefs.h <<\_ACEOF
11209#define __UNIX__ 1
11210_ACEOF
11211
11212fi
11213
11214
11215cat >confcache <<\_ACEOF
11216# This file is a shell script that caches the results of configure
11217# tests run on this system so they can be shared between configure
11218# scripts and configure runs, see configure's option --config-cache.
11219# It is not useful on other systems. If it contains results you don't
11220# want to keep, you may remove or edit it.
11221#
11222# config.status only pays attention to the cache file if you give it
11223# the --recheck option to rerun configure.
11224#
11225# `ac_cv_env_foo' variables (set or unset) will be overridden when
11226# loading this file, other *unset* `ac_cv_foo' will be assigned the
11227# following values.
11228
11229_ACEOF
11230
11231# The following way of writing the cache mishandles newlines in values,
11232# but we know of no workaround that is simple, portable, and efficient.
11233# So, don't put newlines in cache variables' values.
11234# Ultrix sh set writes to stderr and can't be redirected directly,
11235# and sets the high bit in the cache file unless we assign to the vars.
11236{
11237 (set) 2>&1 |
11238 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11239 *ac_space=\ *)
11240 # `set' does not quote correctly, so add quotes (double-quote
11241 # substitution turns \\\\ into \\, and sed turns \\ into \).
11242 sed -n \
ac1cb8d3
VS
11243 "s/'/'\\\\''/g;
11244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11245 ;;
11246 *)
11247 # `set' quotes correctly as required by POSIX, so do not add quotes.
11248 sed -n \
ac1cb8d3 11249 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11250 ;;
11251 esac;
11252} |
11253 sed '
11254 t clear
11255 : clear
11256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11257 t end
11258 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11259 : end' >>confcache
11260if diff $cache_file confcache >/dev/null 2>&1; then :; else
11261 if test -w $cache_file; then
11262 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11263 cat confcache >$cache_file
11264 else
11265 echo "not updating unwritable cache $cache_file"
11266 fi
11267fi
11268rm -f confcache
11269
a848cd7e 11270CFLAGS=${CFLAGS:=}
6dcfc289
DE
11271
11272
3006edc0 11273
6dcfc289 11274 ac_ext=c
a848cd7e
SC
11275ac_cpp='$CPP $CPPFLAGS'
11276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11278ac_compiler_gnu=$ac_cv_c_compiler_gnu
11279if test -n "$ac_tool_prefix"; then
11280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11281set dummy ${ac_tool_prefix}gcc; ac_word=$2
11282echo "$as_me:$LINENO: checking for $ac_word" >&5
11283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11284if test "${ac_cv_prog_CC+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286else
11287 if test -n "$CC"; then
11288 ac_cv_prog_CC="$CC" # Let the user override the test.
11289else
11290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291for as_dir in $PATH
11292do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11300 fi
11301done
11302done
11303
11304fi
11305fi
11306CC=$ac_cv_prog_CC
11307if test -n "$CC"; then
11308 echo "$as_me:$LINENO: result: $CC" >&5
11309echo "${ECHO_T}$CC" >&6
11310else
11311 echo "$as_me:$LINENO: result: no" >&5
11312echo "${ECHO_T}no" >&6
11313fi
11314
11315fi
11316if test -z "$ac_cv_prog_CC"; then
11317 ac_ct_CC=$CC
11318 # Extract the first word of "gcc", so it can be a program name with args.
11319set dummy gcc; ac_word=$2
11320echo "$as_me:$LINENO: checking for $ac_word" >&5
11321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11322if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 if test -n "$ac_ct_CC"; then
11326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_ac_ct_CC="gcc"
11336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340done
11341
11342fi
11343fi
11344ac_ct_CC=$ac_cv_prog_ac_ct_CC
11345if test -n "$ac_ct_CC"; then
11346 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11347echo "${ECHO_T}$ac_ct_CC" >&6
11348else
11349 echo "$as_me:$LINENO: result: no" >&5
11350echo "${ECHO_T}no" >&6
11351fi
11352
11353 CC=$ac_ct_CC
11354else
11355 CC="$ac_cv_prog_CC"
11356fi
11357
11358if test -z "$CC"; then
11359 if test -n "$ac_tool_prefix"; then
11360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11361set dummy ${ac_tool_prefix}cc; ac_word=$2
11362echo "$as_me:$LINENO: checking for $ac_word" >&5
11363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11364if test "${ac_cv_prog_CC+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366else
11367 if test -n "$CC"; then
11368 ac_cv_prog_CC="$CC" # Let the user override the test.
11369else
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_CC="${ac_tool_prefix}cc"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381done
11382done
11383
11384fi
11385fi
11386CC=$ac_cv_prog_CC
11387if test -n "$CC"; then
11388 echo "$as_me:$LINENO: result: $CC" >&5
11389echo "${ECHO_T}$CC" >&6
11390else
11391 echo "$as_me:$LINENO: result: no" >&5
11392echo "${ECHO_T}no" >&6
11393fi
11394
11395fi
11396if test -z "$ac_cv_prog_CC"; then
11397 ac_ct_CC=$CC
11398 # Extract the first word of "cc", so it can be a program name with args.
11399set dummy cc; ac_word=$2
11400echo "$as_me:$LINENO: checking for $ac_word" >&5
11401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11402if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 if test -n "$ac_ct_CC"; then
11406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11407else
11408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409for as_dir in $PATH
11410do
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415 ac_cv_prog_ac_ct_CC="cc"
11416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11418 fi
11419done
11420done
11421
11422fi
11423fi
11424ac_ct_CC=$ac_cv_prog_ac_ct_CC
11425if test -n "$ac_ct_CC"; then
11426 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11427echo "${ECHO_T}$ac_ct_CC" >&6
11428else
11429 echo "$as_me:$LINENO: result: no" >&5
11430echo "${ECHO_T}no" >&6
11431fi
11432
11433 CC=$ac_ct_CC
11434else
11435 CC="$ac_cv_prog_CC"
11436fi
11437
11438fi
11439if test -z "$CC"; then
11440 # Extract the first word of "cc", so it can be a program name with args.
11441set dummy cc; ac_word=$2
11442echo "$as_me:$LINENO: checking for $ac_word" >&5
11443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11444if test "${ac_cv_prog_CC+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446else
11447 if test -n "$CC"; then
11448 ac_cv_prog_CC="$CC" # Let the user override the test.
11449else
11450 ac_prog_rejected=no
11451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452for as_dir in $PATH
11453do
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11459 ac_prog_rejected=yes
11460 continue
11461 fi
11462 ac_cv_prog_CC="cc"
11463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11465 fi
11466done
11467done
11468
11469if test $ac_prog_rejected = yes; then
11470 # We found a bogon in the path, so make sure we never use it.
11471 set dummy $ac_cv_prog_CC
11472 shift
11473 if test $# != 0; then
11474 # We chose a different compiler from the bogus one.
11475 # However, it has the same basename, so the bogon will be chosen
11476 # first if we set CC to just the basename; use the full file name.
11477 shift
11478 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11479 fi
11480fi
11481fi
11482fi
11483CC=$ac_cv_prog_CC
11484if test -n "$CC"; then
11485 echo "$as_me:$LINENO: result: $CC" >&5
11486echo "${ECHO_T}$CC" >&6
11487else
11488 echo "$as_me:$LINENO: result: no" >&5
11489echo "${ECHO_T}no" >&6
11490fi
11491
11492fi
11493if test -z "$CC"; then
11494 if test -n "$ac_tool_prefix"; then
11495 for ac_prog in cl
11496 do
11497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11499echo "$as_me:$LINENO: checking for $ac_word" >&5
11500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11501if test "${ac_cv_prog_CC+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503else
11504 if test -n "$CC"; then
11505 ac_cv_prog_CC="$CC" # Let the user override the test.
11506else
11507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508for as_dir in $PATH
11509do
11510 IFS=$as_save_IFS
11511 test -z "$as_dir" && as_dir=.
11512 for ac_exec_ext in '' $ac_executable_extensions; do
11513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 break 2
11517 fi
11518done
11519done
11520
11521fi
11522fi
11523CC=$ac_cv_prog_CC
11524if test -n "$CC"; then
11525 echo "$as_me:$LINENO: result: $CC" >&5
11526echo "${ECHO_T}$CC" >&6
11527else
11528 echo "$as_me:$LINENO: result: no" >&5
11529echo "${ECHO_T}no" >&6
11530fi
11531
11532 test -n "$CC" && break
11533 done
11534fi
11535if test -z "$CC"; then
11536 ac_ct_CC=$CC
11537 for ac_prog in cl
11538do
11539 # Extract the first word of "$ac_prog", so it can be a program name with args.
11540set dummy $ac_prog; ac_word=$2
11541echo "$as_me:$LINENO: checking for $ac_word" >&5
11542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11543if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545else
11546 if test -n "$ac_ct_CC"; then
11547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11548else
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_ac_ct_CC="$ac_prog"
11557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11559 fi
11560done
11561done
11562
11563fi
11564fi
11565ac_ct_CC=$ac_cv_prog_ac_ct_CC
11566if test -n "$ac_ct_CC"; then
11567 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11568echo "${ECHO_T}$ac_ct_CC" >&6
11569else
11570 echo "$as_me:$LINENO: result: no" >&5
11571echo "${ECHO_T}no" >&6
11572fi
11573
11574 test -n "$ac_ct_CC" && break
11575done
11576
11577 CC=$ac_ct_CC
11578fi
11579
11580fi
11581
11582
11583test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11584See \`config.log' for more details." >&5
11585echo "$as_me: error: no acceptable C compiler found in \$PATH
11586See \`config.log' for more details." >&2;}
11587 { (exit 1); exit 1; }; }
11588
11589# Provide some information about the compiler.
11590echo "$as_me:$LINENO:" \
11591 "checking for C compiler version" >&5
11592ac_compiler=`set X $ac_compile; echo $2`
11593{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11594 (eval $ac_compiler --version </dev/null >&5) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }
11598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11599 (eval $ac_compiler -v </dev/null >&5) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }
11603{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11604 (eval $ac_compiler -V </dev/null >&5) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }
11608
11609cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615
11616int
11617main ()
11618{
11619
11620 ;
11621 return 0;
11622}
11623_ACEOF
11624ac_clean_files_save=$ac_clean_files
11625ac_clean_files="$ac_clean_files a.out a.exe b.out"
11626# Try to create an executable without -o first, disregard a.out.
11627# It will help us diagnose broken compilers, and finding out an intuition
11628# of exeext.
ac1cb8d3
VS
11629echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11630echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11631ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11632if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11633 (eval $ac_link_default) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; then
11637 # Find the output, starting from the most likely. This scheme is
11638# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11639# resort.
11640
11641# Be careful to initialize this variable, since it used to be cached.
11642# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11643ac_cv_exeext=
11644# b.out is created by i960 compilers.
11645for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11646do
11647 test -f "$ac_file" || continue
11648 case $ac_file in
11649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11650 ;;
a848cd7e 11651 conftest.$ac_ext )
ac1cb8d3
VS
11652 # This is the source file.
11653 ;;
a848cd7e 11654 [ab].out )
ac1cb8d3
VS
11655 # We found the default executable, but exeext='' is most
11656 # certainly right.
11657 break;;
a848cd7e 11658 *.* )
ac1cb8d3
VS
11659 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11660 # FIXME: I believe we export ac_cv_exeext for Libtool,
11661 # but it would be cool to find out if it's true. Does anybody
11662 # maintain Libtool? --akim.
11663 export ac_cv_exeext
11664 break;;
a848cd7e 11665 * )
ac1cb8d3 11666 break;;
a848cd7e
SC
11667 esac
11668done
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11674See \`config.log' for more details." >&5
11675echo "$as_me: error: C compiler cannot create executables
11676See \`config.log' for more details." >&2;}
11677 { (exit 77); exit 77; }; }
11678fi
11679
11680ac_exeext=$ac_cv_exeext
11681echo "$as_me:$LINENO: result: $ac_file" >&5
11682echo "${ECHO_T}$ac_file" >&6
11683
11684# Check the compiler produces executables we can run. If not, either
11685# the compiler is broken, or we cross compile.
11686echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11687echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11688# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11689# If not cross compiling, check that we can run a simple program.
11690if test "$cross_compiling" != yes; then
11691 if { ac_try='./$ac_file'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 cross_compiling=no
11698 else
11699 if test "$cross_compiling" = maybe; then
11700 cross_compiling=yes
11701 else
11702 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11703If you meant to cross compile, use \`--host'.
11704See \`config.log' for more details." >&5
11705echo "$as_me: error: cannot run C compiled programs.
11706If you meant to cross compile, use \`--host'.
11707See \`config.log' for more details." >&2;}
11708 { (exit 1); exit 1; }; }
11709 fi
11710 fi
11711fi
11712echo "$as_me:$LINENO: result: yes" >&5
11713echo "${ECHO_T}yes" >&6
11714
11715rm -f a.out a.exe conftest$ac_cv_exeext b.out
11716ac_clean_files=$ac_clean_files_save
11717# Check the compiler produces executables we can run. If not, either
11718# the compiler is broken, or we cross compile.
11719echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11720echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11721echo "$as_me:$LINENO: result: $cross_compiling" >&5
11722echo "${ECHO_T}$cross_compiling" >&6
11723
11724echo "$as_me:$LINENO: checking for suffix of executables" >&5
11725echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; then
11731 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11732# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11733# work properly (i.e., refer to `conftest.exe'), while it won't with
11734# `rm'.
11735for ac_file in conftest.exe conftest conftest.*; do
11736 test -f "$ac_file" || continue
11737 case $ac_file in
11738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11739 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11740 export ac_cv_exeext
11741 break;;
a848cd7e
SC
11742 * ) break;;
11743 esac
11744done
11745else
11746 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11747See \`config.log' for more details." >&5
11748echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11749See \`config.log' for more details." >&2;}
11750 { (exit 1); exit 1; }; }
11751fi
11752
11753rm -f conftest$ac_cv_exeext
11754echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11755echo "${ECHO_T}$ac_cv_exeext" >&6
11756
11757rm -f conftest.$ac_ext
11758EXEEXT=$ac_cv_exeext
11759ac_exeext=$EXEEXT
11760echo "$as_me:$LINENO: checking for suffix of object files" >&5
11761echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11762if test "${ac_cv_objext+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
11765 cat >conftest.$ac_ext <<_ACEOF
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
11771
11772int
11773main ()
11774{
11775
11776 ;
11777 return 0;
11778}
11779_ACEOF
11780rm -f conftest.o conftest.obj
11781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11782 (eval $ac_compile) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; then
11786 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11787 case $ac_file in
11788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11790 break;;
11791 esac
11792done
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11798See \`config.log' for more details." >&5
11799echo "$as_me: error: cannot compute suffix of object files: cannot compile
11800See \`config.log' for more details." >&2;}
11801 { (exit 1); exit 1; }; }
11802fi
11803
11804rm -f conftest.$ac_cv_objext conftest.$ac_ext
11805fi
11806echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11807echo "${ECHO_T}$ac_cv_objext" >&6
11808OBJEXT=$ac_cv_objext
11809ac_objext=$OBJEXT
11810echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11811echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11812if test "${ac_cv_c_compiler_gnu+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
11815 cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h. */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h. */
11821
11822int
11823main ()
11824{
11825#ifndef __GNUC__
11826 choke me
11827#endif
11828
11829 ;
11830 return 0;
11831}
11832_ACEOF
11833rm -f conftest.$ac_objext
11834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11835 (eval $ac_compile) 2>conftest.er1
a848cd7e 11836 ac_status=$?
ac1cb8d3
VS
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
a848cd7e
SC
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
6954625c 11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_compiler_gnu=yes
11855else
11856 echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
11859ac_compiler_gnu=no
11860fi
ac1cb8d3 11861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11862ac_cv_c_compiler_gnu=$ac_compiler_gnu
11863
11864fi
11865echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11866echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11867GCC=`test $ac_compiler_gnu = yes && echo yes`
11868ac_test_CFLAGS=${CFLAGS+set}
11869ac_save_CFLAGS=$CFLAGS
8aeeb05c 11870CFLAGS="-g"
a848cd7e
SC
11871echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11872echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11873if test "${ac_cv_prog_cc_g+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875else
11876 cat >conftest.$ac_ext <<_ACEOF
11877/* confdefs.h. */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h. */
11882
11883int
11884main ()
11885{
11886
11887 ;
11888 return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11893 (eval $ac_compile) 2>conftest.er1
a848cd7e 11894 ac_status=$?
ac1cb8d3
VS
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
a848cd7e
SC
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
6954625c 11900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_prog_cc_g=yes
11913else
11914 echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917ac_cv_prog_cc_g=no
11918fi
ac1cb8d3 11919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11920fi
11921echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11922echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11923if test "$ac_test_CFLAGS" = set; then
11924 CFLAGS=$ac_save_CFLAGS
11925elif test $ac_cv_prog_cc_g = yes; then
11926 if test "$GCC" = yes; then
11927 CFLAGS="-g -O2"
11928 else
11929 CFLAGS="-g"
11930 fi
11931else
11932 if test "$GCC" = yes; then
11933 CFLAGS="-O2"
11934 else
11935 CFLAGS=
11936 fi
11937fi
11938echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11939echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11940if test "${ac_cv_prog_cc_stdc+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942else
11943 ac_cv_prog_cc_stdc=no
11944ac_save_CC=$CC
11945cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951#include <stdarg.h>
11952#include <stdio.h>
11953#include <sys/types.h>
11954#include <sys/stat.h>
11955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11956struct buf { int x; };
11957FILE * (*rcsopen) (struct buf *, struct stat *, int);
11958static char *e (p, i)
11959 char **p;
11960 int i;
11961{
11962 return p[i];
11963}
11964static char *f (char * (*g) (char **, int), char **p, ...)
11965{
11966 char *s;
11967 va_list v;
11968 va_start (v,p);
11969 s = g (p, va_arg (v,int));
11970 va_end (v);
11971 return s;
11972}
ac1cb8d3
VS
11973
11974/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11975 function prototypes and stuff, but not '\xHH' hex character constants.
11976 These don't provoke an error unfortunately, instead are silently treated
11977 as 'x'. The following induces an error, until -std1 is added to get
11978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11979 array size at least. It's necessary to write '\x00'==0 to get something
11980 that's true only with -std1. */
11981int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11982
a848cd7e
SC
11983int test (int i, double x);
11984struct s1 {int (*f) (int a);};
11985struct s2 {int (*f) (double a);};
11986int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11987int argc;
11988char **argv;
11989int
11990main ()
11991{
11992return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11993 ;
11994 return 0;
11995}
11996_ACEOF
11997# Don't try gcc -ansi; that turns off useful extensions and
11998# breaks some systems' header files.
11999# AIX -qlanglvl=ansi
12000# Ultrix and OSF/1 -std1
12001# HP-UX 10.20 and later -Ae
12002# HP-UX older versions -Aa -D_HPUX_SOURCE
12003# SVR4 -Xc -D__EXTENSIONS__
12004for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12005do
12006 CC="$ac_save_CC $ac_arg"
12007 rm -f conftest.$ac_objext
12008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12009 (eval $ac_compile) 2>conftest.er1
a848cd7e 12010 ac_status=$?
ac1cb8d3
VS
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
a848cd7e
SC
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
6954625c 12016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_prog_cc_stdc=$ac_arg
12029break
12030else
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034fi
ac1cb8d3 12035rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12036done
12037rm -f conftest.$ac_ext conftest.$ac_objext
12038CC=$ac_save_CC
12039
12040fi
12041
12042case "x$ac_cv_prog_cc_stdc" in
12043 x|xno)
12044 echo "$as_me:$LINENO: result: none needed" >&5
12045echo "${ECHO_T}none needed" >&6 ;;
12046 *)
12047 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12048echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12049 CC="$CC $ac_cv_prog_cc_stdc" ;;
12050esac
12051
12052# Some people use a C++ compiler to compile C. Since we use `exit',
12053# in C++ we need to declare it. In case someone uses the same compiler
12054# for both compiling C and C++ we need to have the C++ compiler decide
12055# the declaration of exit, since it's the most demanding environment.
12056cat >conftest.$ac_ext <<_ACEOF
12057#ifndef __cplusplus
12058 choke me
12059#endif
12060_ACEOF
12061rm -f conftest.$ac_objext
12062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12063 (eval $ac_compile) 2>conftest.er1
a848cd7e 12064 ac_status=$?
ac1cb8d3
VS
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
a848cd7e
SC
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
6954625c 12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 for ac_declaration in \
ac1cb8d3 12083 '' \
a848cd7e
SC
12084 'extern "C" void std::exit (int) throw (); using std::exit;' \
12085 'extern "C" void std::exit (int); using std::exit;' \
12086 'extern "C" void exit (int) throw ();' \
12087 'extern "C" void exit (int);' \
12088 'void exit (int);'
12089do
12090 cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
de59c161 12096$ac_declaration
ac1cb8d3 12097#include <stdlib.h>
a848cd7e
SC
12098int
12099main ()
12100{
12101exit (42);
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext
12107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12108 (eval $ac_compile) 2>conftest.er1
a848cd7e 12109 ac_status=$?
ac1cb8d3
VS
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
a848cd7e
SC
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
6954625c 12115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 :
12128else
12129 echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132continue
12133fi
ac1cb8d3 12134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12135 cat >conftest.$ac_ext <<_ACEOF
12136/* confdefs.h. */
12137_ACEOF
12138cat confdefs.h >>conftest.$ac_ext
12139cat >>conftest.$ac_ext <<_ACEOF
12140/* end confdefs.h. */
12141$ac_declaration
12142int
12143main ()
12144{
12145exit (42);
12146 ;
12147 return 0;
12148}
12149_ACEOF
12150rm -f conftest.$ac_objext
12151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12152 (eval $ac_compile) 2>conftest.er1
a848cd7e 12153 ac_status=$?
ac1cb8d3
VS
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
a848cd7e
SC
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
6954625c 12159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 break
12172else
12173 echo "$as_me: failed program was:" >&5
12174sed 's/^/| /' conftest.$ac_ext >&5
12175
12176fi
ac1cb8d3 12177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12178done
12179rm -f conftest*
12180if test -n "$ac_declaration"; then
12181 echo '#ifdef __cplusplus' >>confdefs.h
12182 echo $ac_declaration >>confdefs.h
12183 echo '#endif' >>confdefs.h
12184fi
12185
12186else
12187 echo "$as_me: failed program was:" >&5
12188sed 's/^/| /' conftest.$ac_ext >&5
12189
12190fi
ac1cb8d3 12191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12192ac_ext=c
12193ac_cpp='$CPP $CPPFLAGS'
12194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
ab0ad5f1
VZ
12198
12199
12200 ac_ext=c
12201ac_cpp='$CPP $CPPFLAGS'
12202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204ac_compiler_gnu=$ac_cv_c_compiler_gnu
12205
12206 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12207echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12208if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211 cat >conftest.$ac_ext <<_ACEOF
12212/* confdefs.h. */
12213_ACEOF
12214cat confdefs.h >>conftest.$ac_ext
12215cat >>conftest.$ac_ext <<_ACEOF
12216/* end confdefs.h. */
12217
12218int
12219main ()
12220{
12221
12222 #ifndef __INTEL_COMPILER
12223 choke me
12224 #endif
12225
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230rm -f conftest.$ac_objext
12231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>conftest.er1
12233 ac_status=$?
12234 grep -v '^ *+' conftest.er1 >conftest.err
12235 rm -f conftest.er1
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
6954625c 12239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12252else
12253 echo "$as_me: failed program was:" >&5
12254sed 's/^/| /' conftest.$ac_ext >&5
12255
12256bakefile_cv_c_compiler___INTEL_COMPILER=no
12257
12258fi
12259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12260
12261
12262fi
12263echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12264echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12265 ac_ext=c
12266ac_cpp='$CPP $CPPFLAGS'
12267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12269ac_compiler_gnu=$ac_cv_c_compiler_gnu
12270
12271 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12272 :; INTELCC=yes
12273 else
12274 :;
12275 fi
12276
12277
12278 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12279 if test "xCC" = "xC"; then
12280 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12281echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12282if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12284else
12285 cat >conftest.$ac_ext <<_ACEOF
12286/* confdefs.h. */
12287_ACEOF
12288cat confdefs.h >>conftest.$ac_ext
12289cat >>conftest.$ac_ext <<_ACEOF
12290/* end confdefs.h. */
12291
12292int
12293main ()
12294{
12295
12296 ;
12297 return 0;
12298}
12299_ACEOF
12300rm -f conftest.$ac_objext conftest.$ac_ext.o
12301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12302 (eval $ac_compile) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; then
12306 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12307 case $ac_file in
12308 conftest.$ac_ext.o)
0093c2fc 12309 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12310 ;;
12311 *)
12312 ;;
12313 esac
12314done
12315else
12316 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12317See \`config.log' for more details." >&5
12318echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12319See \`config.log' for more details." >&2;}
12320 { (exit 1); exit 1; }; }
12321
12322fi
12323
12324rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12325
12326fi
0093c2fc
VZ
12327echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12328echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12329if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12330 if test "c" = "c"; then
0093c2fc 12331 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12332 fi
12333 if test "c" = "cxx"; then
0093c2fc 12334 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12335 fi
12336fi
12337
0093c2fc 12338 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12339 unset ac_cv_prog_cc_g
12340 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12341ac_save_CFLAGS=$CFLAGS
8aeeb05c 12342CFLAGS="-g"
480ccd21
DE
12343echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12344echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12345if test "${ac_cv_prog_cc_g+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347else
12348 cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
12354
12355int
12356main ()
12357{
12358
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363rm -f conftest.$ac_objext
12364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
6954625c 12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_prog_cc_g=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
12389ac_cv_prog_cc_g=no
12390fi
12391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392fi
12393echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12394echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12395if test "$ac_test_CFLAGS" = set; then
12396 CFLAGS=$ac_save_CFLAGS
12397elif test $ac_cv_prog_cc_g = yes; then
12398 if test "$GCC" = yes; then
12399 CFLAGS="-g -O2"
12400 else
12401 CFLAGS="-g"
12402 fi
12403else
12404 if test "$GCC" = yes; then
12405 CFLAGS="-O2"
12406 else
12407 CFLAGS=
12408 fi
12409fi
3006edc0 12410 fi
ab0ad5f1 12411 fi
3006edc0
VZ
12412
12413 case `uname -s` in
12414 AIX*)
12415 ac_ext=c
12416ac_cpp='$CPP $CPPFLAGS'
12417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420
12421echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12422echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12423if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425else
12426 cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432
12433int
12434main ()
12435{
12436#ifndef __xlC__
12437 choke me
12438#endif
12439
12440 ;
12441 return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12446 (eval $ac_compile) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
6954625c 12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
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); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
0093c2fc 12465 bakefile_compiler_xlc=yes
3006edc0
VZ
12466else
12467 echo "$as_me: failed program was:" >&5
12468sed 's/^/| /' conftest.$ac_ext >&5
12469
0093c2fc 12470bakefile_compiler_xlc=no
3006edc0
VZ
12471fi
12472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12473 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12474
12475fi
0093c2fc
VZ
12476echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12477echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12478
0093c2fc 12479XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12480ac_ext=c
12481ac_cpp='$CPP $CPPFLAGS'
12482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485
12486
12487 ;;
12488
12489 Darwin)
12490 ac_ext=c
95986553
DE
12491ac_cpp='$CPP $CPPFLAGS'
12492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12494ac_compiler_gnu=$ac_cv_c_compiler_gnu
12495
12496echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12497echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12498if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 cat >conftest.$ac_ext <<_ACEOF
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507
12508int
12509main ()
12510{
12511#ifndef __MWERKS__
12512 choke me
12513#endif
12514
12515 ;
12516 return 0;
12517}
12518_ACEOF
12519rm -f conftest.$ac_objext
12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
6954625c 12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 bakefile_compiler_mwerks=yes
12541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545bakefile_compiler_mwerks=no
12546fi
12547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12548 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12549
12550fi
12551echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12552echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12553
0e6fa1d9 12554MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12555ac_ext=c
12556ac_cpp='$CPP $CPPFLAGS'
12557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559ac_compiler_gnu=$ac_cv_c_compiler_gnu
12560
12561
3006edc0 12562 ac_ext=c
9273ffba
DE
12563ac_cpp='$CPP $CPPFLAGS'
12564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_c_compiler_gnu
12567
12568echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12569echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12570if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573 cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
12579
12580int
12581main ()
12582{
12583#ifndef __xlC__
12584 choke me
12585#endif
12586
12587 ;
12588 return 0;
12589}
12590_ACEOF
12591rm -f conftest.$ac_objext
12592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
6954625c 12600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
0093c2fc 12612 bakefile_compiler_xlc=yes
9273ffba
DE
12613else
12614 echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
0093c2fc 12617bakefile_compiler_xlc=no
9273ffba
DE
12618fi
12619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12620 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12621
12622fi
0093c2fc
VZ
12623echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12624echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12625
0093c2fc 12626XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12627ac_ext=c
12628ac_cpp='$CPP $CPPFLAGS'
12629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12631ac_compiler_gnu=$ac_cv_c_compiler_gnu
12632
12633
3006edc0
VZ
12634 ;;
12635
12636 IRIX*)
a848cd7e 12637
6dcfc289 12638
0ad5d837
VZ
12639 ac_ext=c
12640ac_cpp='$CPP $CPPFLAGS'
12641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12643ac_compiler_gnu=$ac_cv_c_compiler_gnu
12644
12645 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12646echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12647if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649else
12650 cat >conftest.$ac_ext <<_ACEOF
12651/* confdefs.h. */
12652_ACEOF
12653cat confdefs.h >>conftest.$ac_ext
12654cat >>conftest.$ac_ext <<_ACEOF
12655/* end confdefs.h. */
12656
12657int
12658main ()
12659{
12660
12661 #ifndef _SGI_COMPILER_VERSION
12662 choke me
12663 #endif
12664
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669rm -f conftest.$ac_objext
12670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
6954625c 12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12696
12697fi
12698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699
12700
12701fi
12702echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12703echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12704 ac_ext=c
12705ac_cpp='$CPP $CPPFLAGS'
12706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12711 :; SGICC=yes
12712 else
12713 :;
12714 fi
12715
12716
3006edc0
VZ
12717 ;;
12718
0093c2fc 12719 HP-UX*)
3006edc0
VZ
12720
12721
12722 ac_ext=c
12723ac_cpp='$CPP $CPPFLAGS'
12724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726ac_compiler_gnu=$ac_cv_c_compiler_gnu
12727
0093c2fc
VZ
12728 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12729echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12730if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732else
12733 cat >conftest.$ac_ext <<_ACEOF
12734/* confdefs.h. */
12735_ACEOF
12736cat confdefs.h >>conftest.$ac_ext
12737cat >>conftest.$ac_ext <<_ACEOF
12738/* end confdefs.h. */
12739
12740int
12741main ()
12742{
12743
0093c2fc 12744 #ifndef __HP_cc
3006edc0
VZ
12745 choke me
12746 #endif
12747
12748 ;
12749 return 0;
12750}
12751_ACEOF
12752rm -f conftest.$ac_objext
12753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12754 (eval $ac_compile) 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
6954625c 12761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
0093c2fc 12773 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12774else
12775 echo "$as_me: failed program was:" >&5
12776sed 's/^/| /' conftest.$ac_ext >&5
12777
0093c2fc 12778bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12779
12780fi
12781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12782
12783
12784fi
0093c2fc
VZ
12785echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12786echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12787 ac_ext=c
12788ac_cpp='$CPP $CPPFLAGS'
12789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12791ac_compiler_gnu=$ac_cv_c_compiler_gnu
12792
0093c2fc
VZ
12793 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12794 :; HPCC=yes
a1aa0349
VZ
12795 else
12796 :;
12797 fi
12798
12799
12800 ;;
12801
0093c2fc 12802 OSF1)
a1aa0349
VZ
12803
12804
12805 ac_ext=c
12806ac_cpp='$CPP $CPPFLAGS'
12807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12809ac_compiler_gnu=$ac_cv_c_compiler_gnu
12810
0093c2fc
VZ
12811 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12812echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12813if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815else
12816 cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822
12823int
12824main ()
12825{
12826
0093c2fc 12827 #ifndef __DECC
a1aa0349
VZ
12828 choke me
12829 #endif
12830
12831 ;
12832 return 0;
12833}
12834_ACEOF
12835rm -f conftest.$ac_objext
12836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
6954625c 12844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
0093c2fc 12856 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
0093c2fc 12861bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12862
12863fi
12864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12865
12866
12867fi
0093c2fc
VZ
12868echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12869echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12870 ac_ext=c
12871ac_cpp='$CPP $CPPFLAGS'
12872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875
0093c2fc
VZ
12876 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12877 :; COMPAQCC=yes
12878 else
12879 :;
12880 fi
12881
12882
12883 ;;
12884
12885 SunOS)
12886
12887
12888 ac_ext=c
12889ac_cpp='$CPP $CPPFLAGS'
12890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892ac_compiler_gnu=$ac_cv_c_compiler_gnu
12893
12894 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12895echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12896if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899 cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h. */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h. */
12905
12906int
12907main ()
12908{
12909
12910 #ifndef __SUNPRO_C
12911 choke me
12912 #endif
12913
12914 ;
12915 return 0;
12916}
12917_ACEOF
12918rm -f conftest.$ac_objext
12919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12920 (eval $ac_compile) 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
6954625c 12927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 bakefile_cv_c_compiler___SUNPRO_C=yes
12940else
12941 echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944bakefile_cv_c_compiler___SUNPRO_C=no
12945
12946fi
12947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12948
12949
12950fi
12951echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12952echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12953 ac_ext=c
12954ac_cpp='$CPP $CPPFLAGS'
12955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12960 :; SUNCC=yes
3006edc0
VZ
12961 else
12962 :;
12963 fi
12964
12965
12966 ;;
12967 esac
ab0ad5f1 12968 fi
a9e5b1f0
MW
12969
12970
3006edc0 12971
a848cd7e
SC
12972ac_ext=c
12973ac_cpp='$CPP $CPPFLAGS'
12974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12978echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12979# On Suns, sometimes $CPP names a directory.
12980if test -n "$CPP" && test -d "$CPP"; then
12981 CPP=
12982fi
12983if test -z "$CPP"; then
12984 if test "${ac_cv_prog_CPP+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 # Double quotes because CPP needs to be expanded
12988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12989 do
12990 ac_preproc_ok=false
12991for ac_c_preproc_warn_flag in '' yes
12992do
12993 # Use a header file that comes with gcc, so configuring glibc
12994 # with a fresh cross-compiler works.
12995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 # <limits.h> exists even on freestanding compilers.
12997 # On the NeXT, cc -E runs the code through the compiler's parser,
12998 # not just through cpp. "Syntax error" is here to catch this case.
12999 cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h. */
13005#ifdef __STDC__
13006# include <limits.h>
13007#else
13008# include <assert.h>
13009#endif
ac1cb8d3 13010 Syntax error
a848cd7e
SC
13011_ACEOF
13012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } >/dev/null; then
13020 if test -s conftest.err; then
13021 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13023 else
13024 ac_cpp_err=
13025 fi
13026else
13027 ac_cpp_err=yes
13028fi
13029if test -z "$ac_cpp_err"; then
13030 :
13031else
13032 echo "$as_me: failed program was:" >&5
13033sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 # Broken: fails on valid input.
13036continue
13037fi
13038rm -f conftest.err conftest.$ac_ext
13039
13040 # OK, works on sane cases. Now check whether non-existent headers
13041 # can be detected and how.
13042 cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048#include <ac_nonexistent.h>
13049_ACEOF
13050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev/null; then
13058 if test -s conftest.err; then
13059 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13061 else
13062 ac_cpp_err=
13063 fi
13064else
13065 ac_cpp_err=yes
13066fi
13067if test -z "$ac_cpp_err"; then
13068 # Broken: success on invalid input.
13069continue
13070else
13071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 # Passes both tests.
13075ac_preproc_ok=:
13076break
13077fi
13078rm -f conftest.err conftest.$ac_ext
13079
13080done
13081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13082rm -f conftest.err conftest.$ac_ext
13083if $ac_preproc_ok; then
13084 break
13085fi
13086
13087 done
13088 ac_cv_prog_CPP=$CPP
13089
13090fi
13091 CPP=$ac_cv_prog_CPP
13092else
13093 ac_cv_prog_CPP=$CPP
13094fi
13095echo "$as_me:$LINENO: result: $CPP" >&5
13096echo "${ECHO_T}$CPP" >&6
13097ac_preproc_ok=false
13098for ac_c_preproc_warn_flag in '' yes
13099do
13100 # Use a header file that comes with gcc, so configuring glibc
13101 # with a fresh cross-compiler works.
13102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13103 # <limits.h> exists even on freestanding compilers.
13104 # On the NeXT, cc -E runs the code through the compiler's parser,
13105 # not just through cpp. "Syntax error" is here to catch this case.
13106 cat >conftest.$ac_ext <<_ACEOF
13107/* confdefs.h. */
13108_ACEOF
13109cat confdefs.h >>conftest.$ac_ext
13110cat >>conftest.$ac_ext <<_ACEOF
13111/* end confdefs.h. */
13112#ifdef __STDC__
13113# include <limits.h>
13114#else
13115# include <assert.h>
13116#endif
ac1cb8d3 13117 Syntax error
a848cd7e
SC
13118_ACEOF
13119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } >/dev/null; then
13127 if test -s conftest.err; then
13128 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13130 else
13131 ac_cpp_err=
13132 fi
13133else
13134 ac_cpp_err=yes
13135fi
13136if test -z "$ac_cpp_err"; then
13137 :
13138else
13139 echo "$as_me: failed program was:" >&5
13140sed 's/^/| /' conftest.$ac_ext >&5
13141
13142 # Broken: fails on valid input.
13143continue
13144fi
13145rm -f conftest.err conftest.$ac_ext
13146
13147 # OK, works on sane cases. Now check whether non-existent headers
13148 # can be detected and how.
13149 cat >conftest.$ac_ext <<_ACEOF
13150/* confdefs.h. */
13151_ACEOF
13152cat confdefs.h >>conftest.$ac_ext
13153cat >>conftest.$ac_ext <<_ACEOF
13154/* end confdefs.h. */
13155#include <ac_nonexistent.h>
13156_ACEOF
13157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } >/dev/null; then
13165 if test -s conftest.err; then
13166 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13168 else
13169 ac_cpp_err=
13170 fi
13171else
13172 ac_cpp_err=yes
13173fi
13174if test -z "$ac_cpp_err"; then
13175 # Broken: success on invalid input.
13176continue
13177else
13178 echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 # Passes both tests.
13182ac_preproc_ok=:
13183break
13184fi
13185rm -f conftest.err conftest.$ac_ext
13186
13187done
13188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13189rm -f conftest.err conftest.$ac_ext
13190if $ac_preproc_ok; then
13191 :
13192else
13193 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13194See \`config.log' for more details." >&5
13195echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13196See \`config.log' for more details." >&2;}
13197 { (exit 1); exit 1; }; }
13198fi
13199
13200ac_ext=c
13201ac_cpp='$CPP $CPPFLAGS'
13202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13204ac_compiler_gnu=$ac_cv_c_compiler_gnu
13205
13206
13207echo "$as_me:$LINENO: checking for egrep" >&5
13208echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13209if test "${ac_cv_prog_egrep+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211else
13212 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13213 then ac_cv_prog_egrep='grep -E'
13214 else ac_cv_prog_egrep='egrep'
13215 fi
13216fi
13217echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13218echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13219 EGREP=$ac_cv_prog_egrep
13220
13221
13222if test $ac_cv_c_compiler_gnu = yes; then
13223 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13224echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13225if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227else
13228 ac_pattern="Autoconf.*'x'"
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235#include <sgtty.h>
13236Autoconf TIOCGETP
13237_ACEOF
13238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13239 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13240 ac_cv_prog_gcc_traditional=yes
13241else
13242 ac_cv_prog_gcc_traditional=no
13243fi
13244rm -f conftest*
13245
13246
13247 if test $ac_cv_prog_gcc_traditional = no; then
13248 cat >conftest.$ac_ext <<_ACEOF
13249/* confdefs.h. */
13250_ACEOF
13251cat confdefs.h >>conftest.$ac_ext
13252cat >>conftest.$ac_ext <<_ACEOF
13253/* end confdefs.h. */
13254#include <termio.h>
13255Autoconf TCGETA
13256_ACEOF
13257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13258 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13259 ac_cv_prog_gcc_traditional=yes
13260fi
13261rm -f conftest*
13262
13263 fi
13264fi
13265echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13266echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13267 if test $ac_cv_prog_gcc_traditional = yes; then
13268 CC="$CC -traditional"
13269 fi
13270fi
13271
13272
a848cd7e
SC
13273ac_ext=cc
13274ac_cpp='$CXXCPP $CPPFLAGS'
13275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13278
13279
13280CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13281
13282
3006edc0 13283
6dcfc289 13284 ac_ext=cc
a848cd7e
SC
13285ac_cpp='$CXXCPP $CPPFLAGS'
13286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13289if test -n "$ac_tool_prefix"; then
13290 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13291 do
13292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13294echo "$as_me:$LINENO: checking for $ac_word" >&5
13295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13296if test "${ac_cv_prog_CXX+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298else
13299 if test -n "$CXX"; then
13300 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13301else
13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13312 fi
13313done
13314done
13315
13316fi
13317fi
13318CXX=$ac_cv_prog_CXX
13319if test -n "$CXX"; then
13320 echo "$as_me:$LINENO: result: $CXX" >&5
13321echo "${ECHO_T}$CXX" >&6
13322else
13323 echo "$as_me:$LINENO: result: no" >&5
13324echo "${ECHO_T}no" >&6
13325fi
13326
13327 test -n "$CXX" && break
13328 done
13329fi
13330if test -z "$CXX"; then
13331 ac_ct_CXX=$CXX
13332 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13333do
13334 # Extract the first word of "$ac_prog", so it can be a program name with args.
13335set dummy $ac_prog; ac_word=$2
13336echo "$as_me:$LINENO: checking for $ac_word" >&5
13337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13338if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340else
13341 if test -n "$ac_ct_CXX"; then
13342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13343else
13344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345for as_dir in $PATH
13346do
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_prog_ac_ct_CXX="$ac_prog"
13352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13354 fi
13355done
13356done
13357
13358fi
13359fi
13360ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13361if test -n "$ac_ct_CXX"; then
13362 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13363echo "${ECHO_T}$ac_ct_CXX" >&6
13364else
13365 echo "$as_me:$LINENO: result: no" >&5
13366echo "${ECHO_T}no" >&6
13367fi
13368
13369 test -n "$ac_ct_CXX" && break
13370done
13371test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13372
13373 CXX=$ac_ct_CXX
13374fi
13375
13376
13377# Provide some information about the compiler.
13378echo "$as_me:$LINENO:" \
13379 "checking for C++ compiler version" >&5
13380ac_compiler=`set X $ac_compile; echo $2`
13381{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13382 (eval $ac_compiler --version </dev/null >&5) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }
13386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13387 (eval $ac_compiler -v </dev/null >&5) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }
13391{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13392 (eval $ac_compiler -V </dev/null >&5) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }
13396
13397echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13398echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13399if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401else
13402 cat >conftest.$ac_ext <<_ACEOF
13403/* confdefs.h. */
13404_ACEOF
13405cat confdefs.h >>conftest.$ac_ext
13406cat >>conftest.$ac_ext <<_ACEOF
13407/* end confdefs.h. */
13408
13409int
13410main ()
13411{
13412#ifndef __GNUC__
13413 choke me
13414#endif
13415
13416 ;
13417 return 0;
13418}
13419_ACEOF
13420rm -f conftest.$ac_objext
13421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13422 (eval $ac_compile) 2>conftest.er1
a848cd7e 13423 ac_status=$?
ac1cb8d3
VS
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
a848cd7e
SC
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
6954625c 13429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_compiler_gnu=yes
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
13446ac_compiler_gnu=no
13447fi
ac1cb8d3 13448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13449ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13450
13451fi
13452echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13453echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13454GXX=`test $ac_compiler_gnu = yes && echo yes`
13455ac_test_CXXFLAGS=${CXXFLAGS+set}
13456ac_save_CXXFLAGS=$CXXFLAGS
13457CXXFLAGS="-g"
13458echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13459echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13460if test "${ac_cv_prog_cxx_g+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462else
13463 cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
13469
13470int
13471main ()
13472{
13473
13474 ;
13475 return 0;
13476}
13477_ACEOF
13478rm -f conftest.$ac_objext
13479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13480 (eval $ac_compile) 2>conftest.er1
a848cd7e 13481 ac_status=$?
ac1cb8d3
VS
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
a848cd7e
SC
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
6954625c 13487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_prog_cxx_g=yes
13500else
13501 echo "$as_me: failed program was:" >&5
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
13504ac_cv_prog_cxx_g=no
13505fi
ac1cb8d3 13506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13507fi
13508echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13509echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13510if test "$ac_test_CXXFLAGS" = set; then
13511 CXXFLAGS=$ac_save_CXXFLAGS
13512elif test $ac_cv_prog_cxx_g = yes; then
13513 if test "$GXX" = yes; then
8aeeb05c 13514 CXXFLAGS="-g -O2"
a848cd7e 13515 else
8aeeb05c 13516 CXXFLAGS="-g"
a848cd7e
SC
13517 fi
13518else
13519 if test "$GXX" = yes; then
13520 CXXFLAGS="-O2"
13521 else
13522 CXXFLAGS=
13523 fi
13524fi
13525for ac_declaration in \
ac1cb8d3 13526 '' \
a848cd7e
SC
13527 'extern "C" void std::exit (int) throw (); using std::exit;' \
13528 'extern "C" void std::exit (int); using std::exit;' \
13529 'extern "C" void exit (int) throw ();' \
13530 'extern "C" void exit (int);' \
13531 'void exit (int);'
13532do
13533 cat >conftest.$ac_ext <<_ACEOF
13534/* confdefs.h. */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h. */
de59c161 13539$ac_declaration
ac1cb8d3 13540#include <stdlib.h>
a848cd7e
SC
13541int
13542main ()
13543{
13544exit (42);
13545 ;
13546 return 0;
13547}
13548_ACEOF
13549rm -f conftest.$ac_objext
13550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13551 (eval $ac_compile) 2>conftest.er1
a848cd7e 13552 ac_status=$?
ac1cb8d3
VS
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
a848cd7e
SC
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
6954625c 13558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 :
13571else
13572 echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
13575continue
13576fi
ac1cb8d3 13577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13578 cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584$ac_declaration
13585int
13586main ()
13587{
13588exit (42);
13589 ;
13590 return 0;
13591}
13592_ACEOF
13593rm -f conftest.$ac_objext
13594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13595 (eval $ac_compile) 2>conftest.er1
a848cd7e 13596 ac_status=$?
ac1cb8d3
VS
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
a848cd7e
SC
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
6954625c 13602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 break
13615else
13616 echo "$as_me: failed program was:" >&5
13617sed 's/^/| /' conftest.$ac_ext >&5
13618
13619fi
ac1cb8d3 13620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13621done
13622rm -f conftest*
13623if test -n "$ac_declaration"; then
13624 echo '#ifdef __cplusplus' >>confdefs.h
13625 echo $ac_declaration >>confdefs.h
13626 echo '#endif' >>confdefs.h
13627fi
13628
13629ac_ext=cc
13630ac_cpp='$CXXCPP $CPPFLAGS'
13631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13634
ab0ad5f1
VZ
13635
13636
13637 ac_ext=cc
13638ac_cpp='$CXXCPP $CPPFLAGS'
13639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13642
13643 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13644echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13645if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647else
13648 cat >conftest.$ac_ext <<_ACEOF
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
13654
13655int
13656main ()
13657{
13658
13659 #ifndef __INTEL_COMPILER
13660 choke me
13661 #endif
13662
13663 ;
13664 return 0;
13665}
13666_ACEOF
13667rm -f conftest.$ac_objext
13668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
6954625c 13676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13689else
13690 echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
13693bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13694
13695fi
13696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13697
13698
13699fi
13700echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13701echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13702 ac_ext=cc
13703ac_cpp='$CXXCPP $CPPFLAGS'
13704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13707
13708 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13709 :; INTELCXX=yes
13710 else
13711 :;
13712 fi
13713
13714
3006edc0
VZ
13715 if test "x$GCXX" != "xyes"; then
13716 if test "xCXX" = "xC"; then
13717 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13718echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13719if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721else
13722 cat >conftest.$ac_ext <<_ACEOF
13723/* confdefs.h. */
13724_ACEOF
13725cat confdefs.h >>conftest.$ac_ext
13726cat >>conftest.$ac_ext <<_ACEOF
13727/* end confdefs.h. */
13728
13729int
13730main ()
13731{
13732
13733 ;
13734 return 0;
13735}
13736_ACEOF
13737rm -f conftest.$ac_objext conftest.$ac_ext.o
13738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; then
13743 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13744 case $ac_file in
13745 conftest.$ac_ext.o)
0093c2fc 13746 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13747 ;;
13748 *)
13749 ;;
13750 esac
13751done
13752else
13753 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13754See \`config.log' for more details." >&5
13755echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13756See \`config.log' for more details." >&2;}
13757 { (exit 1); exit 1; }; }
13758
13759fi
13760
13761rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13762
13763fi
0093c2fc
VZ
13764echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13765echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13766if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13767 if test "cxx" = "c"; then
0093c2fc 13768 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13769 fi
13770 if test "cxx" = "cxx"; then
0093c2fc 13771 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13772 fi
13773fi
13774
0093c2fc 13775 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13776 unset ac_cv_prog_cc_g
13777 ac_test_CFLAGS=${CFLAGS+set}
13778ac_save_CFLAGS=$CFLAGS
8aeeb05c 13779CFLAGS="-g"
3006edc0
VZ
13780echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13781echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13782if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784else
13785 cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791
13792int
13793main ()
13794{
13795
13796 ;
13797 return 0;
13798}
13799_ACEOF
13800rm -f conftest.$ac_objext
13801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802 (eval $ac_compile) 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
6954625c 13809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
3006edc0 13821 ac_cv_prog_cc_g=yes
480ccd21
DE
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
3006edc0 13826ac_cv_prog_cc_g=no
480ccd21
DE
13827fi
13828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13829fi
3006edc0
VZ
13830echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13831echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13832if test "$ac_test_CFLAGS" = set; then
13833 CFLAGS=$ac_save_CFLAGS
13834elif test $ac_cv_prog_cc_g = yes; then
13835 if test "$GCC" = yes; then
13836 CFLAGS="-g -O2"
480ccd21 13837 else
3006edc0 13838 CFLAGS="-g"
480ccd21
DE
13839 fi
13840else
3006edc0
VZ
13841 if test "$GCC" = yes; then
13842 CFLAGS="-O2"
480ccd21 13843 else
3006edc0 13844 CFLAGS=
480ccd21
DE
13845 fi
13846fi
3006edc0 13847 fi
ab0ad5f1 13848 fi
3006edc0
VZ
13849
13850 case `uname -s` in
13851 AIX*)
13852 ac_ext=cc
13853ac_cpp='$CXXCPP $CPPFLAGS'
13854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13857
13858echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13859echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13860if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862else
13863 cat >conftest.$ac_ext <<_ACEOF
13864/* confdefs.h. */
13865_ACEOF
13866cat confdefs.h >>conftest.$ac_ext
13867cat >>conftest.$ac_ext <<_ACEOF
13868/* end confdefs.h. */
13869
13870int
13871main ()
13872{
13873#ifndef __xlC__
13874 choke me
13875#endif
13876
13877 ;
13878 return 0;
13879}
13880_ACEOF
13881rm -f conftest.$ac_objext
13882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13883 (eval $ac_compile) 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
6954625c 13890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest.$ac_objext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
0093c2fc 13902 bakefile_compiler_xlc=yes
3006edc0
VZ
13903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
0093c2fc 13907bakefile_compiler_xlc=no
3006edc0
VZ
13908fi
13909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13910 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13911
13912fi
0093c2fc
VZ
13913echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13914echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13915
0093c2fc 13916XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13917ac_ext=cc
13918ac_cpp='$CXXCPP $CPPFLAGS'
13919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13922
13923
13924 ;;
13925
13926 Darwin)
13927 ac_ext=cc
95986553
DE
13928ac_cpp='$CXXCPP $CPPFLAGS'
13929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13932
13933echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13934echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13935if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937else
13938 cat >conftest.$ac_ext <<_ACEOF
13939/* confdefs.h. */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
13943/* end confdefs.h. */
13944
13945int
13946main ()
13947{
13948#ifndef __MWERKS__
13949 choke me
13950#endif
13951
13952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
6954625c 13965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest.$ac_objext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 bakefile_compiler_mwerks=yes
13978else
13979 echo "$as_me: failed program was:" >&5
13980sed 's/^/| /' conftest.$ac_ext >&5
13981
13982bakefile_compiler_mwerks=no
13983fi
13984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13985 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13986
13987fi
13988echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13989echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13990
0e6fa1d9 13991MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13992ac_ext=cc
13993ac_cpp='$CXXCPP $CPPFLAGS'
13994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13997
13998
3006edc0 13999 ac_ext=cc
9273ffba
DE
14000ac_cpp='$CXXCPP $CPPFLAGS'
14001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14004
14005echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14006echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14007if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009else
14010 cat >conftest.$ac_ext <<_ACEOF
14011/* confdefs.h. */
14012_ACEOF
14013cat confdefs.h >>conftest.$ac_ext
14014cat >>conftest.$ac_ext <<_ACEOF
14015/* end confdefs.h. */
14016
14017int
14018main ()
14019{
14020#ifndef __xlC__
14021 choke me
14022#endif
14023
14024 ;
14025 return 0;
14026}
14027_ACEOF
14028rm -f conftest.$ac_objext
14029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
6954625c 14037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
0093c2fc 14049 bakefile_compiler_xlc=yes
9273ffba
DE
14050else
14051 echo "$as_me: failed program was:" >&5
14052sed 's/^/| /' conftest.$ac_ext >&5
14053
0093c2fc 14054bakefile_compiler_xlc=no
9273ffba
DE
14055fi
14056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14057 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14058
14059fi
0093c2fc
VZ
14060echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14061echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14062
0093c2fc 14063XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14064ac_ext=cc
14065ac_cpp='$CXXCPP $CPPFLAGS'
14066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14069
14070
3006edc0
VZ
14071 ;;
14072
14073 IRIX*)
95986553 14074
6dcfc289 14075
0ad5d837
VZ
14076 ac_ext=cc
14077ac_cpp='$CXXCPP $CPPFLAGS'
14078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14081
14082 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14083echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14084if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086else
14087 cat >conftest.$ac_ext <<_ACEOF
14088/* confdefs.h. */
14089_ACEOF
14090cat confdefs.h >>conftest.$ac_ext
14091cat >>conftest.$ac_ext <<_ACEOF
14092/* end confdefs.h. */
14093
14094int
14095main ()
14096{
14097
14098 #ifndef _SGI_COMPILER_VERSION
14099 choke me
14100 #endif
14101
14102 ;
14103 return 0;
14104}
14105_ACEOF
14106rm -f conftest.$ac_objext
14107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
6954625c 14115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest.$ac_objext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14128else
14129 echo "$as_me: failed program was:" >&5
14130sed 's/^/| /' conftest.$ac_ext >&5
14131
14132bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14133
14134fi
14135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14136
14137
14138fi
14139echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14140echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14141 ac_ext=cc
14142ac_cpp='$CXXCPP $CPPFLAGS'
14143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14146
14147 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14148 :; SGICXX=yes
14149 else
14150 :;
14151 fi
14152
14153
3006edc0
VZ
14154 ;;
14155
0093c2fc 14156 HP-UX*)
3006edc0
VZ
14157
14158
14159 ac_ext=cc
14160ac_cpp='$CXXCPP $CPPFLAGS'
14161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14164
0093c2fc
VZ
14165 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14166echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14167if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14169else
14170 cat >conftest.$ac_ext <<_ACEOF
14171/* confdefs.h. */
14172_ACEOF
14173cat confdefs.h >>conftest.$ac_ext
14174cat >>conftest.$ac_ext <<_ACEOF
14175/* end confdefs.h. */
14176
14177int
14178main ()
14179{
14180
0093c2fc 14181 #ifndef __HP_aCC
3006edc0
VZ
14182 choke me
14183 #endif
14184
14185 ;
14186 return 0;
14187}
14188_ACEOF
14189rm -f conftest.$ac_objext
14190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14191 (eval $ac_compile) 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
6954625c 14198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest.$ac_objext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
0093c2fc 14210 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14211else
14212 echo "$as_me: failed program was:" >&5
14213sed 's/^/| /' conftest.$ac_ext >&5
14214
0093c2fc 14215bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14216
14217fi
14218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14219
14220
14221fi
0093c2fc
VZ
14222echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14223echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14224 ac_ext=cc
14225ac_cpp='$CXXCPP $CPPFLAGS'
14226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14229
0093c2fc
VZ
14230 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14231 :; HPCXX=yes
a1aa0349
VZ
14232 else
14233 :;
14234 fi
14235
14236
14237 ;;
14238
0093c2fc 14239 OSF1)
a1aa0349
VZ
14240
14241
14242 ac_ext=cc
14243ac_cpp='$CXXCPP $CPPFLAGS'
14244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14247
0093c2fc
VZ
14248 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14249echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14250if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252else
14253 cat >conftest.$ac_ext <<_ACEOF
14254/* confdefs.h. */
14255_ACEOF
14256cat confdefs.h >>conftest.$ac_ext
14257cat >>conftest.$ac_ext <<_ACEOF
14258/* end confdefs.h. */
14259
14260int
14261main ()
14262{
14263
0093c2fc 14264 #ifndef __DECCXX
a1aa0349
VZ
14265 choke me
14266 #endif
14267
14268 ;
14269 return 0;
14270}
14271_ACEOF
14272rm -f conftest.$ac_objext
14273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
6954625c 14281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
0093c2fc 14293 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
0093c2fc 14298bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14299
14300fi
14301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14302
14303
14304fi
0093c2fc
VZ
14305echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14306echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14307 ac_ext=cc
14308ac_cpp='$CXXCPP $CPPFLAGS'
14309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14312
0093c2fc
VZ
14313 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14314 :; COMPAQCXX=yes
14315 else
14316 :;
14317 fi
14318
14319
14320 ;;
14321
14322 SunOS)
14323
14324
14325 ac_ext=cc
14326ac_cpp='$CXXCPP $CPPFLAGS'
14327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14330
14331 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14332echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14333if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335else
14336 cat >conftest.$ac_ext <<_ACEOF
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
14342
14343int
14344main ()
14345{
14346
14347 #ifndef __SUNPRO_CC
14348 choke me
14349 #endif
14350
14351 ;
14352 return 0;
14353}
14354_ACEOF
14355rm -f conftest.$ac_objext
14356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
6954625c 14364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14377else
14378 echo "$as_me: failed program was:" >&5
14379sed 's/^/| /' conftest.$ac_ext >&5
14380
14381bakefile_cv_cxx_compiler___SUNPRO_CC=no
14382
14383fi
14384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385
14386
14387fi
14388echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14389echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14390 ac_ext=cc
14391ac_cpp='$CXXCPP $CPPFLAGS'
14392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14395
14396 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14397 :; SUNCXX=yes
3006edc0
VZ
14398 else
14399 :;
ab0ad5f1 14400 fi
a9e5b1f0
MW
14401
14402
3006edc0
VZ
14403 ;;
14404 esac
14405 fi
14406
14407
14408
a848cd7e
SC
14409if test -n "$ac_tool_prefix"; then
14410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14412echo "$as_me:$LINENO: checking for $ac_word" >&5
14413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14414if test "${ac_cv_prog_RANLIB+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416else
14417 if test -n "$RANLIB"; then
14418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14419else
14420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421for as_dir in $PATH
14422do
14423 IFS=$as_save_IFS
14424 test -z "$as_dir" && as_dir=.
14425 for ac_exec_ext in '' $ac_executable_extensions; do
14426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14429 break 2
14430 fi
14431done
14432done
14433
14434fi
14435fi
14436RANLIB=$ac_cv_prog_RANLIB
14437if test -n "$RANLIB"; then
14438 echo "$as_me:$LINENO: result: $RANLIB" >&5
14439echo "${ECHO_T}$RANLIB" >&6
14440else
14441 echo "$as_me:$LINENO: result: no" >&5
14442echo "${ECHO_T}no" >&6
14443fi
14444
14445fi
14446if test -z "$ac_cv_prog_RANLIB"; then
14447 ac_ct_RANLIB=$RANLIB
14448 # Extract the first word of "ranlib", so it can be a program name with args.
14449set dummy ranlib; ac_word=$2
14450echo "$as_me:$LINENO: checking for $ac_word" >&5
14451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14452if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454else
14455 if test -n "$ac_ct_RANLIB"; then
14456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14457else
14458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459for as_dir in $PATH
14460do
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
14464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14465 ac_cv_prog_ac_ct_RANLIB="ranlib"
14466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14468 fi
14469done
14470done
14471
14472 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14473fi
14474fi
14475ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14476if test -n "$ac_ct_RANLIB"; then
14477 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14478echo "${ECHO_T}$ac_ct_RANLIB" >&6
14479else
14480 echo "$as_me:$LINENO: result: no" >&5
14481echo "${ECHO_T}no" >&6
14482fi
14483
14484 RANLIB=$ac_ct_RANLIB
14485else
14486 RANLIB="$ac_cv_prog_RANLIB"
14487fi
14488
14489
8c80d384
DE
14490if test -n "$ac_tool_prefix"; then
14491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14492set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14493echo "$as_me:$LINENO: checking for $ac_word" >&5
14494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14495if test "${ac_cv_prog_AR+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 if test -n "$AR"; then
14499 ac_cv_prog_AR="$AR" # Let the user override the test.
14500else
14501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502for as_dir in $PATH
14503do
14504 IFS=$as_save_IFS
14505 test -z "$as_dir" && as_dir=.
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14508 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14510 break 2
14511 fi
14512done
14513done
14514
14515fi
14516fi
14517AR=$ac_cv_prog_AR
14518if test -n "$AR"; then
14519 echo "$as_me:$LINENO: result: $AR" >&5
14520echo "${ECHO_T}$AR" >&6
14521else
14522 echo "$as_me:$LINENO: result: no" >&5
14523echo "${ECHO_T}no" >&6
14524fi
14525
8c80d384
DE
14526fi
14527if test -z "$ac_cv_prog_AR"; then
14528 ac_ct_AR=$AR
14529 # Extract the first word of "ar", so it can be a program name with args.
14530set dummy ar; ac_word=$2
14531echo "$as_me:$LINENO: checking for $ac_word" >&5
14532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14533if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535else
14536 if test -n "$ac_ct_AR"; then
14537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14538else
14539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540for as_dir in $PATH
14541do
14542 IFS=$as_save_IFS
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14546 ac_cv_prog_ac_ct_AR="ar"
14547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14548 break 2
14549 fi
14550done
14551done
14552
14553fi
14554fi
14555ac_ct_AR=$ac_cv_prog_ac_ct_AR
14556if test -n "$ac_ct_AR"; then
14557 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14558echo "${ECHO_T}$ac_ct_AR" >&6
14559else
14560 echo "$as_me:$LINENO: result: no" >&5
14561echo "${ECHO_T}no" >&6
14562fi
14563
14564 AR=$ac_ct_AR
14565else
14566 AR="$ac_cv_prog_AR"
14567fi
14568
a848cd7e 14569if test "x$AR" = "x" ; then
77ffb593
JS
14570 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14571echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14572 { (exit 1); exit 1; }; }
14573fi
14574
14575# Find a good install program. We prefer a C program (faster),
14576# so one script is as good as another. But avoid the broken or
14577# incompatible versions:
14578# SysV /etc/install, /usr/sbin/install
14579# SunOS /usr/etc/install
14580# IRIX /sbin/install
14581# AIX /bin/install
14582# AmigaOS /C/install, which installs bootblocks on floppy discs
14583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14586# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14587# ./install, which can be erroneously created by make from ./install.sh.
14588echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14589echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14590if test -z "$INSTALL"; then
14591if test "${ac_cv_path_install+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593else
14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595for as_dir in $PATH
14596do
14597 IFS=$as_save_IFS
14598 test -z "$as_dir" && as_dir=.
14599 # Account for people who put trailing slashes in PATH elements.
14600case $as_dir/ in
14601 ./ | .// | /cC/* | \
14602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14603 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14604 /usr/ucb/* ) ;;
14605 *)
14606 # OSF1 and SCO ODT 3.0 have their own names for install.
14607 # Don't use installbsd from OSF since it installs stuff as root
14608 # by default.
14609 for ac_prog in ginstall scoinst install; do
14610 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14611 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14612 if test $ac_prog = install &&
14613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14614 # AIX install. It has an incompatible calling convention.
14615 :
14616 elif test $ac_prog = install &&
14617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14618 # program-specific install script used by HP pwplus--don't use.
14619 :
14620 else
14621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14622 break 3
14623 fi
14624 fi
a848cd7e
SC
14625 done
14626 done
14627 ;;
14628esac
14629done
14630
14631
14632fi
14633 if test "${ac_cv_path_install+set}" = set; then
14634 INSTALL=$ac_cv_path_install
14635 else
14636 # As a last resort, use the slow shell script. We don't cache a
14637 # path for INSTALL within a source directory, because that will
14638 # break other packages using the cache if that directory is
14639 # removed, or if the path is relative.
14640 INSTALL=$ac_install_sh
14641 fi
14642fi
14643echo "$as_me:$LINENO: result: $INSTALL" >&5
14644echo "${ECHO_T}$INSTALL" >&6
14645
14646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14647# It thinks the first close brace ends the variable substitution.
14648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14649
14650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14651
14652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14653
14654
14655case ${INSTALL} in
14656 /* ) # Absolute
14657 ;;
14658 ?:* ) # Drive letter, considered as absolute.
14659 ;;
14660 *)
14661 INSTALL=`pwd`/${INSTALL} ;;
14662esac
14663
a848cd7e
SC
14664
14665case "${host}" in
14666
cfda0ea8 14667 *-*-darwin* )
a848cd7e
SC
14668 INSTALL_PROGRAM="cp -fp"
14669 INSTALL_DATA="cp -fp"
14670 ;;
14671 *)
14672 ;;
14673esac
14674
8c80d384
DE
14675if test -n "$ac_tool_prefix"; then
14676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14677set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14678echo "$as_me:$LINENO: checking for $ac_word" >&5
14679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14680if test "${ac_cv_prog_STRIP+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682else
14683 if test -n "$STRIP"; then
14684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14685else
14686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687for as_dir in $PATH
14688do
14689 IFS=$as_save_IFS
14690 test -z "$as_dir" && as_dir=.
14691 for ac_exec_ext in '' $ac_executable_extensions; do
14692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14695 break 2
14696 fi
14697done
14698done
14699
a848cd7e
SC
14700fi
14701fi
14702STRIP=$ac_cv_prog_STRIP
14703if test -n "$STRIP"; then
14704 echo "$as_me:$LINENO: result: $STRIP" >&5
14705echo "${ECHO_T}$STRIP" >&6
14706else
14707 echo "$as_me:$LINENO: result: no" >&5
14708echo "${ECHO_T}no" >&6
14709fi
14710
8c80d384
DE
14711fi
14712if test -z "$ac_cv_prog_STRIP"; then
14713 ac_ct_STRIP=$STRIP
14714 # Extract the first word of "strip", so it can be a program name with args.
14715set dummy strip; ac_word=$2
14716echo "$as_me:$LINENO: checking for $ac_word" >&5
14717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14718if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
14721 if test -n "$ac_ct_STRIP"; then
14722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14723else
14724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725for as_dir in $PATH
14726do
14727 IFS=$as_save_IFS
14728 test -z "$as_dir" && as_dir=.
14729 for ac_exec_ext in '' $ac_executable_extensions; do
14730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14731 ac_cv_prog_ac_ct_STRIP="strip"
14732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14733 break 2
14734 fi
14735done
14736done
14737
14738 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14739fi
14740fi
14741ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14742if test -n "$ac_ct_STRIP"; then
14743 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14744echo "${ECHO_T}$ac_ct_STRIP" >&6
14745else
14746 echo "$as_me:$LINENO: result: no" >&5
14747echo "${ECHO_T}no" >&6
14748fi
14749
14750 STRIP=$ac_ct_STRIP
14751else
14752 STRIP="$ac_cv_prog_STRIP"
14753fi
14754
14755
14756if test "$wxUSE_WINE" = "yes"; then
14757 if test -n "$ac_tool_prefix"; then
14758 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14759set dummy ${ac_tool_prefix}wrc; ac_word=$2
14760echo "$as_me:$LINENO: checking for $ac_word" >&5
14761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14762if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764else
8ced02f6
DE
14765 if test -n "$WINDRES"; then
14766 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14767else
14768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769for as_dir in $PATH
14770do
14771 IFS=$as_save_IFS
14772 test -z "$as_dir" && as_dir=.
14773 for ac_exec_ext in '' $ac_executable_extensions; do
14774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14775 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14777 break 2
14778 fi
14779done
14780done
14781
14782fi
14783fi
8ced02f6
DE
14784WINDRES=$ac_cv_prog_WINDRES
14785if test -n "$WINDRES"; then
14786 echo "$as_me:$LINENO: result: $WINDRES" >&5
14787echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14788else
14789 echo "$as_me:$LINENO: result: no" >&5
14790echo "${ECHO_T}no" >&6
14791fi
14792
14793fi
8ced02f6
DE
14794if test -z "$ac_cv_prog_WINDRES"; then
14795 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14796 # Extract the first word of "wrc", so it can be a program name with args.
14797set dummy wrc; ac_word=$2
14798echo "$as_me:$LINENO: checking for $ac_word" >&5
14799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14800if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802else
8ced02f6
DE
14803 if test -n "$ac_ct_WINDRES"; then
14804 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14805else
14806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807for as_dir in $PATH
14808do
14809 IFS=$as_save_IFS
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14813 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14815 break 2
14816 fi
14817done
14818done
14819
14820fi
14821fi
8ced02f6
DE
14822ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14823if test -n "$ac_ct_WINDRES"; then
14824 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14825echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14826else
14827 echo "$as_me:$LINENO: result: no" >&5
14828echo "${ECHO_T}no" >&6
14829fi
14830
8ced02f6 14831 WINDRES=$ac_ct_WINDRES
8c80d384 14832else
8ced02f6 14833 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14834fi
14835
004ee6da 14836 RESCOMP="$WINDRES"
8c80d384
DE
14837else
14838 case "${host}" in
14839 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14840 if test -n "$ac_tool_prefix"; then
14841 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14842set dummy ${ac_tool_prefix}windres; ac_word=$2
14843echo "$as_me:$LINENO: checking for $ac_word" >&5
14844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14845if test "${ac_cv_prog_WINDRES+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847else
14848 if test -n "$WINDRES"; then
14849 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14850else
14851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852for as_dir in $PATH
14853do
14854 IFS=$as_save_IFS
14855 test -z "$as_dir" && as_dir=.
14856 for ac_exec_ext in '' $ac_executable_extensions; do
14857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14858 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14860 break 2
14861 fi
14862done
14863done
14864
14865fi
14866fi
14867WINDRES=$ac_cv_prog_WINDRES
14868if test -n "$WINDRES"; then
14869 echo "$as_me:$LINENO: result: $WINDRES" >&5
14870echo "${ECHO_T}$WINDRES" >&6
14871else
14872 echo "$as_me:$LINENO: result: no" >&5
14873echo "${ECHO_T}no" >&6
14874fi
14875
14876fi
14877if test -z "$ac_cv_prog_WINDRES"; then
14878 ac_ct_WINDRES=$WINDRES
14879 # Extract the first word of "windres", so it can be a program name with args.
14880set dummy windres; ac_word=$2
14881echo "$as_me:$LINENO: checking for $ac_word" >&5
14882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14883if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885else
14886 if test -n "$ac_ct_WINDRES"; then
14887 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14888else
14889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890for as_dir in $PATH
14891do
14892 IFS=$as_save_IFS
14893 test -z "$as_dir" && as_dir=.
14894 for ac_exec_ext in '' $ac_executable_extensions; do
14895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14896 ac_cv_prog_ac_ct_WINDRES="windres"
14897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14898 break 2
14899 fi
14900done
14901done
14902
14903fi
14904fi
14905ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14906if test -n "$ac_ct_WINDRES"; then
14907 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14908echo "${ECHO_T}$ac_ct_WINDRES" >&6
14909else
14910 echo "$as_me:$LINENO: result: no" >&5
14911echo "${ECHO_T}no" >&6
14912fi
14913
14914 WINDRES=$ac_ct_WINDRES
14915else
14916 WINDRES="$ac_cv_prog_WINDRES"
14917fi
14918
14919 RESCOMP="$WINDRES"
14920 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14921 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14922set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14923echo "$as_me:$LINENO: checking for $ac_word" >&5
14924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14925if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927else
14928 if test -n "$DLLTOOL"; then
14929 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14930else
14931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932for as_dir in $PATH
14933do
14934 IFS=$as_save_IFS
14935 test -z "$as_dir" && as_dir=.
14936 for ac_exec_ext in '' $ac_executable_extensions; do
14937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 break 2
14941 fi
14942done
14943done
14944
14945fi
14946fi
14947DLLTOOL=$ac_cv_prog_DLLTOOL
14948if test -n "$DLLTOOL"; then
14949 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14950echo "${ECHO_T}$DLLTOOL" >&6
14951else
14952 echo "$as_me:$LINENO: result: no" >&5
14953echo "${ECHO_T}no" >&6
14954fi
14955
14956fi
14957if test -z "$ac_cv_prog_DLLTOOL"; then
14958 ac_ct_DLLTOOL=$DLLTOOL
14959 # Extract the first word of "dlltool", so it can be a program name with args.
14960set dummy dlltool; ac_word=$2
14961echo "$as_me:$LINENO: checking for $ac_word" >&5
14962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14963if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966 if test -n "$ac_ct_DLLTOOL"; then
14967 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14968else
14969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970for as_dir in $PATH
14971do
14972 IFS=$as_save_IFS
14973 test -z "$as_dir" && as_dir=.
14974 for ac_exec_ext in '' $ac_executable_extensions; do
14975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14978 break 2
14979 fi
14980done
14981done
14982
14983fi
14984fi
14985ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14986if test -n "$ac_ct_DLLTOOL"; then
14987 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14988echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14989else
14990 echo "$as_me:$LINENO: result: no" >&5
14991echo "${ECHO_T}no" >&6
14992fi
14993
14994 DLLTOOL=$ac_ct_DLLTOOL
14995else
14996 DLLTOOL="$ac_cv_prog_DLLTOOL"
14997fi
14998
14999 ;;
15000 esac
15001fi
a848cd7e
SC
15002
15003echo "$as_me:$LINENO: checking if make is GNU make" >&5
15004echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15005if test "${wx_cv_prog_makeisgnu+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007else
15008
15009 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15010 egrep -s GNU > /dev/null); then
15011 wx_cv_prog_makeisgnu="yes"
15012 else
15013 wx_cv_prog_makeisgnu="no"
15014 fi
15015
15016fi
15017echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15018echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15019
15020if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15021 IF_GNU_MAKE=""
15022else
15023 IF_GNU_MAKE="#"
15024fi
15025
15026
15027
15028if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15029echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15030echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15031if test "${wx_cv_prog_makevpath+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033else
15034
15035cat - << EOF > confMake
15036check : file
15037 cp \$? \$@
15038 cp \$? final_file
15039EOF
15040
15041if test ! -d sub ; then
15042 mkdir sub
15043fi
15044echo dummy > sub/file
15045${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15046RESULT=$?
15047rm -f sub/file check final_file confMake
15048rmdir sub
15049if test "$RESULT" = 0; then
15050 wx_cv_prog_makevpath="yes"
15051else
15052 wx_cv_prog_makevpath="no"
15053fi
15054
15055fi
15056echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15057echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15058
15059if test "x$wx_cv_prog_makevpath" != "xyes"; then
15060{ { echo "$as_me:$LINENO: error:
15061You need a make-utility that is able to use the variable
15062VPATH correctly.
15063If your version of make does not support VPATH correctly,
15064please install GNU-make (possibly as gmake), and start
15065configure with the following command:
15066export MAKE=gmake; ./configure for sh-type shells
15067setenv MAKE gmake; ./configure for csh-type shells
15068Also please do remember to use gmake in this case every time
15069you are trying to compile.
15070" >&5
15071echo "$as_me: error:
15072You need a make-utility that is able to use the variable
15073VPATH correctly.
15074If your version of make does not support VPATH correctly,
15075please install GNU-make (possibly as gmake), and start
15076configure with the following command:
15077export MAKE=gmake; ./configure for sh-type shells
15078setenv MAKE gmake; ./configure for csh-type shells
15079Also please do remember to use gmake in this case every time
15080you are trying to compile.
15081" >&2;}
15082 { (exit 1); exit 1; }; }
15083fi fi
15084echo "$as_me:$LINENO: checking whether ln -s works" >&5
15085echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15086LN_S=$as_ln_s
15087if test "$LN_S" = "ln -s"; then
15088 echo "$as_me:$LINENO: result: yes" >&5
15089echo "${ECHO_T}yes" >&6
15090else
15091 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15092echo "${ECHO_T}no, using $LN_S" >&6
15093fi
15094
15095
bcaab0f9 15096
a848cd7e 15097
2113bc77 15098if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15099 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15100fi
15101
4d7ec9f1
DE
15102case "${host}" in
15103 powerpc-*-darwin* )
15104 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15105echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15106 cat >conftest.$ac_ext <<_ACEOF
15107/* confdefs.h. */
15108_ACEOF
15109cat confdefs.h >>conftest.$ac_ext
15110cat >>conftest.$ac_ext <<_ACEOF
15111/* end confdefs.h. */
15112
15113int
15114main ()
15115{
15116#ifndef __POWERPC__
15117 choke me for lack of PowerPC
15118#endif
15119
15120 ;
15121 return 0;
15122}
15123_ACEOF
15124rm -f conftest.$ac_objext
15125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15126 (eval $ac_compile) 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
6954625c 15133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest.$ac_objext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 echo "$as_me:$LINENO: result: yes" >&5
15146echo "${ECHO_T}yes" >&6
15147else
15148 echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151echo "$as_me:$LINENO: result: no" >&5
15152echo "${ECHO_T}no" >&6
15153 cat >>confdefs.h <<\_ACEOF
15154#define __POWERPC__ 1
15155_ACEOF
15156
15157
15158fi
15159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15160 ;;
15161esac
15162
15163case "${host}" in
15164 *-*-darwin* )
4d7ec9f1
DE
15165 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15166echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15168/* confdefs.h. */
15169_ACEOF
15170cat confdefs.h >>conftest.$ac_ext
15171cat >>conftest.$ac_ext <<_ACEOF
15172/* end confdefs.h. */
15173#include <CoreFoundation/CFBase.h>
15174
15175int
15176main ()
15177{
15178
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext
15184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15185 (eval $ac_compile) 2>conftest.er1
15186 ac_status=$?
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
6954625c 15192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest.$ac_objext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 echo "$as_me:$LINENO: result: yes" >&5
15205echo "${ECHO_T}yes" >&6
15206else
15207 echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5
15209
15210echo "$as_me:$LINENO: result: no" >&5
15211echo "${ECHO_T}no" >&6
15212 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15213echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15214 cat >conftest.$ac_ext <<_ACEOF
15215/* confdefs.h. */
15216_ACEOF
15217cat confdefs.h >>conftest.$ac_ext
15218cat >>conftest.$ac_ext <<_ACEOF
15219/* end confdefs.h. */
15220#define __CF_USE_FRAMEWORK_INCLUDES__
15221#include <CoreFoundation/CFBase.h>
15222
15223int
15224main ()
15225{
15226
15227 ;
15228 return 0;
15229}
15230_ACEOF
15231rm -f conftest.$ac_objext
15232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15233 (eval $ac_compile) 2>conftest.er1
15234 ac_status=$?
15235 grep -v '^ *+' conftest.er1 >conftest.err
15236 rm -f conftest.er1
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
6954625c 15240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest.$ac_objext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 echo "$as_me:$LINENO: result: yes" >&5
15253echo "${ECHO_T}yes" >&6
c92ad099 15254 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15255else
15256 echo "$as_me: failed program was:" >&5
15257sed 's/^/| /' conftest.$ac_ext >&5
15258
15259{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15260See \`config.log' for more details." >&5
15261echo "$as_me: error: no. CoreFoundation not available.
15262See \`config.log' for more details." >&2;}
15263 { (exit 1); exit 1; }; }
15264
15265fi
15266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15267
15268
15269fi
15270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15271 ;;
15272esac
15273
a848cd7e
SC
15274case "${host}" in
15275 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15276 ac_ext=c
15277ac_cpp='$CPP $CPPFLAGS'
15278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280ac_compiler_gnu=$ac_cv_c_compiler_gnu
15281
15282 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15283 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15284echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15285if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287else
15288 ac_check_lib_save_LIBS=$LIBS
15289LIBS="-lcExt $LIBS"
15290cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296
15297/* Override any gcc2 internal prototype to avoid an error. */
15298#ifdef __cplusplus
15299extern "C"
15300#endif
15301/* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15303char drand48 ();
15304int
15305main ()
15306{
15307drand48 ();
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext conftest$ac_exeext
15313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15314 (eval $ac_link) 2>conftest.er1
a848cd7e 15315 ac_status=$?
ac1cb8d3
VS
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
a848cd7e
SC
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
6954625c 15321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_lib_cExt_drand48=yes
15334else
15335 echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338ac_cv_lib_cExt_drand48=no
15339fi
ac1cb8d3
VS
15340rm -f conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15342LIBS=$ac_check_lib_save_LIBS
15343fi
15344echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15345echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15346if test $ac_cv_lib_cExt_drand48 = yes; then
15347 LIBS="$LIBS -lcExt"
15348fi
15349
15350 else
15351 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15352 fi
69120ee4
VZ
15353 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15354echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15355if test "${wx_cv_gccversion+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357else
15358
391a765e
VS
15359 if test "$cross_compiling" = yes; then
15360 wx_cv_gccversion="EMX2"
15361
15362else
15363 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15364/* confdefs.h. */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
15368/* end confdefs.h. */
15369
391a765e 15370 #include <stdio.h>
a848cd7e 15371
391a765e
VS
15372 int main()
15373 {
15374 FILE *f=fopen("conftestval", "w");
15375 if (!f) exit(1);
15376 fprintf(f,
a848cd7e 15377 #if (__GNUC__ < 3)
391a765e
VS
15378 "EMX2"
15379 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15380 "EMX3"
15381 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15382 "Innotek5"
15383 #else
15384 "Innotek6"
a848cd7e 15385 #endif
391a765e
VS
15386 );
15387 exit(0);
15388 }
a848cd7e 15389
a848cd7e 15390_ACEOF
391a765e
VS
15391rm -f conftest$ac_exeext
15392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>&5
ac1cb8d3
VS
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
391a765e 15402 wx_cv_gccversion=`cat conftestval`
a848cd7e 15403else
391a765e
VS
15404 echo "$as_me: program exited with status $ac_status" >&5
15405echo "$as_me: failed program was:" >&5
a848cd7e
SC
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
391a765e
VS
15408( exit $ac_status )
15409wx_cv_gccversion="EMX2"
a848cd7e 15410fi
391a765e 15411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15412fi
a848cd7e
SC
15413
15414fi
15415echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15416echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15417 ac_ext=cc
15418ac_cpp='$CXXCPP $CPPFLAGS'
15419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15422
391a765e 15423 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15424 LIBS="$LIBS -lstdcpp"
15425 LDFLAGS="$LDFLAGS -Zsysv-signals"
15426 else
391a765e 15427 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15428 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15429 LDFLAGS="$LDFLAGS -Zsysv-signals"
15430 else
15431 LIBS="$LIBS -lstdc++"
15432 fi
15433 fi
94acd38e
DE
15434 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15435 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15436echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15437 wxUSE_OMF=yes
2da0c077 15438 enable_omf=yes
a848cd7e
SC
15439 fi
15440 ;;
15441 *)
15442
95986553 15443 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15444echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15445if test "${ac_cv_string_strcasecmp+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15447else
15448
15449 cat >conftest.$ac_ext <<_ACEOF
15450/* confdefs.h. */
15451_ACEOF
15452cat confdefs.h >>conftest.$ac_ext
15453cat >>conftest.$ac_ext <<_ACEOF
15454/* end confdefs.h. */
15455
15456 #include <string.h>
15457
15458int
15459main ()
15460{
15461
15462 strcasecmp("foo", "bar");
15463
15464 ;
15465 return 0;
15466}
15467_ACEOF
15468rm -f conftest.$ac_objext conftest$ac_exeext
15469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15470 (eval $ac_link) 2>conftest.er1
a848cd7e 15471 ac_status=$?
ac1cb8d3
VS
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
a848cd7e
SC
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
6954625c 15477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_string_strcasecmp=yes
15490else
15491 echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494ac_cv_string_strcasecmp=no
15495
15496fi
ac1cb8d3
VS
15497rm -f conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15499
15500fi
15501echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15502echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15503
15504 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15505 cat >>confdefs.h <<\_ACEOF
15506#define HAVE_STRCASECMP_IN_STRING_H 1
15507_ACEOF
15508
15509 else
15510 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15511echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15512if test "${ac_cv_strings_strcasecmp+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
15515
15516 cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522
15523 #include <strings.h>
15524
15525int
15526main ()
15527{
15528
15529 strcasecmp("foo", "bar");
15530
15531 ;
15532 return 0;
15533}
15534_ACEOF
15535rm -f conftest.$ac_objext conftest$ac_exeext
15536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15537 (eval $ac_link) 2>conftest.er1
a848cd7e 15538 ac_status=$?
ac1cb8d3
VS
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
a848cd7e
SC
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
6954625c 15544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_strings_strcasecmp=yes
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561ac_cv_strings_strcasecmp=no
15562
15563fi
ac1cb8d3
VS
15564rm -f conftest.err conftest.$ac_objext \
15565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15566
15567fi
15568echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15569echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15570
0c3c69fc 15571 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15572 cat >>confdefs.h <<\_ACEOF
15573#define HAVE_STRCASECMP_IN_STRINGS_H 1
15574_ACEOF
15575
15576 else
15577 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15578echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15579 { (exit 1); exit 1; }; }
15580 fi
15581 fi
15582
a848cd7e
SC
15583 ;;
15584esac
15585
15586
5d7b7554
VZ
15587ac_ext=cc
15588ac_cpp='$CXXCPP $CPPFLAGS'
15589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15592echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15593echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15594if test -z "$CXXCPP"; then
15595 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597else
15598 # Double quotes because CXXCPP needs to be expanded
15599 for CXXCPP in "$CXX -E" "/lib/cpp"
15600 do
15601 ac_preproc_ok=false
15602for ac_cxx_preproc_warn_flag in '' yes
15603do
15604 # Use a header file that comes with gcc, so configuring glibc
15605 # with a fresh cross-compiler works.
15606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15607 # <limits.h> exists even on freestanding compilers.
15608 # On the NeXT, cc -E runs the code through the compiler's parser,
15609 # not just through cpp. "Syntax error" is here to catch this case.
15610 cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
15616#ifdef __STDC__
15617# include <limits.h>
15618#else
15619# include <assert.h>
15620#endif
15621 Syntax error
15622_ACEOF
15623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_cxx_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15634 else
15635 ac_cpp_err=
15636 fi
15637else
15638 ac_cpp_err=yes
15639fi
15640if test -z "$ac_cpp_err"; then
15641 :
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 # Broken: fails on valid input.
15647continue
15648fi
15649rm -f conftest.err conftest.$ac_ext
15650
15651 # OK, works on sane cases. Now check whether non-existent headers
15652 # can be detected and how.
15653 cat >conftest.$ac_ext <<_ACEOF
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659#include <ac_nonexistent.h>
15660_ACEOF
15661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } >/dev/null; then
15669 if test -s conftest.err; then
15670 ac_cpp_err=$ac_cxx_preproc_warn_flag
15671 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15672 else
15673 ac_cpp_err=
15674 fi
15675else
15676 ac_cpp_err=yes
15677fi
15678if test -z "$ac_cpp_err"; then
15679 # Broken: success on invalid input.
15680continue
15681else
15682 echo "$as_me: failed program was:" >&5
15683sed 's/^/| /' conftest.$ac_ext >&5
15684
15685 # Passes both tests.
15686ac_preproc_ok=:
15687break
15688fi
15689rm -f conftest.err conftest.$ac_ext
15690
15691done
15692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15693rm -f conftest.err conftest.$ac_ext
15694if $ac_preproc_ok; then
15695 break
15696fi
15697
15698 done
15699 ac_cv_prog_CXXCPP=$CXXCPP
15700
15701fi
15702 CXXCPP=$ac_cv_prog_CXXCPP
15703else
15704 ac_cv_prog_CXXCPP=$CXXCPP
15705fi
15706echo "$as_me:$LINENO: result: $CXXCPP" >&5
15707echo "${ECHO_T}$CXXCPP" >&6
15708ac_preproc_ok=false
15709for ac_cxx_preproc_warn_flag in '' yes
15710do
15711 # Use a header file that comes with gcc, so configuring glibc
15712 # with a fresh cross-compiler works.
15713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15714 # <limits.h> exists even on freestanding compilers.
15715 # On the NeXT, cc -E runs the code through the compiler's parser,
15716 # not just through cpp. "Syntax error" is here to catch this case.
15717 cat >conftest.$ac_ext <<_ACEOF
15718/* confdefs.h. */
15719_ACEOF
15720cat confdefs.h >>conftest.$ac_ext
15721cat >>conftest.$ac_ext <<_ACEOF
15722/* end confdefs.h. */
15723#ifdef __STDC__
15724# include <limits.h>
15725#else
15726# include <assert.h>
15727#endif
15728 Syntax error
15729_ACEOF
15730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } >/dev/null; then
15738 if test -s conftest.err; then
15739 ac_cpp_err=$ac_cxx_preproc_warn_flag
15740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15741 else
15742 ac_cpp_err=
15743 fi
15744else
15745 ac_cpp_err=yes
15746fi
15747if test -z "$ac_cpp_err"; then
15748 :
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 # Broken: fails on valid input.
15754continue
15755fi
15756rm -f conftest.err conftest.$ac_ext
15757
15758 # OK, works on sane cases. Now check whether non-existent headers
15759 # can be detected and how.
15760 cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766#include <ac_nonexistent.h>
15767_ACEOF
15768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } >/dev/null; then
15776 if test -s conftest.err; then
15777 ac_cpp_err=$ac_cxx_preproc_warn_flag
15778 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15779 else
15780 ac_cpp_err=
15781 fi
15782else
15783 ac_cpp_err=yes
15784fi
15785if test -z "$ac_cpp_err"; then
15786 # Broken: success on invalid input.
15787continue
15788else
15789 echo "$as_me: failed program was:" >&5
15790sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 # Passes both tests.
15793ac_preproc_ok=:
15794break
15795fi
15796rm -f conftest.err conftest.$ac_ext
15797
15798done
15799# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15800rm -f conftest.err conftest.$ac_ext
15801if $ac_preproc_ok; then
15802 :
15803else
15804 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15805See \`config.log' for more details." >&5
15806echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15807See \`config.log' for more details." >&2;}
15808 { (exit 1); exit 1; }; }
15809fi
15810
15811ac_ext=cc
15812ac_cpp='$CXXCPP $CPPFLAGS'
15813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15816
15817
a848cd7e
SC
15818echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15819echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15820if test "${ac_cv_header_stdc+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822else
15823 cat >conftest.$ac_ext <<_ACEOF
15824/* confdefs.h. */
15825_ACEOF
15826cat confdefs.h >>conftest.$ac_ext
15827cat >>conftest.$ac_ext <<_ACEOF
15828/* end confdefs.h. */
15829#include <stdlib.h>
15830#include <stdarg.h>
15831#include <string.h>
15832#include <float.h>
15833
15834int
15835main ()
15836{
15837
15838 ;
15839 return 0;
15840}
15841_ACEOF
15842rm -f conftest.$ac_objext
15843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15844 (eval $ac_compile) 2>conftest.er1
a848cd7e 15845 ac_status=$?
ac1cb8d3
VS
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
a848cd7e
SC
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
6954625c 15851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_cv_header_stdc=yes
15864else
15865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868ac_cv_header_stdc=no
15869fi
ac1cb8d3 15870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15871
15872if test $ac_cv_header_stdc = yes; then
15873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15874 cat >conftest.$ac_ext <<_ACEOF
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880#include <string.h>
15881
15882_ACEOF
15883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15884 $EGREP "memchr" >/dev/null 2>&1; then
15885 :
15886else
15887 ac_cv_header_stdc=no
15888fi
15889rm -f conftest*
15890
15891fi
15892
15893if test $ac_cv_header_stdc = yes; then
15894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15895 cat >conftest.$ac_ext <<_ACEOF
15896/* confdefs.h. */
15897_ACEOF
15898cat confdefs.h >>conftest.$ac_ext
15899cat >>conftest.$ac_ext <<_ACEOF
15900/* end confdefs.h. */
15901#include <stdlib.h>
15902
15903_ACEOF
15904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15905 $EGREP "free" >/dev/null 2>&1; then
15906 :
15907else
15908 ac_cv_header_stdc=no
15909fi
15910rm -f conftest*
15911
15912fi
15913
15914if test $ac_cv_header_stdc = yes; then
15915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15916 if test "$cross_compiling" = yes; then
15917 :
15918else
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925#include <ctype.h>
15926#if ((' ' & 0x0FF) == 0x020)
15927# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15928# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15929#else
15930# define ISLOWER(c) \
ac1cb8d3
VS
15931 (('a' <= (c) && (c) <= 'i') \
15932 || ('j' <= (c) && (c) <= 'r') \
15933 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15934# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15935#endif
15936
15937#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15938int
15939main ()
15940{
15941 int i;
15942 for (i = 0; i < 256; i++)
15943 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15944 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15945 exit(2);
15946 exit (0);
15947}
15948_ACEOF
15949rm -f conftest$ac_exeext
15950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 :
15961else
15962 echo "$as_me: program exited with status $ac_status" >&5
15963echo "$as_me: failed program was:" >&5
15964sed 's/^/| /' conftest.$ac_ext >&5
15965
15966( exit $ac_status )
15967ac_cv_header_stdc=no
15968fi
ac1cb8d3 15969rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15970fi
15971fi
15972fi
15973echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15974echo "${ECHO_T}$ac_cv_header_stdc" >&6
15975if test $ac_cv_header_stdc = yes; then
15976
15977cat >>confdefs.h <<\_ACEOF
15978#define STDC_HEADERS 1
15979_ACEOF
15980
15981fi
15982
15983# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15994 inttypes.h stdint.h unistd.h
a848cd7e
SC
15995do
15996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15997echo "$as_me:$LINENO: checking for $ac_header" >&5
15998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15999if eval "test \"\${$as_ac_Header+set}\" = set"; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001else
16002 cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008$ac_includes_default
16009
16010#include <$ac_header>
16011_ACEOF
16012rm -f conftest.$ac_objext
16013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16014 (eval $ac_compile) 2>conftest.er1
a848cd7e 16015 ac_status=$?
ac1cb8d3
VS
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
a848cd7e
SC
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
6954625c 16021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 eval "$as_ac_Header=yes"
16034else
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038eval "$as_ac_Header=no"
16039fi
ac1cb8d3 16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16041fi
16042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16044if test `eval echo '${'$as_ac_Header'}'` = yes; then
16045 cat >>confdefs.h <<_ACEOF
16046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16047_ACEOF
16048
16049fi
16050
16051done
16052
16053
16054
16055for ac_header in stdlib.h
16056do
16057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16058if eval "test \"\${$as_ac_Header+set}\" = set"; then
16059 echo "$as_me:$LINENO: checking for $ac_header" >&5
16060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16061if eval "test \"\${$as_ac_Header+set}\" = set"; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063fi
16064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16066else
16067 # Is the header compilable?
16068echo "$as_me:$LINENO: checking $ac_header usability" >&5
16069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16070cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076$ac_includes_default
16077#include <$ac_header>
16078_ACEOF
16079rm -f conftest.$ac_objext
16080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16081 (eval $ac_compile) 2>conftest.er1
a848cd7e 16082 ac_status=$?
ac1cb8d3
VS
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
a848cd7e
SC
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
6954625c 16088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; } &&
16094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_header_compiler=yes
16101else
16102 echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105ac_header_compiler=no
16106fi
ac1cb8d3 16107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16109echo "${ECHO_T}$ac_header_compiler" >&6
16110
16111# Is the header present?
16112echo "$as_me:$LINENO: checking $ac_header presence" >&5
16113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16114cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
16120#include <$ac_header>
16121_ACEOF
16122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } >/dev/null; then
16130 if test -s conftest.err; then
5d7b7554
VZ
16131 ac_cpp_err=$ac_cxx_preproc_warn_flag
16132 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16133 else
16134 ac_cpp_err=
16135 fi
16136else
16137 ac_cpp_err=yes
16138fi
16139if test -z "$ac_cpp_err"; then
16140 ac_header_preproc=yes
16141else
16142 echo "$as_me: failed program was:" >&5
16143sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 ac_header_preproc=no
16146fi
16147rm -f conftest.err conftest.$ac_ext
16148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16149echo "${ECHO_T}$ac_header_preproc" >&6
16150
16151# So? What about this header?
5d7b7554 16152case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16153 yes:no: )
a848cd7e
SC
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16158 ac_header_preproc=yes
a848cd7e 16159 ;;
ac1cb8d3 16160 no:yes:* )
a848cd7e
SC
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16173 (
16174 cat <<\_ASBOX
ac1cb8d3
VS
16175## ----------------------------------------- ##
16176## Report this to wx-dev@lists.wxwidgets.org ##
16177## ----------------------------------------- ##
a848cd7e
SC
16178_ASBOX
16179 ) |
16180 sed "s/^/$as_me: WARNING: /" >&2
16181 ;;
16182esac
16183echo "$as_me:$LINENO: checking for $ac_header" >&5
16184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16185if eval "test \"\${$as_ac_Header+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187else
ac1cb8d3 16188 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16189fi
16190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16192
16193fi
16194if test `eval echo '${'$as_ac_Header'}'` = yes; then
16195 cat >>confdefs.h <<_ACEOF
16196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16197_ACEOF
16198
16199fi
16200
16201done
16202
16203
16204for ac_header in malloc.h
16205do
16206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16207if eval "test \"\${$as_ac_Header+set}\" = set"; then
16208 echo "$as_me:$LINENO: checking for $ac_header" >&5
16209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16210if eval "test \"\${$as_ac_Header+set}\" = set"; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212fi
16213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16215else
16216 # Is the header compilable?
16217echo "$as_me:$LINENO: checking $ac_header usability" >&5
16218echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16219cat >conftest.$ac_ext <<_ACEOF
16220/* confdefs.h. */
16221_ACEOF
16222cat confdefs.h >>conftest.$ac_ext
16223cat >>conftest.$ac_ext <<_ACEOF
16224/* end confdefs.h. */
16225$ac_includes_default
16226#include <$ac_header>
16227_ACEOF
16228rm -f conftest.$ac_objext
16229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16230 (eval $ac_compile) 2>conftest.er1
a848cd7e 16231 ac_status=$?
ac1cb8d3
VS
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
a848cd7e
SC
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
6954625c 16237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_header_compiler=yes
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254ac_header_compiler=no
16255fi
ac1cb8d3 16256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16258echo "${ECHO_T}$ac_header_compiler" >&6
16259
16260# Is the header present?
16261echo "$as_me:$LINENO: checking $ac_header presence" >&5
16262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16263cat >conftest.$ac_ext <<_ACEOF
16264/* confdefs.h. */
16265_ACEOF
16266cat confdefs.h >>conftest.$ac_ext
16267cat >>conftest.$ac_ext <<_ACEOF
16268/* end confdefs.h. */
16269#include <$ac_header>
16270_ACEOF
16271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16273 ac_status=$?
16274 grep -v '^ *+' conftest.er1 >conftest.err
16275 rm -f conftest.er1
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } >/dev/null; then
16279 if test -s conftest.err; then
5d7b7554
VZ
16280 ac_cpp_err=$ac_cxx_preproc_warn_flag
16281 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16282 else
16283 ac_cpp_err=
16284 fi
16285else
16286 ac_cpp_err=yes
16287fi
16288if test -z "$ac_cpp_err"; then
16289 ac_header_preproc=yes
16290else
16291 echo "$as_me: failed program was:" >&5
16292sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 ac_header_preproc=no
16295fi
16296rm -f conftest.err conftest.$ac_ext
16297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16298echo "${ECHO_T}$ac_header_preproc" >&6
16299
16300# So? What about this header?
5d7b7554 16301case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16302 yes:no: )
a848cd7e
SC
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16307 ac_header_preproc=yes
a848cd7e 16308 ;;
ac1cb8d3 16309 no:yes:* )
a848cd7e
SC
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16322 (
16323 cat <<\_ASBOX
ac1cb8d3
VS
16324## ----------------------------------------- ##
16325## Report this to wx-dev@lists.wxwidgets.org ##
16326## ----------------------------------------- ##
a848cd7e
SC
16327_ASBOX
16328 ) |
16329 sed "s/^/$as_me: WARNING: /" >&2
16330 ;;
16331esac
16332echo "$as_me:$LINENO: checking for $ac_header" >&5
16333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16334if eval "test \"\${$as_ac_Header+set}\" = set"; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16336else
ac1cb8d3 16337 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16338fi
16339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16341
16342fi
16343if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 cat >>confdefs.h <<_ACEOF
16345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16346_ACEOF
16347
16348fi
16349
16350done
16351
16352
16353for ac_header in unistd.h
16354do
16355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356if eval "test \"\${$as_ac_Header+set}\" = set"; then
16357 echo "$as_me:$LINENO: checking for $ac_header" >&5
16358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16359if eval "test \"\${$as_ac_Header+set}\" = set"; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361fi
16362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16364else
16365 # Is the header compilable?
16366echo "$as_me:$LINENO: checking $ac_header usability" >&5
16367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16368cat >conftest.$ac_ext <<_ACEOF
16369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
16373/* end confdefs.h. */
16374$ac_includes_default
16375#include <$ac_header>
16376_ACEOF
16377rm -f conftest.$ac_objext
16378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16379 (eval $ac_compile) 2>conftest.er1
a848cd7e 16380 ac_status=$?
ac1cb8d3
VS
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
a848cd7e
SC
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
6954625c 16386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_header_compiler=yes
16399else
16400 echo "$as_me: failed program was:" >&5
16401sed 's/^/| /' conftest.$ac_ext >&5
16402
16403ac_header_compiler=no
16404fi
ac1cb8d3 16405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407echo "${ECHO_T}$ac_header_compiler" >&6
16408
16409# Is the header present?
16410echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16412cat >conftest.$ac_ext <<_ACEOF
16413/* confdefs.h. */
16414_ACEOF
16415cat confdefs.h >>conftest.$ac_ext
16416cat >>conftest.$ac_ext <<_ACEOF
16417/* end confdefs.h. */
16418#include <$ac_header>
16419_ACEOF
16420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16422 ac_status=$?
16423 grep -v '^ *+' conftest.er1 >conftest.err
16424 rm -f conftest.er1
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev/null; then
16428 if test -s conftest.err; then
5d7b7554
VZ
16429 ac_cpp_err=$ac_cxx_preproc_warn_flag
16430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16431 else
16432 ac_cpp_err=
16433 fi
16434else
16435 ac_cpp_err=yes
16436fi
16437if test -z "$ac_cpp_err"; then
16438 ac_header_preproc=yes
16439else
16440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_header_preproc=no
16444fi
16445rm -f conftest.err conftest.$ac_ext
16446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447echo "${ECHO_T}$ac_header_preproc" >&6
16448
16449# So? What about this header?
5d7b7554 16450case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16451 yes:no: )
a848cd7e
SC
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456 ac_header_preproc=yes
a848cd7e 16457 ;;
ac1cb8d3 16458 no:yes:* )
a848cd7e
SC
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16471 (
16472 cat <<\_ASBOX
ac1cb8d3
VS
16473## ----------------------------------------- ##
16474## Report this to wx-dev@lists.wxwidgets.org ##
16475## ----------------------------------------- ##
a848cd7e
SC
16476_ASBOX
16477 ) |
16478 sed "s/^/$as_me: WARNING: /" >&2
16479 ;;
16480esac
16481echo "$as_me:$LINENO: checking for $ac_header" >&5
16482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16483if eval "test \"\${$as_ac_Header+set}\" = set"; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485else
ac1cb8d3 16486 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16487fi
16488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16490
16491fi
16492if test `eval echo '${'$as_ac_Header'}'` = yes; then
16493 cat >>confdefs.h <<_ACEOF
16494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16495_ACEOF
16496
16497fi
16498
16499done
16500
16501
16502for ac_header in wchar.h
16503do
16504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16505if eval "test \"\${$as_ac_Header+set}\" = set"; then
16506 echo "$as_me:$LINENO: checking for $ac_header" >&5
16507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16508if eval "test \"\${$as_ac_Header+set}\" = set"; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510fi
16511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16513else
16514 # Is the header compilable?
16515echo "$as_me:$LINENO: checking $ac_header usability" >&5
16516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16517cat >conftest.$ac_ext <<_ACEOF
16518/* confdefs.h. */
16519_ACEOF
16520cat confdefs.h >>conftest.$ac_ext
16521cat >>conftest.$ac_ext <<_ACEOF
16522/* end confdefs.h. */
16523$ac_includes_default
16524#include <$ac_header>
16525_ACEOF
16526rm -f conftest.$ac_objext
16527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16528 (eval $ac_compile) 2>conftest.er1
a848cd7e 16529 ac_status=$?
ac1cb8d3
VS
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
a848cd7e
SC
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
6954625c 16535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ac_header_compiler=yes
16548else
16549 echo "$as_me: failed program was:" >&5
16550sed 's/^/| /' conftest.$ac_ext >&5
16551
16552ac_header_compiler=no
16553fi
ac1cb8d3 16554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16556echo "${ECHO_T}$ac_header_compiler" >&6
16557
16558# Is the header present?
16559echo "$as_me:$LINENO: checking $ac_header presence" >&5
16560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16561cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567#include <$ac_header>
16568_ACEOF
16569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } >/dev/null; then
16577 if test -s conftest.err; then
5d7b7554
VZ
16578 ac_cpp_err=$ac_cxx_preproc_warn_flag
16579 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16580 else
16581 ac_cpp_err=
16582 fi
16583else
16584 ac_cpp_err=yes
16585fi
16586if test -z "$ac_cpp_err"; then
16587 ac_header_preproc=yes
16588else
16589 echo "$as_me: failed program was:" >&5
16590sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ac_header_preproc=no
16593fi
16594rm -f conftest.err conftest.$ac_ext
16595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16596echo "${ECHO_T}$ac_header_preproc" >&6
16597
16598# So? What about this header?
5d7b7554 16599case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16600 yes:no: )
a848cd7e
SC
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16605 ac_header_preproc=yes
a848cd7e 16606 ;;
ac1cb8d3 16607 no:yes:* )
a848cd7e
SC
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16620 (
16621 cat <<\_ASBOX
ac1cb8d3
VS
16622## ----------------------------------------- ##
16623## Report this to wx-dev@lists.wxwidgets.org ##
16624## ----------------------------------------- ##
a848cd7e
SC
16625_ASBOX
16626 ) |
16627 sed "s/^/$as_me: WARNING: /" >&2
16628 ;;
16629esac
16630echo "$as_me:$LINENO: checking for $ac_header" >&5
16631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16632if eval "test \"\${$as_ac_Header+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
ac1cb8d3 16635 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16636fi
16637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16639
16640fi
16641if test `eval echo '${'$as_ac_Header'}'` = yes; then
16642 cat >>confdefs.h <<_ACEOF
16643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16644_ACEOF
16645
16646fi
16647
16648done
16649
16650
16651if test "$ac_cv_header_wchar_h" != "yes"; then
16652
16653for ac_header in wcstr.h
16654do
16655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16656if eval "test \"\${$as_ac_Header+set}\" = set"; then
16657 echo "$as_me:$LINENO: checking for $ac_header" >&5
16658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16659if eval "test \"\${$as_ac_Header+set}\" = set"; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661fi
16662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16664else
16665 # Is the header compilable?
16666echo "$as_me:$LINENO: checking $ac_header usability" >&5
16667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16668cat >conftest.$ac_ext <<_ACEOF
16669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
16674$ac_includes_default
16675#include <$ac_header>
16676_ACEOF
16677rm -f conftest.$ac_objext
16678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16679 (eval $ac_compile) 2>conftest.er1
a848cd7e 16680 ac_status=$?
ac1cb8d3
VS
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
a848cd7e
SC
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
6954625c 16686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_header_compiler=yes
16699else
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703ac_header_compiler=no
16704fi
ac1cb8d3 16705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16707echo "${ECHO_T}$ac_header_compiler" >&6
16708
16709# Is the header present?
16710echo "$as_me:$LINENO: checking $ac_header presence" >&5
16711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16712cat >conftest.$ac_ext <<_ACEOF
16713/* confdefs.h. */
16714_ACEOF
16715cat confdefs.h >>conftest.$ac_ext
16716cat >>conftest.$ac_ext <<_ACEOF
16717/* end confdefs.h. */
16718#include <$ac_header>
16719_ACEOF
16720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16722 ac_status=$?
16723 grep -v '^ *+' conftest.er1 >conftest.err
16724 rm -f conftest.er1
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } >/dev/null; then
16728 if test -s conftest.err; then
5d7b7554
VZ
16729 ac_cpp_err=$ac_cxx_preproc_warn_flag
16730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16731 else
16732 ac_cpp_err=
16733 fi
16734else
16735 ac_cpp_err=yes
16736fi
16737if test -z "$ac_cpp_err"; then
16738 ac_header_preproc=yes
16739else
16740 echo "$as_me: failed program was:" >&5
16741sed 's/^/| /' conftest.$ac_ext >&5
16742
16743 ac_header_preproc=no
16744fi
16745rm -f conftest.err conftest.$ac_ext
16746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16747echo "${ECHO_T}$ac_header_preproc" >&6
16748
16749# So? What about this header?
5d7b7554 16750case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16751 yes:no: )
a848cd7e
SC
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16756 ac_header_preproc=yes
a848cd7e 16757 ;;
ac1cb8d3 16758 no:yes:* )
a848cd7e
SC
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16771 (
16772 cat <<\_ASBOX
ac1cb8d3
VS
16773## ----------------------------------------- ##
16774## Report this to wx-dev@lists.wxwidgets.org ##
16775## ----------------------------------------- ##
a848cd7e
SC
16776_ASBOX
16777 ) |
16778 sed "s/^/$as_me: WARNING: /" >&2
16779 ;;
16780esac
16781echo "$as_me:$LINENO: checking for $ac_header" >&5
16782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16783if eval "test \"\${$as_ac_Header+set}\" = set"; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785else
ac1cb8d3 16786 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16787fi
16788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16790
16791fi
16792if test `eval echo '${'$as_ac_Header'}'` = yes; then
16793 cat >>confdefs.h <<_ACEOF
16794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16795_ACEOF
16796
16797fi
16798
16799done
16800
16801fi
16802
16803
16804for ac_header in fnmatch.h
16805do
16806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16807if eval "test \"\${$as_ac_Header+set}\" = set"; then
16808 echo "$as_me:$LINENO: checking for $ac_header" >&5
16809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16810if eval "test \"\${$as_ac_Header+set}\" = set"; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812fi
16813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16815else
16816 # Is the header compilable?
16817echo "$as_me:$LINENO: checking $ac_header usability" >&5
16818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16819cat >conftest.$ac_ext <<_ACEOF
16820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
16825$ac_includes_default
16826#include <$ac_header>
16827_ACEOF
16828rm -f conftest.$ac_objext
16829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16830 (eval $ac_compile) 2>conftest.er1
a848cd7e 16831 ac_status=$?
ac1cb8d3
VS
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
a848cd7e
SC
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
6954625c 16837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_header_compiler=yes
16850else
16851 echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854ac_header_compiler=no
16855fi
ac1cb8d3 16856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858echo "${ECHO_T}$ac_header_compiler" >&6
16859
16860# Is the header present?
16861echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16863cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
16869#include <$ac_header>
16870_ACEOF
16871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
5d7b7554
VZ
16880 ac_cpp_err=$ac_cxx_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16882 else
16883 ac_cpp_err=
16884 fi
16885else
16886 ac_cpp_err=yes
16887fi
16888if test -z "$ac_cpp_err"; then
16889 ac_header_preproc=yes
16890else
16891 echo "$as_me: failed program was:" >&5
16892sed 's/^/| /' conftest.$ac_ext >&5
16893
16894 ac_header_preproc=no
16895fi
16896rm -f conftest.err conftest.$ac_ext
16897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16898echo "${ECHO_T}$ac_header_preproc" >&6
16899
16900# So? What about this header?
5d7b7554 16901case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16902 yes:no: )
a848cd7e
SC
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16907 ac_header_preproc=yes
a848cd7e 16908 ;;
ac1cb8d3 16909 no:yes:* )
a848cd7e
SC
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16922 (
16923 cat <<\_ASBOX
ac1cb8d3
VS
16924## ----------------------------------------- ##
16925## Report this to wx-dev@lists.wxwidgets.org ##
16926## ----------------------------------------- ##
a848cd7e
SC
16927_ASBOX
16928 ) |
16929 sed "s/^/$as_me: WARNING: /" >&2
16930 ;;
16931esac
16932echo "$as_me:$LINENO: checking for $ac_header" >&5
16933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16934if eval "test \"\${$as_ac_Header+set}\" = set"; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936else
ac1cb8d3 16937 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16938fi
16939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16941
16942fi
16943if test `eval echo '${'$as_ac_Header'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16946_ACEOF
16947
16948fi
16949
16950done
16951
16952
a848cd7e
SC
16953
16954for ac_header in langinfo.h
16955do
16956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962fi
16963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16965else
16966 # Is the header compilable?
16967echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969cat >conftest.$ac_ext <<_ACEOF
16970/* confdefs.h. */
16971_ACEOF
16972cat confdefs.h >>conftest.$ac_ext
16973cat >>conftest.$ac_ext <<_ACEOF
16974/* end confdefs.h. */
16975$ac_includes_default
16976#include <$ac_header>
16977_ACEOF
16978rm -f conftest.$ac_objext
16979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16980 (eval $ac_compile) 2>conftest.er1
a848cd7e 16981 ac_status=$?
ac1cb8d3
VS
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
a848cd7e
SC
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
6954625c 16987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_header_compiler=yes
17000else
17001 echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004ac_header_compiler=no
17005fi
ac1cb8d3 17006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17008echo "${ECHO_T}$ac_header_compiler" >&6
17009
17010# Is the header present?
17011echo "$as_me:$LINENO: checking $ac_header presence" >&5
17012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17013cat >conftest.$ac_ext <<_ACEOF
17014/* confdefs.h. */
17015_ACEOF
17016cat confdefs.h >>conftest.$ac_ext
17017cat >>conftest.$ac_ext <<_ACEOF
17018/* end confdefs.h. */
17019#include <$ac_header>
17020_ACEOF
17021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } >/dev/null; then
17029 if test -s conftest.err; then
5d7b7554
VZ
17030 ac_cpp_err=$ac_cxx_preproc_warn_flag
17031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17032 else
17033 ac_cpp_err=
17034 fi
17035else
17036 ac_cpp_err=yes
17037fi
17038if test -z "$ac_cpp_err"; then
17039 ac_header_preproc=yes
17040else
17041 echo "$as_me: failed program was:" >&5
17042sed 's/^/| /' conftest.$ac_ext >&5
17043
17044 ac_header_preproc=no
17045fi
17046rm -f conftest.err conftest.$ac_ext
17047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17048echo "${ECHO_T}$ac_header_preproc" >&6
17049
17050# So? What about this header?
5d7b7554 17051case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17052 yes:no: )
a848cd7e
SC
17053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17057 ac_header_preproc=yes
a848cd7e 17058 ;;
ac1cb8d3 17059 no:yes:* )
a848cd7e
SC
17060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17072 (
17073 cat <<\_ASBOX
ac1cb8d3
VS
17074## ----------------------------------------- ##
17075## Report this to wx-dev@lists.wxwidgets.org ##
17076## ----------------------------------------- ##
a848cd7e
SC
17077_ASBOX
17078 ) |
17079 sed "s/^/$as_me: WARNING: /" >&2
17080 ;;
17081esac
17082echo "$as_me:$LINENO: checking for $ac_header" >&5
17083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17084if eval "test \"\${$as_ac_Header+set}\" = set"; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086else
ac1cb8d3 17087 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17088fi
17089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17091
17092fi
17093if test `eval echo '${'$as_ac_Header'}'` = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17096_ACEOF
17097
17098fi
17099
17100done
17101
17102
17103case "${host}" in
17104 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17105 if test $ac_cv_header_langinfo_h = "yes" \
17106 -a \( "$wx_cv_gccversion" = "EMX2" \
17107 -o "$wx_cv_gccversion" = "EMX3" \
17108 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17109 LIBS="$LIBS -lintl"
17110 fi
17111 ;;
17112esac
17113
a848cd7e
SC
17114
17115echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17116echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17117if test "${ac_cv_c_const+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 cat >conftest.$ac_ext <<_ACEOF
17121/* confdefs.h. */
17122_ACEOF
17123cat confdefs.h >>conftest.$ac_ext
17124cat >>conftest.$ac_ext <<_ACEOF
17125/* end confdefs.h. */
17126
17127int
17128main ()
17129{
17130/* FIXME: Include the comments suggested by Paul. */
17131#ifndef __cplusplus
17132 /* Ultrix mips cc rejects this. */
17133 typedef int charset[2];
17134 const charset x;
17135 /* SunOS 4.1.1 cc rejects this. */
17136 char const *const *ccp;
17137 char **p;
17138 /* NEC SVR4.0.2 mips cc rejects this. */
17139 struct point {int x, y;};
17140 static struct point const zero = {0,0};
17141 /* AIX XL C 1.02.0.0 rejects this.
17142 It does not let you subtract one const X* pointer from another in
17143 an arm of an if-expression whose if-part is not a constant
17144 expression */
17145 const char *g = "string";
17146 ccp = &g + (g ? g-g : 0);
17147 /* HPUX 7.0 cc rejects these. */
17148 ++ccp;
17149 p = (char**) ccp;
17150 ccp = (char const *const *) p;
17151 { /* SCO 3.2v4 cc rejects this. */
17152 char *t;
17153 char const *s = 0 ? (char *) 0 : (char const *) 0;
17154
17155 *t++ = 0;
17156 }
17157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17158 int x[] = {25, 17};
17159 const int *foo = &x[0];
17160 ++foo;
17161 }
17162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17163 typedef const int *iptr;
17164 iptr p = 0;
17165 ++p;
17166 }
17167 { /* AIX XL C 1.02.0.0 rejects this saying
17168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17169 struct s { int j; const int *ap[3]; };
17170 struct s *b; b->j = 5;
17171 }
17172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17173 const int foo = 10;
17174 }
17175#endif
17176
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext
17182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17183 (eval $ac_compile) 2>conftest.er1
a848cd7e 17184 ac_status=$?
ac1cb8d3
VS
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
a848cd7e
SC
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
6954625c 17190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_c_const=yes
17203else
17204 echo "$as_me: failed program was:" >&5
17205sed 's/^/| /' conftest.$ac_ext >&5
17206
17207ac_cv_c_const=no
17208fi
ac1cb8d3 17209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17210fi
17211echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17212echo "${ECHO_T}$ac_cv_c_const" >&6
17213if test $ac_cv_c_const = no; then
17214
17215cat >>confdefs.h <<\_ACEOF
17216#define const
17217_ACEOF
17218
17219fi
17220
17221echo "$as_me:$LINENO: checking for inline" >&5
17222echo $ECHO_N "checking for inline... $ECHO_C" >&6
17223if test "${ac_cv_c_inline+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 ac_cv_c_inline=no
17227for ac_kw in inline __inline__ __inline; do
17228 cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
17234#ifndef __cplusplus
17235typedef int foo_t;
17236static $ac_kw foo_t static_foo () {return 0; }
17237$ac_kw foo_t foo () {return 0; }
17238#endif
17239
17240_ACEOF
17241rm -f conftest.$ac_objext
17242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17243 (eval $ac_compile) 2>conftest.er1
a848cd7e 17244 ac_status=$?
ac1cb8d3
VS
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
a848cd7e
SC
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
6954625c 17250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ac_cv_c_inline=$ac_kw; break
17263else
17264 echo "$as_me: failed program was:" >&5
17265sed 's/^/| /' conftest.$ac_ext >&5
17266
17267fi
ac1cb8d3 17268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17269done
17270
17271fi
17272echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17273echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17274
17275
a848cd7e
SC
17276case $ac_cv_c_inline in
17277 inline | yes) ;;
ac1cb8d3
VS
17278 *)
17279 case $ac_cv_c_inline in
17280 no) ac_val=;;
17281 *) ac_val=$ac_cv_c_inline;;
17282 esac
17283 cat >>confdefs.h <<_ACEOF
17284#ifndef __cplusplus
17285#define inline $ac_val
17286#endif
de59c161 17287_ACEOF
ac1cb8d3 17288 ;;
a848cd7e
SC
17289esac
17290
17291
17292echo "$as_me:$LINENO: checking for char" >&5
17293echo $ECHO_N "checking for char... $ECHO_C" >&6
17294if test "${ac_cv_type_char+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296else
17297 cat >conftest.$ac_ext <<_ACEOF
17298/* confdefs.h. */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h. */
17303$ac_includes_default
17304int
17305main ()
17306{
17307if ((char *) 0)
17308 return 0;
17309if (sizeof (char))
17310 return 0;
17311 ;
17312 return 0;
17313}
17314_ACEOF
17315rm -f conftest.$ac_objext
17316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17317 (eval $ac_compile) 2>conftest.er1
a848cd7e 17318 ac_status=$?
ac1cb8d3
VS
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
a848cd7e
SC
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
6954625c 17324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_type_char=yes
17337else
17338 echo "$as_me: failed program was:" >&5
17339sed 's/^/| /' conftest.$ac_ext >&5
17340
17341ac_cv_type_char=no
17342fi
ac1cb8d3 17343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17344fi
17345echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17346echo "${ECHO_T}$ac_cv_type_char" >&6
17347
17348echo "$as_me:$LINENO: checking size of char" >&5
17349echo $ECHO_N "checking size of char... $ECHO_C" >&6
17350if test "${ac_cv_sizeof_char+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352else
17353 if test "$ac_cv_type_char" = yes; then
17354 # The cast to unsigned long works around a bug in the HP C Compiler
17355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17357 # This bug is HP SR number 8606223364.
17358 if test "$cross_compiling" = yes; then
17359 # Depending upon the size, compute the lo and hi bounds.
17360cat >conftest.$ac_ext <<_ACEOF
17361/* confdefs.h. */
17362_ACEOF
17363cat confdefs.h >>conftest.$ac_ext
17364cat >>conftest.$ac_ext <<_ACEOF
17365/* end confdefs.h. */
17366$ac_includes_default
17367int
17368main ()
17369{
17370static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17371test_array [0] = 0
17372
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest.$ac_objext
17378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17379 (eval $ac_compile) 2>conftest.er1
a848cd7e 17380 ac_status=$?
ac1cb8d3
VS
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
a848cd7e
SC
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
6954625c 17386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }; then
17398 ac_lo=0 ac_mid=0
17399 while :; do
17400 cat >conftest.$ac_ext <<_ACEOF
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
17406$ac_includes_default
17407int
17408main ()
17409{
17410static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17411test_array [0] = 0
17412
17413 ;
17414 return 0;
17415}
17416_ACEOF
17417rm -f conftest.$ac_objext
17418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17419 (eval $ac_compile) 2>conftest.er1
a848cd7e 17420 ac_status=$?
ac1cb8d3
VS
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
a848cd7e
SC
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
6954625c 17426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_hi=$ac_mid; break
17439else
17440 echo "$as_me: failed program was:" >&5
17441sed 's/^/| /' conftest.$ac_ext >&5
17442
17443ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17444 if test $ac_lo -le $ac_mid; then
17445 ac_lo= ac_hi=
17446 break
17447 fi
17448 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17449fi
ac1cb8d3 17450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17451 done
17452else
17453 echo "$as_me: failed program was:" >&5
17454sed 's/^/| /' conftest.$ac_ext >&5
17455
17456cat >conftest.$ac_ext <<_ACEOF
17457/* confdefs.h. */
17458_ACEOF
17459cat confdefs.h >>conftest.$ac_ext
17460cat >>conftest.$ac_ext <<_ACEOF
17461/* end confdefs.h. */
17462$ac_includes_default
17463int
17464main ()
17465{
17466static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17467test_array [0] = 0
17468
17469 ;
17470 return 0;
17471}
17472_ACEOF
17473rm -f conftest.$ac_objext
17474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17475 (eval $ac_compile) 2>conftest.er1
a848cd7e 17476 ac_status=$?
ac1cb8d3
VS
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
a848cd7e
SC
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
6954625c 17482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_hi=-1 ac_mid=-1
17495 while :; do
17496 cat >conftest.$ac_ext <<_ACEOF
17497/* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
17502$ac_includes_default
17503int
17504main ()
17505{
17506static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17507test_array [0] = 0
17508
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513rm -f conftest.$ac_objext
17514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17515 (eval $ac_compile) 2>conftest.er1
a848cd7e 17516 ac_status=$?
ac1cb8d3
VS
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
a848cd7e
SC
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
6954625c 17522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_lo=$ac_mid; break
17535else
17536 echo "$as_me: failed program was:" >&5
17537sed 's/^/| /' conftest.$ac_ext >&5
17538
17539ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17540 if test $ac_mid -le $ac_hi; then
17541 ac_lo= ac_hi=
17542 break
17543 fi
17544 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17545fi
ac1cb8d3 17546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17547 done
17548else
17549 echo "$as_me: failed program was:" >&5
17550sed 's/^/| /' conftest.$ac_ext >&5
17551
17552ac_lo= ac_hi=
17553fi
ac1cb8d3 17554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17555fi
ac1cb8d3 17556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17557# Binary search between lo and hi bounds.
17558while test "x$ac_lo" != "x$ac_hi"; do
17559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17560 cat >conftest.$ac_ext <<_ACEOF
17561/* confdefs.h. */
17562_ACEOF
17563cat confdefs.h >>conftest.$ac_ext
17564cat >>conftest.$ac_ext <<_ACEOF
17565/* end confdefs.h. */
17566$ac_includes_default
17567int
17568main ()
17569{
17570static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17571test_array [0] = 0
17572
17573 ;
17574 return 0;
17575}
17576_ACEOF
17577rm -f conftest.$ac_objext
17578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17579 (eval $ac_compile) 2>conftest.er1
a848cd7e 17580 ac_status=$?
ac1cb8d3
VS
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
a848cd7e
SC
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
6954625c 17586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 ac_hi=$ac_mid
17599else
17600 echo "$as_me: failed program was:" >&5
17601sed 's/^/| /' conftest.$ac_ext >&5
17602
17603ac_lo=`expr '(' $ac_mid ')' + 1`
17604fi
ac1cb8d3 17605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17606done
17607case $ac_lo in
17608?*) ac_cv_sizeof_char=$ac_lo;;
17609'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17610See \`config.log' for more details." >&5
17611echo "$as_me: error: cannot compute sizeof (char), 77
17612See \`config.log' for more details." >&2;}
17613 { (exit 1); exit 1; }; } ;;
17614esac
17615else
17616 if test "$cross_compiling" = yes; then
6954625c
VZ
17617 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17618echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17619 { (exit 1); exit 1; }; }
17620else
17621 cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
17627$ac_includes_default
17628long longval () { return (long) (sizeof (char)); }
17629unsigned long ulongval () { return (long) (sizeof (char)); }
17630#include <stdio.h>
17631#include <stdlib.h>
17632int
17633main ()
17634{
17635
17636 FILE *f = fopen ("conftest.val", "w");
17637 if (! f)
17638 exit (1);
17639 if (((long) (sizeof (char))) < 0)
17640 {
17641 long i = longval ();
17642 if (i != ((long) (sizeof (char))))
17643 exit (1);
17644 fprintf (f, "%ld\n", i);
17645 }
17646 else
17647 {
17648 unsigned long i = ulongval ();
17649 if (i != ((long) (sizeof (char))))
17650 exit (1);
17651 fprintf (f, "%lu\n", i);
17652 }
17653 exit (ferror (f) || fclose (f) != 0);
17654
17655 ;
17656 return 0;
17657}
17658_ACEOF
17659rm -f conftest$ac_exeext
17660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_cv_sizeof_char=`cat conftest.val`
17671else
17672 echo "$as_me: program exited with status $ac_status" >&5
17673echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
17676( exit $ac_status )
17677{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17678See \`config.log' for more details." >&5
17679echo "$as_me: error: cannot compute sizeof (char), 77
17680See \`config.log' for more details." >&2;}
17681 { (exit 1); exit 1; }; }
17682fi
ac1cb8d3 17683rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17684fi
17685fi
17686rm -f conftest.val
17687else
17688 ac_cv_sizeof_char=0
17689fi
17690fi
17691echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17692echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17693cat >>confdefs.h <<_ACEOF
17694#define SIZEOF_CHAR $ac_cv_sizeof_char
17695_ACEOF
17696
17697
17698echo "$as_me:$LINENO: checking for short" >&5
17699echo $ECHO_N "checking for short... $ECHO_C" >&6
17700if test "${ac_cv_type_short+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702else
17703 cat >conftest.$ac_ext <<_ACEOF
17704/* confdefs.h. */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
17708/* end confdefs.h. */
17709$ac_includes_default
17710int
17711main ()
17712{
17713if ((short *) 0)
17714 return 0;
17715if (sizeof (short))
17716 return 0;
17717 ;
17718 return 0;
17719}
17720_ACEOF
17721rm -f conftest.$ac_objext
17722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17723 (eval $ac_compile) 2>conftest.er1
a848cd7e 17724 ac_status=$?
ac1cb8d3
VS
17725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
a848cd7e
SC
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } &&
6954625c 17730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 ac_cv_type_short=yes
17743else
17744 echo "$as_me: failed program was:" >&5
17745sed 's/^/| /' conftest.$ac_ext >&5
17746
17747ac_cv_type_short=no
17748fi
ac1cb8d3 17749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17750fi
17751echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17752echo "${ECHO_T}$ac_cv_type_short" >&6
17753
17754echo "$as_me:$LINENO: checking size of short" >&5
17755echo $ECHO_N "checking size of short... $ECHO_C" >&6
17756if test "${ac_cv_sizeof_short+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758else
17759 if test "$ac_cv_type_short" = yes; then
17760 # The cast to unsigned long works around a bug in the HP C Compiler
17761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17763 # This bug is HP SR number 8606223364.
17764 if test "$cross_compiling" = yes; then
17765 # Depending upon the size, compute the lo and hi bounds.
17766cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
17772$ac_includes_default
17773int
17774main ()
17775{
17776static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17777test_array [0] = 0
17778
17779 ;
17780 return 0;
17781}
17782_ACEOF
17783rm -f conftest.$ac_objext
17784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17785 (eval $ac_compile) 2>conftest.er1
a848cd7e 17786 ac_status=$?
ac1cb8d3
VS
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
a848cd7e
SC
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
6954625c 17792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_lo=0 ac_mid=0
17805 while :; do
17806 cat >conftest.$ac_ext <<_ACEOF
17807/* confdefs.h. */
17808_ACEOF
17809cat confdefs.h >>conftest.$ac_ext
17810cat >>conftest.$ac_ext <<_ACEOF
17811/* end confdefs.h. */
17812$ac_includes_default
17813int
17814main ()
17815{
17816static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17817test_array [0] = 0
17818
17819 ;
17820 return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext
17824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17825 (eval $ac_compile) 2>conftest.er1
a848cd7e 17826 ac_status=$?
ac1cb8d3
VS
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
a848cd7e
SC
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
6954625c 17832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_hi=$ac_mid; break
17845else
17846 echo "$as_me: failed program was:" >&5
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
17849ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17850 if test $ac_lo -le $ac_mid; then
17851 ac_lo= ac_hi=
17852 break
17853 fi
17854 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17855fi
ac1cb8d3 17856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17857 done
17858else
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862cat >conftest.$ac_ext <<_ACEOF
17863/* confdefs.h. */
17864_ACEOF
17865cat confdefs.h >>conftest.$ac_ext
17866cat >>conftest.$ac_ext <<_ACEOF
17867/* end confdefs.h. */
17868$ac_includes_default
17869int
17870main ()
17871{
17872static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17873test_array [0] = 0
17874
17875 ;
17876 return 0;
17877}
17878_ACEOF
17879rm -f conftest.$ac_objext
17880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17881 (eval $ac_compile) 2>conftest.er1
a848cd7e 17882 ac_status=$?
ac1cb8d3
VS
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
a848cd7e
SC
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
6954625c 17888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_hi=-1 ac_mid=-1
17901 while :; do
17902 cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908$ac_includes_default
17909int
17910main ()
17911{
17912static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17913test_array [0] = 0
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext
17920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17921 (eval $ac_compile) 2>conftest.er1
a848cd7e 17922 ac_status=$?
ac1cb8d3
VS
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
a848cd7e
SC
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
6954625c 17928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_lo=$ac_mid; break
17941else
17942 echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17946 if test $ac_mid -le $ac_hi; then
17947 ac_lo= ac_hi=
17948 break
17949 fi
17950 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17951fi
ac1cb8d3 17952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17953 done
17954else
17955 echo "$as_me: failed program was:" >&5
17956sed 's/^/| /' conftest.$ac_ext >&5
17957
17958ac_lo= ac_hi=
17959fi
ac1cb8d3 17960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17961fi
ac1cb8d3 17962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17963# Binary search between lo and hi bounds.
17964while test "x$ac_lo" != "x$ac_hi"; do
17965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17966 cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972$ac_includes_default
17973int
17974main ()
17975{
17976static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17977test_array [0] = 0
17978
17979 ;
17980 return 0;
17981}
17982_ACEOF
17983rm -f conftest.$ac_objext
17984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17985 (eval $ac_compile) 2>conftest.er1
a848cd7e 17986 ac_status=$?
ac1cb8d3
VS
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
a848cd7e
SC
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
6954625c 17992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_hi=$ac_mid
18005else
18006 echo "$as_me: failed program was:" >&5
18007sed 's/^/| /' conftest.$ac_ext >&5
18008
18009ac_lo=`expr '(' $ac_mid ')' + 1`
18010fi
ac1cb8d3 18011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18012done
18013case $ac_lo in
18014?*) ac_cv_sizeof_short=$ac_lo;;
18015'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18016See \`config.log' for more details." >&5
18017echo "$as_me: error: cannot compute sizeof (short), 77
18018See \`config.log' for more details." >&2;}
18019 { (exit 1); exit 1; }; } ;;
18020esac
18021else
18022 if test "$cross_compiling" = yes; then
6954625c
VZ
18023 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18024echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18025 { (exit 1); exit 1; }; }
18026else
18027 cat >conftest.$ac_ext <<_ACEOF
18028/* confdefs.h. */
18029_ACEOF
18030cat confdefs.h >>conftest.$ac_ext
18031cat >>conftest.$ac_ext <<_ACEOF
18032/* end confdefs.h. */
18033$ac_includes_default
18034long longval () { return (long) (sizeof (short)); }
18035unsigned long ulongval () { return (long) (sizeof (short)); }
18036#include <stdio.h>
18037#include <stdlib.h>
18038int
18039main ()
18040{
18041
18042 FILE *f = fopen ("conftest.val", "w");
18043 if (! f)
18044 exit (1);
18045 if (((long) (sizeof (short))) < 0)
18046 {
18047 long i = longval ();
18048 if (i != ((long) (sizeof (short))))
18049 exit (1);
18050 fprintf (f, "%ld\n", i);
18051 }
18052 else
18053 {
18054 unsigned long i = ulongval ();
18055 if (i != ((long) (sizeof (short))))
18056 exit (1);
18057 fprintf (f, "%lu\n", i);
18058 }
18059 exit (ferror (f) || fclose (f) != 0);
18060
18061 ;
18062 return 0;
18063}
18064_ACEOF
18065rm -f conftest$ac_exeext
18066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_cv_sizeof_short=`cat conftest.val`
18077else
18078 echo "$as_me: program exited with status $ac_status" >&5
18079echo "$as_me: failed program was:" >&5
18080sed 's/^/| /' conftest.$ac_ext >&5
18081
18082( exit $ac_status )
18083{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18084See \`config.log' for more details." >&5
18085echo "$as_me: error: cannot compute sizeof (short), 77
18086See \`config.log' for more details." >&2;}
18087 { (exit 1); exit 1; }; }
18088fi
ac1cb8d3 18089rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18090fi
18091fi
18092rm -f conftest.val
18093else
18094 ac_cv_sizeof_short=0
18095fi
18096fi
18097echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18098echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18099cat >>confdefs.h <<_ACEOF
18100#define SIZEOF_SHORT $ac_cv_sizeof_short
18101_ACEOF
18102
18103
18104echo "$as_me:$LINENO: checking for void *" >&5
18105echo $ECHO_N "checking for void *... $ECHO_C" >&6
18106if test "${ac_cv_type_void_p+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109 cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h. */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */
18115$ac_includes_default
18116int
18117main ()
18118{
18119if ((void * *) 0)
18120 return 0;
18121if (sizeof (void *))
18122 return 0;
18123 ;
18124 return 0;
18125}
18126_ACEOF
18127rm -f conftest.$ac_objext
18128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18129 (eval $ac_compile) 2>conftest.er1
a848cd7e 18130 ac_status=$?
ac1cb8d3
VS
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
a848cd7e
SC
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
6954625c 18136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_cv_type_void_p=yes
18149else
18150 echo "$as_me: failed program was:" >&5
18151sed 's/^/| /' conftest.$ac_ext >&5
18152
18153ac_cv_type_void_p=no
18154fi
ac1cb8d3 18155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18156fi
18157echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18158echo "${ECHO_T}$ac_cv_type_void_p" >&6
18159
18160echo "$as_me:$LINENO: checking size of void *" >&5
18161echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18162if test "${ac_cv_sizeof_void_p+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164else
18165 if test "$ac_cv_type_void_p" = yes; then
18166 # The cast to unsigned long works around a bug in the HP C Compiler
18167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18169 # This bug is HP SR number 8606223364.
18170 if test "$cross_compiling" = yes; then
18171 # Depending upon the size, compute the lo and hi bounds.
18172cat >conftest.$ac_ext <<_ACEOF
18173/* confdefs.h. */
18174_ACEOF
18175cat confdefs.h >>conftest.$ac_ext
18176cat >>conftest.$ac_ext <<_ACEOF
18177/* end confdefs.h. */
18178$ac_includes_default
18179int
18180main ()
18181{
18182static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18183test_array [0] = 0
18184
18185 ;
18186 return 0;
18187}
18188_ACEOF
18189rm -f conftest.$ac_objext
18190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18191 (eval $ac_compile) 2>conftest.er1
a848cd7e 18192 ac_status=$?
ac1cb8d3
VS
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
a848cd7e
SC
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
6954625c 18198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_lo=0 ac_mid=0
18211 while :; do
18212 cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h. */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h. */
18218$ac_includes_default
18219int
18220main ()
18221{
18222static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18223test_array [0] = 0
18224
18225 ;
18226 return 0;
18227}
18228_ACEOF
18229rm -f conftest.$ac_objext
18230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18231 (eval $ac_compile) 2>conftest.er1
a848cd7e 18232 ac_status=$?
ac1cb8d3
VS
18233 grep -v '^ *+' conftest.er1 >conftest.err
18234 rm -f conftest.er1
18235 cat conftest.err >&5
a848cd7e
SC
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
6954625c 18238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 ac_hi=$ac_mid; break
18251else
18252 echo "$as_me: failed program was:" >&5
18253sed 's/^/| /' conftest.$ac_ext >&5
18254
18255ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18256 if test $ac_lo -le $ac_mid; then
18257 ac_lo= ac_hi=
18258 break
18259 fi
18260 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18261fi
ac1cb8d3 18262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18263 done
18264else
18265 echo "$as_me: failed program was:" >&5
18266sed 's/^/| /' conftest.$ac_ext >&5
18267
18268cat >conftest.$ac_ext <<_ACEOF
18269/* confdefs.h. */
18270_ACEOF
18271cat confdefs.h >>conftest.$ac_ext
18272cat >>conftest.$ac_ext <<_ACEOF
18273/* end confdefs.h. */
18274$ac_includes_default
18275int
18276main ()
18277{
18278static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18279test_array [0] = 0
18280
18281 ;
18282 return 0;
18283}
18284_ACEOF
18285rm -f conftest.$ac_objext
18286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18287 (eval $ac_compile) 2>conftest.er1
a848cd7e 18288 ac_status=$?
ac1cb8d3
VS
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
a848cd7e
SC
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
6954625c 18294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_hi=-1 ac_mid=-1
18307 while :; do
18308 cat >conftest.$ac_ext <<_ACEOF
18309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
18314$ac_includes_default
18315int
18316main ()
18317{
18318static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18319test_array [0] = 0
18320
18321 ;
18322 return 0;
18323}
18324_ACEOF
18325rm -f conftest.$ac_objext
18326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18327 (eval $ac_compile) 2>conftest.er1
a848cd7e 18328 ac_status=$?
ac1cb8d3
VS
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
a848cd7e
SC
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
6954625c 18334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_lo=$ac_mid; break
18347else
18348 echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18352 if test $ac_mid -le $ac_hi; then
18353 ac_lo= ac_hi=
18354 break
18355 fi
18356 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18357fi
ac1cb8d3 18358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18359 done
18360else
18361 echo "$as_me: failed program was:" >&5
18362sed 's/^/| /' conftest.$ac_ext >&5
18363
18364ac_lo= ac_hi=
18365fi
ac1cb8d3 18366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18367fi
ac1cb8d3 18368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18369# Binary search between lo and hi bounds.
18370while test "x$ac_lo" != "x$ac_hi"; do
18371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18372 cat >conftest.$ac_ext <<_ACEOF
18373/* confdefs.h. */
18374_ACEOF
18375cat confdefs.h >>conftest.$ac_ext
18376cat >>conftest.$ac_ext <<_ACEOF
18377/* end confdefs.h. */
18378$ac_includes_default
18379int
18380main ()
18381{
18382static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18383test_array [0] = 0
18384
18385 ;
18386 return 0;
18387}
18388_ACEOF
18389rm -f conftest.$ac_objext
18390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18391 (eval $ac_compile) 2>conftest.er1
a848cd7e 18392 ac_status=$?
ac1cb8d3
VS
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
a848cd7e
SC
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
6954625c 18398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; } &&
18404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; }; then
18410 ac_hi=$ac_mid
18411else
18412 echo "$as_me: failed program was:" >&5
18413sed 's/^/| /' conftest.$ac_ext >&5
18414
18415ac_lo=`expr '(' $ac_mid ')' + 1`
18416fi
ac1cb8d3 18417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18418done
18419case $ac_lo in
18420?*) ac_cv_sizeof_void_p=$ac_lo;;
18421'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18422See \`config.log' for more details." >&5
18423echo "$as_me: error: cannot compute sizeof (void *), 77
18424See \`config.log' for more details." >&2;}
18425 { (exit 1); exit 1; }; } ;;
18426esac
18427else
18428 if test "$cross_compiling" = yes; then
6954625c
VZ
18429 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18430echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18431 { (exit 1); exit 1; }; }
18432else
18433 cat >conftest.$ac_ext <<_ACEOF
18434/* confdefs.h. */
18435_ACEOF
18436cat confdefs.h >>conftest.$ac_ext
18437cat >>conftest.$ac_ext <<_ACEOF
18438/* end confdefs.h. */
18439$ac_includes_default
18440long longval () { return (long) (sizeof (void *)); }
18441unsigned long ulongval () { return (long) (sizeof (void *)); }
18442#include <stdio.h>
18443#include <stdlib.h>
18444int
18445main ()
18446{
18447
18448 FILE *f = fopen ("conftest.val", "w");
18449 if (! f)
18450 exit (1);
18451 if (((long) (sizeof (void *))) < 0)
18452 {
18453 long i = longval ();
18454 if (i != ((long) (sizeof (void *))))
18455 exit (1);
18456 fprintf (f, "%ld\n", i);
18457 }
18458 else
18459 {
18460 unsigned long i = ulongval ();
18461 if (i != ((long) (sizeof (void *))))
18462 exit (1);
18463 fprintf (f, "%lu\n", i);
18464 }
18465 exit (ferror (f) || fclose (f) != 0);
18466
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest$ac_exeext
18472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18473 (eval $ac_link) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_cv_sizeof_void_p=`cat conftest.val`
18483else
18484 echo "$as_me: program exited with status $ac_status" >&5
18485echo "$as_me: failed program was:" >&5
18486sed 's/^/| /' conftest.$ac_ext >&5
18487
18488( exit $ac_status )
18489{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18490See \`config.log' for more details." >&5
18491echo "$as_me: error: cannot compute sizeof (void *), 77
18492See \`config.log' for more details." >&2;}
18493 { (exit 1); exit 1; }; }
18494fi
ac1cb8d3 18495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18496fi
18497fi
18498rm -f conftest.val
18499else
18500 ac_cv_sizeof_void_p=0
18501fi
18502fi
18503echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18504echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18505cat >>confdefs.h <<_ACEOF
18506#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18507_ACEOF
18508
18509
18510echo "$as_me:$LINENO: checking for int" >&5
18511echo $ECHO_N "checking for int... $ECHO_C" >&6
18512if test "${ac_cv_type_int+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514else
18515 cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
18521$ac_includes_default
18522int
18523main ()
18524{
18525if ((int *) 0)
18526 return 0;
18527if (sizeof (int))
18528 return 0;
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext
18534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18535 (eval $ac_compile) 2>conftest.er1
a848cd7e 18536 ac_status=$?
ac1cb8d3
VS
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
a848cd7e
SC
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
6954625c 18542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_type_int=yes
18555else
18556 echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559ac_cv_type_int=no
18560fi
ac1cb8d3 18561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18562fi
18563echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18564echo "${ECHO_T}$ac_cv_type_int" >&6
18565
18566echo "$as_me:$LINENO: checking size of int" >&5
18567echo $ECHO_N "checking size of int... $ECHO_C" >&6
18568if test "${ac_cv_sizeof_int+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570else
18571 if test "$ac_cv_type_int" = yes; then
18572 # The cast to unsigned long works around a bug in the HP C Compiler
18573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18575 # This bug is HP SR number 8606223364.
18576 if test "$cross_compiling" = yes; then
18577 # Depending upon the size, compute the lo and hi bounds.
18578cat >conftest.$ac_ext <<_ACEOF
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
18584$ac_includes_default
18585int
18586main ()
18587{
18588static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18589test_array [0] = 0
18590
18591 ;
18592 return 0;
18593}
18594_ACEOF
18595rm -f conftest.$ac_objext
18596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18597 (eval $ac_compile) 2>conftest.er1
a848cd7e 18598 ac_status=$?
ac1cb8d3
VS
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
a848cd7e
SC
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
6954625c 18604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; }; then
18616 ac_lo=0 ac_mid=0
18617 while :; do
18618 cat >conftest.$ac_ext <<_ACEOF
18619/* confdefs.h. */
18620_ACEOF
18621cat confdefs.h >>conftest.$ac_ext
18622cat >>conftest.$ac_ext <<_ACEOF
18623/* end confdefs.h. */
18624$ac_includes_default
18625int
18626main ()
18627{
18628static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18629test_array [0] = 0
18630
18631 ;
18632 return 0;
18633}
18634_ACEOF
18635rm -f conftest.$ac_objext
18636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18637 (eval $ac_compile) 2>conftest.er1
a848cd7e 18638 ac_status=$?
ac1cb8d3
VS
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
a848cd7e
SC
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
6954625c 18644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; } &&
18650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_hi=$ac_mid; break
18657else
18658 echo "$as_me: failed program was:" >&5
18659sed 's/^/| /' conftest.$ac_ext >&5
18660
18661ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18662 if test $ac_lo -le $ac_mid; then
18663 ac_lo= ac_hi=
18664 break
18665 fi
18666 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18667fi
ac1cb8d3 18668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18669 done
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674cat >conftest.$ac_ext <<_ACEOF
18675/* confdefs.h. */
18676_ACEOF
18677cat confdefs.h >>conftest.$ac_ext
18678cat >>conftest.$ac_ext <<_ACEOF
18679/* end confdefs.h. */
18680$ac_includes_default
18681int
18682main ()
18683{
18684static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18685test_array [0] = 0
18686
18687 ;
18688 return 0;
18689}
18690_ACEOF
18691rm -f conftest.$ac_objext
18692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18693 (eval $ac_compile) 2>conftest.er1
a848cd7e 18694 ac_status=$?
ac1cb8d3
VS
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
a848cd7e
SC
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
6954625c 18700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_hi=-1 ac_mid=-1
18713 while :; do
18714 cat >conftest.$ac_ext <<_ACEOF
18715/* confdefs.h. */
18716_ACEOF
18717cat confdefs.h >>conftest.$ac_ext
18718cat >>conftest.$ac_ext <<_ACEOF
18719/* end confdefs.h. */
18720$ac_includes_default
18721int
18722main ()
18723{
18724static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18725test_array [0] = 0
18726
18727 ;
18728 return 0;
18729}
18730_ACEOF
18731rm -f conftest.$ac_objext
18732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18733 (eval $ac_compile) 2>conftest.er1
a848cd7e 18734 ac_status=$?
ac1cb8d3
VS
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
a848cd7e
SC
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
6954625c 18740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_lo=$ac_mid; break
18753else
18754 echo "$as_me: failed program was:" >&5
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
18757ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18758 if test $ac_mid -le $ac_hi; then
18759 ac_lo= ac_hi=
18760 break
18761 fi
18762 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18763fi
ac1cb8d3 18764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18765 done
18766else
18767 echo "$as_me: failed program was:" >&5
18768sed 's/^/| /' conftest.$ac_ext >&5
18769
18770ac_lo= ac_hi=
18771fi
ac1cb8d3 18772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18773fi
ac1cb8d3 18774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18775# Binary search between lo and hi bounds.
18776while test "x$ac_lo" != "x$ac_hi"; do
18777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784$ac_includes_default
18785int
18786main ()
18787{
18788static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18789test_array [0] = 0
18790
18791 ;
18792 return 0;
18793}
18794_ACEOF
18795rm -f conftest.$ac_objext
18796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18797 (eval $ac_compile) 2>conftest.er1
a848cd7e 18798 ac_status=$?
ac1cb8d3
VS
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
a848cd7e
SC
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
6954625c 18804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812 (eval $ac_try) 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; }; then
18816 ac_hi=$ac_mid
18817else
18818 echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821ac_lo=`expr '(' $ac_mid ')' + 1`
18822fi
ac1cb8d3 18823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18824done
18825case $ac_lo in
18826?*) ac_cv_sizeof_int=$ac_lo;;
18827'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18828See \`config.log' for more details." >&5
18829echo "$as_me: error: cannot compute sizeof (int), 77
18830See \`config.log' for more details." >&2;}
18831 { (exit 1); exit 1; }; } ;;
18832esac
18833else
18834 if test "$cross_compiling" = yes; then
6954625c
VZ
18835 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18836echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18837 { (exit 1); exit 1; }; }
18838else
18839 cat >conftest.$ac_ext <<_ACEOF
18840/* confdefs.h. */
18841_ACEOF
18842cat confdefs.h >>conftest.$ac_ext
18843cat >>conftest.$ac_ext <<_ACEOF
18844/* end confdefs.h. */
18845$ac_includes_default
18846long longval () { return (long) (sizeof (int)); }
18847unsigned long ulongval () { return (long) (sizeof (int)); }
18848#include <stdio.h>
18849#include <stdlib.h>
18850int
18851main ()
18852{
18853
18854 FILE *f = fopen ("conftest.val", "w");
18855 if (! f)
18856 exit (1);
18857 if (((long) (sizeof (int))) < 0)
18858 {
18859 long i = longval ();
18860 if (i != ((long) (sizeof (int))))
18861 exit (1);
18862 fprintf (f, "%ld\n", i);
18863 }
18864 else
18865 {
18866 unsigned long i = ulongval ();
18867 if (i != ((long) (sizeof (int))))
18868 exit (1);
18869 fprintf (f, "%lu\n", i);
18870 }
18871 exit (ferror (f) || fclose (f) != 0);
18872
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest$ac_exeext
18878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879 (eval $ac_link) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_sizeof_int=`cat conftest.val`
18889else
18890 echo "$as_me: program exited with status $ac_status" >&5
18891echo "$as_me: failed program was:" >&5
18892sed 's/^/| /' conftest.$ac_ext >&5
18893
18894( exit $ac_status )
18895{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18896See \`config.log' for more details." >&5
18897echo "$as_me: error: cannot compute sizeof (int), 77
18898See \`config.log' for more details." >&2;}
18899 { (exit 1); exit 1; }; }
18900fi
ac1cb8d3 18901rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18902fi
18903fi
18904rm -f conftest.val
18905else
18906 ac_cv_sizeof_int=0
18907fi
18908fi
18909echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18910echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18911cat >>confdefs.h <<_ACEOF
18912#define SIZEOF_INT $ac_cv_sizeof_int
18913_ACEOF
18914
18915
18916echo "$as_me:$LINENO: checking for long" >&5
18917echo $ECHO_N "checking for long... $ECHO_C" >&6
18918if test "${ac_cv_type_long+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 cat >conftest.$ac_ext <<_ACEOF
18922/* confdefs.h. */
18923_ACEOF
18924cat confdefs.h >>conftest.$ac_ext
18925cat >>conftest.$ac_ext <<_ACEOF
18926/* end confdefs.h. */
18927$ac_includes_default
18928int
18929main ()
18930{
18931if ((long *) 0)
18932 return 0;
18933if (sizeof (long))
18934 return 0;
18935 ;
18936 return 0;
18937}
18938_ACEOF
18939rm -f conftest.$ac_objext
18940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18941 (eval $ac_compile) 2>conftest.er1
a848cd7e 18942 ac_status=$?
ac1cb8d3
VS
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
a848cd7e
SC
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
6954625c 18948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_cv_type_long=yes
18961else
18962 echo "$as_me: failed program was:" >&5
18963sed 's/^/| /' conftest.$ac_ext >&5
18964
18965ac_cv_type_long=no
18966fi
ac1cb8d3 18967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18968fi
18969echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18970echo "${ECHO_T}$ac_cv_type_long" >&6
18971
18972echo "$as_me:$LINENO: checking size of long" >&5
18973echo $ECHO_N "checking size of long... $ECHO_C" >&6
18974if test "${ac_cv_sizeof_long+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976else
18977 if test "$ac_cv_type_long" = yes; then
18978 # The cast to unsigned long works around a bug in the HP C Compiler
18979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18981 # This bug is HP SR number 8606223364.
18982 if test "$cross_compiling" = yes; then
18983 # Depending upon the size, compute the lo and hi bounds.
18984cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */
18990$ac_includes_default
18991int
18992main ()
18993{
18994static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18995test_array [0] = 0
18996
18997 ;
18998 return 0;
18999}
19000_ACEOF
19001rm -f conftest.$ac_objext
19002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19003 (eval $ac_compile) 2>conftest.er1
a848cd7e 19004 ac_status=$?
ac1cb8d3
VS
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
a848cd7e
SC
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
6954625c 19010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_lo=0 ac_mid=0
19023 while :; do
19024 cat >conftest.$ac_ext <<_ACEOF
19025/* confdefs.h. */
19026_ACEOF
19027cat confdefs.h >>conftest.$ac_ext
19028cat >>conftest.$ac_ext <<_ACEOF
19029/* end confdefs.h. */
19030$ac_includes_default
19031int
19032main ()
19033{
19034static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19035test_array [0] = 0
19036
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext
19042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19043 (eval $ac_compile) 2>conftest.er1
a848cd7e 19044 ac_status=$?
ac1cb8d3
VS
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
a848cd7e
SC
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
6954625c 19050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_hi=$ac_mid; break
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19068 if test $ac_lo -le $ac_mid; then
19069 ac_lo= ac_hi=
19070 break
19071 fi
19072 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19073fi
ac1cb8d3 19074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19075 done
19076else
19077 echo "$as_me: failed program was:" >&5
19078sed 's/^/| /' conftest.$ac_ext >&5
19079
19080cat >conftest.$ac_ext <<_ACEOF
19081/* confdefs.h. */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
19085/* end confdefs.h. */
19086$ac_includes_default
19087int
19088main ()
19089{
19090static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19091test_array [0] = 0
19092
19093 ;
19094 return 0;
19095}
19096_ACEOF
19097rm -f conftest.$ac_objext
19098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19099 (eval $ac_compile) 2>conftest.er1
a848cd7e 19100 ac_status=$?
ac1cb8d3
VS
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
a848cd7e
SC
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
6954625c 19106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; } &&
19112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_hi=-1 ac_mid=-1
19119 while :; do
19120 cat >conftest.$ac_ext <<_ACEOF
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
19126$ac_includes_default
19127int
19128main ()
19129{
19130static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19131test_array [0] = 0
19132
19133 ;
19134 return 0;
19135}
19136_ACEOF
19137rm -f conftest.$ac_objext
19138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19139 (eval $ac_compile) 2>conftest.er1
a848cd7e 19140 ac_status=$?
ac1cb8d3
VS
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
a848cd7e
SC
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
6954625c 19146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_lo=$ac_mid; break
19159else
19160 echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19164 if test $ac_mid -le $ac_hi; then
19165 ac_lo= ac_hi=
19166 break
19167 fi
19168 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19169fi
ac1cb8d3 19170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19171 done
19172else
19173 echo "$as_me: failed program was:" >&5
19174sed 's/^/| /' conftest.$ac_ext >&5
19175
19176ac_lo= ac_hi=
19177fi
ac1cb8d3 19178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19179fi
ac1cb8d3 19180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19181# Binary search between lo and hi bounds.
19182while test "x$ac_lo" != "x$ac_hi"; do
19183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190$ac_includes_default
19191int
19192main ()
19193{
19194static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19195test_array [0] = 0
19196
19197 ;
19198 return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext
19202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19203 (eval $ac_compile) 2>conftest.er1
a848cd7e 19204 ac_status=$?
ac1cb8d3
VS
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
a848cd7e
SC
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
6954625c 19210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_hi=$ac_mid
19223else
19224 echo "$as_me: failed program was:" >&5
19225sed 's/^/| /' conftest.$ac_ext >&5
19226
19227ac_lo=`expr '(' $ac_mid ')' + 1`
19228fi
ac1cb8d3 19229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19230done
19231case $ac_lo in
19232?*) ac_cv_sizeof_long=$ac_lo;;
19233'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19234See \`config.log' for more details." >&5
19235echo "$as_me: error: cannot compute sizeof (long), 77
19236See \`config.log' for more details." >&2;}
19237 { (exit 1); exit 1; }; } ;;
19238esac
19239else
19240 if test "$cross_compiling" = yes; then
6954625c
VZ
19241 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19242echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19243 { (exit 1); exit 1; }; }
19244else
19245 cat >conftest.$ac_ext <<_ACEOF
19246/* confdefs.h. */
19247_ACEOF
19248cat confdefs.h >>conftest.$ac_ext
19249cat >>conftest.$ac_ext <<_ACEOF
19250/* end confdefs.h. */
19251$ac_includes_default
19252long longval () { return (long) (sizeof (long)); }
19253unsigned long ulongval () { return (long) (sizeof (long)); }
19254#include <stdio.h>
19255#include <stdlib.h>
19256int
19257main ()
19258{
19259
19260 FILE *f = fopen ("conftest.val", "w");
19261 if (! f)
19262 exit (1);
19263 if (((long) (sizeof (long))) < 0)
19264 {
19265 long i = longval ();
19266 if (i != ((long) (sizeof (long))))
19267 exit (1);
19268 fprintf (f, "%ld\n", i);
19269 }
19270 else
19271 {
19272 unsigned long i = ulongval ();
19273 if (i != ((long) (sizeof (long))))
19274 exit (1);
19275 fprintf (f, "%lu\n", i);
19276 }
19277 exit (ferror (f) || fclose (f) != 0);
19278
19279 ;
19280 return 0;
19281}
19282_ACEOF
19283rm -f conftest$ac_exeext
19284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19285 (eval $ac_link) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_sizeof_long=`cat conftest.val`
19295else
19296 echo "$as_me: program exited with status $ac_status" >&5
19297echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300( exit $ac_status )
19301{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19302See \`config.log' for more details." >&5
19303echo "$as_me: error: cannot compute sizeof (long), 77
19304See \`config.log' for more details." >&2;}
19305 { (exit 1); exit 1; }; }
19306fi
ac1cb8d3 19307rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19308fi
19309fi
19310rm -f conftest.val
19311else
19312 ac_cv_sizeof_long=0
19313fi
19314fi
19315echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19316echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19317cat >>confdefs.h <<_ACEOF
19318#define SIZEOF_LONG $ac_cv_sizeof_long
19319_ACEOF
19320
19321
19322echo "$as_me:$LINENO: checking for size_t" >&5
19323echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19324if test "${ac_cv_type_size_t+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326else
19327 cat >conftest.$ac_ext <<_ACEOF
19328/* confdefs.h. */
19329_ACEOF
19330cat confdefs.h >>conftest.$ac_ext
19331cat >>conftest.$ac_ext <<_ACEOF
19332/* end confdefs.h. */
19333$ac_includes_default
19334int
19335main ()
19336{
19337if ((size_t *) 0)
19338 return 0;
19339if (sizeof (size_t))
19340 return 0;
19341 ;
19342 return 0;
19343}
19344_ACEOF
19345rm -f conftest.$ac_objext
19346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19347 (eval $ac_compile) 2>conftest.er1
a848cd7e 19348 ac_status=$?
ac1cb8d3
VS
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
a848cd7e
SC
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
6954625c 19354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } &&
19360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 ac_cv_type_size_t=yes
19367else
19368 echo "$as_me: failed program was:" >&5
19369sed 's/^/| /' conftest.$ac_ext >&5
19370
19371ac_cv_type_size_t=no
19372fi
ac1cb8d3 19373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19374fi
19375echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19376echo "${ECHO_T}$ac_cv_type_size_t" >&6
19377
19378echo "$as_me:$LINENO: checking size of size_t" >&5
19379echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19380if test "${ac_cv_sizeof_size_t+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382else
19383 if test "$ac_cv_type_size_t" = yes; then
19384 # The cast to unsigned long works around a bug in the HP C Compiler
19385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19387 # This bug is HP SR number 8606223364.
19388 if test "$cross_compiling" = yes; then
19389 # Depending upon the size, compute the lo and hi bounds.
19390cat >conftest.$ac_ext <<_ACEOF
19391/* confdefs.h. */
19392_ACEOF
19393cat confdefs.h >>conftest.$ac_ext
19394cat >>conftest.$ac_ext <<_ACEOF
19395/* end confdefs.h. */
19396$ac_includes_default
19397int
19398main ()
19399{
19400static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19401test_array [0] = 0
19402
19403 ;
19404 return 0;
19405}
19406_ACEOF
19407rm -f conftest.$ac_objext
19408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19409 (eval $ac_compile) 2>conftest.er1
a848cd7e 19410 ac_status=$?
ac1cb8d3
VS
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
a848cd7e
SC
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
6954625c 19416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_lo=0 ac_mid=0
19429 while :; do
19430 cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436$ac_includes_default
19437int
19438main ()
19439{
19440static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19441test_array [0] = 0
19442
19443 ;
19444 return 0;
19445}
19446_ACEOF
19447rm -f conftest.$ac_objext
19448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19449 (eval $ac_compile) 2>conftest.er1
a848cd7e 19450 ac_status=$?
ac1cb8d3
VS
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
a848cd7e
SC
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
6954625c 19456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_hi=$ac_mid; break
19469else
19470 echo "$as_me: failed program was:" >&5
19471sed 's/^/| /' conftest.$ac_ext >&5
19472
19473ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19474 if test $ac_lo -le $ac_mid; then
19475 ac_lo= ac_hi=
19476 break
19477 fi
19478 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19479fi
ac1cb8d3 19480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19481 done
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
19491/* end confdefs.h. */
19492$ac_includes_default
19493int
19494main ()
19495{
19496static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19497test_array [0] = 0
19498
19499 ;
19500 return 0;
19501}
19502_ACEOF
19503rm -f conftest.$ac_objext
19504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19505 (eval $ac_compile) 2>conftest.er1
a848cd7e 19506 ac_status=$?
ac1cb8d3
VS
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
a848cd7e
SC
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
6954625c 19512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_hi=-1 ac_mid=-1
19525 while :; do
19526 cat >conftest.$ac_ext <<_ACEOF
19527/* confdefs.h. */
19528_ACEOF
19529cat confdefs.h >>conftest.$ac_ext
19530cat >>conftest.$ac_ext <<_ACEOF
19531/* end confdefs.h. */
19532$ac_includes_default
19533int
19534main ()
19535{
19536static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19537test_array [0] = 0
19538
19539 ;
19540 return 0;
19541}
19542_ACEOF
19543rm -f conftest.$ac_objext
19544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19545 (eval $ac_compile) 2>conftest.er1
a848cd7e 19546 ac_status=$?
ac1cb8d3
VS
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
a848cd7e
SC
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
6954625c 19552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_lo=$ac_mid; break
19565else
19566 echo "$as_me: failed program was:" >&5
19567sed 's/^/| /' conftest.$ac_ext >&5
19568
19569ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19570 if test $ac_mid -le $ac_hi; then
19571 ac_lo= ac_hi=
19572 break
19573 fi
19574 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19575fi
ac1cb8d3 19576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19577 done
19578else
19579 echo "$as_me: failed program was:" >&5
19580sed 's/^/| /' conftest.$ac_ext >&5
19581
19582ac_lo= ac_hi=
19583fi
ac1cb8d3 19584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19585fi
ac1cb8d3 19586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19587# Binary search between lo and hi bounds.
19588while test "x$ac_lo" != "x$ac_hi"; do
19589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19590 cat >conftest.$ac_ext <<_ACEOF
19591/* confdefs.h. */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h. */
19596$ac_includes_default
19597int
19598main ()
19599{
19600static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19601test_array [0] = 0
19602
19603 ;
19604 return 0;
19605}
19606_ACEOF
19607rm -f conftest.$ac_objext
19608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19609 (eval $ac_compile) 2>conftest.er1
a848cd7e 19610 ac_status=$?
ac1cb8d3
VS
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
a848cd7e
SC
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
6954625c 19616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; } &&
19622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_hi=$ac_mid
19629else
19630 echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
19633ac_lo=`expr '(' $ac_mid ')' + 1`
19634fi
ac1cb8d3 19635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19636done
19637case $ac_lo in
19638?*) ac_cv_sizeof_size_t=$ac_lo;;
19639'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19640See \`config.log' for more details." >&5
19641echo "$as_me: error: cannot compute sizeof (size_t), 77
19642See \`config.log' for more details." >&2;}
19643 { (exit 1); exit 1; }; } ;;
19644esac
19645else
19646 if test "$cross_compiling" = yes; then
6954625c
VZ
19647 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19648echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19649 { (exit 1); exit 1; }; }
19650else
19651 cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657$ac_includes_default
19658long longval () { return (long) (sizeof (size_t)); }
19659unsigned long ulongval () { return (long) (sizeof (size_t)); }
19660#include <stdio.h>
19661#include <stdlib.h>
19662int
19663main ()
19664{
19665
19666 FILE *f = fopen ("conftest.val", "w");
19667 if (! f)
19668 exit (1);
19669 if (((long) (sizeof (size_t))) < 0)
19670 {
19671 long i = longval ();
19672 if (i != ((long) (sizeof (size_t))))
19673 exit (1);
19674 fprintf (f, "%ld\n", i);
19675 }
19676 else
19677 {
19678 unsigned long i = ulongval ();
19679 if (i != ((long) (sizeof (size_t))))
19680 exit (1);
19681 fprintf (f, "%lu\n", i);
19682 }
19683 exit (ferror (f) || fclose (f) != 0);
19684
19685 ;
19686 return 0;
19687}
19688_ACEOF
19689rm -f conftest$ac_exeext
19690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19691 (eval $ac_link) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 ac_cv_sizeof_size_t=`cat conftest.val`
19701else
19702 echo "$as_me: program exited with status $ac_status" >&5
19703echo "$as_me: failed program was:" >&5
19704sed 's/^/| /' conftest.$ac_ext >&5
19705
19706( exit $ac_status )
19707{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19708See \`config.log' for more details." >&5
19709echo "$as_me: error: cannot compute sizeof (size_t), 77
19710See \`config.log' for more details." >&2;}
19711 { (exit 1); exit 1; }; }
19712fi
ac1cb8d3 19713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19714fi
19715fi
19716rm -f conftest.val
19717else
19718 ac_cv_sizeof_size_t=0
19719fi
19720fi
19721echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19722echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19723cat >>confdefs.h <<_ACEOF
19724#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19725_ACEOF
19726
19727
19728
19729case "${host}" in
19730 arm-*-linux* )
19731 echo "$as_me:$LINENO: checking for long long" >&5
19732echo $ECHO_N "checking for long long... $ECHO_C" >&6
19733if test "${ac_cv_type_long_long+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735else
19736 cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h. */
19742$ac_includes_default
19743int
19744main ()
19745{
19746if ((long long *) 0)
19747 return 0;
19748if (sizeof (long long))
19749 return 0;
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext
19755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19756 (eval $ac_compile) 2>conftest.er1
a848cd7e 19757 ac_status=$?
ac1cb8d3
VS
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
a848cd7e
SC
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
6954625c 19763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_type_long_long=yes
19776else
19777 echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780ac_cv_type_long_long=no
19781fi
ac1cb8d3 19782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19783fi
19784echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19785echo "${ECHO_T}$ac_cv_type_long_long" >&6
19786
19787echo "$as_me:$LINENO: checking size of long long" >&5
19788echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19789if test "${ac_cv_sizeof_long_long+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791else
19792 if test "$ac_cv_type_long_long" = yes; then
19793 # The cast to unsigned long works around a bug in the HP C Compiler
19794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19796 # This bug is HP SR number 8606223364.
19797 if test "$cross_compiling" = yes; then
19798 # Depending upon the size, compute the lo and hi bounds.
19799cat >conftest.$ac_ext <<_ACEOF
19800/* confdefs.h. */
19801_ACEOF
19802cat confdefs.h >>conftest.$ac_ext
19803cat >>conftest.$ac_ext <<_ACEOF
19804/* end confdefs.h. */
19805$ac_includes_default
19806int
19807main ()
19808{
19809static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19810test_array [0] = 0
19811
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816rm -f conftest.$ac_objext
19817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19818 (eval $ac_compile) 2>conftest.er1
a848cd7e 19819 ac_status=$?
ac1cb8d3
VS
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
a848cd7e
SC
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
6954625c 19825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 ac_lo=0 ac_mid=0
19838 while :; do
19839 cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845$ac_includes_default
19846int
19847main ()
19848{
19849static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19850test_array [0] = 0
19851
19852 ;
19853 return 0;
19854}
19855_ACEOF
19856rm -f conftest.$ac_objext
19857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19858 (eval $ac_compile) 2>conftest.er1
a848cd7e 19859 ac_status=$?
ac1cb8d3
VS
19860 grep -v '^ *+' conftest.er1 >conftest.err
19861 rm -f conftest.er1
19862 cat conftest.err >&5
a848cd7e
SC
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } &&
6954625c 19865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; } &&
19871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_hi=$ac_mid; break
19878else
19879 echo "$as_me: failed program was:" >&5
19880sed 's/^/| /' conftest.$ac_ext >&5
19881
19882ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19883 if test $ac_lo -le $ac_mid; then
19884 ac_lo= ac_hi=
19885 break
19886 fi
19887 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19888fi
ac1cb8d3 19889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19890 done
19891else
19892 echo "$as_me: failed program was:" >&5
19893sed 's/^/| /' conftest.$ac_ext >&5
19894
19895cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h. */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h. */
19901$ac_includes_default
19902int
19903main ()
19904{
19905static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19906test_array [0] = 0
19907
19908 ;
19909 return 0;
19910}
19911_ACEOF
19912rm -f conftest.$ac_objext
19913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19914 (eval $ac_compile) 2>conftest.er1
a848cd7e 19915 ac_status=$?
ac1cb8d3
VS
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
a848cd7e
SC
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
6954625c 19921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_hi=-1 ac_mid=-1
19934 while :; do
19935 cat >conftest.$ac_ext <<_ACEOF
19936/* confdefs.h. */
19937_ACEOF
19938cat confdefs.h >>conftest.$ac_ext
19939cat >>conftest.$ac_ext <<_ACEOF
19940/* end confdefs.h. */
19941$ac_includes_default
19942int
19943main ()
19944{
19945static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19946test_array [0] = 0
19947
19948 ;
19949 return 0;
19950}
19951_ACEOF
19952rm -f conftest.$ac_objext
19953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19954 (eval $ac_compile) 2>conftest.er1
a848cd7e 19955 ac_status=$?
ac1cb8d3
VS
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
a848cd7e
SC
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
6954625c 19961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19973 ac_lo=$ac_mid; break
19974else
19975 echo "$as_me: failed program was:" >&5
19976sed 's/^/| /' conftest.$ac_ext >&5
19977
19978ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19979 if test $ac_mid -le $ac_hi; then
19980 ac_lo= ac_hi=
19981 break
19982 fi
19983 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19984fi
ac1cb8d3 19985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19986 done
19987else
19988 echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991ac_lo= ac_hi=
19992fi
ac1cb8d3 19993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19994fi
ac1cb8d3 19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19996# Binary search between lo and hi bounds.
19997while test "x$ac_lo" != "x$ac_hi"; do
19998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19999 cat >conftest.$ac_ext <<_ACEOF
20000/* confdefs.h. */
20001_ACEOF
20002cat confdefs.h >>conftest.$ac_ext
20003cat >>conftest.$ac_ext <<_ACEOF
20004/* end confdefs.h. */
20005$ac_includes_default
20006int
20007main ()
20008{
20009static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20010test_array [0] = 0
20011
20012 ;
20013 return 0;
20014}
20015_ACEOF
20016rm -f conftest.$ac_objext
20017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20018 (eval $ac_compile) 2>conftest.er1
a848cd7e 20019 ac_status=$?
ac1cb8d3
VS
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
a848cd7e
SC
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
6954625c 20025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_hi=$ac_mid
20038else
20039 echo "$as_me: failed program was:" >&5
20040sed 's/^/| /' conftest.$ac_ext >&5
20041
20042ac_lo=`expr '(' $ac_mid ')' + 1`
20043fi
ac1cb8d3 20044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20045done
20046case $ac_lo in
20047?*) ac_cv_sizeof_long_long=$ac_lo;;
20048'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20049See \`config.log' for more details." >&5
20050echo "$as_me: error: cannot compute sizeof (long long), 77
20051See \`config.log' for more details." >&2;}
20052 { (exit 1); exit 1; }; } ;;
20053esac
20054else
20055 if test "$cross_compiling" = yes; then
6954625c
VZ
20056 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20057echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20058 { (exit 1); exit 1; }; }
20059else
20060 cat >conftest.$ac_ext <<_ACEOF
20061/* confdefs.h. */
20062_ACEOF
20063cat confdefs.h >>conftest.$ac_ext
20064cat >>conftest.$ac_ext <<_ACEOF
20065/* end confdefs.h. */
20066$ac_includes_default
20067long longval () { return (long) (sizeof (long long)); }
20068unsigned long ulongval () { return (long) (sizeof (long long)); }
20069#include <stdio.h>
20070#include <stdlib.h>
20071int
20072main ()
20073{
20074
20075 FILE *f = fopen ("conftest.val", "w");
20076 if (! f)
20077 exit (1);
20078 if (((long) (sizeof (long long))) < 0)
20079 {
20080 long i = longval ();
20081 if (i != ((long) (sizeof (long long))))
20082 exit (1);
20083 fprintf (f, "%ld\n", i);
20084 }
20085 else
20086 {
20087 unsigned long i = ulongval ();
20088 if (i != ((long) (sizeof (long long))))
20089 exit (1);
20090 fprintf (f, "%lu\n", i);
20091 }
20092 exit (ferror (f) || fclose (f) != 0);
20093
20094 ;
20095 return 0;
20096}
20097_ACEOF
20098rm -f conftest$ac_exeext
20099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20100 (eval $ac_link) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_cv_sizeof_long_long=`cat conftest.val`
20110else
20111 echo "$as_me: program exited with status $ac_status" >&5
20112echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115( exit $ac_status )
20116{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20117See \`config.log' for more details." >&5
20118echo "$as_me: error: cannot compute sizeof (long long), 77
20119See \`config.log' for more details." >&2;}
20120 { (exit 1); exit 1; }; }
20121fi
ac1cb8d3 20122rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20123fi
20124fi
20125rm -f conftest.val
20126else
20127 ac_cv_sizeof_long_long=0
20128fi
20129fi
20130echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20131echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20132cat >>confdefs.h <<_ACEOF
20133#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20134_ACEOF
20135
20136
20137 ;;
20138 *-hp-hpux* )
20139 echo "$as_me:$LINENO: checking for long long" >&5
20140echo $ECHO_N "checking for long long... $ECHO_C" >&6
20141if test "${ac_cv_type_long_long+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144 cat >conftest.$ac_ext <<_ACEOF
20145/* confdefs.h. */
20146_ACEOF
20147cat confdefs.h >>conftest.$ac_ext
20148cat >>conftest.$ac_ext <<_ACEOF
20149/* end confdefs.h. */
20150$ac_includes_default
20151int
20152main ()
20153{
20154if ((long long *) 0)
20155 return 0;
20156if (sizeof (long long))
20157 return 0;
20158 ;
20159 return 0;
20160}
20161_ACEOF
20162rm -f conftest.$ac_objext
20163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20164 (eval $ac_compile) 2>conftest.er1
a848cd7e 20165 ac_status=$?
ac1cb8d3
VS
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
a848cd7e
SC
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
6954625c 20171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_type_long_long=yes
20184else
20185 echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
20188ac_cv_type_long_long=no
20189fi
ac1cb8d3 20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20191fi
20192echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20193echo "${ECHO_T}$ac_cv_type_long_long" >&6
20194
20195echo "$as_me:$LINENO: checking size of long long" >&5
20196echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20197if test "${ac_cv_sizeof_long_long+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199else
20200 if test "$ac_cv_type_long_long" = yes; then
20201 # The cast to unsigned long works around a bug in the HP C Compiler
20202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20204 # This bug is HP SR number 8606223364.
20205 if test "$cross_compiling" = yes; then
20206 # Depending upon the size, compute the lo and hi bounds.
20207cat >conftest.$ac_ext <<_ACEOF
20208/* confdefs.h. */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h. */
20213$ac_includes_default
20214int
20215main ()
20216{
20217static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20218test_array [0] = 0
20219
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext
20225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20226 (eval $ac_compile) 2>conftest.er1
a848cd7e 20227 ac_status=$?
ac1cb8d3
VS
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
a848cd7e
SC
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
6954625c 20233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; } &&
20239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20245 ac_lo=0 ac_mid=0
20246 while :; do
20247 cat >conftest.$ac_ext <<_ACEOF
20248/* confdefs.h. */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
20252/* end confdefs.h. */
20253$ac_includes_default
20254int
20255main ()
20256{
20257static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20258test_array [0] = 0
20259
20260 ;
20261 return 0;
20262}
20263_ACEOF
20264rm -f conftest.$ac_objext
20265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20266 (eval $ac_compile) 2>conftest.er1
a848cd7e 20267 ac_status=$?
ac1cb8d3
VS
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
a848cd7e
SC
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
6954625c 20273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 ac_hi=$ac_mid; break
20286else
20287 echo "$as_me: failed program was:" >&5
20288sed 's/^/| /' conftest.$ac_ext >&5
20289
20290ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20291 if test $ac_lo -le $ac_mid; then
20292 ac_lo= ac_hi=
20293 break
20294 fi
20295 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20296fi
ac1cb8d3 20297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20298 done
20299else
20300 echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
20309$ac_includes_default
20310int
20311main ()
20312{
20313static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20314test_array [0] = 0
20315
20316 ;
20317 return 0;
20318}
20319_ACEOF
20320rm -f conftest.$ac_objext
20321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20322 (eval $ac_compile) 2>conftest.er1
a848cd7e 20323 ac_status=$?
ac1cb8d3
VS
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
a848cd7e
SC
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } &&
6954625c 20329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_hi=-1 ac_mid=-1
20342 while :; do
20343 cat >conftest.$ac_ext <<_ACEOF
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
20349$ac_includes_default
20350int
20351main ()
20352{
20353static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20354test_array [0] = 0
20355
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
20361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20362 (eval $ac_compile) 2>conftest.er1
a848cd7e 20363 ac_status=$?
ac1cb8d3
VS
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
a848cd7e
SC
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
6954625c 20369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_lo=$ac_mid; break
20382else
20383 echo "$as_me: failed program was:" >&5
20384sed 's/^/| /' conftest.$ac_ext >&5
20385
20386ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20387 if test $ac_mid -le $ac_hi; then
20388 ac_lo= ac_hi=
20389 break
20390 fi
20391 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20392fi
ac1cb8d3 20393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20394 done
20395else
20396 echo "$as_me: failed program was:" >&5
20397sed 's/^/| /' conftest.$ac_ext >&5
20398
20399ac_lo= ac_hi=
20400fi
ac1cb8d3 20401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20402fi
ac1cb8d3 20403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20404# Binary search between lo and hi bounds.
20405while test "x$ac_lo" != "x$ac_hi"; do
20406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20407 cat >conftest.$ac_ext <<_ACEOF
20408/* confdefs.h. */
20409_ACEOF
20410cat confdefs.h >>conftest.$ac_ext
20411cat >>conftest.$ac_ext <<_ACEOF
20412/* end confdefs.h. */
20413$ac_includes_default
20414int
20415main ()
20416{
20417static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20418test_array [0] = 0
20419
20420 ;
20421 return 0;
20422}
20423_ACEOF
20424rm -f conftest.$ac_objext
20425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20426 (eval $ac_compile) 2>conftest.er1
a848cd7e 20427 ac_status=$?
ac1cb8d3
VS
20428 grep -v '^ *+' conftest.er1 >conftest.err
20429 rm -f conftest.er1
20430 cat conftest.err >&5
a848cd7e
SC
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } &&
6954625c 20433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; } &&
20439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 ac_hi=$ac_mid
20446else
20447 echo "$as_me: failed program was:" >&5
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
20450ac_lo=`expr '(' $ac_mid ')' + 1`
20451fi
ac1cb8d3 20452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20453done
20454case $ac_lo in
20455?*) ac_cv_sizeof_long_long=$ac_lo;;
20456'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20457See \`config.log' for more details." >&5
20458echo "$as_me: error: cannot compute sizeof (long long), 77
20459See \`config.log' for more details." >&2;}
20460 { (exit 1); exit 1; }; } ;;
20461esac
20462else
20463 if test "$cross_compiling" = yes; then
6954625c
VZ
20464 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20465echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20466 { (exit 1); exit 1; }; }
20467else
20468 cat >conftest.$ac_ext <<_ACEOF
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
20474$ac_includes_default
20475long longval () { return (long) (sizeof (long long)); }
20476unsigned long ulongval () { return (long) (sizeof (long long)); }
20477#include <stdio.h>
20478#include <stdlib.h>
20479int
20480main ()
20481{
20482
20483 FILE *f = fopen ("conftest.val", "w");
20484 if (! f)
20485 exit (1);
20486 if (((long) (sizeof (long long))) < 0)
20487 {
20488 long i = longval ();
20489 if (i != ((long) (sizeof (long long))))
20490 exit (1);
20491 fprintf (f, "%ld\n", i);
20492 }
20493 else
20494 {
20495 unsigned long i = ulongval ();
20496 if (i != ((long) (sizeof (long long))))
20497 exit (1);
20498 fprintf (f, "%lu\n", i);
20499 }
20500 exit (ferror (f) || fclose (f) != 0);
20501
20502 ;
20503 return 0;
20504}
20505_ACEOF
20506rm -f conftest$ac_exeext
20507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20508 (eval $ac_link) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_sizeof_long_long=`cat conftest.val`
20518else
20519 echo "$as_me: program exited with status $ac_status" >&5
20520echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523( exit $ac_status )
20524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20525See \`config.log' for more details." >&5
20526echo "$as_me: error: cannot compute sizeof (long long), 77
20527See \`config.log' for more details." >&2;}
20528 { (exit 1); exit 1; }; }
20529fi
ac1cb8d3 20530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20531fi
20532fi
20533rm -f conftest.val
20534else
20535 ac_cv_sizeof_long_long=0
20536fi
20537fi
20538echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20539echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20540cat >>confdefs.h <<_ACEOF
20541#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20542_ACEOF
20543
20544
20545 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20546 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20547 fi
20548 ;;
20549 * )
20550 echo "$as_me:$LINENO: checking for long long" >&5
20551echo $ECHO_N "checking for long long... $ECHO_C" >&6
20552if test "${ac_cv_type_long_long+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554else
20555 cat >conftest.$ac_ext <<_ACEOF
20556/* confdefs.h. */
20557_ACEOF
20558cat confdefs.h >>conftest.$ac_ext
20559cat >>conftest.$ac_ext <<_ACEOF
20560/* end confdefs.h. */
20561$ac_includes_default
20562int
20563main ()
20564{
20565if ((long long *) 0)
20566 return 0;
20567if (sizeof (long long))
20568 return 0;
20569 ;
20570 return 0;
20571}
20572_ACEOF
20573rm -f conftest.$ac_objext
20574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20575 (eval $ac_compile) 2>conftest.er1
a848cd7e 20576 ac_status=$?
ac1cb8d3
VS
20577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
a848cd7e
SC
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
6954625c 20582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_type_long_long=yes
20595else
20596 echo "$as_me: failed program was:" >&5
20597sed 's/^/| /' conftest.$ac_ext >&5
20598
20599ac_cv_type_long_long=no
20600fi
ac1cb8d3 20601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20602fi
20603echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20604echo "${ECHO_T}$ac_cv_type_long_long" >&6
20605
20606echo "$as_me:$LINENO: checking size of long long" >&5
20607echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20608if test "${ac_cv_sizeof_long_long+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610else
20611 if test "$ac_cv_type_long_long" = yes; then
20612 # The cast to unsigned long works around a bug in the HP C Compiler
20613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20615 # This bug is HP SR number 8606223364.
20616 if test "$cross_compiling" = yes; then
20617 # Depending upon the size, compute the lo and hi bounds.
20618cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
20624$ac_includes_default
20625int
20626main ()
20627{
20628static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20629test_array [0] = 0
20630
20631 ;
20632 return 0;
20633}
20634_ACEOF
20635rm -f conftest.$ac_objext
20636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20637 (eval $ac_compile) 2>conftest.er1
a848cd7e 20638 ac_status=$?
ac1cb8d3
VS
20639 grep -v '^ *+' conftest.er1 >conftest.err
20640 rm -f conftest.er1
20641 cat conftest.err >&5
a848cd7e
SC
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } &&
6954625c 20644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_lo=0 ac_mid=0
20657 while :; do
20658 cat >conftest.$ac_ext <<_ACEOF
20659/* confdefs.h. */
20660_ACEOF
20661cat confdefs.h >>conftest.$ac_ext
20662cat >>conftest.$ac_ext <<_ACEOF
20663/* end confdefs.h. */
20664$ac_includes_default
20665int
20666main ()
20667{
20668static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20669test_array [0] = 0
20670
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
20676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20677 (eval $ac_compile) 2>conftest.er1
a848cd7e 20678 ac_status=$?
ac1cb8d3
VS
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
a848cd7e
SC
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
6954625c 20684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_hi=$ac_mid; break
20697else
20698 echo "$as_me: failed program was:" >&5
20699sed 's/^/| /' conftest.$ac_ext >&5
20700
20701ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20702 if test $ac_lo -le $ac_mid; then
20703 ac_lo= ac_hi=
20704 break
20705 fi
20706 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20707fi
ac1cb8d3 20708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20709 done
20710else
20711 echo "$as_me: failed program was:" >&5
20712sed 's/^/| /' conftest.$ac_ext >&5
20713
20714cat >conftest.$ac_ext <<_ACEOF
20715/* confdefs.h. */
20716_ACEOF
20717cat confdefs.h >>conftest.$ac_ext
20718cat >>conftest.$ac_ext <<_ACEOF
20719/* end confdefs.h. */
20720$ac_includes_default
20721int
20722main ()
20723{
20724static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20725test_array [0] = 0
20726
20727 ;
20728 return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext
20732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20733 (eval $ac_compile) 2>conftest.er1
a848cd7e 20734 ac_status=$?
ac1cb8d3
VS
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
a848cd7e
SC
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
6954625c 20740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_hi=-1 ac_mid=-1
20753 while :; do
20754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
20760$ac_includes_default
20761int
20762main ()
20763{
20764static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20765test_array [0] = 0
20766
20767 ;
20768 return 0;
20769}
20770_ACEOF
20771rm -f conftest.$ac_objext
20772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20773 (eval $ac_compile) 2>conftest.er1
a848cd7e 20774 ac_status=$?
ac1cb8d3
VS
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
a848cd7e
SC
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
6954625c 20780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_lo=$ac_mid; break
20793else
20794 echo "$as_me: failed program was:" >&5
20795sed 's/^/| /' conftest.$ac_ext >&5
20796
20797ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20798 if test $ac_mid -le $ac_hi; then
20799 ac_lo= ac_hi=
20800 break
20801 fi
20802 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20803fi
ac1cb8d3 20804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20805 done
20806else
20807 echo "$as_me: failed program was:" >&5
20808sed 's/^/| /' conftest.$ac_ext >&5
20809
20810ac_lo= ac_hi=
20811fi
ac1cb8d3 20812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20813fi
ac1cb8d3 20814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20815# Binary search between lo and hi bounds.
20816while test "x$ac_lo" != "x$ac_hi"; do
20817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20818 cat >conftest.$ac_ext <<_ACEOF
20819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824$ac_includes_default
20825int
20826main ()
20827{
20828static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20829test_array [0] = 0
20830
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext
20836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20837 (eval $ac_compile) 2>conftest.er1
a848cd7e 20838 ac_status=$?
ac1cb8d3
VS
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
a848cd7e
SC
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
6954625c 20844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_hi=$ac_mid
20857else
20858 echo "$as_me: failed program was:" >&5
20859sed 's/^/| /' conftest.$ac_ext >&5
20860
20861ac_lo=`expr '(' $ac_mid ')' + 1`
20862fi
ac1cb8d3 20863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20864done
20865case $ac_lo in
20866?*) ac_cv_sizeof_long_long=$ac_lo;;
20867'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20868See \`config.log' for more details." >&5
20869echo "$as_me: error: cannot compute sizeof (long long), 77
20870See \`config.log' for more details." >&2;}
20871 { (exit 1); exit 1; }; } ;;
20872esac
20873else
20874 if test "$cross_compiling" = yes; then
6954625c
VZ
20875 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20876echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20877 { (exit 1); exit 1; }; }
20878else
20879 cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885$ac_includes_default
20886long longval () { return (long) (sizeof (long long)); }
20887unsigned long ulongval () { return (long) (sizeof (long long)); }
20888#include <stdio.h>
20889#include <stdlib.h>
20890int
20891main ()
20892{
20893
20894 FILE *f = fopen ("conftest.val", "w");
20895 if (! f)
20896 exit (1);
20897 if (((long) (sizeof (long long))) < 0)
20898 {
20899 long i = longval ();
20900 if (i != ((long) (sizeof (long long))))
20901 exit (1);
20902 fprintf (f, "%ld\n", i);
20903 }
20904 else
20905 {
20906 unsigned long i = ulongval ();
20907 if (i != ((long) (sizeof (long long))))
20908 exit (1);
20909 fprintf (f, "%lu\n", i);
20910 }
20911 exit (ferror (f) || fclose (f) != 0);
20912
20913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest$ac_exeext
20918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20919 (eval $ac_link) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_sizeof_long_long=`cat conftest.val`
20929else
20930 echo "$as_me: program exited with status $ac_status" >&5
20931echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934( exit $ac_status )
20935{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20936See \`config.log' for more details." >&5
20937echo "$as_me: error: cannot compute sizeof (long long), 77
20938See \`config.log' for more details." >&2;}
20939 { (exit 1); exit 1; }; }
20940fi
ac1cb8d3 20941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20942fi
20943fi
20944rm -f conftest.val
20945else
20946 ac_cv_sizeof_long_long=0
20947fi
20948fi
20949echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20950echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20951cat >>confdefs.h <<_ACEOF
20952#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20953_ACEOF
20954
20955
20956esac
20957
238ecede
MW
20958echo "$as_me:$LINENO: checking for wchar_t" >&5
20959echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20960if test "${ac_cv_type_wchar_t+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962else
20963 cat >conftest.$ac_ext <<_ACEOF
20964/* confdefs.h. */
20965_ACEOF
20966cat confdefs.h >>conftest.$ac_ext
20967cat >>conftest.$ac_ext <<_ACEOF
20968/* end confdefs.h. */
20969
83d8eb47
MW
20970 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20971 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20972 # error "fake wchar_t"
20973 #endif
20974 #ifdef HAVE_WCHAR_H
20975 # ifdef __CYGWIN__
20976 # include <stddef.h>
20977 # endif
20978 # include <wchar.h>
20979 #endif
20980 #ifdef HAVE_STDLIB_H
20981 # include <stdlib.h>
20982 #endif
20983 #include <stdio.h>
20984
20985
20986
20987int
20988main ()
20989{
20990if ((wchar_t *) 0)
20991 return 0;
20992if (sizeof (wchar_t))
20993 return 0;
20994 ;
20995 return 0;
20996}
20997_ACEOF
20998rm -f conftest.$ac_objext
20999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
6954625c 21007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_cv_type_wchar_t=yes
21020else
21021 echo "$as_me: failed program was:" >&5
21022sed 's/^/| /' conftest.$ac_ext >&5
21023
21024ac_cv_type_wchar_t=no
21025fi
21026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027fi
21028echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21029echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21030
a848cd7e
SC
21031echo "$as_me:$LINENO: checking size of wchar_t" >&5
21032echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21033if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035else
238ecede
MW
21036 if test "$ac_cv_type_wchar_t" = yes; then
21037 # The cast to unsigned long works around a bug in the HP C Compiler
21038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21040 # This bug is HP SR number 8606223364.
21041 if test "$cross_compiling" = yes; then
21042 # Depending upon the size, compute the lo and hi bounds.
21043cat >conftest.$ac_ext <<_ACEOF
21044/* confdefs.h. */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h. */
21049
83d8eb47
MW
21050 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21051 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21052 # error "fake wchar_t"
21053 #endif
21054 #ifdef HAVE_WCHAR_H
21055 # ifdef __CYGWIN__
21056 # include <stddef.h>
21057 # endif
21058 # include <wchar.h>
21059 #endif
21060 #ifdef HAVE_STDLIB_H
21061 # include <stdlib.h>
21062 #endif
21063 #include <stdio.h>
21064
21065
21066
21067int
21068main ()
21069{
21070static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21071test_array [0] = 0
21072
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext
21078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079 (eval $ac_compile) 2>conftest.er1
21080 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
6954625c 21086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_lo=0 ac_mid=0
21099 while :; do
21100 cat >conftest.$ac_ext <<_ACEOF
21101/* confdefs.h. */
21102_ACEOF
21103cat confdefs.h >>conftest.$ac_ext
21104cat >>conftest.$ac_ext <<_ACEOF
21105/* end confdefs.h. */
21106
83d8eb47
MW
21107 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21108 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21109 # error "fake wchar_t"
21110 #endif
21111 #ifdef HAVE_WCHAR_H
21112 # ifdef __CYGWIN__
21113 # include <stddef.h>
21114 # endif
21115 # include <wchar.h>
21116 #endif
21117 #ifdef HAVE_STDLIB_H
21118 # include <stdlib.h>
21119 #endif
21120 #include <stdio.h>
21121
21122
21123
21124int
21125main ()
21126{
21127static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21128test_array [0] = 0
21129
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21136 (eval $ac_compile) 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
6954625c 21143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_hi=$ac_mid; break
21156else
21157 echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
21160ac_lo=`expr $ac_mid + 1`
21161 if test $ac_lo -le $ac_mid; then
21162 ac_lo= ac_hi=
21163 break
21164 fi
21165 ac_mid=`expr 2 '*' $ac_mid + 1`
21166fi
21167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21168 done
21169else
21170 echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
21172
21173cat >conftest.$ac_ext <<_ACEOF
21174/* confdefs.h. */
21175_ACEOF
21176cat confdefs.h >>conftest.$ac_ext
21177cat >>conftest.$ac_ext <<_ACEOF
21178/* end confdefs.h. */
21179
83d8eb47
MW
21180 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21181 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21182 # error "fake wchar_t"
21183 #endif
21184 #ifdef HAVE_WCHAR_H
21185 # ifdef __CYGWIN__
21186 # include <stddef.h>
21187 # endif
21188 # include <wchar.h>
21189 #endif
21190 #ifdef HAVE_STDLIB_H
21191 # include <stdlib.h>
21192 #endif
21193 #include <stdio.h>
21194
21195
21196
21197int
21198main ()
21199{
21200static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21201test_array [0] = 0
21202
21203 ;
21204 return 0;
21205}
21206_ACEOF
21207rm -f conftest.$ac_objext
21208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
6954625c 21216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; } &&
21222 { ac_try='test -s conftest.$ac_objext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ac_hi=-1 ac_mid=-1
21229 while :; do
21230 cat >conftest.$ac_ext <<_ACEOF
21231/* confdefs.h. */
21232_ACEOF
21233cat confdefs.h >>conftest.$ac_ext
21234cat >>conftest.$ac_ext <<_ACEOF
21235/* end confdefs.h. */
21236
83d8eb47
MW
21237 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21238 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21239 # error "fake wchar_t"
21240 #endif
21241 #ifdef HAVE_WCHAR_H
21242 # ifdef __CYGWIN__
21243 # include <stddef.h>
21244 # endif
21245 # include <wchar.h>
21246 #endif
21247 #ifdef HAVE_STDLIB_H
21248 # include <stdlib.h>
21249 #endif
21250 #include <stdio.h>
21251
21252
21253
21254int
21255main ()
21256{
21257static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21258test_array [0] = 0
21259
21260 ;
21261 return 0;
21262}
21263_ACEOF
21264rm -f conftest.$ac_objext
21265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21266 (eval $ac_compile) 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
6954625c 21273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_lo=$ac_mid; break
21286else
21287 echo "$as_me: failed program was:" >&5
21288sed 's/^/| /' conftest.$ac_ext >&5
21289
21290ac_hi=`expr '(' $ac_mid ')' - 1`
21291 if test $ac_mid -le $ac_hi; then
21292 ac_lo= ac_hi=
21293 break
21294 fi
21295 ac_mid=`expr 2 '*' $ac_mid`
21296fi
21297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21298 done
21299else
21300 echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303ac_lo= ac_hi=
21304fi
21305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21306fi
21307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21308# Binary search between lo and hi bounds.
21309while test "x$ac_lo" != "x$ac_hi"; do
21310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21311 cat >conftest.$ac_ext <<_ACEOF
21312/* confdefs.h. */
21313_ACEOF
21314cat confdefs.h >>conftest.$ac_ext
21315cat >>conftest.$ac_ext <<_ACEOF
21316/* end confdefs.h. */
21317
83d8eb47
MW
21318 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21319 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21320 # error "fake wchar_t"
21321 #endif
21322 #ifdef HAVE_WCHAR_H
21323 # ifdef __CYGWIN__
21324 # include <stddef.h>
21325 # endif
21326 # include <wchar.h>
21327 #endif
21328 #ifdef HAVE_STDLIB_H
21329 # include <stdlib.h>
21330 #endif
21331 #include <stdio.h>
a848cd7e 21332
a848cd7e 21333
a848cd7e 21334
238ecede
MW
21335int
21336main ()
21337{
21338static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21339test_array [0] = 0
a848cd7e 21340
238ecede
MW
21341 ;
21342 return 0;
21343}
21344_ACEOF
21345rm -f conftest.$ac_objext
21346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21347 (eval $ac_compile) 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
6954625c 21354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest.$ac_objext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_hi=$ac_mid
21367else
21368 echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371ac_lo=`expr '(' $ac_mid ')' + 1`
21372fi
21373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21374done
21375case $ac_lo in
21376?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21377'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21378See \`config.log' for more details." >&5
21379echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21380See \`config.log' for more details." >&2;}
21381 { (exit 1); exit 1; }; } ;;
21382esac
21383else
21384 if test "$cross_compiling" = yes; then
6954625c
VZ
21385 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21386echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21387 { (exit 1); exit 1; }; }
a848cd7e
SC
21388else
21389 cat >conftest.$ac_ext <<_ACEOF
21390/* confdefs.h. */
21391_ACEOF
21392cat confdefs.h >>conftest.$ac_ext
21393cat >>conftest.$ac_ext <<_ACEOF
21394/* end confdefs.h. */
21395
83d8eb47
MW
21396 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21397 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21398 # error "fake wchar_t"
21399 #endif
21400 #ifdef HAVE_WCHAR_H
21401 # ifdef __CYGWIN__
21402 # include <stddef.h>
21403 # endif
21404 # include <wchar.h>
21405 #endif
21406 #ifdef HAVE_STDLIB_H
21407 # include <stdlib.h>
21408 #endif
21409 #include <stdio.h>
21410
21411
21412
21413long longval () { return (long) (sizeof (wchar_t)); }
21414unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21415#include <stdio.h>
21416#include <stdlib.h>
21417int
21418main ()
21419{
a848cd7e 21420
238ecede
MW
21421 FILE *f = fopen ("conftest.val", "w");
21422 if (! f)
21423 exit (1);
21424 if (((long) (sizeof (wchar_t))) < 0)
21425 {
21426 long i = longval ();
21427 if (i != ((long) (sizeof (wchar_t))))
21428 exit (1);
21429 fprintf (f, "%ld\n", i);
21430 }
21431 else
21432 {
21433 unsigned long i = ulongval ();
21434 if (i != ((long) (sizeof (wchar_t))))
21435 exit (1);
21436 fprintf (f, "%lu\n", i);
21437 }
21438 exit (ferror (f) || fclose (f) != 0);
21439
21440 ;
21441 return 0;
21442}
a848cd7e
SC
21443_ACEOF
21444rm -f conftest$ac_exeext
21445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 (eval $ac_link) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
238ecede 21455 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21456else
21457 echo "$as_me: program exited with status $ac_status" >&5
21458echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
21460
21461( exit $ac_status )
238ecede
MW
21462{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21463See \`config.log' for more details." >&5
21464echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21465See \`config.log' for more details." >&2;}
21466 { (exit 1); exit 1; }; }
a848cd7e 21467fi
ac1cb8d3 21468rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21469fi
a848cd7e 21470fi
238ecede
MW
21471rm -f conftest.val
21472else
21473 ac_cv_sizeof_wchar_t=0
21474fi
21475fi
21476echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21477echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21478cat >>confdefs.h <<_ACEOF
238ecede 21479#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21480_ACEOF
21481
21482
47a7e797
MW
21483if test "$ac_cv_sizeof_wchar_t" != "0"; then
21484 wxUSE_WCHAR_T=yes
21485else
21486 wxUSE_WCHAR_T=no
21487fi
238ecede 21488
ba3d13e1
VZ
21489echo "$as_me:$LINENO: checking for va_copy" >&5
21490echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21491if test "${wx_cv_func_va_copy+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21493else
21494
21495 cat >conftest.$ac_ext <<_ACEOF
21496
21497 #include <stdarg.h>
21498 void foo(char *f, ...)
21499 {
21500 va_list ap1, ap2;
21501 va_start(ap1, f);
21502 va_copy(ap2, ap1);
21503 va_end(ap2);
21504 va_end(ap1);
21505 }
5886b072
VZ
21506 int main()
21507 {
b902e639
VZ
21508 foo("hi", 17);
21509 return 0;
5886b072 21510 }
ba3d13e1
VZ
21511_ACEOF
21512rm -f conftest.$ac_objext conftest$ac_exeext
21513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21514 (eval $ac_link) 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
6954625c 21521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest$ac_exeext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 wx_cv_func_va_copy=yes
21534else
21535 echo "$as_me: failed program was:" >&5
21536sed 's/^/| /' conftest.$ac_ext >&5
21537
21538wx_cv_func_va_copy=no
21539
21540fi
21541rm -f conftest.err conftest.$ac_objext \
21542 conftest$ac_exeext conftest.$ac_ext
21543
21544
21545fi
21546echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21547echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21548
21549if test $wx_cv_func_va_copy = "yes"; then
21550 cat >>confdefs.h <<\_ACEOF
21551#define HAVE_VA_COPY 1
21552_ACEOF
21553
21554else
21555 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21556echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21557if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21559else
21560
21561 if test "$cross_compiling" = yes; then
21562 wx_cv_type_va_list_lvalue=yes
21563
21564else
21565 cat >conftest.$ac_ext <<_ACEOF
21566
21567 #include <stdarg.h>
21568 int foo(char *f, ...)
21569 {
21570 va_list ap1, ap2;
21571 va_start(ap1, f);
21572 ap2 = ap1;
21573 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21574 return 1;
21575 va_end(ap2);
21576 va_end(ap1);
21577 return 0;
21578 }
21579 int main()
21580 {
21581 return foo("hi", 17);
21582 }
21583_ACEOF
21584rm -f conftest$ac_exeext
21585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 wx_cv_type_va_list_lvalue=yes
21596else
21597 echo "$as_me: program exited with status $ac_status" >&5
21598echo "$as_me: failed program was:" >&5
21599sed 's/^/| /' conftest.$ac_ext >&5
21600
21601( exit $ac_status )
21602wx_cv_type_va_list_lvalue=no
21603fi
21604rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21605fi
21606
21607
21608fi
21609echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21610echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21611
21612 if test $wx_cv_type_va_list_lvalue != "yes"; then
21613 cat >>confdefs.h <<\_ACEOF
21614#define VA_LIST_IS_ARRAY 1
21615_ACEOF
21616
21617 fi
21618fi
21619
a848cd7e
SC
21620# Check whether --enable-largefile or --disable-largefile was given.
21621if test "${enable_largefile+set}" = set; then
21622 enableval="$enable_largefile"
21623
21624fi;
21625if test "$enable_largefile" != no; then
21626 wx_largefile=no
21627
21628 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21629echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21630if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632else
21633
21634 cat >conftest.$ac_ext <<_ACEOF
21635/* confdefs.h. */
21636_ACEOF
21637cat confdefs.h >>conftest.$ac_ext
21638cat >>conftest.$ac_ext <<_ACEOF
21639/* end confdefs.h. */
21640#define _FILE_OFFSET_BITS 64
21641 #include <sys/types.h>
21642int
21643main ()
21644{
21645typedef struct {
21646 unsigned int field: sizeof(off_t) == 8;
21647} wxlf;
21648
21649 ;
21650 return 0;
21651}
21652_ACEOF
21653rm -f conftest.$ac_objext
21654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21655 (eval $ac_compile) 2>conftest.er1
a848cd7e 21656 ac_status=$?
ac1cb8d3
VS
21657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
a848cd7e
SC
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
6954625c 21662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 ac_cv_sys_file_offset_bits=64
21675else
21676 echo "$as_me: failed program was:" >&5
21677sed 's/^/| /' conftest.$ac_ext >&5
21678
21679ac_cv_sys_file_offset_bits=no
21680fi
ac1cb8d3 21681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21682
21683
21684fi
21685echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21686echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21687
21688 if test "$ac_cv_sys_file_offset_bits" != no; then
21689 wx_largefile=yes
21690 cat >>confdefs.h <<_ACEOF
21691#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21692_ACEOF
21693
21694 fi
21695
21696 if test "x$wx_largefile" != "xyes"; then
21697
21698 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21699echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21700if test "${ac_cv_sys_large_files+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21702else
21703
21704 cat >conftest.$ac_ext <<_ACEOF
21705/* confdefs.h. */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h. */
21710#define _LARGE_FILES 1
21711 #include <sys/types.h>
21712int
21713main ()
21714{
21715typedef struct {
21716 unsigned int field: sizeof(off_t) == 8;
21717} wxlf;
21718
21719 ;
21720 return 0;
21721}
21722_ACEOF
21723rm -f conftest.$ac_objext
21724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21725 (eval $ac_compile) 2>conftest.er1
a848cd7e 21726 ac_status=$?
ac1cb8d3
VS
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
a848cd7e
SC
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
6954625c 21732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 ac_cv_sys_large_files=1
21745else
21746 echo "$as_me: failed program was:" >&5
21747sed 's/^/| /' conftest.$ac_ext >&5
21748
21749ac_cv_sys_large_files=no
21750fi
ac1cb8d3 21751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21752
21753
21754fi
21755echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21756echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21757
21758 if test "$ac_cv_sys_large_files" != no; then
21759 wx_largefile=yes
21760 cat >>confdefs.h <<_ACEOF
21761#define _LARGE_FILES $ac_cv_sys_large_files
21762_ACEOF
21763
21764 fi
21765
21766 fi
21767
21768 echo "$as_me:$LINENO: checking if large file support is available" >&5
21769echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21770 if test "x$wx_largefile" = "xyes"; then
21771 cat >>confdefs.h <<\_ACEOF
21772#define HAVE_LARGEFILE_SUPPORT 1
21773_ACEOF
21774
21775 fi
21776 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21777echo "${ECHO_T}$wx_largefile" >&6
21778fi
21779
5b674b9d
DE
21780
21781if test "x$wx_largefile" = "xyes"; then
21782 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21783 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21784
21785 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21786 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21787echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21788if test "${wx_cv_STDC_EXT_required+set}" = set; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
21790else
21791
00421666
MW
21792 cat >conftest.$ac_ext <<_ACEOF
21793/* confdefs.h. */
21794_ACEOF
21795cat confdefs.h >>conftest.$ac_ext
21796cat >>conftest.$ac_ext <<_ACEOF
21797/* end confdefs.h. */
21798
21799int
21800main ()
21801{
21802
21803 #ifndef __STDC_EXT__
21804 choke me
21805 #endif
21806
21807 ;
21808 return 0;
21809}
21810_ACEOF
21811rm -f conftest.$ac_objext
21812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
6954625c 21820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest.$ac_objext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 wx_cv_STDC_EXT_required=no
21833else
21834 echo "$as_me: failed program was:" >&5
21835sed 's/^/| /' conftest.$ac_ext >&5
21836
21837wx_cv_STDC_EXT_required=yes
21838
21839fi
21840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
21841
21842
21843fi
21844echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21845echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21846 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21847 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21848 fi
21849 fi
5b674b9d 21850 else
5ff751d6 21851 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21852 fi
21853 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21854echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21855if test "${ac_cv_sys_largefile_source+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857else
21858 while :; do
21859 ac_cv_sys_largefile_source=no
21860 cat >conftest.$ac_ext <<_ACEOF
21861/* confdefs.h. */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h. */
21866#include <stdio.h>
21867int
21868main ()
21869{
21870return !fseeko;
21871 ;
21872 return 0;
21873}
21874_ACEOF
21875rm -f conftest.$ac_objext
21876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
6954625c 21884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 break
21897else
21898 echo "$as_me: failed program was:" >&5
21899sed 's/^/| /' conftest.$ac_ext >&5
21900
21901fi
21902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21903 cat >conftest.$ac_ext <<_ACEOF
21904/* confdefs.h. */
21905_ACEOF
21906cat confdefs.h >>conftest.$ac_ext
21907cat >>conftest.$ac_ext <<_ACEOF
21908/* end confdefs.h. */
21909#define _LARGEFILE_SOURCE 1
21910#include <stdio.h>
21911int
21912main ()
21913{
21914return !fseeko;
21915 ;
21916 return 0;
21917}
21918_ACEOF
21919rm -f conftest.$ac_objext
21920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21921 (eval $ac_compile) 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
6954625c 21928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; } &&
21934 { ac_try='test -s conftest.$ac_objext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_sys_largefile_source=1; break
21941else
21942 echo "$as_me: failed program was:" >&5
21943sed 's/^/| /' conftest.$ac_ext >&5
21944
21945fi
21946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 break
21948done
21949fi
21950echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21951echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21952if test "$ac_cv_sys_largefile_source" != no; then
21953
21954cat >>confdefs.h <<_ACEOF
21955#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21956_ACEOF
21957
21958fi
21959rm -f conftest*
21960
21961# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21962# in glibc 2.1.3, but that breaks too many other things.
21963# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21964echo "$as_me:$LINENO: checking for fseeko" >&5
21965echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21966if test "${ac_cv_func_fseeko+set}" = set; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21968else
21969 cat >conftest.$ac_ext <<_ACEOF
21970/* confdefs.h. */
21971_ACEOF
21972cat confdefs.h >>conftest.$ac_ext
21973cat >>conftest.$ac_ext <<_ACEOF
21974/* end confdefs.h. */
21975#include <stdio.h>
21976int
21977main ()
21978{
21979return fseeko && fseeko (stdin, 0, 0);
21980 ;
21981 return 0;
21982}
21983_ACEOF
21984rm -f conftest.$ac_objext conftest$ac_exeext
21985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986 (eval $ac_link) 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } &&
6954625c 21993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } &&
21999 { ac_try='test -s conftest$ac_exeext'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22002 ac_status=$?
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; }; then
22005 ac_cv_func_fseeko=yes
22006else
22007 echo "$as_me: failed program was:" >&5
22008sed 's/^/| /' conftest.$ac_ext >&5
22009
22010ac_cv_func_fseeko=no
22011fi
22012rm -f conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext conftest.$ac_ext
22014fi
22015echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22016echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22017if test $ac_cv_func_fseeko = yes; then
22018
22019cat >>confdefs.h <<\_ACEOF
22020#define HAVE_FSEEKO 1
22021_ACEOF
22022
22023fi
22024
5b674b9d 22025 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22026 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22027 fi
a848cd7e
SC
22028fi
22029
22030echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22031echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22032if test "${ac_cv_c_bigendian+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034else
22035 ac_cv_c_bigendian=unknown
22036# See if sys/param.h defines the BYTE_ORDER macro.
22037cat >conftest.$ac_ext <<_ACEOF
22038/* confdefs.h. */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h. */
22043#include <sys/types.h>
22044#include <sys/param.h>
22045int
22046main ()
22047{
22048
22049#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22050 bogus endian macros
22051#endif
22052 ;
22053 return 0;
22054}
22055_ACEOF
22056rm -f conftest.$ac_objext
22057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22058 (eval $ac_compile) 2>conftest.er1
a848cd7e 22059 ac_status=$?
ac1cb8d3
VS
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
a848cd7e
SC
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } &&
6954625c 22065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; } &&
22071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 # It does; now see whether it defined to BIG_ENDIAN or not.
22078cat >conftest.$ac_ext <<_ACEOF
22079/* confdefs.h. */
22080_ACEOF
22081cat confdefs.h >>conftest.$ac_ext
22082cat >>conftest.$ac_ext <<_ACEOF
22083/* end confdefs.h. */
22084#include <sys/types.h>
22085#include <sys/param.h>
22086int
22087main ()
22088{
22089
22090#if BYTE_ORDER != BIG_ENDIAN
22091 not big endian
22092#endif
22093 ;
22094 return 0;
22095}
22096_ACEOF
22097rm -f conftest.$ac_objext
22098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22099 (eval $ac_compile) 2>conftest.er1
a848cd7e 22100 ac_status=$?
ac1cb8d3
VS
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
a848cd7e
SC
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
6954625c 22106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_c_bigendian=yes
22119else
22120 echo "$as_me: failed program was:" >&5
22121sed 's/^/| /' conftest.$ac_ext >&5
22122
22123ac_cv_c_bigendian=no
22124fi
ac1cb8d3 22125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22126else
22127 echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130fi
ac1cb8d3 22131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22132if test $ac_cv_c_bigendian = unknown; then
22133if test "$cross_compiling" = yes; then
22134 ac_cv_c_bigendian=unknown
22135else
22136 cat >conftest.$ac_ext <<_ACEOF
22137/* confdefs.h. */
22138_ACEOF
22139cat confdefs.h >>conftest.$ac_ext
22140cat >>conftest.$ac_ext <<_ACEOF
22141/* end confdefs.h. */
22142main () {
22143 /* Are we little or big endian? From Harbison&Steele. */
22144 union
22145 {
22146 long l;
22147 char c[sizeof (long)];
22148 } u;
22149 u.l = 1;
22150 exit (u.c[sizeof (long) - 1] == 1);
22151}
22152_ACEOF
22153rm -f conftest$ac_exeext
22154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22155 (eval $ac_link) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 ac_cv_c_bigendian=no
22165else
22166 echo "$as_me: program exited with status $ac_status" >&5
22167echo "$as_me: failed program was:" >&5
22168sed 's/^/| /' conftest.$ac_ext >&5
22169
22170( exit $ac_status )
22171ac_cv_c_bigendian=yes
22172fi
ac1cb8d3 22173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22174fi
22175fi
22176fi
22177echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22178echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22179if test $ac_cv_c_bigendian = unknown; then
22180 { 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
22181echo "$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;}
22182fi
22183if test $ac_cv_c_bigendian = yes; then
22184 cat >>confdefs.h <<\_ACEOF
22185#define WORDS_BIGENDIAN 1
22186_ACEOF
22187
22188fi
22189
22190
a848cd7e
SC
22191
22192
22193
22194 ac_ext=cc
22195ac_cpp='$CXXCPP $CPPFLAGS'
22196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22199
22200
22201
22202for ac_header in iostream
22203do
22204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22205if eval "test \"\${$as_ac_Header+set}\" = set"; then
22206 echo "$as_me:$LINENO: checking for $ac_header" >&5
22207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22208if eval "test \"\${$as_ac_Header+set}\" = set"; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210fi
22211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22213else
22214 # Is the header compilable?
22215echo "$as_me:$LINENO: checking $ac_header usability" >&5
22216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22217cat >conftest.$ac_ext <<_ACEOF
22218/* confdefs.h. */
22219_ACEOF
22220cat confdefs.h >>conftest.$ac_ext
22221cat >>conftest.$ac_ext <<_ACEOF
22222/* end confdefs.h. */
22223$ac_includes_default
22224#include <$ac_header>
22225_ACEOF
22226rm -f conftest.$ac_objext
22227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22228 (eval $ac_compile) 2>conftest.er1
a848cd7e 22229 ac_status=$?
ac1cb8d3
VS
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
a848cd7e
SC
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } &&
6954625c 22235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237 (eval $ac_try) 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; } &&
22241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }; then
22247 ac_header_compiler=yes
22248else
22249 echo "$as_me: failed program was:" >&5
22250sed 's/^/| /' conftest.$ac_ext >&5
22251
22252ac_header_compiler=no
22253fi
ac1cb8d3 22254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22256echo "${ECHO_T}$ac_header_compiler" >&6
22257
22258# Is the header present?
22259echo "$as_me:$LINENO: checking $ac_header presence" >&5
22260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22261cat >conftest.$ac_ext <<_ACEOF
22262/* confdefs.h. */
22263_ACEOF
22264cat confdefs.h >>conftest.$ac_ext
22265cat >>conftest.$ac_ext <<_ACEOF
22266/* end confdefs.h. */
22267#include <$ac_header>
22268_ACEOF
22269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22271 ac_status=$?
22272 grep -v '^ *+' conftest.er1 >conftest.err
22273 rm -f conftest.er1
22274 cat conftest.err >&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } >/dev/null; then
22277 if test -s conftest.err; then
22278 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22279 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22280 else
22281 ac_cpp_err=
22282 fi
22283else
22284 ac_cpp_err=yes
22285fi
22286if test -z "$ac_cpp_err"; then
22287 ac_header_preproc=yes
22288else
22289 echo "$as_me: failed program was:" >&5
22290sed 's/^/| /' conftest.$ac_ext >&5
22291
22292 ac_header_preproc=no
22293fi
22294rm -f conftest.err conftest.$ac_ext
22295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22296echo "${ECHO_T}$ac_header_preproc" >&6
22297
22298# So? What about this header?
ac1cb8d3
VS
22299case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22300 yes:no: )
a848cd7e
SC
22301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22305 ac_header_preproc=yes
a848cd7e 22306 ;;
ac1cb8d3 22307 no:yes:* )
a848cd7e
SC
22308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22320 (
22321 cat <<\_ASBOX
ac1cb8d3
VS
22322## ----------------------------------------- ##
22323## Report this to wx-dev@lists.wxwidgets.org ##
22324## ----------------------------------------- ##
a848cd7e
SC
22325_ASBOX
22326 ) |
22327 sed "s/^/$as_me: WARNING: /" >&2
22328 ;;
22329esac
22330echo "$as_me:$LINENO: checking for $ac_header" >&5
22331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22332if eval "test \"\${$as_ac_Header+set}\" = set"; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22334else
ac1cb8d3 22335 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22336fi
22337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22339
22340fi
22341if test `eval echo '${'$as_ac_Header'}'` = yes; then
22342 cat >>confdefs.h <<_ACEOF
22343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22344_ACEOF
22345
22346fi
22347
22348done
22349
22350
22351 if test "$ac_cv_header_iostream" = "yes" ; then
22352 :
22353 else
22354 cat >>confdefs.h <<\_ACEOF
22355#define wxUSE_IOSTREAMH 1
22356_ACEOF
22357
22358 fi
22359
5d7b7554
VZ
22360 ac_ext=cc
22361ac_cpp='$CXXCPP $CPPFLAGS'
22362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22365
22366
22367
22368
22369 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22370echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22371if test "${wx_cv_cpp_bool+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373else
22374
22375
22376
22377 ac_ext=cc
22378ac_cpp='$CXXCPP $CPPFLAGS'
22379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22382
22383
22384 cat >conftest.$ac_ext <<_ACEOF
22385/* confdefs.h. */
22386_ACEOF
22387cat confdefs.h >>conftest.$ac_ext
22388cat >>conftest.$ac_ext <<_ACEOF
22389/* end confdefs.h. */
22390
22391
22392int
22393main ()
22394{
22395
22396 bool b = true;
22397
22398 return 0;
22399
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext
22405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22406 (eval $ac_compile) 2>conftest.er1
a848cd7e 22407 ac_status=$?
ac1cb8d3
VS
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
a848cd7e
SC
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } &&
6954625c 22413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22425
22426 wx_cv_cpp_bool=yes
22427
22428else
22429 echo "$as_me: failed program was:" >&5
22430sed 's/^/| /' conftest.$ac_ext >&5
22431
22432
22433 wx_cv_cpp_bool=no
22434
22435
22436fi
ac1cb8d3 22437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22438
5d7b7554
VZ
22439 ac_ext=cc
22440ac_cpp='$CXXCPP $CPPFLAGS'
22441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22444
22445
22446fi
22447echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22448echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22449
22450 if test "$wx_cv_cpp_bool" = "yes"; then
22451 cat >>confdefs.h <<\_ACEOF
22452#define HAVE_BOOL 1
22453_ACEOF
22454
22455 fi
22456
22457
22458
22459 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22460echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22461if test "${wx_cv_explicit+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22463else
22464
22465
22466
22467 ac_ext=cc
22468ac_cpp='$CXXCPP $CPPFLAGS'
22469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22472
22473
22474 cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h. */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
22480
22481 class Foo { public: explicit Foo(int) {} };
22482
22483int
22484main ()
22485{
22486
22487 return 0;
22488
22489 ;
22490 return 0;
22491}
22492_ACEOF
22493rm -f conftest.$ac_objext
22494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22495 (eval $ac_compile) 2>conftest.er1
a848cd7e 22496 ac_status=$?
ac1cb8d3
VS
22497 grep -v '^ *+' conftest.er1 >conftest.err
22498 rm -f conftest.er1
22499 cat conftest.err >&5
a848cd7e
SC
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } &&
6954625c 22502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; } &&
22508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510 (eval $ac_try) 2>&5
22511 ac_status=$?
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; }; then
22514
22515 cat >conftest.$ac_ext <<_ACEOF
22516/* confdefs.h. */
22517_ACEOF
22518cat confdefs.h >>conftest.$ac_ext
22519cat >>conftest.$ac_ext <<_ACEOF
22520/* end confdefs.h. */
22521
22522 class Foo { public: explicit Foo(int) {} };
22523 static void TakeFoo(const Foo& foo) { }
22524
22525int
22526main ()
22527{
22528
22529 TakeFoo(17);
22530 return 0;
22531
22532 ;
22533 return 0;
22534}
22535_ACEOF
22536rm -f conftest.$ac_objext
22537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22538 (eval $ac_compile) 2>conftest.er1
a848cd7e 22539 ac_status=$?
ac1cb8d3
VS
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
a848cd7e
SC
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } &&
6954625c 22545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; } &&
22551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; }; then
22557 wx_cv_explicit=no
22558else
22559 echo "$as_me: failed program was:" >&5
22560sed 's/^/| /' conftest.$ac_ext >&5
22561
22562wx_cv_explicit=yes
22563
22564fi
ac1cb8d3 22565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22566
22567else
22568 echo "$as_me: failed program was:" >&5
22569sed 's/^/| /' conftest.$ac_ext >&5
22570
22571wx_cv_explicit=no
22572
22573fi
ac1cb8d3 22574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22575
5d7b7554
VZ
22576 ac_ext=cc
22577ac_cpp='$CXXCPP $CPPFLAGS'
22578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22581
22582
22583fi
22584echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22585echo "${ECHO_T}$wx_cv_explicit" >&6
22586
22587 if test "$wx_cv_explicit" = "yes"; then
22588 cat >>confdefs.h <<\_ACEOF
22589#define HAVE_EXPLICIT 1
22590_ACEOF
22591
22592 fi
22593
22594
22595echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22596echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22597if test "${ac_cv_cxx_const_cast+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22599else
22600
22601
22602 ac_ext=cc
22603ac_cpp='$CXXCPP $CPPFLAGS'
22604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22607
22608 cat >conftest.$ac_ext <<_ACEOF
22609/* confdefs.h. */
22610_ACEOF
22611cat confdefs.h >>conftest.$ac_ext
22612cat >>conftest.$ac_ext <<_ACEOF
22613/* end confdefs.h. */
22614
22615int
22616main ()
22617{
22618int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22619 ;
22620 return 0;
22621}
22622_ACEOF
22623rm -f conftest.$ac_objext
22624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22625 (eval $ac_compile) 2>conftest.er1
a848cd7e 22626 ac_status=$?
ac1cb8d3
VS
22627 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1
22629 cat conftest.err >&5
a848cd7e
SC
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
6954625c 22632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; } &&
22638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ac_cv_cxx_const_cast=yes
22645else
22646 echo "$as_me: failed program was:" >&5
22647sed 's/^/| /' conftest.$ac_ext >&5
22648
22649ac_cv_cxx_const_cast=no
22650fi
ac1cb8d3 22651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22652 ac_ext=cc
22653ac_cpp='$CXXCPP $CPPFLAGS'
22654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22657
22658
22659fi
22660echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22661echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22662if test "$ac_cv_cxx_const_cast" = yes; then
22663
22664cat >>confdefs.h <<\_ACEOF
22665#define HAVE_CONST_CAST
22666_ACEOF
22667
22668fi
22669
7714864e
RL
22670echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22671echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22672if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674else
22675
22676
22677 ac_ext=cc
22678ac_cpp='$CXXCPP $CPPFLAGS'
22679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22682
22683 cat >conftest.$ac_ext <<_ACEOF
22684/* confdefs.h. */
22685_ACEOF
22686cat confdefs.h >>conftest.$ac_ext
22687cat >>conftest.$ac_ext <<_ACEOF
22688/* end confdefs.h. */
22689#include <typeinfo>
22690class Base { public : Base () {} virtual void f () = 0;};
22691class Derived : public Base { public : Derived () {} virtual void f () {} };
22692class Unrelated { public : Unrelated () {} };
22693int g (Unrelated&) { return 0; }
22694int
22695main ()
22696{
22697
22698Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22699 ;
22700 return 0;
22701}
22702_ACEOF
22703rm -f conftest.$ac_objext
22704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22705 (eval $ac_compile) 2>conftest.er1
22706 ac_status=$?
22707 grep -v '^ *+' conftest.er1 >conftest.err
22708 rm -f conftest.er1
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } &&
6954625c 22712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; } &&
22718 { ac_try='test -s conftest.$ac_objext'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 ac_cv_cxx_reinterpret_cast=yes
22725else
22726 echo "$as_me: failed program was:" >&5
22727sed 's/^/| /' conftest.$ac_ext >&5
22728
22729ac_cv_cxx_reinterpret_cast=no
22730fi
22731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22732 ac_ext=cc
22733ac_cpp='$CXXCPP $CPPFLAGS'
22734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
22737
22738
22739fi
22740echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22741echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22742if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22743
22744cat >>confdefs.h <<\_ACEOF
22745#define HAVE_REINTERPRET_CAST
22746_ACEOF
22747
22748fi
22749
a848cd7e
SC
22750echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22751echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22752if test "${ac_cv_cxx_static_cast+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754else
22755
22756
22757 ac_ext=cc
22758ac_cpp='$CXXCPP $CPPFLAGS'
22759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22762
22763 cat >conftest.$ac_ext <<_ACEOF
22764/* confdefs.h. */
22765_ACEOF
22766cat confdefs.h >>conftest.$ac_ext
22767cat >>conftest.$ac_ext <<_ACEOF
22768/* end confdefs.h. */
22769#include <typeinfo>
22770class Base { public : Base () {} virtual void f () = 0; };
22771class Derived : public Base { public : Derived () {} virtual void f () {} };
22772int g (Derived&) { return 0; }
22773int
22774main ()
22775{
22776
22777Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22778 ;
22779 return 0;
22780}
22781_ACEOF
22782rm -f conftest.$ac_objext
22783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22784 (eval $ac_compile) 2>conftest.er1
a848cd7e 22785 ac_status=$?
ac1cb8d3
VS
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
a848cd7e
SC
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } &&
6954625c 22791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; } &&
22797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }; then
22803 ac_cv_cxx_static_cast=yes
22804else
22805 echo "$as_me: failed program was:" >&5
22806sed 's/^/| /' conftest.$ac_ext >&5
22807
22808ac_cv_cxx_static_cast=no
22809fi
ac1cb8d3 22810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22811 ac_ext=cc
22812ac_cpp='$CXXCPP $CPPFLAGS'
22813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22816
22817
22818fi
22819echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22820echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22821if test "$ac_cv_cxx_static_cast" = yes; then
22822
22823cat >>confdefs.h <<\_ACEOF
22824#define HAVE_STATIC_CAST
22825_ACEOF
22826
22827fi
22828
22829
3c28b7cb 22830if test "x$SUNCXX" = xyes; then
c92ad099 22831 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22832fi
22833
9122d155 22834if test "x$SUNCC" = xyes; then
c92ad099 22835 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22836fi
22837
0ad5d837 22838if test "x$SGICC" = "xyes"; then
c92ad099 22839 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22840fi
22841if test "x$SGICXX" = "xyes"; then
c92ad099 22842 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22843fi
22844
2eef8513 22845if test "x$HPCC" = "xyes"; then
c92ad099 22846 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22847fi
22848if test "x$HPCXX" = "xyes"; then
c92ad099 22849 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22850fi
22851
22852if test "x$COMPAQCXX" = "xyes"; then
22853 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22854fi
22855
f56c22b4 22856if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
22857 if test "$wxUSE_UNICODE" = "yes"; then
22858 std_string="std::wstring"
22859 char_type="wchar_t"
22860 else
22861 std_string="std::string"
22862 char_type="char"
22863 fi
22864
22865 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22866echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22867 cat >conftest.$ac_ext <<_ACEOF
22868/* confdefs.h. */
22869_ACEOF
22870cat confdefs.h >>conftest.$ac_ext
22871cat >>conftest.$ac_ext <<_ACEOF
22872/* end confdefs.h. */
22873#include <string>
a848cd7e
SC
22874int
22875main ()
22876{
f56c22b4 22877$std_string foo;
a848cd7e
SC
22878 ;
22879 return 0;
22880}
22881_ACEOF
22882rm -f conftest.$ac_objext
22883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22884 (eval $ac_compile) 2>conftest.er1
a848cd7e 22885 ac_status=$?
ac1cb8d3
VS
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
a848cd7e
SC
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } &&
6954625c 22891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; } &&
22897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22900 ac_status=$?
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; }; then
22903 echo "$as_me:$LINENO: result: yes" >&5
22904echo "${ECHO_T}yes" >&6
0a08f02a
MB
22905 cat >>confdefs.h <<\_ACEOF
22906#define HAVE_STD_WSTRING 1
22907_ACEOF
22908
a848cd7e
SC
22909else
22910 echo "$as_me: failed program was:" >&5
22911sed 's/^/| /' conftest.$ac_ext >&5
22912
22913echo "$as_me:$LINENO: result: no" >&5
22914echo "${ECHO_T}no" >&6
f56c22b4
MW
22915 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22916echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22917 cat >conftest.$ac_ext <<_ACEOF
22918/* confdefs.h. */
22919_ACEOF
22920cat confdefs.h >>conftest.$ac_ext
22921cat >>conftest.$ac_ext <<_ACEOF
22922/* end confdefs.h. */
22923
22924 #ifdef HAVE_WCHAR_H
22925 # ifdef __CYGWIN__
22926 # include <stddef.h>
22927 # endif
22928 # include <wchar.h>
22929 #endif
22930 #ifdef HAVE_STDLIB_H
22931 # include <stdlib.h>
22932 #endif
22933 #include <stdio.h>
22934 #include <string>
22935
22936int
22937main ()
22938{
f56c22b4
MW
22939std::basic_string<$char_type> foo;
22940 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22941 ;
22942 return 0;
22943}
22944_ACEOF
22945rm -f conftest.$ac_objext
22946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22947 (eval $ac_compile) 2>conftest.er1
22948 ac_status=$?
22949 grep -v '^ *+' conftest.er1 >conftest.err
22950 rm -f conftest.er1
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } &&
6954625c 22954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; } &&
22960 { ac_try='test -s conftest.$ac_objext'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; }; then
22966 echo "$as_me:$LINENO: result: yes" >&5
22967echo "${ECHO_T}yes" >&6
22968else
22969 echo "$as_me: failed program was:" >&5
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
22972echo "$as_me:$LINENO: result: no" >&5
22973echo "${ECHO_T}no" >&6
f56c22b4 22974 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22975 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22976echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22977 { (exit 1); exit 1; }; }
22978 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22979 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22980echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22981 { (exit 1); exit 1; }; }
f56c22b4
MW
22982 else
22983 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22984echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22985 wxUSE_STD_STRING=no
22986 fi
22987
0a08f02a 22988
a848cd7e 22989fi
ac1cb8d3 22990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22991
0a08f02a
MB
22992fi
22993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
22994fi
22995
22996if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
22997 echo "$as_me:$LINENO: checking for std::istream" >&5
22998echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22999if test "${ac_cv_type_std__istream+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23001else
23002 cat >conftest.$ac_ext <<_ACEOF
23003/* confdefs.h. */
23004_ACEOF
23005cat confdefs.h >>conftest.$ac_ext
23006cat >>conftest.$ac_ext <<_ACEOF
23007/* end confdefs.h. */
23008#include <iostream>
23009
23010int
23011main ()
23012{
23013if ((std::istream *) 0)
23014 return 0;
23015if (sizeof (std::istream))
23016 return 0;
23017 ;
23018 return 0;
23019}
23020_ACEOF
23021rm -f conftest.$ac_objext
23022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023 (eval $ac_compile) 2>conftest.er1
23024 ac_status=$?
23025 grep -v '^ *+' conftest.er1 >conftest.err
23026 rm -f conftest.er1
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } &&
6954625c 23030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; } &&
23036 { ac_try='test -s conftest.$ac_objext'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 ac_cv_type_std__istream=yes
23043else
23044 echo "$as_me: failed program was:" >&5
23045sed 's/^/| /' conftest.$ac_ext >&5
23046
23047ac_cv_type_std__istream=no
23048fi
23049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23050fi
23051echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23052echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23053if test $ac_cv_type_std__istream = yes; then
23054
23055cat >>confdefs.h <<_ACEOF
23056#define HAVE_STD__ISTREAM 1
23057_ACEOF
23058
23059
23060else
23061 wxUSE_STD_IOSTREAM=no
23062fi
23063echo "$as_me:$LINENO: checking for std::ostream" >&5
23064echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23065if test "${ac_cv_type_std__ostream+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23067else
23068 cat >conftest.$ac_ext <<_ACEOF
23069/* confdefs.h. */
23070_ACEOF
23071cat confdefs.h >>conftest.$ac_ext
23072cat >>conftest.$ac_ext <<_ACEOF
23073/* end confdefs.h. */
23074#include <iostream>
23075
23076int
23077main ()
23078{
23079if ((std::ostream *) 0)
23080 return 0;
23081if (sizeof (std::ostream))
23082 return 0;
23083 ;
23084 return 0;
23085}
23086_ACEOF
23087rm -f conftest.$ac_objext
23088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23089 (eval $ac_compile) 2>conftest.er1
23090 ac_status=$?
23091 grep -v '^ *+' conftest.er1 >conftest.err
23092 rm -f conftest.er1
23093 cat conftest.err >&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } &&
6954625c 23096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest.$ac_objext'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; }; then
23108 ac_cv_type_std__ostream=yes
23109else
23110 echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113ac_cv_type_std__ostream=no
23114fi
23115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23116fi
23117echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23118echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23119if test $ac_cv_type_std__ostream = yes; then
23120
23121cat >>confdefs.h <<_ACEOF
23122#define HAVE_STD__OSTREAM 1
23123_ACEOF
23124
23125
23126else
23127 wxUSE_STD_IOSTREAM=no
23128fi
23129
23130
23131 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23132 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23133 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23134echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23135 { (exit 1); exit 1; }; }
23136 else
23137 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23138echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23139 fi
f56c22b4 23140 fi
0a08f02a
MB
23141fi
23142
23143if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23144 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23145echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23146 cat >conftest.$ac_ext <<_ACEOF
23147/* confdefs.h. */
23148_ACEOF
23149cat confdefs.h >>conftest.$ac_ext
23150cat >>conftest.$ac_ext <<_ACEOF
23151/* end confdefs.h. */
23152#include <string>
0a08f02a
MB
23153 #include <functional>
23154 #include <algorithm>
23155 #include <vector>
23156 #include <list>
a848cd7e
SC
23157int
23158main ()
23159{
0a08f02a
MB
23160std::vector<int> moo;
23161 std::list<int> foo;
23162 std::vector<int>::iterator it =
23163 std::find_if(moo.begin(), moo.end(),
23164 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23165 ;
23166 return 0;
23167}
23168_ACEOF
23169rm -f conftest.$ac_objext
23170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23171 (eval $ac_compile) 2>conftest.er1
a848cd7e 23172 ac_status=$?
ac1cb8d3
VS
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
a848cd7e
SC
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
6954625c 23178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; } &&
23184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 echo "$as_me:$LINENO: result: yes" >&5
23191echo "${ECHO_T}yes" >&6
a848cd7e
SC
23192else
23193 echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196echo "$as_me:$LINENO: result: no" >&5
23197echo "${ECHO_T}no" >&6
0a08f02a
MB
23198 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23199echo "$as_me: error: Basic STL functionality missing" >&2;}
23200 { (exit 1); exit 1; }; }
a848cd7e 23201fi
ac1cb8d3 23202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23203
23204 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23205echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23206 cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212#include <string>
23213int
23214main ()
23215{
23216std::string foo, bar;
23217 foo.compare(bar);
23218 foo.compare(1, 1, bar);
23219 foo.compare(1, 1, bar, 1, 1);
23220 foo.compare("");
23221 foo.compare(1, 1, "");
23222 foo.compare(1, 1, "", 2);
23223 ;
23224 return 0;
23225}
23226_ACEOF
23227rm -f conftest.$ac_objext
23228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23229 (eval $ac_compile) 2>conftest.er1
a848cd7e 23230 ac_status=$?
ac1cb8d3
VS
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
a848cd7e
SC
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } &&
6954625c 23236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 echo "$as_me:$LINENO: result: yes" >&5
23249echo "${ECHO_T}yes" >&6
23250 cat >>confdefs.h <<\_ACEOF
23251#define HAVE_STD_STRING_COMPARE 1
23252_ACEOF
23253
23254else
23255 echo "$as_me: failed program was:" >&5
23256sed 's/^/| /' conftest.$ac_ext >&5
23257
23258echo "$as_me:$LINENO: result: no" >&5
23259echo "${ECHO_T}no" >&6
23260fi
ac1cb8d3 23261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23262
23263 if test "${ac_cv_header_hash_map+set}" = set; then
23264 echo "$as_me:$LINENO: checking for hash_map" >&5
23265echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23266if test "${ac_cv_header_hash_map+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23268fi
23269echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23270echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23271else
23272 # Is the header compilable?
23273echo "$as_me:$LINENO: checking hash_map usability" >&5
23274echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23275cat >conftest.$ac_ext <<_ACEOF
23276/* confdefs.h. */
23277_ACEOF
23278cat confdefs.h >>conftest.$ac_ext
23279cat >>conftest.$ac_ext <<_ACEOF
23280/* end confdefs.h. */
23281$ac_includes_default
23282#include <hash_map>
23283_ACEOF
23284rm -f conftest.$ac_objext
23285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23286 (eval $ac_compile) 2>conftest.er1
bdcade0a 23287 ac_status=$?
ac1cb8d3
VS
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
bdcade0a
MB
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } &&
6954625c 23293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23296 ac_status=$?
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23305 ac_header_compiler=yes
23306else
23307 echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310ac_header_compiler=no
23311fi
ac1cb8d3 23312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23314echo "${ECHO_T}$ac_header_compiler" >&6
23315
23316# Is the header present?
23317echo "$as_me:$LINENO: checking hash_map presence" >&5
23318echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23319cat >conftest.$ac_ext <<_ACEOF
23320/* confdefs.h. */
23321_ACEOF
23322cat confdefs.h >>conftest.$ac_ext
23323cat >>conftest.$ac_ext <<_ACEOF
23324/* end confdefs.h. */
23325#include <hash_map>
23326_ACEOF
23327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23329 ac_status=$?
23330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } >/dev/null; then
23335 if test -s conftest.err; then
23336 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23337 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23338 else
23339 ac_cpp_err=
23340 fi
23341else
23342 ac_cpp_err=yes
23343fi
23344if test -z "$ac_cpp_err"; then
23345 ac_header_preproc=yes
23346else
23347 echo "$as_me: failed program was:" >&5
23348sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 ac_header_preproc=no
23351fi
23352rm -f conftest.err conftest.$ac_ext
23353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23354echo "${ECHO_T}$ac_header_preproc" >&6
23355
23356# So? What about this header?
ac1cb8d3
VS
23357case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23358 yes:no: )
bdcade0a
MB
23359 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23360echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23361 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23362echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23363 ac_header_preproc=yes
bdcade0a 23364 ;;
ac1cb8d3 23365 no:yes:* )
bdcade0a
MB
23366 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23367echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23368 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23369echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23370 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23371echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23372 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23373echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23374 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23375echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23376 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23377echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23378 (
23379 cat <<\_ASBOX
ac1cb8d3
VS
23380## ----------------------------------------- ##
23381## Report this to wx-dev@lists.wxwidgets.org ##
23382## ----------------------------------------- ##
bdcade0a
MB
23383_ASBOX
23384 ) |
23385 sed "s/^/$as_me: WARNING: /" >&2
23386 ;;
23387esac
23388echo "$as_me:$LINENO: checking for hash_map" >&5
23389echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23390if test "${ac_cv_header_hash_map+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23392else
23393 ac_cv_header_hash_map=$ac_header_preproc
23394fi
23395echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23396echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23397
23398fi
23399if test $ac_cv_header_hash_map = yes; then
23400 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23401echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23402 cat >conftest.$ac_ext <<_ACEOF
23403/* confdefs.h. */
23404_ACEOF
23405cat confdefs.h >>conftest.$ac_ext
23406cat >>conftest.$ac_ext <<_ACEOF
23407/* end confdefs.h. */
23408#include <hash_map>
23409 #include <hash_set>
23410int
23411main ()
23412{
23413std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23414 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23415 ;
23416 return 0;
23417}
23418_ACEOF
23419rm -f conftest.$ac_objext
23420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23421 (eval $ac_compile) 2>conftest.er1
bdcade0a 23422 ac_status=$?
ac1cb8d3
VS
23423 grep -v '^ *+' conftest.er1 >conftest.err
23424 rm -f conftest.er1
23425 cat conftest.err >&5
bdcade0a
MB
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
6954625c 23428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23431 ac_status=$?
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 echo "$as_me:$LINENO: result: yes" >&5
23441echo "${ECHO_T}yes" >&6
23442 cat >>confdefs.h <<\_ACEOF
23443#define HAVE_HASH_MAP 1
23444_ACEOF
23445
23446 cat >>confdefs.h <<\_ACEOF
23447#define HAVE_STD_HASH_MAP 1
23448_ACEOF
23449
23450else
23451 echo "$as_me: failed program was:" >&5
23452sed 's/^/| /' conftest.$ac_ext >&5
23453
23454echo "$as_me:$LINENO: result: no" >&5
23455echo "${ECHO_T}no" >&6
23456fi
ac1cb8d3 23457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23458
23459fi
23460
23461
23462
23463 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23464 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23465echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23466if test "${ac_cv_header_ext_hash_map+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23468fi
23469echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23470echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23471else
23472 # Is the header compilable?
23473echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23474echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23475cat >conftest.$ac_ext <<_ACEOF
23476/* confdefs.h. */
23477_ACEOF
23478cat confdefs.h >>conftest.$ac_ext
23479cat >>conftest.$ac_ext <<_ACEOF
23480/* end confdefs.h. */
23481$ac_includes_default
23482#include <ext/hash_map>
23483_ACEOF
23484rm -f conftest.$ac_objext
23485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23486 (eval $ac_compile) 2>conftest.er1
bdcade0a 23487 ac_status=$?
ac1cb8d3
VS
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
bdcade0a
MB
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } &&
6954625c 23493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_header_compiler=yes
23506else
23507 echo "$as_me: failed program was:" >&5
23508sed 's/^/| /' conftest.$ac_ext >&5
23509
23510ac_header_compiler=no
23511fi
ac1cb8d3 23512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23514echo "${ECHO_T}$ac_header_compiler" >&6
23515
23516# Is the header present?
23517echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23518echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23519cat >conftest.$ac_ext <<_ACEOF
23520/* confdefs.h. */
23521_ACEOF
23522cat confdefs.h >>conftest.$ac_ext
23523cat >>conftest.$ac_ext <<_ACEOF
23524/* end confdefs.h. */
23525#include <ext/hash_map>
23526_ACEOF
23527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } >/dev/null; then
23535 if test -s conftest.err; then
23536 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23538 else
23539 ac_cpp_err=
23540 fi
23541else
23542 ac_cpp_err=yes
23543fi
23544if test -z "$ac_cpp_err"; then
23545 ac_header_preproc=yes
23546else
23547 echo "$as_me: failed program was:" >&5
23548sed 's/^/| /' conftest.$ac_ext >&5
23549
23550 ac_header_preproc=no
23551fi
23552rm -f conftest.err conftest.$ac_ext
23553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23554echo "${ECHO_T}$ac_header_preproc" >&6
23555
23556# So? What about this header?
ac1cb8d3
VS
23557case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23558 yes:no: )
bdcade0a
MB
23559 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23560echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23561 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23562echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23563 ac_header_preproc=yes
bdcade0a 23564 ;;
ac1cb8d3 23565 no:yes:* )
bdcade0a
MB
23566 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23567echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23568 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23569echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23570 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23571echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23572 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23573echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23574 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23575echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23576 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23577echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23578 (
23579 cat <<\_ASBOX
ac1cb8d3
VS
23580## ----------------------------------------- ##
23581## Report this to wx-dev@lists.wxwidgets.org ##
23582## ----------------------------------------- ##
bdcade0a
MB
23583_ASBOX
23584 ) |
23585 sed "s/^/$as_me: WARNING: /" >&2
23586 ;;
23587esac
23588echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23589echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23590if test "${ac_cv_header_ext_hash_map+set}" = set; then
23591 echo $ECHO_N "(cached) $ECHO_C" >&6
23592else
23593 ac_cv_header_ext_hash_map=$ac_header_preproc
23594fi
23595echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23596echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23597
23598fi
23599if test $ac_cv_header_ext_hash_map = yes; then
23600 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23601echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23602 cat >conftest.$ac_ext <<_ACEOF
23603/* confdefs.h. */
23604_ACEOF
23605cat confdefs.h >>conftest.$ac_ext
23606cat >>conftest.$ac_ext <<_ACEOF
23607/* end confdefs.h. */
23608#include <ext/hash_map>
23609 #include <ext/hash_set>
23610int
23611main ()
23612{
23613__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23614 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23615 ;
23616 return 0;
23617}
23618_ACEOF
23619rm -f conftest.$ac_objext
23620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23621 (eval $ac_compile) 2>conftest.er1
bdcade0a 23622 ac_status=$?
ac1cb8d3
VS
23623 grep -v '^ *+' conftest.er1 >conftest.err
23624 rm -f conftest.er1
23625 cat conftest.err >&5
bdcade0a
MB
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } &&
6954625c 23628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; } &&
23634 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 echo "$as_me:$LINENO: result: yes" >&5
23641echo "${ECHO_T}yes" >&6
23642 cat >>confdefs.h <<\_ACEOF
23643#define HAVE_EXT_HASH_MAP 1
23644_ACEOF
23645
23646 cat >>confdefs.h <<\_ACEOF
23647#define HAVE_GNU_CXX_HASH_MAP 1
23648_ACEOF
23649
23650else
23651 echo "$as_me: failed program was:" >&5
23652sed 's/^/| /' conftest.$ac_ext >&5
23653
23654echo "$as_me:$LINENO: result: no" >&5
23655echo "${ECHO_T}no" >&6
23656fi
ac1cb8d3 23657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23658
23659fi
23660
23661
a848cd7e
SC
23662fi
23663
23664
23665SEARCH_INCLUDE="\
23666 /usr/local/include \
23667 \
23668 /usr/Motif-2.1/include \
23669 /usr/Motif-1.2/include \
23670 /usr/include/Motif1.2 \
a848cd7e
SC
23671 \
23672 /usr/dt/include \
23673 /usr/openwin/include \
23674 \
23675 /usr/include/Xm \
23676 \
23677 /usr/X11R6/include \
23678 /usr/X11R6.4/include \
23679 /usr/X11R5/include \
23680 /usr/X11R4/include \
23681 \
23682 /usr/include/X11R6 \
23683 /usr/include/X11R5 \
23684 /usr/include/X11R4 \
23685 \
23686 /usr/local/X11R6/include \
23687 /usr/local/X11R5/include \
23688 /usr/local/X11R4/include \
23689 \
23690 /usr/local/include/X11R6 \
23691 /usr/local/include/X11R5 \
23692 /usr/local/include/X11R4 \
23693 \
23694 /usr/X11/include \
23695 /usr/include/X11 \
23696 /usr/local/X11/include \
23697 /usr/local/include/X11 \
23698 \
a848cd7e 23699 /usr/XFree86/include/X11 \
e051b34e
MW
23700 /usr/pkg/include \
23701 \
a848cd7e
SC
23702 /usr/openwin/share/include"
23703
6f9cf1e6 23704echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23705echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23706
23707case "${host}" in
23708 *-*-irix6* )
23709 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23710 echo $ECHO_N "(cached) $ECHO_C" >&6
23711else
23712
c687b303
VZ
23713 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23714 for e in a so sl dylib dll.a; do
23715 libc="$d/libc.$e"
23716 if test -f $libc; then
23717 save_LIBS="$LIBS"
23718 LIBS="$libc"
23719 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23720int main() { return 0; }
23721_ACEOF
23722rm -f conftest.$ac_objext conftest$ac_exeext
23723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>conftest.er1
23725 ac_status=$?
23726 grep -v '^ *+' conftest.er1 >conftest.err
23727 rm -f conftest.er1
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } &&
6954625c 23731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; } &&
23737 { ac_try='test -s conftest$ac_exeext'
23738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23740 ac_status=$?
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; }; then
23743 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23744else
23745 echo "$as_me: failed program was:" >&5
23746sed 's/^/| /' conftest.$ac_ext >&5
23747
23748fi
23749rm -f conftest.err conftest.$ac_objext \
23750 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23751 LIBS="$save_LIBS"
23752 if test "x$wx_cv_std_libpath" != "x"; then
23753 break 2
23754 fi
23755 fi
23756 done
23757 done
23758 if test "x$wx_cv_std_libpath" = "x"; then
23759 wx_cv_std_libpath="lib"
0ad5d837 23760 fi
0ad5d837
VZ
23761
23762
23763fi
6f9cf1e6
MW
23764
23765 ;;
23766
23767 *-*-solaris2* )
23768 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23769 wx_cv_std_libpath="lib/64"
23770 else
23771 wx_cv_std_libpath="lib"
23772 fi
23773 ;;
23774
23775 *-*-linux* )
23776 if test "$ac_cv_sizeof_void_p" = 8 -a \
23777 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23778 wx_cv_std_libpath="lib64"
23779 else
23780 wx_cv_std_libpath="lib"
23781 fi
c687b303
VZ
23782 ;;
23783
23784 *)
23785 wx_cv_std_libpath="lib";
23786 ;;
23787esac
0ad5d837 23788
6f9cf1e6
MW
23789echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23790echo "${ECHO_T}$wx_cv_std_libpath" >&6
23791
23792SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23793
3eca31dc
MW
23794if test "$build" != "$host" -a "$GCC" = yes; then
23795 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23796 cross_root=`dirname $cross_root`
23797 cross_root=`dirname $cross_root`
23798
23799 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23800 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23801 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23802
23803 if test -z "$PKG_CONFIG_PATH"; then
23804 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23805 export PKG_CONFIG_PATH
23806 fi
23807
23808 if test -z "$x_includes" -o "$x_includes" = NONE; then
23809
23810ac_find_includes=
23811for ac_dir in $SEARCH_INCLUDE /usr/include;
23812 do
23813 if test -f "$ac_dir/X11/Intrinsic.h"; then
23814 ac_find_includes=$ac_dir
23815 break
23816 fi
23817 done
23818
23819 x_includes=$ac_find_includes
23820 fi
23821 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23822
0ad5d837
VZ
23823 ac_find_libraries=
23824 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23825 do
23826 for ac_extension in a so sl dylib dll.a; do
23827 if test -f "$ac_dir/libXt.$ac_extension"; then
23828 ac_find_libraries=$ac_dir
23829 break 2
23830 fi
23831 done
23832 done
23833
23834 x_libraries=$ac_find_libraries
23835 fi
23836 fi
23837fi
23838
a848cd7e
SC
23839
23840cat >confcache <<\_ACEOF
23841# This file is a shell script that caches the results of configure
23842# tests run on this system so they can be shared between configure
23843# scripts and configure runs, see configure's option --config-cache.
23844# It is not useful on other systems. If it contains results you don't
23845# want to keep, you may remove or edit it.
23846#
23847# config.status only pays attention to the cache file if you give it
23848# the --recheck option to rerun configure.
23849#
23850# `ac_cv_env_foo' variables (set or unset) will be overridden when
23851# loading this file, other *unset* `ac_cv_foo' will be assigned the
23852# following values.
23853
23854_ACEOF
23855
23856# The following way of writing the cache mishandles newlines in values,
23857# but we know of no workaround that is simple, portable, and efficient.
23858# So, don't put newlines in cache variables' values.
23859# Ultrix sh set writes to stderr and can't be redirected directly,
23860# and sets the high bit in the cache file unless we assign to the vars.
23861{
23862 (set) 2>&1 |
23863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23864 *ac_space=\ *)
23865 # `set' does not quote correctly, so add quotes (double-quote
23866 # substitution turns \\\\ into \\, and sed turns \\ into \).
23867 sed -n \
ac1cb8d3
VS
23868 "s/'/'\\\\''/g;
23869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23870 ;;
23871 *)
23872 # `set' quotes correctly as required by POSIX, so do not add quotes.
23873 sed -n \
ac1cb8d3 23874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23875 ;;
23876 esac;
23877} |
23878 sed '
23879 t clear
23880 : clear
23881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23882 t end
23883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23884 : end' >>confcache
23885if diff $cache_file confcache >/dev/null 2>&1; then :; else
23886 if test -w $cache_file; then
23887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23888 cat confcache >$cache_file
23889 else
23890 echo "not updating unwritable cache $cache_file"
23891 fi
23892fi
23893rm -f confcache
23894
23895if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23896 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23897echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23898if test "${wx_cv_lib_glibc21+set}" = set; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23900else
23901
23902 cat >conftest.$ac_ext <<_ACEOF
23903/* confdefs.h. */
23904_ACEOF
23905cat confdefs.h >>conftest.$ac_ext
23906cat >>conftest.$ac_ext <<_ACEOF
23907/* end confdefs.h. */
23908#include <features.h>
23909int
23910main ()
23911{
23912
23913 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23914 not glibc 2.1
a848cd7e
SC
23915 #endif
23916
23917 ;
23918 return 0;
23919}
23920_ACEOF
23921rm -f conftest.$ac_objext
23922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23923 (eval $ac_compile) 2>conftest.er1
a848cd7e 23924 ac_status=$?
ac1cb8d3
VS
23925 grep -v '^ *+' conftest.er1 >conftest.err
23926 rm -f conftest.er1
23927 cat conftest.err >&5
a848cd7e
SC
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } &&
6954625c 23930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } &&
23936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942
23943 wx_cv_lib_glibc21=yes
23944
23945else
23946 echo "$as_me: failed program was:" >&5
23947sed 's/^/| /' conftest.$ac_ext >&5
23948
23949
23950 wx_cv_lib_glibc21=no
23951
23952
23953fi
ac1cb8d3 23954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23955
23956fi
23957echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23958echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23959 if test "$wx_cv_lib_glibc21" = "yes"; then
23960 cat >>confdefs.h <<\_ACEOF
23961#define wxHAVE_GLIBC2 1
23962_ACEOF
23963
23964 fi
23965fi
23966
23967if test "x$wx_cv_lib_glibc21" = "xyes"; then
23968 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23969 cat >>confdefs.h <<\_ACEOF
23970#define _GNU_SOURCE 1
23971_ACEOF
23972
23973 fi
23974fi
23975
5d7b7554
VZ
23976have_cos=0
23977have_floor=0
a848cd7e 23978
5d7b7554
VZ
23979for ac_func in cos
23980do
23981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23982echo "$as_me:$LINENO: checking for $ac_func" >&5
23983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23984if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 23985 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 23986else
5d7b7554 23987 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23988/* confdefs.h. */
23989_ACEOF
23990cat confdefs.h >>conftest.$ac_ext
23991cat >>conftest.$ac_ext <<_ACEOF
23992/* end confdefs.h. */
5d7b7554
VZ
23993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23995#define $ac_func innocuous_$ac_func
23996
23997/* System header to define __stub macros and hopefully few prototypes,
23998 which can conflict with char $ac_func (); below.
23999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24000 <limits.h> exists even on freestanding compilers. */
24001
24002#ifdef __STDC__
24003# include <limits.h>
24004#else
24005# include <assert.h>
24006#endif
24007
24008#undef $ac_func
24009
24010/* Override any gcc2 internal prototype to avoid an error. */
24011#ifdef __cplusplus
24012extern "C"
24013{
24014#endif
24015/* We use char because int might match the return type of a gcc2
24016 builtin and then its argument prototype would still apply. */
24017char $ac_func ();
24018/* The GNU C library defines this for functions which it implements
24019 to always fail with ENOSYS. Some functions are actually named
24020 something starting with __ and the normal name is an alias. */
24021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24022choke me
24023#else
24024char (*f) () = $ac_func;
24025#endif
24026#ifdef __cplusplus
24027}
24028#endif
24029
24030int
24031main ()
24032{
24033return f != $ac_func;
24034 ;
24035 return 0;
24036}
a848cd7e 24037_ACEOF
5d7b7554
VZ
24038rm -f conftest.$ac_objext conftest$ac_exeext
24039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24040 (eval $ac_link) 2>conftest.er1
a848cd7e 24041 ac_status=$?
ac1cb8d3
VS
24042 grep -v '^ *+' conftest.er1 >conftest.err
24043 rm -f conftest.er1
24044 cat conftest.err >&5
a848cd7e
SC
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } &&
6954625c 24047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; } &&
5d7b7554 24053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
5d7b7554 24059 eval "$as_ac_var=yes"
a848cd7e
SC
24060else
24061 echo "$as_me: failed program was:" >&5
24062sed 's/^/| /' conftest.$ac_ext >&5
24063
5d7b7554 24064eval "$as_ac_var=no"
a848cd7e 24065fi
5d7b7554
VZ
24066rm -f conftest.err conftest.$ac_objext \
24067 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24068fi
5d7b7554
VZ
24069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24071if test `eval echo '${'$as_ac_var'}'` = yes; then
24072 cat >>confdefs.h <<_ACEOF
24073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24074_ACEOF
24075 have_cos=1
a848cd7e 24076fi
5d7b7554 24077done
a848cd7e 24078
ab0f0edd 24079
5d7b7554 24080for ac_func in floor
a848cd7e
SC
24081do
24082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24083echo "$as_me:$LINENO: checking for $ac_func" >&5
24084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24085if eval "test \"\${$as_ac_var+set}\" = set"; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087else
24088 cat >conftest.$ac_ext <<_ACEOF
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
ac1cb8d3
VS
24094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24096#define $ac_func innocuous_$ac_func
24097
a848cd7e
SC
24098/* System header to define __stub macros and hopefully few prototypes,
24099 which can conflict with char $ac_func (); below.
24100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24101 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24102
a848cd7e
SC
24103#ifdef __STDC__
24104# include <limits.h>
24105#else
24106# include <assert.h>
24107#endif
ac1cb8d3
VS
24108
24109#undef $ac_func
24110
a848cd7e
SC
24111/* Override any gcc2 internal prototype to avoid an error. */
24112#ifdef __cplusplus
24113extern "C"
24114{
24115#endif
24116/* We use char because int might match the return type of a gcc2
24117 builtin and then its argument prototype would still apply. */
24118char $ac_func ();
24119/* The GNU C library defines this for functions which it implements
24120 to always fail with ENOSYS. Some functions are actually named
24121 something starting with __ and the normal name is an alias. */
24122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24123choke me
24124#else
24125char (*f) () = $ac_func;
24126#endif
24127#ifdef __cplusplus
24128}
24129#endif
24130
24131int
24132main ()
24133{
24134return f != $ac_func;
24135 ;
24136 return 0;
24137}
24138_ACEOF
24139rm -f conftest.$ac_objext conftest$ac_exeext
24140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24141 (eval $ac_link) 2>conftest.er1
a848cd7e 24142 ac_status=$?
ac1cb8d3
VS
24143 grep -v '^ *+' conftest.er1 >conftest.err
24144 rm -f conftest.er1
24145 cat conftest.err >&5
a848cd7e
SC
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
6954625c 24148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; } &&
24154 { ac_try='test -s conftest$ac_exeext'
24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 eval "$as_ac_var=yes"
24161else
24162 echo "$as_me: failed program was:" >&5
24163sed 's/^/| /' conftest.$ac_ext >&5
24164
24165eval "$as_ac_var=no"
24166fi
24167rm -f conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
24169fi
24170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24172if test `eval echo '${'$as_ac_var'}'` = yes; then
24173 cat >>confdefs.h <<_ACEOF
24174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24175_ACEOF
24176 have_floor=1
24177fi
24178done
24179
24180echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24181echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24182if test "$have_cos" = 1 -a "$have_floor" = 1; then
24183 echo "$as_me:$LINENO: result: yes" >&5
24184echo "${ECHO_T}yes" >&6
24185else
24186 echo "$as_me:$LINENO: result: no" >&5
24187echo "${ECHO_T}no" >&6
24188 LIBS="$LIBS -lm"
24189 # use different functions to avoid configure caching
24190 have_sin=0
24191 have_ceil=0
24192
24193for ac_func in sin
24194do
24195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24196echo "$as_me:$LINENO: checking for $ac_func" >&5
24197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24198if eval "test \"\${$as_ac_var+set}\" = set"; then
24199 echo $ECHO_N "(cached) $ECHO_C" >&6
24200else
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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24209#define $ac_func innocuous_$ac_func
24210
24211/* System header to define __stub macros and hopefully few prototypes,
24212 which can conflict with char $ac_func (); below.
24213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24214 <limits.h> exists even on freestanding compilers. */
24215
24216#ifdef __STDC__
24217# include <limits.h>
24218#else
24219# include <assert.h>
24220#endif
24221
24222#undef $ac_func
24223
24224/* Override any gcc2 internal prototype to avoid an error. */
24225#ifdef __cplusplus
24226extern "C"
24227{
24228#endif
24229/* We use char because int might match the return type of a gcc2
24230 builtin and then its argument prototype would still apply. */
24231char $ac_func ();
24232/* The GNU C library defines this for functions which it implements
24233 to always fail with ENOSYS. Some functions are actually named
24234 something starting with __ and the normal name is an alias. */
24235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24236choke me
24237#else
24238char (*f) () = $ac_func;
24239#endif
24240#ifdef __cplusplus
24241}
24242#endif
24243
24244int
24245main ()
24246{
24247return f != $ac_func;
24248 ;
24249 return 0;
24250}
24251_ACEOF
24252rm -f conftest.$ac_objext conftest$ac_exeext
24253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24254 (eval $ac_link) 2>conftest.er1
24255 ac_status=$?
24256 grep -v '^ *+' conftest.er1 >conftest.err
24257 rm -f conftest.er1
24258 cat conftest.err >&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } &&
6954625c 24261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; } &&
24267 { ac_try='test -s conftest$ac_exeext'
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; }; then
24273 eval "$as_ac_var=yes"
24274else
24275 echo "$as_me: failed program was:" >&5
24276sed 's/^/| /' conftest.$ac_ext >&5
24277
24278eval "$as_ac_var=no"
24279fi
24280rm -f conftest.err conftest.$ac_objext \
24281 conftest$ac_exeext conftest.$ac_ext
24282fi
24283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24285if test `eval echo '${'$as_ac_var'}'` = yes; then
24286 cat >>confdefs.h <<_ACEOF
24287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24288_ACEOF
24289 have_sin=1
24290fi
24291done
24292
24293
24294for ac_func in ceil
24295do
24296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24297echo "$as_me:$LINENO: checking for $ac_func" >&5
24298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24299if eval "test \"\${$as_ac_var+set}\" = set"; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301else
24302 cat >conftest.$ac_ext <<_ACEOF
24303/* confdefs.h. */
24304_ACEOF
24305cat confdefs.h >>conftest.$ac_ext
24306cat >>conftest.$ac_ext <<_ACEOF
24307/* end confdefs.h. */
24308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24310#define $ac_func innocuous_$ac_func
24311
24312/* System header to define __stub macros and hopefully few prototypes,
24313 which can conflict with char $ac_func (); below.
24314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24315 <limits.h> exists even on freestanding compilers. */
24316
24317#ifdef __STDC__
24318# include <limits.h>
24319#else
24320# include <assert.h>
24321#endif
24322
24323#undef $ac_func
24324
24325/* Override any gcc2 internal prototype to avoid an error. */
24326#ifdef __cplusplus
24327extern "C"
24328{
24329#endif
24330/* We use char because int might match the return type of a gcc2
24331 builtin and then its argument prototype would still apply. */
24332char $ac_func ();
24333/* The GNU C library defines this for functions which it implements
24334 to always fail with ENOSYS. Some functions are actually named
24335 something starting with __ and the normal name is an alias. */
24336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24337choke me
24338#else
24339char (*f) () = $ac_func;
24340#endif
24341#ifdef __cplusplus
24342}
24343#endif
24344
24345int
24346main ()
24347{
24348return f != $ac_func;
24349 ;
24350 return 0;
24351}
24352_ACEOF
24353rm -f conftest.$ac_objext conftest$ac_exeext
24354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24355 (eval $ac_link) 2>conftest.er1
24356 ac_status=$?
24357 grep -v '^ *+' conftest.er1 >conftest.err
24358 rm -f conftest.er1
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
6954625c 24362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; } &&
24368 { ac_try='test -s conftest$ac_exeext'
24369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); }; }; then
24374 eval "$as_ac_var=yes"
24375else
24376 echo "$as_me: failed program was:" >&5
24377sed 's/^/| /' conftest.$ac_ext >&5
24378
24379eval "$as_ac_var=no"
24380fi
24381rm -f conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
24383fi
24384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24386if test `eval echo '${'$as_ac_var'}'` = yes; then
24387 cat >>confdefs.h <<_ACEOF
24388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24389_ACEOF
24390 have_ceil=1
24391fi
24392done
24393
24394 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24395echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24396 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24397 echo "$as_me:$LINENO: result: yes" >&5
24398echo "${ECHO_T}yes" >&6
24399 else
24400 echo "$as_me:$LINENO: result: no" >&5
24401echo "${ECHO_T}no" >&6
24402 # not sure we should warn the user, crash, etc.
24403 fi
24404fi
24405
24406
24407
24408if test "$wxUSE_REGEX" != "no"; then
24409 cat >>confdefs.h <<\_ACEOF
24410#define wxUSE_REGEX 1
24411_ACEOF
24412
24413
24414 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24415 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24416echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24417 wxUSE_REGEX=builtin
24418 fi
24419
24420 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24421 if test "${ac_cv_header_regex_h+set}" = set; then
24422 echo "$as_me:$LINENO: checking for regex.h" >&5
24423echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24424if test "${ac_cv_header_regex_h+set}" = set; then
24425 echo $ECHO_N "(cached) $ECHO_C" >&6
24426fi
24427echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24428echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24429else
24430 # Is the header compilable?
24431echo "$as_me:$LINENO: checking regex.h usability" >&5
24432echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24433cat >conftest.$ac_ext <<_ACEOF
24434/* confdefs.h. */
24435_ACEOF
24436cat confdefs.h >>conftest.$ac_ext
24437cat >>conftest.$ac_ext <<_ACEOF
24438/* end confdefs.h. */
24439$ac_includes_default
24440#include <regex.h>
24441_ACEOF
24442rm -f conftest.$ac_objext
24443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24444 (eval $ac_compile) 2>conftest.er1
24445 ac_status=$?
24446 grep -v '^ *+' conftest.er1 >conftest.err
24447 rm -f conftest.er1
24448 cat conftest.err >&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } &&
6954625c 24451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 (eval $ac_try) 2>&5
24454 ac_status=$?
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; } &&
24457 { ac_try='test -s conftest.$ac_objext'
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; }; then
24463 ac_header_compiler=yes
24464else
24465 echo "$as_me: failed program was:" >&5
24466sed 's/^/| /' conftest.$ac_ext >&5
24467
24468ac_header_compiler=no
24469fi
24470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24472echo "${ECHO_T}$ac_header_compiler" >&6
24473
24474# Is the header present?
24475echo "$as_me:$LINENO: checking regex.h presence" >&5
24476echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24477cat >conftest.$ac_ext <<_ACEOF
24478/* confdefs.h. */
24479_ACEOF
24480cat confdefs.h >>conftest.$ac_ext
24481cat >>conftest.$ac_ext <<_ACEOF
24482/* end confdefs.h. */
24483#include <regex.h>
24484_ACEOF
24485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24487 ac_status=$?
24488 grep -v '^ *+' conftest.er1 >conftest.err
24489 rm -f conftest.er1
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } >/dev/null; then
24493 if test -s conftest.err; then
24494 ac_cpp_err=$ac_cxx_preproc_warn_flag
24495 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24496 else
24497 ac_cpp_err=
24498 fi
24499else
24500 ac_cpp_err=yes
24501fi
24502if test -z "$ac_cpp_err"; then
24503 ac_header_preproc=yes
24504else
24505 echo "$as_me: failed program was:" >&5
24506sed 's/^/| /' conftest.$ac_ext >&5
24507
24508 ac_header_preproc=no
24509fi
24510rm -f conftest.err conftest.$ac_ext
24511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24512echo "${ECHO_T}$ac_header_preproc" >&6
24513
24514# So? What about this header?
24515case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24516 yes:no: )
24517 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24518echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24520echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24521 ac_header_preproc=yes
24522 ;;
24523 no:yes:* )
24524 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24525echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24526 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24527echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24528 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24529echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24530 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24531echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24532 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24533echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24534 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24535echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24536 (
24537 cat <<\_ASBOX
24538## ----------------------------------------- ##
24539## Report this to wx-dev@lists.wxwidgets.org ##
24540## ----------------------------------------- ##
24541_ASBOX
24542 ) |
24543 sed "s/^/$as_me: WARNING: /" >&2
24544 ;;
24545esac
24546echo "$as_me:$LINENO: checking for regex.h" >&5
24547echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24548if test "${ac_cv_header_regex_h+set}" = set; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24550else
24551 ac_cv_header_regex_h=$ac_header_preproc
24552fi
24553echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24554echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24555
24556fi
24557if test $ac_cv_header_regex_h = yes; then
24558
24559
24560for ac_func in regcomp re_search
24561do
24562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24563echo "$as_me:$LINENO: checking for $ac_func" >&5
24564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24565if eval "test \"\${$as_ac_var+set}\" = set"; then
24566 echo $ECHO_N "(cached) $ECHO_C" >&6
24567else
24568 cat >conftest.$ac_ext <<_ACEOF
24569/* confdefs.h. */
24570_ACEOF
24571cat confdefs.h >>conftest.$ac_ext
24572cat >>conftest.$ac_ext <<_ACEOF
24573/* end confdefs.h. */
24574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24576#define $ac_func innocuous_$ac_func
24577
24578/* System header to define __stub macros and hopefully few prototypes,
24579 which can conflict with char $ac_func (); below.
24580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24581 <limits.h> exists even on freestanding compilers. */
24582
24583#ifdef __STDC__
24584# include <limits.h>
24585#else
24586# include <assert.h>
24587#endif
24588
24589#undef $ac_func
24590
24591/* Override any gcc2 internal prototype to avoid an error. */
24592#ifdef __cplusplus
24593extern "C"
24594{
24595#endif
24596/* We use char because int might match the return type of a gcc2
24597 builtin and then its argument prototype would still apply. */
24598char $ac_func ();
24599/* The GNU C library defines this for functions which it implements
24600 to always fail with ENOSYS. Some functions are actually named
24601 something starting with __ and the normal name is an alias. */
24602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24603choke me
24604#else
24605char (*f) () = $ac_func;
24606#endif
24607#ifdef __cplusplus
24608}
24609#endif
24610
24611int
24612main ()
24613{
24614return f != $ac_func;
24615 ;
24616 return 0;
24617}
24618_ACEOF
24619rm -f conftest.$ac_objext conftest$ac_exeext
24620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24621 (eval $ac_link) 2>conftest.er1
24622 ac_status=$?
24623 grep -v '^ *+' conftest.er1 >conftest.err
24624 rm -f conftest.er1
24625 cat conftest.err >&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); } &&
6954625c 24628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 eval "$as_ac_var=yes"
24641else
24642 echo "$as_me: failed program was:" >&5
24643sed 's/^/| /' conftest.$ac_ext >&5
24644
24645eval "$as_ac_var=no"
24646fi
ac1cb8d3
VS
24647rm -f conftest.err conftest.$ac_objext \
24648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24649fi
24650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24652if test `eval echo '${'$as_ac_var'}'` = yes; then
24653 cat >>confdefs.h <<_ACEOF
24654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24655_ACEOF
24656
24657fi
24658done
24659
24660fi
24661
24662
24663
24664 if test "x$ac_cv_func_regcomp" != "xyes"; then
24665 if test "$wxUSE_REGEX" = "sys" ; then
24666 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24667echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24668 { (exit 1); exit 1; }; }
24669 else
24670 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24671echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24672 wxUSE_REGEX=builtin
24673 fi
24674 else
24675 wxUSE_REGEX=sys
24676 cat >>confdefs.h <<\_ACEOF
24677#define WX_NO_REGEX_ADVANCED 1
24678_ACEOF
24679
24680 fi
24681 fi
24682fi
24683
24684
24685ZLIB_LINK=
24686if test "$wxUSE_ZLIB" != "no" ; then
24687 cat >>confdefs.h <<\_ACEOF
24688#define wxUSE_ZLIB 1
24689_ACEOF
24690
24691
24692 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24693 if test "$USE_DARWIN" = 1; then
24694 system_zlib_h_ok="yes"
24695 else
24696 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24697echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24698if test "${ac_cv_header_zlib_h+set}" = set; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24700else
24701 if test "$cross_compiling" = yes; then
24702 unset ac_cv_header_zlib_h
24703
24704else
24705 cat >conftest.$ac_ext <<_ACEOF
24706/* confdefs.h. */
24707_ACEOF
24708cat confdefs.h >>conftest.$ac_ext
24709cat >>conftest.$ac_ext <<_ACEOF
24710/* end confdefs.h. */
24711
24712 #include <zlib.h>
24713 #include <stdio.h>
24714
24715 int main()
24716 {
24717 FILE *f=fopen("conftestval", "w");
24718 if (!f) exit(1);
24719 fprintf(f, "%s",
24720 ZLIB_VERSION[0] == '1' &&
24721 (ZLIB_VERSION[2] > '1' ||
24722 (ZLIB_VERSION[2] == '1' &&
24723 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24724 exit(0);
24725 }
24726
24727_ACEOF
24728rm -f conftest$ac_exeext
24729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24730 (eval $ac_link) 2>&5
24731 ac_status=$?
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; }; then
24739 ac_cv_header_zlib_h=`cat conftestval`
24740else
24741 echo "$as_me: program exited with status $ac_status" >&5
24742echo "$as_me: failed program was:" >&5
24743sed 's/^/| /' conftest.$ac_ext >&5
24744
24745( exit $ac_status )
24746ac_cv_header_zlib_h=no
24747fi
ac1cb8d3 24748rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24749fi
24750
24751fi
24752echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24753echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24754 if test "${ac_cv_header_zlib_h+set}" = set; then
24755 echo "$as_me:$LINENO: checking for zlib.h" >&5
24756echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24757if test "${ac_cv_header_zlib_h+set}" = set; then
24758 echo $ECHO_N "(cached) $ECHO_C" >&6
24759fi
24760echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24761echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24762else
24763 # Is the header compilable?
24764echo "$as_me:$LINENO: checking zlib.h usability" >&5
24765echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24766cat >conftest.$ac_ext <<_ACEOF
24767/* confdefs.h. */
24768_ACEOF
24769cat confdefs.h >>conftest.$ac_ext
24770cat >>conftest.$ac_ext <<_ACEOF
24771/* end confdefs.h. */
24772$ac_includes_default
24773#include <zlib.h>
24774_ACEOF
24775rm -f conftest.$ac_objext
24776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24777 (eval $ac_compile) 2>conftest.er1
a848cd7e 24778 ac_status=$?
ac1cb8d3
VS
24779 grep -v '^ *+' conftest.er1 >conftest.err
24780 rm -f conftest.er1
24781 cat conftest.err >&5
a848cd7e
SC
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } &&
6954625c 24784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; } &&
24790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_header_compiler=yes
24797else
24798 echo "$as_me: failed program was:" >&5
24799sed 's/^/| /' conftest.$ac_ext >&5
24800
24801ac_header_compiler=no
24802fi
ac1cb8d3 24803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24805echo "${ECHO_T}$ac_header_compiler" >&6
24806
24807# Is the header present?
24808echo "$as_me:$LINENO: checking zlib.h presence" >&5
24809echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24810cat >conftest.$ac_ext <<_ACEOF
24811/* confdefs.h. */
24812_ACEOF
24813cat confdefs.h >>conftest.$ac_ext
24814cat >>conftest.$ac_ext <<_ACEOF
24815/* end confdefs.h. */
24816#include <zlib.h>
24817_ACEOF
24818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24820 ac_status=$?
24821 grep -v '^ *+' conftest.er1 >conftest.err
24822 rm -f conftest.er1
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } >/dev/null; then
24826 if test -s conftest.err; then
5d7b7554
VZ
24827 ac_cpp_err=$ac_cxx_preproc_warn_flag
24828 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
24829 else
24830 ac_cpp_err=
24831 fi
24832else
24833 ac_cpp_err=yes
24834fi
24835if test -z "$ac_cpp_err"; then
24836 ac_header_preproc=yes
24837else
24838 echo "$as_me: failed program was:" >&5
24839sed 's/^/| /' conftest.$ac_ext >&5
24840
24841 ac_header_preproc=no
24842fi
24843rm -f conftest.err conftest.$ac_ext
24844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24845echo "${ECHO_T}$ac_header_preproc" >&6
24846
24847# So? What about this header?
5d7b7554 24848case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 24849 yes:no: )
a848cd7e
SC
24850 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24851echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24852 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24853echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24854 ac_header_preproc=yes
a848cd7e 24855 ;;
ac1cb8d3 24856 no:yes:* )
a848cd7e
SC
24857 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24858echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24859 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24860echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24862echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24863 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24864echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24865 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24866echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24867 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24868echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24869 (
24870 cat <<\_ASBOX
ac1cb8d3
VS
24871## ----------------------------------------- ##
24872## Report this to wx-dev@lists.wxwidgets.org ##
24873## ----------------------------------------- ##
a848cd7e
SC
24874_ASBOX
24875 ) |
24876 sed "s/^/$as_me: WARNING: /" >&2
24877 ;;
24878esac
24879echo "$as_me:$LINENO: checking for zlib.h" >&5
24880echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24881if test "${ac_cv_header_zlib_h+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24883else
24884 ac_cv_header_zlib_h=$ac_header_preproc
24885fi
24886echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24887echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24888
24889fi
24890
24891
24892
24893 system_zlib_h_ok=$ac_cv_header_zlib_h
24894 fi
24895
24896 if test "$system_zlib_h_ok" = "yes"; then
24897 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24898echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24899if test "${ac_cv_lib_z_deflate+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24901else
24902 ac_check_lib_save_LIBS=$LIBS
24903LIBS="-lz $LIBS"
24904cat >conftest.$ac_ext <<_ACEOF
24905/* confdefs.h. */
24906_ACEOF
24907cat confdefs.h >>conftest.$ac_ext
24908cat >>conftest.$ac_ext <<_ACEOF
24909/* end confdefs.h. */
24910
24911/* Override any gcc2 internal prototype to avoid an error. */
24912#ifdef __cplusplus
24913extern "C"
24914#endif
24915/* We use char because int might match the return type of a gcc2
24916 builtin and then its argument prototype would still apply. */
24917char deflate ();
24918int
24919main ()
24920{
24921deflate ();
24922 ;
24923 return 0;
24924}
24925_ACEOF
24926rm -f conftest.$ac_objext conftest$ac_exeext
24927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24928 (eval $ac_link) 2>conftest.er1
a848cd7e 24929 ac_status=$?
ac1cb8d3
VS
24930 grep -v '^ *+' conftest.er1 >conftest.err
24931 rm -f conftest.er1
24932 cat conftest.err >&5
a848cd7e
SC
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } &&
6954625c 24935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943 (eval $ac_try) 2>&5
24944 ac_status=$?
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); }; }; then
24947 ac_cv_lib_z_deflate=yes
24948else
24949 echo "$as_me: failed program was:" >&5
24950sed 's/^/| /' conftest.$ac_ext >&5
24951
24952ac_cv_lib_z_deflate=no
24953fi
ac1cb8d3
VS
24954rm -f conftest.err conftest.$ac_objext \
24955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24956LIBS=$ac_check_lib_save_LIBS
24957fi
24958echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24959echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24960if test $ac_cv_lib_z_deflate = yes; then
24961 ZLIB_LINK=" -lz"
24962fi
24963
24964 fi
24965
24966 if test "x$ZLIB_LINK" = "x" ; then
24967 if test "$wxUSE_ZLIB" = "sys" ; then
24968 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24969echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24970 { (exit 1); exit 1; }; }
24971 else
24972 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24973echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24974 wxUSE_ZLIB=builtin
24975 fi
24976 else
24977 wxUSE_ZLIB=sys
24978 fi
24979 fi
24980fi
24981
24982
24983PNG_LINK=
24984if test "$wxUSE_LIBPNG" != "no" ; then
24985 cat >>confdefs.h <<\_ACEOF
24986#define wxUSE_LIBPNG 1
24987_ACEOF
24988
24989
24990 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24991 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24992echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24993 wxUSE_LIBPNG=sys
24994 fi
24995
24996 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24997 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24998echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24999 wxUSE_LIBPNG=builtin
25000 fi
25001
25002 if test "$wxUSE_MGL" != 1 ; then
25003 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25004 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25005echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25006if test "${ac_cv_header_png_h+set}" = set; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25008else
25009 if test "$cross_compiling" = yes; then
25010 unset ac_cv_header_png_h
25011
25012else
25013 cat >conftest.$ac_ext <<_ACEOF
25014/* confdefs.h. */
25015_ACEOF
25016cat confdefs.h >>conftest.$ac_ext
25017cat >>conftest.$ac_ext <<_ACEOF
25018/* end confdefs.h. */
25019
25020 #include <png.h>
25021 #include <stdio.h>
25022
25023 int main()
25024 {
25025 FILE *f=fopen("conftestval", "w");
25026 if (!f) exit(1);
25027 fprintf(f, "%s",
25028 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25029 exit(0);
25030 }
25031
25032_ACEOF
25033rm -f conftest$ac_exeext
25034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25035 (eval $ac_link) 2>&5
25036 ac_status=$?
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044 ac_cv_header_png_h=`cat conftestval`
25045else
25046 echo "$as_me: program exited with status $ac_status" >&5
25047echo "$as_me: failed program was:" >&5
25048sed 's/^/| /' conftest.$ac_ext >&5
25049
25050( exit $ac_status )
25051ac_cv_header_png_h=no
25052fi
ac1cb8d3 25053rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25054fi
25055
25056fi
25057echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25058echo "${ECHO_T}$ac_cv_header_png_h" >&6
25059 if test "${ac_cv_header_png_h+set}" = set; then
25060 echo "$as_me:$LINENO: checking for png.h" >&5
25061echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25062if test "${ac_cv_header_png_h+set}" = set; then
25063 echo $ECHO_N "(cached) $ECHO_C" >&6
25064fi
25065echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25066echo "${ECHO_T}$ac_cv_header_png_h" >&6
25067else
25068 # Is the header compilable?
25069echo "$as_me:$LINENO: checking png.h usability" >&5
25070echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25071cat >conftest.$ac_ext <<_ACEOF
25072/* confdefs.h. */
25073_ACEOF
25074cat confdefs.h >>conftest.$ac_ext
25075cat >>conftest.$ac_ext <<_ACEOF
25076/* end confdefs.h. */
25077$ac_includes_default
25078#include <png.h>
25079_ACEOF
25080rm -f conftest.$ac_objext
25081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25082 (eval $ac_compile) 2>conftest.er1
a848cd7e 25083 ac_status=$?
ac1cb8d3
VS
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
a848cd7e
SC
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
6954625c 25089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; } &&
25095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
25101 ac_header_compiler=yes
25102else
25103 echo "$as_me: failed program was:" >&5
25104sed 's/^/| /' conftest.$ac_ext >&5
25105
25106ac_header_compiler=no
25107fi
ac1cb8d3 25108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25109echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25110echo "${ECHO_T}$ac_header_compiler" >&6
25111
25112# Is the header present?
25113echo "$as_me:$LINENO: checking png.h presence" >&5
25114echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25115cat >conftest.$ac_ext <<_ACEOF
25116/* confdefs.h. */
25117_ACEOF
25118cat confdefs.h >>conftest.$ac_ext
25119cat >>conftest.$ac_ext <<_ACEOF
25120/* end confdefs.h. */
25121#include <png.h>
25122_ACEOF
25123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25125 ac_status=$?
25126 grep -v '^ *+' conftest.er1 >conftest.err
25127 rm -f conftest.er1
25128 cat conftest.err >&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); } >/dev/null; then
25131 if test -s conftest.err; then
5d7b7554
VZ
25132 ac_cpp_err=$ac_cxx_preproc_warn_flag
25133 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25134 else
25135 ac_cpp_err=
25136 fi
25137else
25138 ac_cpp_err=yes
25139fi
25140if test -z "$ac_cpp_err"; then
25141 ac_header_preproc=yes
25142else
25143 echo "$as_me: failed program was:" >&5
25144sed 's/^/| /' conftest.$ac_ext >&5
25145
25146 ac_header_preproc=no
25147fi
25148rm -f conftest.err conftest.$ac_ext
25149echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25150echo "${ECHO_T}$ac_header_preproc" >&6
25151
25152# So? What about this header?
5d7b7554 25153case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25154 yes:no: )
a848cd7e
SC
25155 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25156echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25157 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25158echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25159 ac_header_preproc=yes
a848cd7e 25160 ;;
ac1cb8d3 25161 no:yes:* )
a848cd7e
SC
25162 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25163echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25164 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25165echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25166 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25167echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25169echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25170 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25171echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25172 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25173echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25174 (
25175 cat <<\_ASBOX
ac1cb8d3
VS
25176## ----------------------------------------- ##
25177## Report this to wx-dev@lists.wxwidgets.org ##
25178## ----------------------------------------- ##
a848cd7e
SC
25179_ASBOX
25180 ) |
25181 sed "s/^/$as_me: WARNING: /" >&2
25182 ;;
25183esac
25184echo "$as_me:$LINENO: checking for png.h" >&5
25185echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25186if test "${ac_cv_header_png_h+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25188else
25189 ac_cv_header_png_h=$ac_header_preproc
25190fi
25191echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25192echo "${ECHO_T}$ac_cv_header_png_h" >&6
25193
25194fi
25195
25196
25197
25198 if test "$ac_cv_header_png_h" = "yes"; then
25199 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25200echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25201if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25203else
25204 ac_check_lib_save_LIBS=$LIBS
25205LIBS="-lpng -lz -lm $LIBS"
25206cat >conftest.$ac_ext <<_ACEOF
25207/* confdefs.h. */
25208_ACEOF
25209cat confdefs.h >>conftest.$ac_ext
25210cat >>conftest.$ac_ext <<_ACEOF
25211/* end confdefs.h. */
25212
25213/* Override any gcc2 internal prototype to avoid an error. */
25214#ifdef __cplusplus
25215extern "C"
25216#endif
25217/* We use char because int might match the return type of a gcc2
25218 builtin and then its argument prototype would still apply. */
25219char png_check_sig ();
25220int
25221main ()
25222{
25223png_check_sig ();
25224 ;
25225 return 0;
25226}
25227_ACEOF
25228rm -f conftest.$ac_objext conftest$ac_exeext
25229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25230 (eval $ac_link) 2>conftest.er1
a848cd7e 25231 ac_status=$?
ac1cb8d3
VS
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
a848cd7e
SC
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
6954625c 25237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; } &&
25243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; }; then
25249 ac_cv_lib_png_png_check_sig=yes
25250else
25251 echo "$as_me: failed program was:" >&5
25252sed 's/^/| /' conftest.$ac_ext >&5
25253
25254ac_cv_lib_png_png_check_sig=no
25255fi
ac1cb8d3
VS
25256rm -f conftest.err conftest.$ac_objext \
25257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25258LIBS=$ac_check_lib_save_LIBS
25259fi
25260echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25261echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25262if test $ac_cv_lib_png_png_check_sig = yes; then
25263 PNG_LINK=" -lpng -lz"
25264fi
25265
25266 fi
25267
25268 if test "x$PNG_LINK" = "x" ; then
25269 if test "$wxUSE_LIBPNG" = "sys" ; then
25270 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25271echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25272 { (exit 1); exit 1; }; }
25273 else
25274 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25275echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25276 wxUSE_LIBPNG=builtin
25277 fi
25278 else
25279 wxUSE_LIBPNG=sys
25280 fi
25281 fi
25282 fi
25283
25284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25285fi
25286
25287
25288JPEG_LINK=
25289if test "$wxUSE_LIBJPEG" != "no" ; then
25290 cat >>confdefs.h <<\_ACEOF
25291#define wxUSE_LIBJPEG 1
25292_ACEOF
25293
25294
25295 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25296 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25297echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25298 wxUSE_LIBJPEG=sys
25299 fi
25300
25301 if test "$wxUSE_MGL" != 1 ; then
25302 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25303 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25304echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25305 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25307else
25308 cat >conftest.$ac_ext <<_ACEOF
25309/* confdefs.h. */
25310_ACEOF
25311cat confdefs.h >>conftest.$ac_ext
25312cat >>conftest.$ac_ext <<_ACEOF
25313/* end confdefs.h. */
25314
25315 #undef HAVE_STDLIB_H
25316 #include <stdio.h>
25317 #include <jpeglib.h>
25318
25319int
25320main ()
25321{
25322
25323
25324 ;
25325 return 0;
25326}
25327_ACEOF
25328rm -f conftest.$ac_objext
25329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25330 (eval $ac_compile) 2>conftest.er1
a848cd7e 25331 ac_status=$?
ac1cb8d3
VS
25332 grep -v '^ *+' conftest.er1 >conftest.err
25333 rm -f conftest.er1
25334 cat conftest.err >&5
a848cd7e
SC
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
6954625c 25337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25339 (eval $ac_try) 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; }; then
25349 ac_cv_header_jpeglib_h=yes
25350else
25351 echo "$as_me: failed program was:" >&5
25352sed 's/^/| /' conftest.$ac_ext >&5
25353
25354ac_cv_header_jpeglib_h=no
25355
25356fi
ac1cb8d3 25357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25358
25359fi
25360
25361 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25362echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25363
25364 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25365 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25366echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25367if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25369else
25370 ac_check_lib_save_LIBS=$LIBS
25371LIBS="-ljpeg $LIBS"
25372cat >conftest.$ac_ext <<_ACEOF
25373/* confdefs.h. */
25374_ACEOF
25375cat confdefs.h >>conftest.$ac_ext
25376cat >>conftest.$ac_ext <<_ACEOF
25377/* end confdefs.h. */
25378
25379/* Override any gcc2 internal prototype to avoid an error. */
25380#ifdef __cplusplus
25381extern "C"
25382#endif
25383/* We use char because int might match the return type of a gcc2
25384 builtin and then its argument prototype would still apply. */
25385char jpeg_read_header ();
25386int
25387main ()
25388{
25389jpeg_read_header ();
25390 ;
25391 return 0;
25392}
25393_ACEOF
25394rm -f conftest.$ac_objext conftest$ac_exeext
25395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25396 (eval $ac_link) 2>conftest.er1
a848cd7e 25397 ac_status=$?
ac1cb8d3
VS
25398 grep -v '^ *+' conftest.er1 >conftest.err
25399 rm -f conftest.er1
25400 cat conftest.err >&5
a848cd7e
SC
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); } &&
6954625c 25403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; } &&
25409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 ac_cv_lib_jpeg_jpeg_read_header=yes
25416else
25417 echo "$as_me: failed program was:" >&5
25418sed 's/^/| /' conftest.$ac_ext >&5
25419
25420ac_cv_lib_jpeg_jpeg_read_header=no
25421fi
ac1cb8d3
VS
25422rm -f conftest.err conftest.$ac_objext \
25423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25424LIBS=$ac_check_lib_save_LIBS
25425fi
25426echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25427echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25428if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25429 JPEG_LINK=" -ljpeg"
25430fi
25431
25432 fi
25433
25434 if test "x$JPEG_LINK" = "x" ; then
25435 if test "$wxUSE_LIBJPEG" = "sys" ; then
25436 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25437echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25438 { (exit 1); exit 1; }; }
25439 else
25440 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25441echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25442 wxUSE_LIBJPEG=builtin
25443 fi
25444 else
25445 wxUSE_LIBJPEG=sys
25446 fi
25447 fi
25448 fi
25449fi
25450
25451
25452TIFF_LINK=
25453TIFF_PREREQ_LINKS=-lm
25454if test "$wxUSE_LIBTIFF" != "no" ; then
25455 cat >>confdefs.h <<\_ACEOF
25456#define wxUSE_LIBTIFF 1
25457_ACEOF
25458
25459
25460 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25461 if test "$wxUSE_LIBJPEG" = "sys"; then
25462 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25463 fi
25464 if test "$wxUSE_ZLIB" = "sys"; then
25465 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25466 fi
25467 if test "${ac_cv_header_tiffio_h+set}" = set; then
25468 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25469echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25470if test "${ac_cv_header_tiffio_h+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25472fi
25473echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25474echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25475else
25476 # Is the header compilable?
25477echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25478echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25479cat >conftest.$ac_ext <<_ACEOF
25480/* confdefs.h. */
25481_ACEOF
25482cat confdefs.h >>conftest.$ac_ext
25483cat >>conftest.$ac_ext <<_ACEOF
25484/* end confdefs.h. */
25485$ac_includes_default
25486#include <tiffio.h>
25487_ACEOF
25488rm -f conftest.$ac_objext
25489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25490 (eval $ac_compile) 2>conftest.er1
a848cd7e 25491 ac_status=$?
ac1cb8d3
VS
25492 grep -v '^ *+' conftest.er1 >conftest.err
25493 rm -f conftest.er1
25494 cat conftest.err >&5
a848cd7e
SC
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } &&
6954625c 25497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; } &&
25503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; }; then
25509 ac_header_compiler=yes
25510else
25511 echo "$as_me: failed program was:" >&5
25512sed 's/^/| /' conftest.$ac_ext >&5
25513
25514ac_header_compiler=no
25515fi
ac1cb8d3 25516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25518echo "${ECHO_T}$ac_header_compiler" >&6
25519
25520# Is the header present?
25521echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25522echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25523cat >conftest.$ac_ext <<_ACEOF
25524/* confdefs.h. */
25525_ACEOF
25526cat confdefs.h >>conftest.$ac_ext
25527cat >>conftest.$ac_ext <<_ACEOF
25528/* end confdefs.h. */
25529#include <tiffio.h>
25530_ACEOF
25531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25533 ac_status=$?
25534 grep -v '^ *+' conftest.er1 >conftest.err
25535 rm -f conftest.er1
25536 cat conftest.err >&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); } >/dev/null; then
25539 if test -s conftest.err; then
5d7b7554
VZ
25540 ac_cpp_err=$ac_cxx_preproc_warn_flag
25541 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25542 else
25543 ac_cpp_err=
25544 fi
25545else
25546 ac_cpp_err=yes
25547fi
25548if test -z "$ac_cpp_err"; then
25549 ac_header_preproc=yes
25550else
25551 echo "$as_me: failed program was:" >&5
25552sed 's/^/| /' conftest.$ac_ext >&5
25553
25554 ac_header_preproc=no
25555fi
25556rm -f conftest.err conftest.$ac_ext
25557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25558echo "${ECHO_T}$ac_header_preproc" >&6
25559
25560# So? What about this header?
5d7b7554 25561case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25562 yes:no: )
a848cd7e
SC
25563 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25564echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25565 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25566echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25567 ac_header_preproc=yes
a848cd7e 25568 ;;
ac1cb8d3 25569 no:yes:* )
a848cd7e
SC
25570 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25571echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25572 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25573echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25574 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25575echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25576 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25577echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25578 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25579echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25580 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25581echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25582 (
25583 cat <<\_ASBOX
ac1cb8d3
VS
25584## ----------------------------------------- ##
25585## Report this to wx-dev@lists.wxwidgets.org ##
25586## ----------------------------------------- ##
a848cd7e
SC
25587_ASBOX
25588 ) |
25589 sed "s/^/$as_me: WARNING: /" >&2
25590 ;;
25591esac
25592echo "$as_me:$LINENO: checking for tiffio.h" >&5
25593echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25594if test "${ac_cv_header_tiffio_h+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
25596else
25597 ac_cv_header_tiffio_h=$ac_header_preproc
25598fi
25599echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25600echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25601
25602fi
25603if test $ac_cv_header_tiffio_h = yes; then
25604
25605 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25606echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25607if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25609else
25610 ac_check_lib_save_LIBS=$LIBS
25611LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25612cat >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/* Override any gcc2 internal prototype to avoid an error. */
25620#ifdef __cplusplus
25621extern "C"
25622#endif
25623/* We use char because int might match the return type of a gcc2
25624 builtin and then its argument prototype would still apply. */
25625char TIFFError ();
25626int
25627main ()
25628{
25629TIFFError ();
25630 ;
25631 return 0;
25632}
25633_ACEOF
25634rm -f conftest.$ac_objext conftest$ac_exeext
25635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25636 (eval $ac_link) 2>conftest.er1
a848cd7e 25637 ac_status=$?
ac1cb8d3
VS
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
a848cd7e
SC
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } &&
6954625c 25643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; } &&
25649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; }; then
25655 ac_cv_lib_tiff_TIFFError=yes
25656else
25657 echo "$as_me: failed program was:" >&5
25658sed 's/^/| /' conftest.$ac_ext >&5
25659
25660ac_cv_lib_tiff_TIFFError=no
25661fi
ac1cb8d3
VS
25662rm -f conftest.err conftest.$ac_objext \
25663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25664LIBS=$ac_check_lib_save_LIBS
25665fi
25666echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25667echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25668if test $ac_cv_lib_tiff_TIFFError = yes; then
25669 TIFF_LINK=" -ltiff"
25670fi
25671
25672
25673
25674fi
25675
25676
25677
25678 if test "x$TIFF_LINK" = "x" ; then
25679 if test "$wxUSE_LIBTIFF" = "sys" ; then
25680 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25681echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25682 { (exit 1); exit 1; }; }
25683 else
25684 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25685echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25686 wxUSE_LIBTIFF=builtin
25687 fi
25688 else
25689 wxUSE_LIBTIFF=sys
25690 fi
25691 fi
25692fi
25693
25694
47a7e797
MW
25695if test "$wxUSE_WCHAR_T" != "yes"; then
25696 if test "$wxUSE_EXPAT" != "no"; then
25697 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25698echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25699 wxUSE_EXPAT=no
25700 fi
25701 if test "$wxUSE_XML" != "no"; then
25702 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25703echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25704 wxUSE_XML=no
25705 fi
25706fi
25707
a848cd7e
SC
25708if test "$wxUSE_EXPAT" != "no"; then
25709 wxUSE_XML=yes
25710 cat >>confdefs.h <<\_ACEOF
25711#define wxUSE_EXPAT 1
25712_ACEOF
25713
25714 cat >>confdefs.h <<\_ACEOF
25715#define wxUSE_XML 1
25716_ACEOF
25717
25718
25719 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25720 if test "${ac_cv_header_expat_h+set}" = set; then
25721 echo "$as_me:$LINENO: checking for expat.h" >&5
25722echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25723if test "${ac_cv_header_expat_h+set}" = set; then
25724 echo $ECHO_N "(cached) $ECHO_C" >&6
25725fi
25726echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25727echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25728else
25729 # Is the header compilable?
25730echo "$as_me:$LINENO: checking expat.h usability" >&5
25731echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25732cat >conftest.$ac_ext <<_ACEOF
25733/* confdefs.h. */
25734_ACEOF
25735cat confdefs.h >>conftest.$ac_ext
25736cat >>conftest.$ac_ext <<_ACEOF
25737/* end confdefs.h. */
25738$ac_includes_default
25739#include <expat.h>
25740_ACEOF
25741rm -f conftest.$ac_objext
25742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25743 (eval $ac_compile) 2>conftest.er1
a848cd7e 25744 ac_status=$?
ac1cb8d3
VS
25745 grep -v '^ *+' conftest.er1 >conftest.err
25746 rm -f conftest.er1
25747 cat conftest.err >&5
a848cd7e
SC
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } &&
6954625c 25750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); }; } &&
25756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; }; then
25762 ac_header_compiler=yes
25763else
25764 echo "$as_me: failed program was:" >&5
25765sed 's/^/| /' conftest.$ac_ext >&5
25766
25767ac_header_compiler=no
25768fi
ac1cb8d3 25769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25771echo "${ECHO_T}$ac_header_compiler" >&6
25772
25773# Is the header present?
25774echo "$as_me:$LINENO: checking expat.h presence" >&5
25775echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25776cat >conftest.$ac_ext <<_ACEOF
25777/* confdefs.h. */
25778_ACEOF
25779cat confdefs.h >>conftest.$ac_ext
25780cat >>conftest.$ac_ext <<_ACEOF
25781/* end confdefs.h. */
25782#include <expat.h>
25783_ACEOF
25784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25786 ac_status=$?
25787 grep -v '^ *+' conftest.er1 >conftest.err
25788 rm -f conftest.er1
25789 cat conftest.err >&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); } >/dev/null; then
25792 if test -s conftest.err; then
5d7b7554
VZ
25793 ac_cpp_err=$ac_cxx_preproc_warn_flag
25794 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25795 else
25796 ac_cpp_err=
25797 fi
25798else
25799 ac_cpp_err=yes
25800fi
25801if test -z "$ac_cpp_err"; then
25802 ac_header_preproc=yes
25803else
25804 echo "$as_me: failed program was:" >&5
25805sed 's/^/| /' conftest.$ac_ext >&5
25806
25807 ac_header_preproc=no
25808fi
25809rm -f conftest.err conftest.$ac_ext
25810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25811echo "${ECHO_T}$ac_header_preproc" >&6
25812
25813# So? What about this header?
5d7b7554 25814case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25815 yes:no: )
a848cd7e
SC
25816 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25817echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25818 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25819echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25820 ac_header_preproc=yes
a848cd7e 25821 ;;
ac1cb8d3 25822 no:yes:* )
a848cd7e
SC
25823 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25824echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25825 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25826echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25827 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25828echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25829 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25830echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25831 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25832echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25833 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25834echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25835 (
25836 cat <<\_ASBOX
ac1cb8d3
VS
25837## ----------------------------------------- ##
25838## Report this to wx-dev@lists.wxwidgets.org ##
25839## ----------------------------------------- ##
a848cd7e
SC
25840_ASBOX
25841 ) |
25842 sed "s/^/$as_me: WARNING: /" >&2
25843 ;;
25844esac
25845echo "$as_me:$LINENO: checking for expat.h" >&5
25846echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25847if test "${ac_cv_header_expat_h+set}" = set; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
25849else
25850 ac_cv_header_expat_h=$ac_header_preproc
25851fi
25852echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25853echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25854
25855fi
25856if test $ac_cv_header_expat_h = yes; then
25857 found_expat_h=1
25858fi
25859
25860
25861 if test "x$found_expat_h" = "x1"; then
25862 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25863echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25864if test "${wx_cv_expat_is_not_broken+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25866else
25867
a848cd7e
SC
25868 cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874#include <expat.h>
25875int
25876main ()
25877{
25878
25879 ;
25880 return 0;
25881}
25882_ACEOF
25883rm -f conftest.$ac_objext
25884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25885 (eval $ac_compile) 2>conftest.er1
a848cd7e 25886 ac_status=$?
ac1cb8d3
VS
25887 grep -v '^ *+' conftest.er1 >conftest.err
25888 rm -f conftest.er1
25889 cat conftest.err >&5
a848cd7e
SC
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } &&
6954625c 25892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; } &&
25898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; }; then
25904 wx_cv_expat_is_not_broken=yes
25905else
25906 echo "$as_me: failed program was:" >&5
25907sed 's/^/| /' conftest.$ac_ext >&5
25908
25909wx_cv_expat_is_not_broken=no
25910
25911fi
ac1cb8d3 25912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25913
25914
25915fi
25916echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25917echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25918 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25919 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25920echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25921if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25923else
25924 ac_check_lib_save_LIBS=$LIBS
25925LIBS="-lexpat $LIBS"
25926cat >conftest.$ac_ext <<_ACEOF
25927/* confdefs.h. */
25928_ACEOF
25929cat confdefs.h >>conftest.$ac_ext
25930cat >>conftest.$ac_ext <<_ACEOF
25931/* end confdefs.h. */
25932
25933/* Override any gcc2 internal prototype to avoid an error. */
25934#ifdef __cplusplus
25935extern "C"
25936#endif
25937/* We use char because int might match the return type of a gcc2
25938 builtin and then its argument prototype would still apply. */
25939char XML_ParserCreate ();
25940int
25941main ()
25942{
25943XML_ParserCreate ();
25944 ;
25945 return 0;
25946}
25947_ACEOF
25948rm -f conftest.$ac_objext conftest$ac_exeext
25949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25950 (eval $ac_link) 2>conftest.er1
a848cd7e 25951 ac_status=$?
ac1cb8d3
VS
25952 grep -v '^ *+' conftest.er1 >conftest.err
25953 rm -f conftest.er1
25954 cat conftest.err >&5
a848cd7e
SC
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
6954625c 25957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; } &&
25963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 ac_cv_lib_expat_XML_ParserCreate=yes
25970else
25971 echo "$as_me: failed program was:" >&5
25972sed 's/^/| /' conftest.$ac_ext >&5
25973
25974ac_cv_lib_expat_XML_ParserCreate=no
25975fi
ac1cb8d3
VS
25976rm -f conftest.err conftest.$ac_objext \
25977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25978LIBS=$ac_check_lib_save_LIBS
25979fi
25980echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25981echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25982if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25983 EXPAT_LINK=" -lexpat"
25984fi
25985
25986 fi
25987 fi
25988 if test "x$EXPAT_LINK" = "x" ; then
25989 if test "$wxUSE_EXPAT" = "sys" ; then
25990 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25991echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25992 { (exit 1); exit 1; }; }
25993 else
25994 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25995echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25996 wxUSE_EXPAT=builtin
25997 fi
25998 else
25999 wxUSE_EXPAT=sys
26000 fi
26001 fi
26002 if test "$wxUSE_EXPAT" = "builtin" ; then
26003
26004
26005subdirs="$subdirs src/expat"
26006
26007 fi
26008fi
26009
26010
26011
26012if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26013 if test "${ac_cv_header_mspack_h+set}" = set; then
26014 echo "$as_me:$LINENO: checking for mspack.h" >&5
26015echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26016if test "${ac_cv_header_mspack_h+set}" = set; then
26017 echo $ECHO_N "(cached) $ECHO_C" >&6
26018fi
26019echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26020echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26021else
26022 # Is the header compilable?
26023echo "$as_me:$LINENO: checking mspack.h usability" >&5
26024echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26025cat >conftest.$ac_ext <<_ACEOF
26026/* confdefs.h. */
26027_ACEOF
26028cat confdefs.h >>conftest.$ac_ext
26029cat >>conftest.$ac_ext <<_ACEOF
26030/* end confdefs.h. */
26031$ac_includes_default
26032#include <mspack.h>
26033_ACEOF
26034rm -f conftest.$ac_objext
26035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26036 (eval $ac_compile) 2>conftest.er1
a848cd7e 26037 ac_status=$?
ac1cb8d3
VS
26038 grep -v '^ *+' conftest.er1 >conftest.err
26039 rm -f conftest.er1
26040 cat conftest.err >&5
a848cd7e
SC
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } &&
6954625c 26043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; } &&
26049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051 (eval $ac_try) 2>&5
26052 ac_status=$?
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); }; }; then
26055 ac_header_compiler=yes
26056else
26057 echo "$as_me: failed program was:" >&5
26058sed 's/^/| /' conftest.$ac_ext >&5
26059
26060ac_header_compiler=no
26061fi
ac1cb8d3 26062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26064echo "${ECHO_T}$ac_header_compiler" >&6
26065
26066# Is the header present?
26067echo "$as_me:$LINENO: checking mspack.h presence" >&5
26068echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26069cat >conftest.$ac_ext <<_ACEOF
26070/* confdefs.h. */
26071_ACEOF
26072cat confdefs.h >>conftest.$ac_ext
26073cat >>conftest.$ac_ext <<_ACEOF
26074/* end confdefs.h. */
26075#include <mspack.h>
26076_ACEOF
26077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26079 ac_status=$?
26080 grep -v '^ *+' conftest.er1 >conftest.err
26081 rm -f conftest.er1
26082 cat conftest.err >&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); } >/dev/null; then
26085 if test -s conftest.err; then
5d7b7554
VZ
26086 ac_cpp_err=$ac_cxx_preproc_warn_flag
26087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26088 else
26089 ac_cpp_err=
26090 fi
26091else
26092 ac_cpp_err=yes
26093fi
26094if test -z "$ac_cpp_err"; then
26095 ac_header_preproc=yes
26096else
26097 echo "$as_me: failed program was:" >&5
26098sed 's/^/| /' conftest.$ac_ext >&5
26099
26100 ac_header_preproc=no
26101fi
26102rm -f conftest.err conftest.$ac_ext
26103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26104echo "${ECHO_T}$ac_header_preproc" >&6
26105
26106# So? What about this header?
5d7b7554 26107case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26108 yes:no: )
a848cd7e
SC
26109 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26110echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26111 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26112echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26113 ac_header_preproc=yes
a848cd7e 26114 ;;
ac1cb8d3 26115 no:yes:* )
a848cd7e
SC
26116 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26117echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26118 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26119echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26120 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26121echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26122 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26123echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26124 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26125echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26126 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26127echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26128 (
26129 cat <<\_ASBOX
ac1cb8d3
VS
26130## ----------------------------------------- ##
26131## Report this to wx-dev@lists.wxwidgets.org ##
26132## ----------------------------------------- ##
a848cd7e
SC
26133_ASBOX
26134 ) |
26135 sed "s/^/$as_me: WARNING: /" >&2
26136 ;;
26137esac
26138echo "$as_me:$LINENO: checking for mspack.h" >&5
26139echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26140if test "${ac_cv_header_mspack_h+set}" = set; then
26141 echo $ECHO_N "(cached) $ECHO_C" >&6
26142else
26143 ac_cv_header_mspack_h=$ac_header_preproc
26144fi
26145echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26146echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26147
26148fi
26149if test $ac_cv_header_mspack_h = yes; then
26150 found_mspack_h=1
26151fi
26152
26153
26154 if test "x$found_mspack_h" = "x1"; then
26155 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26156echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26157if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26158 echo $ECHO_N "(cached) $ECHO_C" >&6
26159else
26160 ac_check_lib_save_LIBS=$LIBS
26161LIBS="-lmspack $LIBS"
26162cat >conftest.$ac_ext <<_ACEOF
26163/* confdefs.h. */
26164_ACEOF
26165cat confdefs.h >>conftest.$ac_ext
26166cat >>conftest.$ac_ext <<_ACEOF
26167/* end confdefs.h. */
26168
26169/* Override any gcc2 internal prototype to avoid an error. */
26170#ifdef __cplusplus
26171extern "C"
26172#endif
26173/* We use char because int might match the return type of a gcc2
26174 builtin and then its argument prototype would still apply. */
26175char mspack_create_chm_decompressor ();
26176int
26177main ()
26178{
26179mspack_create_chm_decompressor ();
26180 ;
26181 return 0;
26182}
26183_ACEOF
26184rm -f conftest.$ac_objext conftest$ac_exeext
26185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26186 (eval $ac_link) 2>conftest.er1
a848cd7e 26187 ac_status=$?
ac1cb8d3
VS
26188 grep -v '^ *+' conftest.er1 >conftest.err
26189 rm -f conftest.er1
26190 cat conftest.err >&5
a848cd7e
SC
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } &&
6954625c 26193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; } &&
26199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26201 (eval $ac_try) 2>&5
26202 ac_status=$?
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); }; }; then
26205 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26206else
26207 echo "$as_me: failed program was:" >&5
26208sed 's/^/| /' conftest.$ac_ext >&5
26209
26210ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26211fi
ac1cb8d3
VS
26212rm -f conftest.err conftest.$ac_objext \
26213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26214LIBS=$ac_check_lib_save_LIBS
26215fi
26216echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26217echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26218if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26219 MSPACK_LINK=" -lmspack"
26220fi
26221
26222 fi
26223 if test "x$MSPACK_LINK" = "x" ; then
26224 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26225 fi
26226fi
26227
26228if test "$wxUSE_LIBMSPACK" != "no"; then
26229 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26230#define wxUSE_LIBMSPACK 1
26231_ACEOF
26232
a848cd7e
SC
26233fi
26234
26235
26236
26237AFMINSTALL=
26238WIN32INSTALL=
26239
26240TOOLKIT=
26241TOOLKIT_INCLUDE=
26242WIDGET_SET=
26243
26244if test "$USE_WIN32" = 1 ; then
26245
26246for ac_header in w32api.h
26247do
26248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26249if eval "test \"\${$as_ac_Header+set}\" = set"; then
26250 echo "$as_me:$LINENO: checking for $ac_header" >&5
26251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26252if eval "test \"\${$as_ac_Header+set}\" = set"; then
26253 echo $ECHO_N "(cached) $ECHO_C" >&6
26254fi
26255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26257else
26258 # Is the header compilable?
26259echo "$as_me:$LINENO: checking $ac_header usability" >&5
26260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26261cat >conftest.$ac_ext <<_ACEOF
26262/* confdefs.h. */
26263_ACEOF
26264cat confdefs.h >>conftest.$ac_ext
26265cat >>conftest.$ac_ext <<_ACEOF
26266/* end confdefs.h. */
26267$ac_includes_default
26268#include <$ac_header>
26269_ACEOF
26270rm -f conftest.$ac_objext
26271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26272 (eval $ac_compile) 2>conftest.er1
a848cd7e 26273 ac_status=$?
ac1cb8d3
VS
26274 grep -v '^ *+' conftest.er1 >conftest.err
26275 rm -f conftest.er1
26276 cat conftest.err >&5
a848cd7e
SC
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } &&
6954625c 26279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; } &&
26285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26291 ac_header_compiler=yes
26292else
26293 echo "$as_me: failed program was:" >&5
26294sed 's/^/| /' conftest.$ac_ext >&5
26295
26296ac_header_compiler=no
26297fi
ac1cb8d3 26298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26300echo "${ECHO_T}$ac_header_compiler" >&6
26301
26302# Is the header present?
26303echo "$as_me:$LINENO: checking $ac_header presence" >&5
26304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26305cat >conftest.$ac_ext <<_ACEOF
26306/* confdefs.h. */
26307_ACEOF
26308cat confdefs.h >>conftest.$ac_ext
26309cat >>conftest.$ac_ext <<_ACEOF
26310/* end confdefs.h. */
26311#include <$ac_header>
26312_ACEOF
26313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26315 ac_status=$?
26316 grep -v '^ *+' conftest.er1 >conftest.err
26317 rm -f conftest.er1
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } >/dev/null; then
26321 if test -s conftest.err; then
5d7b7554
VZ
26322 ac_cpp_err=$ac_cxx_preproc_warn_flag
26323 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26324 else
26325 ac_cpp_err=
26326 fi
26327else
26328 ac_cpp_err=yes
26329fi
26330if test -z "$ac_cpp_err"; then
26331 ac_header_preproc=yes
26332else
26333 echo "$as_me: failed program was:" >&5
26334sed 's/^/| /' conftest.$ac_ext >&5
26335
26336 ac_header_preproc=no
26337fi
26338rm -f conftest.err conftest.$ac_ext
26339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26340echo "${ECHO_T}$ac_header_preproc" >&6
26341
26342# So? What about this header?
5d7b7554 26343case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26344 yes:no: )
a848cd7e
SC
26345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26349 ac_header_preproc=yes
a848cd7e 26350 ;;
ac1cb8d3 26351 no:yes:* )
a848cd7e
SC
26352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26364 (
26365 cat <<\_ASBOX
ac1cb8d3
VS
26366## ----------------------------------------- ##
26367## Report this to wx-dev@lists.wxwidgets.org ##
26368## ----------------------------------------- ##
a848cd7e
SC
26369_ASBOX
26370 ) |
26371 sed "s/^/$as_me: WARNING: /" >&2
26372 ;;
26373esac
26374echo "$as_me:$LINENO: checking for $ac_header" >&5
26375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26376if eval "test \"\${$as_ac_Header+set}\" = set"; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26378else
ac1cb8d3 26379 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26380fi
26381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26383
26384fi
26385if test `eval echo '${'$as_ac_Header'}'` = yes; then
26386 cat >>confdefs.h <<_ACEOF
26387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26388_ACEOF
26389
26390fi
26391
26392done
26393
26394 if test "${ac_cv_header_windows_h+set}" = set; then
26395 echo "$as_me:$LINENO: checking for windows.h" >&5
26396echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26397if test "${ac_cv_header_windows_h+set}" = set; then
26398 echo $ECHO_N "(cached) $ECHO_C" >&6
26399fi
26400echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26401echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26402else
26403 # Is the header compilable?
26404echo "$as_me:$LINENO: checking windows.h usability" >&5
26405echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26406cat >conftest.$ac_ext <<_ACEOF
26407/* confdefs.h. */
26408_ACEOF
26409cat confdefs.h >>conftest.$ac_ext
26410cat >>conftest.$ac_ext <<_ACEOF
26411/* end confdefs.h. */
26412$ac_includes_default
26413#include <windows.h>
26414_ACEOF
26415rm -f conftest.$ac_objext
26416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26417 (eval $ac_compile) 2>conftest.er1
a848cd7e 26418 ac_status=$?
ac1cb8d3
VS
26419 grep -v '^ *+' conftest.er1 >conftest.err
26420 rm -f conftest.er1
26421 cat conftest.err >&5
a848cd7e
SC
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
6954625c 26424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426 (eval $ac_try) 2>&5
26427 ac_status=$?
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); }; } &&
26430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); }; }; then
26436 ac_header_compiler=yes
26437else
26438 echo "$as_me: failed program was:" >&5
26439sed 's/^/| /' conftest.$ac_ext >&5
26440
26441ac_header_compiler=no
26442fi
ac1cb8d3 26443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26445echo "${ECHO_T}$ac_header_compiler" >&6
26446
26447# Is the header present?
26448echo "$as_me:$LINENO: checking windows.h presence" >&5
26449echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26450cat >conftest.$ac_ext <<_ACEOF
26451/* confdefs.h. */
26452_ACEOF
26453cat confdefs.h >>conftest.$ac_ext
26454cat >>conftest.$ac_ext <<_ACEOF
26455/* end confdefs.h. */
26456#include <windows.h>
26457_ACEOF
26458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26460 ac_status=$?
26461 grep -v '^ *+' conftest.er1 >conftest.err
26462 rm -f conftest.er1
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } >/dev/null; then
26466 if test -s conftest.err; then
5d7b7554
VZ
26467 ac_cpp_err=$ac_cxx_preproc_warn_flag
26468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26469 else
26470 ac_cpp_err=
26471 fi
26472else
26473 ac_cpp_err=yes
26474fi
26475if test -z "$ac_cpp_err"; then
26476 ac_header_preproc=yes
26477else
26478 echo "$as_me: failed program was:" >&5
26479sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 ac_header_preproc=no
26482fi
26483rm -f conftest.err conftest.$ac_ext
26484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26485echo "${ECHO_T}$ac_header_preproc" >&6
26486
26487# So? What about this header?
5d7b7554 26488case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26489 yes:no: )
a848cd7e
SC
26490 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26491echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26492 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26493echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26494 ac_header_preproc=yes
a848cd7e 26495 ;;
ac1cb8d3 26496 no:yes:* )
a848cd7e
SC
26497 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26498echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26499 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26500echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26501 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26502echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26503 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26504echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26505 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26506echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26507 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26508echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26509 (
26510 cat <<\_ASBOX
ac1cb8d3
VS
26511## ----------------------------------------- ##
26512## Report this to wx-dev@lists.wxwidgets.org ##
26513## ----------------------------------------- ##
a848cd7e
SC
26514_ASBOX
26515 ) |
26516 sed "s/^/$as_me: WARNING: /" >&2
26517 ;;
26518esac
26519echo "$as_me:$LINENO: checking for windows.h" >&5
26520echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26521if test "${ac_cv_header_windows_h+set}" = set; then
26522 echo $ECHO_N "(cached) $ECHO_C" >&6
26523else
26524 ac_cv_header_windows_h=$ac_header_preproc
26525fi
26526echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26527echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26528
26529fi
26530if test $ac_cv_header_windows_h = yes; then
26531 :
26532else
26533
26534 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26535echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26536 { (exit 1); exit 1; }; }
26537
26538fi
26539
26540
26541
26542 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26543
26544 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26545 LIBS="$LIBS -loleacc"
26546 fi
26547
26548 case "${host}" in
26549 *-*-cygwin* )
26550 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26551 esac
26552
26553 if test "$wxUSE_ODBC" = "sys" ; then
26554 wxUSE_ODBC = "yes"
26555 fi
26556 if test "$wxUSE_ODBC" = "yes" ; then
26557 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26558 cat >>confdefs.h <<\_ACEOF
26559#define wxUSE_ODBC 1
26560_ACEOF
26561
26562 fi
26563
370d2fd7 26564 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26565 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26566
004ee6da 26567 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26568
a848cd7e
SC
26569 WIN32INSTALL=win32install
26570fi
26571
26572if test "$wxUSE_GUI" = "yes"; then
26573 USE_GUI=1
26574
26575 GUI_TK_LIBRARY=
26576
26577 WXGTK12=
26578 WXGTK127=
26579 WXGTK20=
26580 WXGPE=
26581
207bc66c
RN
26582 if test "$wxUSE_COCOA" = 1 ; then
26583 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26584 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26585echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26586 wxUSE_PRINTING_ARCHITECTURE=no
26587 fi
26588 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26589 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26590echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26591 wxUSE_DRAG_AND_DROP=no
26592 fi
26593 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26594 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26595echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26596 wxUSE_DRAGIMAGE=no
26597 fi
26598 fi
26599
a848cd7e
SC
26600 if test "$wxUSE_MSW" = 1 ; then
26601 TOOLKIT=MSW
26602 GUIDIST=MSW_DIST
26603
ceec2216 26604 case "${host}" in
a848cd7e
SC
26605 *-*-mingw32* )
26606 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26607 esac
26608 fi
26609
26610 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26611 ac_ext=c
26612ac_cpp='$CPP $CPPFLAGS'
26613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26615ac_compiler_gnu=$ac_cv_c_compiler_gnu
26616
26617
a848cd7e
SC
26618 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26619echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26620
26621 gtk_version_cached=1
26622 if test "${wx_cv_lib_gtk+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26624else
26625
26626 gtk_version_cached=0
26627 echo "$as_me:$LINENO: result: " >&5
26628echo "${ECHO_T}" >&6
26629
26630 GTK_MODULES=
26631 if test "$wxUSE_THREADS" = "yes"; then
26632 GTK_MODULES=gthread
26633 fi
26634
f597b41c 26635 wx_cv_lib_gtk=
5001df0d
MW
26636 if test "x$wxGTK_VERSION" != "x1"
26637 then
26638 case "${host}" in
26639 *-*-solaris2* )
26640 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26641 enable_gtktest=no
5001df0d
MW
26642 fi
26643 esac
26644
a848cd7e
SC
26645 # Check whether --enable-gtktest or --disable-gtktest was given.
26646if test "${enable_gtktest+set}" = set; then
26647 enableval="$enable_gtktest"
26648
26649else
26650 enable_gtktest=yes
26651fi;
26652
26653 pkg_config_args=gtk+-2.0
26654 for module in . $GTK_MODULES
26655 do
26656 case "$module" in
26657 gthread)
26658 pkg_config_args="$pkg_config_args gthread-2.0"
26659 ;;
26660 esac
26661 done
26662
26663 no_gtk=""
26664
26665 # Extract the first word of "pkg-config", so it can be a program name with args.
26666set dummy pkg-config; ac_word=$2
26667echo "$as_me:$LINENO: checking for $ac_word" >&5
26668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26669if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26670 echo $ECHO_N "(cached) $ECHO_C" >&6
26671else
26672 case $PKG_CONFIG in
26673 [\\/]* | ?:[\\/]*)
26674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26675 ;;
26676 *)
26677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26678for as_dir in $PATH
26679do
26680 IFS=$as_save_IFS
26681 test -z "$as_dir" && as_dir=.
26682 for ac_exec_ext in '' $ac_executable_extensions; do
26683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26686 break 2
26687 fi
26688done
26689done
26690
26691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26692 ;;
26693esac
26694fi
26695PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26696
26697if test -n "$PKG_CONFIG"; then
26698 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26699echo "${ECHO_T}$PKG_CONFIG" >&6
26700else
26701 echo "$as_me:$LINENO: result: no" >&5
26702echo "${ECHO_T}no" >&6
26703fi
26704
26705
26706 if test x$PKG_CONFIG != xno ; then
26707 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26708 :
26709 else
c2218763 26710 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26711 no_gtk=yes
26712 PKG_CONFIG=no
26713 fi
26714 else
26715 no_gtk=yes
26716 fi
26717
26718 min_gtk_version=2.0.0
26719 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26720echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26721
26722 if test x$PKG_CONFIG != xno ; then
26723 ## don't try to run the test against uninstalled libtool libs
26724 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26725 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26726 enable_gtktest=no
26727 fi
26728
26729 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26730 :
26731 else
26732 no_gtk=yes
26733 fi
26734 fi
26735
26736 if test x"$no_gtk" = x ; then
26737 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26738 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26739 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26741 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26743 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26745 if test "x$enable_gtktest" = "xyes" ; then
26746 ac_save_CFLAGS="$CFLAGS"
26747 ac_save_LIBS="$LIBS"
26748 CFLAGS="$CFLAGS $GTK_CFLAGS"
26749 LIBS="$GTK_LIBS $LIBS"
26750 rm -f conf.gtktest
26751 if test "$cross_compiling" = yes; then
26752 echo $ac_n "cross compiling; assumed OK... $ac_c"
26753else
26754 cat >conftest.$ac_ext <<_ACEOF
26755/* confdefs.h. */
26756_ACEOF
26757cat confdefs.h >>conftest.$ac_ext
26758cat >>conftest.$ac_ext <<_ACEOF
26759/* end confdefs.h. */
26760
26761#include <gtk/gtk.h>
26762#include <stdio.h>
26763#include <stdlib.h>
26764
26765int
26766main ()
26767{
26768 int major, minor, micro;
26769 char *tmp_version;
26770
26771 system ("touch conf.gtktest");
26772
26773 /* HP/UX 9 (%@#!) writes to sscanf strings */
26774 tmp_version = g_strdup("$min_gtk_version");
26775 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26776 printf("%s, bad version string\n", "$min_gtk_version");
26777 exit(1);
26778 }
26779
26780 if ((gtk_major_version != $gtk_config_major_version) ||
26781 (gtk_minor_version != $gtk_config_minor_version) ||
26782 (gtk_micro_version != $gtk_config_micro_version))
26783 {
26784 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26785 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26786 gtk_major_version, gtk_minor_version, gtk_micro_version);
26787 printf ("*** was found! If pkg-config was correct, then it is best\n");
26788 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26789 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26790 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26791 printf("*** required on your system.\n");
26792 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26793 printf("*** to point to the correct configuration files\n");
26794 }
26795 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26796 (gtk_minor_version != GTK_MINOR_VERSION) ||
26797 (gtk_micro_version != GTK_MICRO_VERSION))
26798 {
26799 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26800 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26801 printf("*** library (version %d.%d.%d)\n",
26802 gtk_major_version, gtk_minor_version, gtk_micro_version);
26803 }
26804 else
26805 {
26806 if ((gtk_major_version > major) ||
26807 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26808 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26809 {
26810 return 0;
26811 }
26812 else
26813 {
26814 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26815 gtk_major_version, gtk_minor_version, gtk_micro_version);
26816 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26817 major, minor, micro);
26818 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26819 printf("***\n");
26820 printf("*** If you have already installed a sufficiently new version, this error\n");
26821 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26822 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26823 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26824 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26825 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26826 printf("*** so that the correct libraries are found at run-time))\n");
26827 }
26828 }
26829 return 1;
26830}
26831
26832_ACEOF
26833rm -f conftest$ac_exeext
26834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26835 (eval $ac_link) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844 :
26845else
26846 echo "$as_me: program exited with status $ac_status" >&5
26847echo "$as_me: failed program was:" >&5
26848sed 's/^/| /' conftest.$ac_ext >&5
26849
26850( exit $ac_status )
26851no_gtk=yes
26852fi
ac1cb8d3 26853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26854fi
26855 CFLAGS="$ac_save_CFLAGS"
26856 LIBS="$ac_save_LIBS"
26857 fi
26858 fi
26859 if test "x$no_gtk" = x ; then
26860 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26861echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26862 wx_cv_lib_gtk=2.0
26863 else
26864 echo "$as_me:$LINENO: result: no" >&5
26865echo "${ECHO_T}no" >&6
26866 if test "$PKG_CONFIG" = "no" ; then
26867 echo "*** A new enough version of pkg-config was not found."
26868 echo "*** See http://pkgconfig.sourceforge.net"
26869 else
26870 if test -f conf.gtktest ; then
26871 :
26872 else
26873 echo "*** Could not run GTK+ test program, checking why..."
26874 ac_save_CFLAGS="$CFLAGS"
26875 ac_save_LIBS="$LIBS"
26876 CFLAGS="$CFLAGS $GTK_CFLAGS"
26877 LIBS="$LIBS $GTK_LIBS"
26878 cat >conftest.$ac_ext <<_ACEOF
26879/* confdefs.h. */
26880_ACEOF
26881cat confdefs.h >>conftest.$ac_ext
26882cat >>conftest.$ac_ext <<_ACEOF
26883/* end confdefs.h. */
26884
26885#include <gtk/gtk.h>
26886#include <stdio.h>
26887
26888int
26889main ()
26890{
26891 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26892 ;
26893 return 0;
26894}
26895_ACEOF
26896rm -f conftest.$ac_objext conftest$ac_exeext
26897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26898 (eval $ac_link) 2>conftest.er1
a848cd7e 26899 ac_status=$?
ac1cb8d3
VS
26900 grep -v '^ *+' conftest.er1 >conftest.err
26901 rm -f conftest.er1
26902 cat conftest.err >&5
a848cd7e
SC
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } &&
6954625c 26905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26907 (eval $ac_try) 2>&5
26908 ac_status=$?
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); }; } &&
26911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913 (eval $ac_try) 2>&5
26914 ac_status=$?
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); }; }; then
26917 echo "*** The test program compiled, but did not run. This usually means"
26918 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26919 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26920 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26921 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26922 echo "*** is required on your system"
26923 echo "***"
26924 echo "*** If you have an old version installed, it is best to remove it, although"
26925 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 echo "*** The test program failed to compile or link. See the file config.log for the"
26931 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26932fi
ac1cb8d3
VS
26933rm -f conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26935 CFLAGS="$ac_save_CFLAGS"
26936 LIBS="$ac_save_LIBS"
26937 fi
26938 fi
26939 GTK_CFLAGS=""
26940 GTK_LIBS=""
26941 :
26942 fi
26943
26944
26945 rm -f conf.gtktest
26946
5001df0d
MW
26947
26948 case "${host}" in
26949 *-*-solaris2* )
26950 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26951 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26952 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26953 fi
26954 if test "$wxUSE_SHARED" != "yes"; then
26955 GTK_LIBS="$GTK_LIBS -lX11"
26956 fi
26957 esac
f597b41c
MW
26958 fi
26959
f34ca037
MW
26960 if test -z "$wx_cv_lib_gtk"; then
26961 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26962
26963# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26964if test "${with_gtk_prefix+set}" = set; then
26965 withval="$with_gtk_prefix"
26966 gtk_config_prefix="$withval"
26967else
26968 gtk_config_prefix=""
26969fi;
26970
26971# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26972if test "${with_gtk_exec_prefix+set}" = set; then
26973 withval="$with_gtk_exec_prefix"
26974 gtk_config_exec_prefix="$withval"
26975else
26976 gtk_config_exec_prefix=""
26977fi;
26978# Check whether --enable-gtktest or --disable-gtktest was given.
26979if test "${enable_gtktest+set}" = set; then
26980 enableval="$enable_gtktest"
26981
26982else
26983 enable_gtktest=yes
26984fi;
26985
26986 for module in . $GTK_MODULES
26987 do
26988 case "$module" in
26989 gthread)
26990 gtk_config_args="$gtk_config_args gthread"
26991 ;;
26992 esac
26993 done
26994
26995 if test x$gtk_config_exec_prefix != x ; then
26996 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26997 if test x${GTK_CONFIG+set} != xset ; then
26998 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26999 fi
27000 fi
27001 if test x$gtk_config_prefix != x ; then
27002 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27003 if test x${GTK_CONFIG+set} != xset ; then
27004 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27005 fi
27006 fi
27007
27008 # Extract the first word of "gtk-config", so it can be a program name with args.
27009set dummy gtk-config; ac_word=$2
27010echo "$as_me:$LINENO: checking for $ac_word" >&5
27011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27012if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27013 echo $ECHO_N "(cached) $ECHO_C" >&6
27014else
27015 case $GTK_CONFIG in
27016 [\\/]* | ?:[\\/]*)
27017 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27018 ;;
27019 *)
27020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27021for as_dir in $PATH
27022do
27023 IFS=$as_save_IFS
27024 test -z "$as_dir" && as_dir=.
27025 for ac_exec_ext in '' $ac_executable_extensions; do
27026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27027 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27029 break 2
27030 fi
27031done
27032done
27033
27034 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27035 ;;
27036esac
27037fi
27038GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27039
27040if test -n "$GTK_CONFIG"; then
27041 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27042echo "${ECHO_T}$GTK_CONFIG" >&6
27043else
27044 echo "$as_me:$LINENO: result: no" >&5
27045echo "${ECHO_T}no" >&6
27046fi
27047
27048 min_gtk_version=1.2.7
27049 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27050echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27051 no_gtk=""
27052 if test "$GTK_CONFIG" = "no" ; then
27053 no_gtk=yes
27054 else
27055 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27056 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27057 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27058 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27059 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27060 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27061 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27062 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27063 if test "x$enable_gtktest" = "xyes" ; then
27064 ac_save_CFLAGS="$CFLAGS"
27065 ac_save_LIBS="$LIBS"
27066 CFLAGS="$CFLAGS $GTK_CFLAGS"
27067 LIBS="$GTK_LIBS $LIBS"
27068 rm -f conf.gtktest
27069 if test "$cross_compiling" = yes; then
27070 echo $ac_n "cross compiling; assumed OK... $ac_c"
27071else
27072 cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h. */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h. */
27078
27079#include <gtk/gtk.h>
27080#include <stdio.h>
27081#include <stdlib.h>
27082
27083int
27084main ()
27085{
27086 int major, minor, micro;
27087 char *tmp_version;
27088
27089 system ("touch conf.gtktest");
27090
27091 /* HP/UX 9 (%@#!) writes to sscanf strings */
27092 tmp_version = g_strdup("$min_gtk_version");
27093 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27094 printf("%s, bad version string\n", "$min_gtk_version");
27095 exit(1);
27096 }
27097
27098 if ((gtk_major_version != $gtk_config_major_version) ||
27099 (gtk_minor_version != $gtk_config_minor_version) ||
27100 (gtk_micro_version != $gtk_config_micro_version))
27101 {
27102 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27103 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27104 gtk_major_version, gtk_minor_version, gtk_micro_version);
27105 printf ("*** was found! If gtk-config was correct, then it is best\n");
27106 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27107 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27108 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27109 printf("*** required on your system.\n");
27110 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27111 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27112 printf("*** before re-running configure\n");
27113 }
27114#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27115 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27116 (gtk_minor_version != GTK_MINOR_VERSION) ||
27117 (gtk_micro_version != GTK_MICRO_VERSION))
27118 {
27119 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27120 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27121 printf("*** library (version %d.%d.%d)\n",
27122 gtk_major_version, gtk_minor_version, gtk_micro_version);
27123 }
27124#endif /* defined (GTK_MAJOR_VERSION) ... */
27125 else
27126 {
27127 if ((gtk_major_version > major) ||
27128 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27129 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27130 {
27131 return 0;
27132 }
27133 else
27134 {
27135 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27136 gtk_major_version, gtk_minor_version, gtk_micro_version);
27137 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27138 major, minor, micro);
27139 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27140 printf("***\n");
27141 printf("*** If you have already installed a sufficiently new version, this error\n");
27142 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27143 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27144 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27145 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27146 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27147 printf("*** so that the correct libraries are found at run-time))\n");
27148 }
27149 }
27150 return 1;
27151}
27152
27153_ACEOF
27154rm -f conftest$ac_exeext
27155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27156 (eval $ac_link) 2>&5
27157 ac_status=$?
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; }; then
27165 :
27166else
27167 echo "$as_me: program exited with status $ac_status" >&5
27168echo "$as_me: failed program was:" >&5
27169sed 's/^/| /' conftest.$ac_ext >&5
27170
27171( exit $ac_status )
27172no_gtk=yes
27173fi
ac1cb8d3 27174rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27175fi
27176 CFLAGS="$ac_save_CFLAGS"
27177 LIBS="$ac_save_LIBS"
27178 fi
27179 fi
27180 if test "x$no_gtk" = x ; then
27181 echo "$as_me:$LINENO: result: yes" >&5
27182echo "${ECHO_T}yes" >&6
27183 wx_cv_lib_gtk=1.2.7
27184 else
27185 echo "$as_me:$LINENO: result: no" >&5
27186echo "${ECHO_T}no" >&6
27187 if test "$GTK_CONFIG" = "no" ; then
27188 echo "*** The gtk-config script installed by GTK could not be found"
27189 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27190 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27191 echo "*** full path to gtk-config."
27192 else
27193 if test -f conf.gtktest ; then
27194 :
27195 else
27196 echo "*** Could not run GTK test program, checking why..."
27197 CFLAGS="$CFLAGS $GTK_CFLAGS"
27198 LIBS="$LIBS $GTK_LIBS"
27199 cat >conftest.$ac_ext <<_ACEOF
27200/* confdefs.h. */
27201_ACEOF
27202cat confdefs.h >>conftest.$ac_ext
27203cat >>conftest.$ac_ext <<_ACEOF
27204/* end confdefs.h. */
27205
27206#include <gtk/gtk.h>
27207#include <stdio.h>
27208
27209int
27210main ()
27211{
27212 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27213 ;
27214 return 0;
27215}
27216_ACEOF
27217rm -f conftest.$ac_objext conftest$ac_exeext
27218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27219 (eval $ac_link) 2>conftest.er1
a848cd7e 27220 ac_status=$?
ac1cb8d3
VS
27221 grep -v '^ *+' conftest.er1 >conftest.err
27222 rm -f conftest.er1
27223 cat conftest.err >&5
a848cd7e
SC
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); } &&
6954625c 27226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27228 (eval $ac_try) 2>&5
27229 ac_status=$?
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; } &&
27232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; }; then
27238 echo "*** The test program compiled, but did not run. This usually means"
27239 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27240 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27241 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27242 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27243 echo "*** is required on your system"
27244 echo "***"
27245 echo "*** If you have an old version installed, it is best to remove it, although"
27246 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27247 echo "***"
27248 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27249 echo "*** came with the system with the command"
27250 echo "***"
27251 echo "*** rpm --erase --nodeps gtk gtk-devel"
27252else
27253 echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
27256 echo "*** The test program failed to compile or link. See the file config.log for the"
27257 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27258 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27259 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27260fi
ac1cb8d3
VS
27261rm -f conftest.err conftest.$ac_objext \
27262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27263 CFLAGS="$ac_save_CFLAGS"
27264 LIBS="$ac_save_LIBS"
27265 fi
27266 fi
27267 GTK_CFLAGS=""
27268 GTK_LIBS=""
27269 :
27270 fi
27271
27272
27273 rm -f conf.gtktest
27274
27275
f34ca037 27276 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27277
27278# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27279if test "${with_gtk_prefix+set}" = set; then
27280 withval="$with_gtk_prefix"
27281 gtk_config_prefix="$withval"
27282else
27283 gtk_config_prefix=""
27284fi;
27285
27286# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27287if test "${with_gtk_exec_prefix+set}" = set; then
27288 withval="$with_gtk_exec_prefix"
27289 gtk_config_exec_prefix="$withval"
27290else
27291 gtk_config_exec_prefix=""
27292fi;
27293# Check whether --enable-gtktest or --disable-gtktest was given.
27294if test "${enable_gtktest+set}" = set; then
27295 enableval="$enable_gtktest"
27296
27297else
27298 enable_gtktest=yes
27299fi;
27300
27301 for module in . $GTK_MODULES
27302 do
27303 case "$module" in
27304 gthread)
27305 gtk_config_args="$gtk_config_args gthread"
27306 ;;
27307 esac
27308 done
27309
27310 if test x$gtk_config_exec_prefix != x ; then
27311 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27312 if test x${GTK_CONFIG+set} != xset ; then
27313 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27314 fi
27315 fi
27316 if test x$gtk_config_prefix != x ; then
27317 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27318 if test x${GTK_CONFIG+set} != xset ; then
27319 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27320 fi
27321 fi
27322
27323 # Extract the first word of "gtk-config", so it can be a program name with args.
27324set dummy gtk-config; ac_word=$2
27325echo "$as_me:$LINENO: checking for $ac_word" >&5
27326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27327if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27328 echo $ECHO_N "(cached) $ECHO_C" >&6
27329else
27330 case $GTK_CONFIG in
27331 [\\/]* | ?:[\\/]*)
27332 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27333 ;;
27334 *)
27335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27336for as_dir in $PATH
27337do
27338 IFS=$as_save_IFS
27339 test -z "$as_dir" && as_dir=.
27340 for ac_exec_ext in '' $ac_executable_extensions; do
27341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27342 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27344 break 2
27345 fi
27346done
27347done
27348
27349 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27350 ;;
27351esac
27352fi
27353GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27354
27355if test -n "$GTK_CONFIG"; then
27356 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27357echo "${ECHO_T}$GTK_CONFIG" >&6
27358else
27359 echo "$as_me:$LINENO: result: no" >&5
27360echo "${ECHO_T}no" >&6
27361fi
27362
27363 min_gtk_version=1.2.3
27364 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27365echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27366 no_gtk=""
27367 if test "$GTK_CONFIG" = "no" ; then
27368 no_gtk=yes
27369 else
27370 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27371 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27372 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27374 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27376 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27378 if test "x$enable_gtktest" = "xyes" ; then
27379 ac_save_CFLAGS="$CFLAGS"
27380 ac_save_LIBS="$LIBS"
27381 CFLAGS="$CFLAGS $GTK_CFLAGS"
27382 LIBS="$GTK_LIBS $LIBS"
27383 rm -f conf.gtktest
27384 if test "$cross_compiling" = yes; then
27385 echo $ac_n "cross compiling; assumed OK... $ac_c"
27386else
27387 cat >conftest.$ac_ext <<_ACEOF
27388/* confdefs.h. */
27389_ACEOF
27390cat confdefs.h >>conftest.$ac_ext
27391cat >>conftest.$ac_ext <<_ACEOF
27392/* end confdefs.h. */
27393
27394#include <gtk/gtk.h>
27395#include <stdio.h>
27396#include <stdlib.h>
27397
27398int
27399main ()
27400{
27401 int major, minor, micro;
27402 char *tmp_version;
27403
27404 system ("touch conf.gtktest");
27405
27406 /* HP/UX 9 (%@#!) writes to sscanf strings */
27407 tmp_version = g_strdup("$min_gtk_version");
27408 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27409 printf("%s, bad version string\n", "$min_gtk_version");
27410 exit(1);
27411 }
27412
27413 if ((gtk_major_version != $gtk_config_major_version) ||
27414 (gtk_minor_version != $gtk_config_minor_version) ||
27415 (gtk_micro_version != $gtk_config_micro_version))
27416 {
27417 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27418 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27419 gtk_major_version, gtk_minor_version, gtk_micro_version);
27420 printf ("*** was found! If gtk-config was correct, then it is best\n");
27421 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27422 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27423 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27424 printf("*** required on your system.\n");
27425 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27426 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27427 printf("*** before re-running configure\n");
27428 }
27429#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27430 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27431 (gtk_minor_version != GTK_MINOR_VERSION) ||
27432 (gtk_micro_version != GTK_MICRO_VERSION))
27433 {
27434 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27435 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27436 printf("*** library (version %d.%d.%d)\n",
27437 gtk_major_version, gtk_minor_version, gtk_micro_version);
27438 }
27439#endif /* defined (GTK_MAJOR_VERSION) ... */
27440 else
27441 {
27442 if ((gtk_major_version > major) ||
27443 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27444 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27445 {
27446 return 0;
27447 }
27448 else
27449 {
27450 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27451 gtk_major_version, gtk_minor_version, gtk_micro_version);
27452 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27453 major, minor, micro);
27454 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27455 printf("***\n");
27456 printf("*** If you have already installed a sufficiently new version, this error\n");
27457 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27458 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27459 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27460 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27461 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27462 printf("*** so that the correct libraries are found at run-time))\n");
27463 }
27464 }
27465 return 1;
27466}
27467
27468_ACEOF
27469rm -f conftest$ac_exeext
27470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27471 (eval $ac_link) 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27477 ac_status=$?
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; }; then
27480 :
27481else
27482 echo "$as_me: program exited with status $ac_status" >&5
27483echo "$as_me: failed program was:" >&5
27484sed 's/^/| /' conftest.$ac_ext >&5
27485
27486( exit $ac_status )
27487no_gtk=yes
27488fi
ac1cb8d3 27489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27490fi
27491 CFLAGS="$ac_save_CFLAGS"
27492 LIBS="$ac_save_LIBS"
27493 fi
27494 fi
27495 if test "x$no_gtk" = x ; then
27496 echo "$as_me:$LINENO: result: yes" >&5
27497echo "${ECHO_T}yes" >&6
27498 wx_cv_lib_gtk=1.2.3
27499 else
27500 echo "$as_me:$LINENO: result: no" >&5
27501echo "${ECHO_T}no" >&6
27502 if test "$GTK_CONFIG" = "no" ; then
27503 echo "*** The gtk-config script installed by GTK could not be found"
27504 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27505 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27506 echo "*** full path to gtk-config."
27507 else
27508 if test -f conf.gtktest ; then
27509 :
27510 else
27511 echo "*** Could not run GTK test program, checking why..."
27512 CFLAGS="$CFLAGS $GTK_CFLAGS"
27513 LIBS="$LIBS $GTK_LIBS"
27514 cat >conftest.$ac_ext <<_ACEOF
27515/* confdefs.h. */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h. */
27520
27521#include <gtk/gtk.h>
27522#include <stdio.h>
27523
27524int
27525main ()
27526{
27527 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27528 ;
27529 return 0;
27530}
27531_ACEOF
27532rm -f conftest.$ac_objext conftest$ac_exeext
27533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27534 (eval $ac_link) 2>conftest.er1
a848cd7e 27535 ac_status=$?
ac1cb8d3
VS
27536 grep -v '^ *+' conftest.er1 >conftest.err
27537 rm -f conftest.er1
27538 cat conftest.err >&5
a848cd7e
SC
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
6954625c 27541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27543 (eval $ac_try) 2>&5
27544 ac_status=$?
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); }; } &&
27547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; }; then
27553 echo "*** The test program compiled, but did not run. This usually means"
27554 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27555 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27556 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27557 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27558 echo "*** is required on your system"
27559 echo "***"
27560 echo "*** If you have an old version installed, it is best to remove it, although"
27561 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27562 echo "***"
27563 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27564 echo "*** came with the system with the command"
27565 echo "***"
27566 echo "*** rpm --erase --nodeps gtk gtk-devel"
27567else
27568 echo "$as_me: failed program was:" >&5
27569sed 's/^/| /' conftest.$ac_ext >&5
27570
27571 echo "*** The test program failed to compile or link. See the file config.log for the"
27572 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27573 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27574 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27575fi
ac1cb8d3
VS
27576rm -f conftest.err conftest.$ac_objext \
27577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27578 CFLAGS="$ac_save_CFLAGS"
27579 LIBS="$ac_save_LIBS"
27580 fi
27581 fi
27582 GTK_CFLAGS=""
27583 GTK_LIBS=""
27584 :
27585 fi
27586
27587
27588 rm -f conf.gtktest
27589
f34ca037 27590 fi
a848cd7e
SC
27591 fi
27592 fi
27593
27594 if test -z "$wx_cv_lib_gtk"; then
27595 wx_cv_lib_gtk=none
27596 else
27597 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27598 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27599 fi
27600
27601
27602fi
27603
27604
27605 if test "$gtk_version_cached" = 1; then
27606 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27607echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27608 fi
27609
27610 case "$wx_cv_lib_gtk" in
27611 2.0) WXGTK20=1
27612 TOOLKIT_VERSION=2
27613 ;;
27614 1.2.7) WXGTK127=1
27615 WXGTK12=1
27616 ;;
27617 1.2.3) WXGTK12=1
27618 ;;
27619 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27620The development files for GTK+ were not found. For GTK+ 2, please
27621ensure that pkg-config is in the path and that gtk+-2.0.pc is
27622installed. For GTK+ 1.2 please check that gtk-config is in the path,
27623and that the version is 1.2.3 or above. Also check that the
27624libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27625--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27626 " >&5
27627echo "$as_me: error:
f597b41c
MW
27628The development files for GTK+ were not found. For GTK+ 2, please
27629ensure that pkg-config is in the path and that gtk+-2.0.pc is
27630installed. For GTK+ 1.2 please check that gtk-config is in the path,
27631and that the version is 1.2.3 or above. Also check that the
27632libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27633--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27634 " >&2;}
27635 { (exit 1); exit 1; }; }
27636 ;;
27637 esac
27638
27639 if test "$WXGTK20" = 1; then
6954625c 27640 save_CFLAGS="$CFLAGS"
304205f1 27641 save_LIBS="$LIBS"
6954625c 27642 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27643 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27644
d12aef51
VZ
27645 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27646echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27647 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27648/* confdefs.h. */
27649_ACEOF
27650cat confdefs.h >>conftest.$ac_ext
27651cat >>conftest.$ac_ext <<_ACEOF
27652/* end confdefs.h. */
304205f1 27653
d12aef51 27654 #include <gtk/gtk.h>
304205f1 27655
d12aef51
VZ
27656int
27657main ()
27658{
304205f1 27659
d12aef51 27660 void *f = gtk_icon_size_lookup;
abc736fd
MW
27661
27662 ;
27663 return 0;
27664}
27665_ACEOF
27666rm -f conftest.$ac_objext
27667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27668 (eval $ac_compile) 2>conftest.er1
27669 ac_status=$?
27670 grep -v '^ *+' conftest.er1 >conftest.err
27671 rm -f conftest.er1
27672 cat conftest.err >&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } &&
6954625c 27675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest.$ac_objext'
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687
27688 echo "$as_me:$LINENO: result: no" >&5
27689echo "${ECHO_T}no" >&6
27690
27691else
27692 echo "$as_me: failed program was:" >&5
27693sed 's/^/| /' conftest.$ac_ext >&5
27694
27695
27696 cat >>confdefs.h <<\_ACEOF
27697#define NEED_GTK_ICON_SIZE_LOOKUP 1
27698_ACEOF
27699
27700 echo "$as_me:$LINENO: result: yes" >&5
27701echo "${ECHO_T}yes" >&6
27702
27703fi
27704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27705
9755e73b
VS
27706 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27707echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27708 cat >conftest.$ac_ext <<_ACEOF
27709/* confdefs.h. */
27710_ACEOF
27711cat confdefs.h >>conftest.$ac_ext
27712cat >>conftest.$ac_ext <<_ACEOF
27713/* end confdefs.h. */
27714
27715 #include <gtk/gtk.h>
27716
27717int
27718main ()
27719{
27720
27721 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27722 Not GTK+ 2.4
9755e73b
VS
27723 #endif
27724
27725 ;
27726 return 0;
27727}
27728_ACEOF
27729rm -f conftest.$ac_objext
27730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27731 (eval $ac_compile) 2>conftest.er1
27732 ac_status=$?
27733 grep -v '^ *+' conftest.er1 >conftest.err
27734 rm -f conftest.er1
27735 cat conftest.err >&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } &&
6954625c 27738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27740 (eval $ac_try) 2>&5
27741 ac_status=$?
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); }; } &&
27744 { ac_try='test -s conftest.$ac_objext'
27745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27746 (eval $ac_try) 2>&5
27747 ac_status=$?
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); }; }; then
27750
27751 cat >>confdefs.h <<\_ACEOF
27752#define __WXGTK24__ 1
27753_ACEOF
27754
27755 echo "$as_me:$LINENO: result: yes" >&5
27756echo "${ECHO_T}yes" >&6
27757
27758else
27759 echo "$as_me: failed program was:" >&5
27760sed 's/^/| /' conftest.$ac_ext >&5
27761
27762
27763 echo "$as_me:$LINENO: result: no" >&5
27764echo "${ECHO_T}no" >&6
27765
27766fi
27767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27768
6954625c 27769 CFLAGS="$save_CFLAGS"
304205f1 27770 LIBS="$save_LIBS"
a848cd7e
SC
27771 else
27772 if test "$wxUSE_UNICODE" = "yes"; then
27773 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27774echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27775 wxUSE_UNICODE=no
27776 fi
27777 fi
27778
e56f4f9e
VZ
27779 ac_ext=cc
27780ac_cpp='$CXXCPP $CPPFLAGS'
27781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27784
27785
a848cd7e
SC
27786 if test "$USE_DARWIN" != 1; then
27787
27788for ac_func in poll
27789do
27790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27791echo "$as_me:$LINENO: checking for $ac_func" >&5
27792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27793if eval "test \"\${$as_ac_var+set}\" = set"; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27795else
27796 cat >conftest.$ac_ext <<_ACEOF
27797/* confdefs.h. */
27798_ACEOF
27799cat confdefs.h >>conftest.$ac_ext
27800cat >>conftest.$ac_ext <<_ACEOF
27801/* end confdefs.h. */
ac1cb8d3
VS
27802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27804#define $ac_func innocuous_$ac_func
27805
a848cd7e
SC
27806/* System header to define __stub macros and hopefully few prototypes,
27807 which can conflict with char $ac_func (); below.
27808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27809 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27810
a848cd7e
SC
27811#ifdef __STDC__
27812# include <limits.h>
27813#else
27814# include <assert.h>
27815#endif
ac1cb8d3
VS
27816
27817#undef $ac_func
27818
a848cd7e
SC
27819/* Override any gcc2 internal prototype to avoid an error. */
27820#ifdef __cplusplus
27821extern "C"
27822{
27823#endif
27824/* We use char because int might match the return type of a gcc2
27825 builtin and then its argument prototype would still apply. */
27826char $ac_func ();
27827/* The GNU C library defines this for functions which it implements
27828 to always fail with ENOSYS. Some functions are actually named
27829 something starting with __ and the normal name is an alias. */
27830#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27831choke me
27832#else
27833char (*f) () = $ac_func;
27834#endif
27835#ifdef __cplusplus
27836}
27837#endif
27838
27839int
27840main ()
27841{
27842return f != $ac_func;
27843 ;
27844 return 0;
27845}
27846_ACEOF
27847rm -f conftest.$ac_objext conftest$ac_exeext
27848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27849 (eval $ac_link) 2>conftest.er1
a848cd7e 27850 ac_status=$?
ac1cb8d3
VS
27851 grep -v '^ *+' conftest.er1 >conftest.err
27852 rm -f conftest.er1
27853 cat conftest.err >&5
a848cd7e
SC
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); } &&
6954625c 27856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; }; then
27868 eval "$as_ac_var=yes"
27869else
27870 echo "$as_me: failed program was:" >&5
27871sed 's/^/| /' conftest.$ac_ext >&5
27872
27873eval "$as_ac_var=no"
27874fi
ac1cb8d3
VS
27875rm -f conftest.err conftest.$ac_objext \
27876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27877fi
27878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27880if test `eval echo '${'$as_ac_var'}'` = yes; then
27881 cat >>confdefs.h <<_ACEOF
27882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27883_ACEOF
27884
27885fi
27886done
27887
27888 fi
27889
27890 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27891 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27892
27893 AFMINSTALL=afminstall
27894 TOOLKIT=GTK
27895 GUIDIST=GTK_DIST
27896
27897 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27898echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27899if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901else
27902 ac_check_lib_save_LIBS=$LIBS
27903LIBS="-lgdk $LIBS"
27904cat >conftest.$ac_ext <<_ACEOF
27905/* confdefs.h. */
27906_ACEOF
27907cat confdefs.h >>conftest.$ac_ext
27908cat >>conftest.$ac_ext <<_ACEOF
27909/* end confdefs.h. */
27910
27911/* Override any gcc2 internal prototype to avoid an error. */
27912#ifdef __cplusplus
27913extern "C"
27914#endif
27915/* We use char because int might match the return type of a gcc2
27916 builtin and then its argument prototype would still apply. */
27917char gdk_im_open ();
27918int
27919main ()
27920{
27921gdk_im_open ();
27922 ;
27923 return 0;
27924}
27925_ACEOF
27926rm -f conftest.$ac_objext conftest$ac_exeext
27927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27928 (eval $ac_link) 2>conftest.er1
a848cd7e 27929 ac_status=$?
ac1cb8d3
VS
27930 grep -v '^ *+' conftest.er1 >conftest.err
27931 rm -f conftest.er1
27932 cat conftest.err >&5
a848cd7e
SC
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } &&
6954625c 27935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); }; } &&
27941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; }; then
27947 ac_cv_lib_gdk_gdk_im_open=yes
27948else
27949 echo "$as_me: failed program was:" >&5
27950sed 's/^/| /' conftest.$ac_ext >&5
27951
27952ac_cv_lib_gdk_gdk_im_open=no
27953fi
ac1cb8d3
VS
27954rm -f conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27956LIBS=$ac_check_lib_save_LIBS
27957fi
27958echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27959echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27960if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27961 cat >>confdefs.h <<\_ACEOF
27962#define HAVE_XIM 1
27963_ACEOF
27964
27965fi
27966
27967
27968
27969 if test "$wxUSE_GPE" = "yes"; then
27970 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27971echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27972
0ad5d837
VZ
27973 ac_find_libraries=
27974 for ac_dir in $SEARCH_LIB;
a848cd7e 27975 do
3eca31dc 27976 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27977 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27978 ac_find_libraries=$ac_dir
27979 break 2
27980 fi
27981 done
27982 done
27983
27984 if test "$ac_find_libraries" != "" ; then
27985
0ad5d837 27986 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27987 ac_path_to_link=""
27988 else
0ad5d837
VZ
27989 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27990 result=$?
27991 if test $result = 0; then
27992 ac_path_to_link=""
27993 else
27994 ac_path_to_link=" -L$ac_find_libraries"
27995 fi
a848cd7e
SC
27996 fi
27997
27998 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27999 WXGPE=1
0ad5d837
VZ
28000 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28001echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28002 else
28003 echo "$as_me:$LINENO: result: not found" >&5
28004echo "${ECHO_T}not found" >&6
28005 fi
28006
28007 fi
28008 fi
28009
28010 if test "$wxUSE_MGL" = 1; then
28011 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28012echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28013 if test "x$MGL_ROOT" = x ; then
28014 echo "$as_me:$LINENO: result: not found" >&5
28015echo "${ECHO_T}not found" >&6
28016 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28017echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28018 { (exit 1); exit 1; }; }
28019 else
28020 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28021echo "${ECHO_T}$MGL_ROOT" >&6
28022 fi
28023
28024 echo "$as_me:$LINENO: checking for libmgl location" >&5
28025echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28026 case "${host}" in
28027 *-*-linux* )
28028 if test "x$wxUSE_SHARED" = xyes ; then
28029 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28030 else
28031 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28032 fi
28033 ;;
28034 *-pc-msdosdjgpp )
28035 mgl_os_candidates="dos32/dj2"
28036 ;;
28037 *)
28038 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28039echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28040 { (exit 1); exit 1; }; }
28041 esac
28042
28043 mgl_lib_type=""
28044 mgl_os=""
28045
28046 for mgl_os_i in $mgl_os_candidates ; do
28047 if test "x$mgl_os" = x ; then
28048 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28049 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28050 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28051 mgl_lib_type=debug
28052 mgl_os=$mgl_os_i
28053 fi
28054 fi
28055 if test "x$mgl_lib_type" = x ; then
28056 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28057 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28058 mgl_lib_type=release
28059 mgl_os=$mgl_os_i
28060 fi
28061 fi
28062 fi
28063 done
28064
28065 if test "x$mgl_os" = x ; then
28066 echo "$as_me:$LINENO: result: not found" >&5
28067echo "${ECHO_T}not found" >&6
28068 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28069echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28070 { (exit 1); exit 1; }; }
28071 fi
28072 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28073echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28074
28075 wxUSE_UNIVERSAL="yes"
28076
28077 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28078 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28079
28080 AFMINSTALL=afminstall
28081 TOOLKIT=MGL
28082 GUIDIST=MGL_DIST
28083 fi
28084
28085 if test "$wxUSE_MICROWIN" = 1; then
28086 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28087echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28088 if test "x$MICROWINDOWS" = x ; then
28089 echo "$as_me:$LINENO: result: not found" >&5
28090echo "${ECHO_T}not found" >&6
28091 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28092echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28093 { (exit 1); exit 1; }; }
28094 else
28095 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28096echo "${ECHO_T}$MICROWINDOWS" >&6
28097 fi
28098
28099 if test -f $MICROWINDOWS/lib/libmwin.a; then
28100 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28101echo "${ECHO_T}MicroWindows' libraries found." >&6
28102 else
28103 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28104echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28105 { (exit 1); exit 1; }; }
28106 fi
28107
28108 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28109 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28110
28111 wxUSE_UNIVERSAL="yes"
28112
28113 AFMINSTALL=afminstall
28114 TOOLKIT=MICROWIN
28115 GUIDIST=MICROWIN_DIST
28116
28117 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28118 fi
28119
74b84332 28120 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6954625c
VZ
28121
28122if test "x$ac_path_x_has_been_run" != xyes; then
28123 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28124echo $ECHO_N "checking for X... $ECHO_C" >&6
28125
6954625c 28126ac_path_x_has_been_run=yes
a848cd7e
SC
28127
28128# Check whether --with-x or --without-x was given.
28129if test "${with_x+set}" = set; then
28130 withval="$with_x"
28131
28132fi;
28133# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28134if test "x$with_x" = xno; then
28135 # The user explicitly disabled X.
28136 have_x=disabled
28137else
28138 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28139 # Both variables are already set.
28140 have_x=yes
28141 else
28142 if test "${ac_cv_have_x+set}" = set; then
28143 echo $ECHO_N "(cached) $ECHO_C" >&6
28144else
28145 # One or both of the vars are not set, and there is no cached value.
28146ac_x_includes=no ac_x_libraries=no
28147rm -fr conftest.dir
28148if mkdir conftest.dir; then
28149 cd conftest.dir
28150 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28151 cat >Imakefile <<'_ACEOF'
28152acfindx:
28153 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28154_ACEOF
28155 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28157 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28159 for ac_extension in a so sl; do
28160 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28161 test -f $ac_im_libdir/libX11.$ac_extension; then
28162 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28163 fi
28164 done
28165 # Screen out bogus values from the imake configuration. They are
28166 # bogus both because they are the default anyway, and because
28167 # using them would break gcc on systems where it needs fixed includes.
28168 case $ac_im_incroot in
28169 /usr/include) ;;
28170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28171 esac
28172 case $ac_im_usrlibdir in
28173 /usr/lib | /lib) ;;
28174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28175 esac
28176 fi
28177 cd ..
28178 rm -fr conftest.dir
28179fi
28180
28181# Standard set of common directories for X headers.
28182# Check X11 before X11Rn because it is often a symlink to the current release.
28183ac_x_header_dirs='
28184/usr/X11/include
28185/usr/X11R6/include
28186/usr/X11R5/include
28187/usr/X11R4/include
28188
28189/usr/include/X11
28190/usr/include/X11R6
28191/usr/include/X11R5
28192/usr/include/X11R4
28193
28194/usr/local/X11/include
28195/usr/local/X11R6/include
28196/usr/local/X11R5/include
28197/usr/local/X11R4/include
28198
28199/usr/local/include/X11
28200/usr/local/include/X11R6
28201/usr/local/include/X11R5
28202/usr/local/include/X11R4
28203
28204/usr/X386/include
28205/usr/x386/include
28206/usr/XFree86/include/X11
28207
28208/usr/include
28209/usr/local/include
28210/usr/unsupported/include
28211/usr/athena/include
28212/usr/local/x11r5/include
28213/usr/lpp/Xamples/include
28214
28215/usr/openwin/include
28216/usr/openwin/share/include'
28217
28218if test "$ac_x_includes" = no; then
6954625c 28219 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28220 # First, try using that file with no special directory specified.
28221 cat >conftest.$ac_ext <<_ACEOF
28222/* confdefs.h. */
28223_ACEOF
28224cat confdefs.h >>conftest.$ac_ext
28225cat >>conftest.$ac_ext <<_ACEOF
28226/* end confdefs.h. */
d25774ab 28227#include <X11/Intrinsic.h>
a848cd7e
SC
28228_ACEOF
28229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28231 ac_status=$?
28232 grep -v '^ *+' conftest.er1 >conftest.err
28233 rm -f conftest.er1
28234 cat conftest.err >&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); } >/dev/null; then
28237 if test -s conftest.err; then
5d7b7554
VZ
28238 ac_cpp_err=$ac_cxx_preproc_warn_flag
28239 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28240 else
28241 ac_cpp_err=
28242 fi
28243else
28244 ac_cpp_err=yes
28245fi
28246if test -z "$ac_cpp_err"; then
28247 # We can compile using X headers with no special include directory.
28248ac_x_includes=
28249else
28250 echo "$as_me: failed program was:" >&5
28251sed 's/^/| /' conftest.$ac_ext >&5
28252
28253 for ac_dir in $ac_x_header_dirs; do
d25774ab 28254 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28255 ac_x_includes=$ac_dir
28256 break
28257 fi
28258done
28259fi
28260rm -f conftest.err conftest.$ac_ext
28261fi # $ac_x_includes = no
28262
28263if test "$ac_x_libraries" = no; then
28264 # Check for the libraries.
28265 # See if we find them without any special options.
28266 # Don't add to $LIBS permanently.
28267 ac_save_LIBS=$LIBS
d25774ab 28268 LIBS="-lXt $LIBS"
a848cd7e
SC
28269 cat >conftest.$ac_ext <<_ACEOF
28270/* confdefs.h. */
28271_ACEOF
28272cat confdefs.h >>conftest.$ac_ext
28273cat >>conftest.$ac_ext <<_ACEOF
28274/* end confdefs.h. */
d25774ab 28275#include <X11/Intrinsic.h>
a848cd7e
SC
28276int
28277main ()
28278{
d25774ab 28279XtMalloc (0)
a848cd7e
SC
28280 ;
28281 return 0;
28282}
28283_ACEOF
28284rm -f conftest.$ac_objext conftest$ac_exeext
28285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28286 (eval $ac_link) 2>conftest.er1
a848cd7e 28287 ac_status=$?
ac1cb8d3
VS
28288 grep -v '^ *+' conftest.er1 >conftest.err
28289 rm -f conftest.er1
28290 cat conftest.err >&5
a848cd7e
SC
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); } &&
6954625c 28293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; } &&
28299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 LIBS=$ac_save_LIBS
28306# We can link X programs with no special library path.
28307ac_x_libraries=
28308else
28309 echo "$as_me: failed program was:" >&5
28310sed 's/^/| /' conftest.$ac_ext >&5
28311
28312LIBS=$ac_save_LIBS
28313for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28314do
28315 # Don't even attempt the hair of trying to link an X program!
28316 for ac_extension in a so sl; do
d25774ab 28317 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28318 ac_x_libraries=$ac_dir
28319 break 2
28320 fi
28321 done
28322done
28323fi
ac1cb8d3
VS
28324rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28326fi # $ac_x_libraries = no
28327
28328if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28329 # Didn't find X anywhere. Cache the known absence of X.
28330 ac_cv_have_x="have_x=no"
28331else
28332 # Record where we found X for the cache.
28333 ac_cv_have_x="have_x=yes \
ac1cb8d3 28334 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28335fi
28336fi
28337
28338 fi
28339 eval "$ac_cv_have_x"
28340fi # $with_x != no
28341
28342if test "$have_x" != yes; then
28343 echo "$as_me:$LINENO: result: $have_x" >&5
28344echo "${ECHO_T}$have_x" >&6
28345 no_x=yes
28346else
28347 # If each of the values was on the command line, it overrides each guess.
28348 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28349 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28350 # Update the cache value to reflect the command line values.
28351 ac_cv_have_x="have_x=yes \
28352 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6954625c
VZ
28353 # It might be that x_includes is empty (headers are found in the
28354 # standard search path. Then output the corresponding message
28355 ac_out_x_includes=$x_includes
28356 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28357 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28358echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28359fi
28360
6954625c 28361fi
a848cd7e
SC
28362if test "$no_x" = yes; then
28363 # Not all programs may use this symbol, but it does not hurt to define it.
28364
28365cat >>confdefs.h <<\_ACEOF
28366#define X_DISPLAY_MISSING 1
28367_ACEOF
28368
28369 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28370else
28371 if test -n "$x_includes"; then
28372 X_CFLAGS="$X_CFLAGS -I$x_includes"
28373 fi
28374
28375 # It would also be nice to do this for all -L options, not just this one.
28376 if test -n "$x_libraries"; then
28377 X_LIBS="$X_LIBS -L$x_libraries"
28378 # For Solaris; some versions of Sun CC require a space after -R and
28379 # others require no space. Words are not sufficient . . . .
28380 case `(uname -sr) 2>/dev/null` in
28381 "SunOS 5"*)
28382 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28383echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28384 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28385 cat >conftest.$ac_ext <<_ACEOF
28386/* confdefs.h. */
28387_ACEOF
28388cat confdefs.h >>conftest.$ac_ext
28389cat >>conftest.$ac_ext <<_ACEOF
28390/* end confdefs.h. */
28391
28392int
28393main ()
28394{
28395
28396 ;
28397 return 0;
28398}
28399_ACEOF
28400rm -f conftest.$ac_objext conftest$ac_exeext
28401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28402 (eval $ac_link) 2>conftest.er1
a848cd7e 28403 ac_status=$?
ac1cb8d3
VS
28404 grep -v '^ *+' conftest.er1 >conftest.err
28405 rm -f conftest.er1
28406 cat conftest.err >&5
a848cd7e
SC
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
6954625c 28409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28412 ac_status=$?
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; } &&
28415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; }; then
28421 ac_R_nospace=yes
28422else
28423 echo "$as_me: failed program was:" >&5
28424sed 's/^/| /' conftest.$ac_ext >&5
28425
28426ac_R_nospace=no
28427fi
ac1cb8d3
VS
28428rm -f conftest.err conftest.$ac_objext \
28429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28430 if test $ac_R_nospace = yes; then
28431 echo "$as_me:$LINENO: result: no" >&5
28432echo "${ECHO_T}no" >&6
28433 X_LIBS="$X_LIBS -R$x_libraries"
28434 else
28435 LIBS="$ac_xsave_LIBS -R $x_libraries"
28436 cat >conftest.$ac_ext <<_ACEOF
28437/* confdefs.h. */
28438_ACEOF
28439cat confdefs.h >>conftest.$ac_ext
28440cat >>conftest.$ac_ext <<_ACEOF
28441/* end confdefs.h. */
28442
28443int
28444main ()
28445{
28446
28447 ;
28448 return 0;
28449}
28450_ACEOF
28451rm -f conftest.$ac_objext conftest$ac_exeext
28452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28453 (eval $ac_link) 2>conftest.er1
a848cd7e 28454 ac_status=$?
ac1cb8d3
VS
28455 grep -v '^ *+' conftest.er1 >conftest.err
28456 rm -f conftest.er1
28457 cat conftest.err >&5
a848cd7e
SC
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } &&
6954625c 28460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_R_space=yes
28473else
28474 echo "$as_me: failed program was:" >&5
28475sed 's/^/| /' conftest.$ac_ext >&5
28476
28477ac_R_space=no
28478fi
ac1cb8d3
VS
28479rm -f conftest.err conftest.$ac_objext \
28480 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28481 if test $ac_R_space = yes; then
28482 echo "$as_me:$LINENO: result: yes" >&5
28483echo "${ECHO_T}yes" >&6
28484 X_LIBS="$X_LIBS -R $x_libraries"
28485 else
28486 echo "$as_me:$LINENO: result: neither works" >&5
28487echo "${ECHO_T}neither works" >&6
28488 fi
28489 fi
28490 LIBS=$ac_xsave_LIBS
28491 esac
28492 fi
28493
28494 # Check for system-dependent libraries X programs must link with.
28495 # Do this before checking for the system-independent R6 libraries
28496 # (-lICE), since we may need -lsocket or whatever for X linking.
28497
28498 if test "$ISC" = yes; then
28499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28500 else
28501 # Martyn Johnson says this is needed for Ultrix, if the X
28502 # libraries were built with DECnet support. And Karl Berry says
28503 # the Alpha needs dnet_stub (dnet does not exist).
28504 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28505 cat >conftest.$ac_ext <<_ACEOF
28506/* confdefs.h. */
28507_ACEOF
28508cat confdefs.h >>conftest.$ac_ext
28509cat >>conftest.$ac_ext <<_ACEOF
28510/* end confdefs.h. */
28511
28512/* Override any gcc2 internal prototype to avoid an error. */
28513#ifdef __cplusplus
28514extern "C"
28515#endif
28516/* We use char because int might match the return type of a gcc2
28517 builtin and then its argument prototype would still apply. */
28518char XOpenDisplay ();
28519int
28520main ()
28521{
28522XOpenDisplay ();
28523 ;
28524 return 0;
28525}
28526_ACEOF
28527rm -f conftest.$ac_objext conftest$ac_exeext
28528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28529 (eval $ac_link) 2>conftest.er1
a848cd7e 28530 ac_status=$?
ac1cb8d3
VS
28531 grep -v '^ *+' conftest.er1 >conftest.err
28532 rm -f conftest.er1
28533 cat conftest.err >&5
a848cd7e
SC
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); } &&
6954625c 28536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538 (eval $ac_try) 2>&5
28539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; } &&
28542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
28548 :
28549else
28550 echo "$as_me: failed program was:" >&5
28551sed 's/^/| /' conftest.$ac_ext >&5
28552
28553echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28554echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28555if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28556 echo $ECHO_N "(cached) $ECHO_C" >&6
28557else
28558 ac_check_lib_save_LIBS=$LIBS
28559LIBS="-ldnet $LIBS"
28560cat >conftest.$ac_ext <<_ACEOF
28561/* confdefs.h. */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h. */
28566
28567/* Override any gcc2 internal prototype to avoid an error. */
28568#ifdef __cplusplus
28569extern "C"
28570#endif
28571/* We use char because int might match the return type of a gcc2
28572 builtin and then its argument prototype would still apply. */
28573char dnet_ntoa ();
28574int
28575main ()
28576{
28577dnet_ntoa ();
28578 ;
28579 return 0;
28580}
28581_ACEOF
28582rm -f conftest.$ac_objext conftest$ac_exeext
28583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28584 (eval $ac_link) 2>conftest.er1
a848cd7e 28585 ac_status=$?
ac1cb8d3
VS
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
a848cd7e
SC
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
6954625c 28591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; } &&
28597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; }; then
28603 ac_cv_lib_dnet_dnet_ntoa=yes
28604else
28605 echo "$as_me: failed program was:" >&5
28606sed 's/^/| /' conftest.$ac_ext >&5
28607
28608ac_cv_lib_dnet_dnet_ntoa=no
28609fi
ac1cb8d3
VS
28610rm -f conftest.err conftest.$ac_objext \
28611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28612LIBS=$ac_check_lib_save_LIBS
28613fi
28614echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28615echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28616if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28617 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28618fi
28619
28620 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28621 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28622echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28623if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28625else
28626 ac_check_lib_save_LIBS=$LIBS
28627LIBS="-ldnet_stub $LIBS"
28628cat >conftest.$ac_ext <<_ACEOF
28629/* confdefs.h. */
28630_ACEOF
28631cat confdefs.h >>conftest.$ac_ext
28632cat >>conftest.$ac_ext <<_ACEOF
28633/* end confdefs.h. */
28634
28635/* Override any gcc2 internal prototype to avoid an error. */
28636#ifdef __cplusplus
28637extern "C"
28638#endif
28639/* We use char because int might match the return type of a gcc2
28640 builtin and then its argument prototype would still apply. */
28641char dnet_ntoa ();
28642int
28643main ()
28644{
28645dnet_ntoa ();
28646 ;
28647 return 0;
28648}
28649_ACEOF
28650rm -f conftest.$ac_objext conftest$ac_exeext
28651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28652 (eval $ac_link) 2>conftest.er1
a848cd7e 28653 ac_status=$?
ac1cb8d3
VS
28654 grep -v '^ *+' conftest.er1 >conftest.err
28655 rm -f conftest.er1
28656 cat conftest.err >&5
a848cd7e
SC
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); } &&
6954625c 28659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28662 ac_status=$?
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; } &&
28665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28672else
28673 echo "$as_me: failed program was:" >&5
28674sed 's/^/| /' conftest.$ac_ext >&5
28675
28676ac_cv_lib_dnet_stub_dnet_ntoa=no
28677fi
ac1cb8d3
VS
28678rm -f conftest.err conftest.$ac_objext \
28679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28680LIBS=$ac_check_lib_save_LIBS
28681fi
28682echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28683echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28684if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28685 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28686fi
28687
28688 fi
28689fi
ac1cb8d3
VS
28690rm -f conftest.err conftest.$ac_objext \
28691 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28692 LIBS="$ac_xsave_LIBS"
28693
28694 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28695 # to get the SysV transport functions.
28696 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28697 # needs -lnsl.
28698 # The nsl library prevents programs from opening the X display
28699 # on Irix 5.2, according to T.E. Dickey.
28700 # The functions gethostbyname, getservbyname, and inet_addr are
28701 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28702 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28703echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28704if test "${ac_cv_func_gethostbyname+set}" = set; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28706else
28707 cat >conftest.$ac_ext <<_ACEOF
28708/* confdefs.h. */
28709_ACEOF
28710cat confdefs.h >>conftest.$ac_ext
28711cat >>conftest.$ac_ext <<_ACEOF
28712/* end confdefs.h. */
ac1cb8d3
VS
28713/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28715#define gethostbyname innocuous_gethostbyname
28716
a848cd7e
SC
28717/* System header to define __stub macros and hopefully few prototypes,
28718 which can conflict with char gethostbyname (); below.
28719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28720 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28721
a848cd7e
SC
28722#ifdef __STDC__
28723# include <limits.h>
28724#else
28725# include <assert.h>
28726#endif
ac1cb8d3
VS
28727
28728#undef gethostbyname
28729
a848cd7e
SC
28730/* Override any gcc2 internal prototype to avoid an error. */
28731#ifdef __cplusplus
28732extern "C"
28733{
28734#endif
28735/* We use char because int might match the return type of a gcc2
28736 builtin and then its argument prototype would still apply. */
28737char gethostbyname ();
28738/* The GNU C library defines this for functions which it implements
28739 to always fail with ENOSYS. Some functions are actually named
28740 something starting with __ and the normal name is an alias. */
28741#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28742choke me
28743#else
28744char (*f) () = gethostbyname;
28745#endif
28746#ifdef __cplusplus
28747}
28748#endif
28749
28750int
28751main ()
28752{
28753return f != gethostbyname;
28754 ;
28755 return 0;
28756}
28757_ACEOF
28758rm -f conftest.$ac_objext conftest$ac_exeext
28759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28760 (eval $ac_link) 2>conftest.er1
a848cd7e 28761 ac_status=$?
ac1cb8d3
VS
28762 grep -v '^ *+' conftest.er1 >conftest.err
28763 rm -f conftest.er1
28764 cat conftest.err >&5
a848cd7e
SC
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); } &&
6954625c 28767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; }; then
28779 ac_cv_func_gethostbyname=yes
28780else
28781 echo "$as_me: failed program was:" >&5
28782sed 's/^/| /' conftest.$ac_ext >&5
28783
28784ac_cv_func_gethostbyname=no
28785fi
ac1cb8d3
VS
28786rm -f conftest.err conftest.$ac_objext \
28787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28788fi
28789echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28790echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28791
28792 if test $ac_cv_func_gethostbyname = no; then
28793 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28794echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28795if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28797else
28798 ac_check_lib_save_LIBS=$LIBS
28799LIBS="-lnsl $LIBS"
28800cat >conftest.$ac_ext <<_ACEOF
28801/* confdefs.h. */
28802_ACEOF
28803cat confdefs.h >>conftest.$ac_ext
28804cat >>conftest.$ac_ext <<_ACEOF
28805/* end confdefs.h. */
28806
28807/* Override any gcc2 internal prototype to avoid an error. */
28808#ifdef __cplusplus
28809extern "C"
28810#endif
28811/* We use char because int might match the return type of a gcc2
28812 builtin and then its argument prototype would still apply. */
28813char gethostbyname ();
28814int
28815main ()
28816{
28817gethostbyname ();
28818 ;
28819 return 0;
28820}
28821_ACEOF
28822rm -f conftest.$ac_objext conftest$ac_exeext
28823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28824 (eval $ac_link) 2>conftest.er1
28825 ac_status=$?
28826 grep -v '^ *+' conftest.er1 >conftest.err
28827 rm -f conftest.er1
28828 cat conftest.err >&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } &&
6954625c 28831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest$ac_exeext'
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; }; then
28843 ac_cv_lib_nsl_gethostbyname=yes
28844else
28845 echo "$as_me: failed program was:" >&5
28846sed 's/^/| /' conftest.$ac_ext >&5
28847
28848ac_cv_lib_nsl_gethostbyname=no
28849fi
28850rm -f conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
28852LIBS=$ac_check_lib_save_LIBS
28853fi
28854echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28855echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28856if test $ac_cv_lib_nsl_gethostbyname = yes; then
28857 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28858fi
28859
28860 if test $ac_cv_lib_nsl_gethostbyname = no; then
28861 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28862echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28863if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28864 echo $ECHO_N "(cached) $ECHO_C" >&6
28865else
28866 ac_check_lib_save_LIBS=$LIBS
28867LIBS="-lbsd $LIBS"
28868cat >conftest.$ac_ext <<_ACEOF
28869/* confdefs.h. */
28870_ACEOF
28871cat confdefs.h >>conftest.$ac_ext
28872cat >>conftest.$ac_ext <<_ACEOF
28873/* end confdefs.h. */
28874
28875/* Override any gcc2 internal prototype to avoid an error. */
28876#ifdef __cplusplus
28877extern "C"
28878#endif
28879/* We use char because int might match the return type of a gcc2
28880 builtin and then its argument prototype would still apply. */
28881char gethostbyname ();
28882int
28883main ()
28884{
28885gethostbyname ();
28886 ;
28887 return 0;
28888}
28889_ACEOF
28890rm -f conftest.$ac_objext conftest$ac_exeext
28891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28892 (eval $ac_link) 2>conftest.er1
a848cd7e 28893 ac_status=$?
ac1cb8d3
VS
28894 grep -v '^ *+' conftest.er1 >conftest.err
28895 rm -f conftest.er1
28896 cat conftest.err >&5
a848cd7e
SC
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } &&
6954625c 28899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901 (eval $ac_try) 2>&5
28902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28904 (exit $ac_status); }; } &&
28905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907 (eval $ac_try) 2>&5
28908 ac_status=$?
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 ac_cv_lib_bsd_gethostbyname=yes
28912else
28913 echo "$as_me: failed program was:" >&5
28914sed 's/^/| /' conftest.$ac_ext >&5
28915
28916ac_cv_lib_bsd_gethostbyname=no
28917fi
ac1cb8d3
VS
28918rm -f conftest.err conftest.$ac_objext \
28919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28920LIBS=$ac_check_lib_save_LIBS
28921fi
28922echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28923echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28924if test $ac_cv_lib_bsd_gethostbyname = yes; then
28925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28926fi
28927
28928 fi
28929 fi
28930
28931 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28932 # socket/setsockopt and other routines are undefined under SCO ODT
28933 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28934 # on later versions), says Simon Leinen: it contains gethostby*
28935 # variants that don't use the name server (or something). -lsocket
28936 # must be given before -lnsl if both are needed. We assume that
28937 # if connect needs -lnsl, so does gethostbyname.
28938 echo "$as_me:$LINENO: checking for connect" >&5
28939echo $ECHO_N "checking for connect... $ECHO_C" >&6
28940if test "${ac_cv_func_connect+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942else
28943 cat >conftest.$ac_ext <<_ACEOF
28944/* confdefs.h. */
28945_ACEOF
28946cat confdefs.h >>conftest.$ac_ext
28947cat >>conftest.$ac_ext <<_ACEOF
28948/* end confdefs.h. */
ac1cb8d3
VS
28949/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28951#define connect innocuous_connect
28952
a848cd7e
SC
28953/* System header to define __stub macros and hopefully few prototypes,
28954 which can conflict with char connect (); below.
28955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28956 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28957
a848cd7e
SC
28958#ifdef __STDC__
28959# include <limits.h>
28960#else
28961# include <assert.h>
28962#endif
ac1cb8d3
VS
28963
28964#undef connect
28965
a848cd7e
SC
28966/* Override any gcc2 internal prototype to avoid an error. */
28967#ifdef __cplusplus
28968extern "C"
28969{
28970#endif
28971/* We use char because int might match the return type of a gcc2
28972 builtin and then its argument prototype would still apply. */
28973char connect ();
28974/* The GNU C library defines this for functions which it implements
28975 to always fail with ENOSYS. Some functions are actually named
28976 something starting with __ and the normal name is an alias. */
28977#if defined (__stub_connect) || defined (__stub___connect)
28978choke me
28979#else
28980char (*f) () = connect;
28981#endif
28982#ifdef __cplusplus
28983}
28984#endif
28985
28986int
28987main ()
28988{
28989return f != connect;
28990 ;
28991 return 0;
28992}
28993_ACEOF
28994rm -f conftest.$ac_objext conftest$ac_exeext
28995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28996 (eval $ac_link) 2>conftest.er1
a848cd7e 28997 ac_status=$?
ac1cb8d3
VS
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
a848cd7e
SC
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } &&
6954625c 29003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011 (eval $ac_try) 2>&5
29012 ac_status=$?
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 ac_cv_func_connect=yes
29016else
29017 echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
29020ac_cv_func_connect=no
29021fi
ac1cb8d3
VS
29022rm -f conftest.err conftest.$ac_objext \
29023 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29024fi
29025echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29026echo "${ECHO_T}$ac_cv_func_connect" >&6
29027
29028 if test $ac_cv_func_connect = no; then
29029 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29030echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29031if test "${ac_cv_lib_socket_connect+set}" = set; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29033else
29034 ac_check_lib_save_LIBS=$LIBS
29035LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29036cat >conftest.$ac_ext <<_ACEOF
29037/* confdefs.h. */
29038_ACEOF
29039cat confdefs.h >>conftest.$ac_ext
29040cat >>conftest.$ac_ext <<_ACEOF
29041/* end confdefs.h. */
29042
29043/* Override any gcc2 internal prototype to avoid an error. */
29044#ifdef __cplusplus
29045extern "C"
29046#endif
29047/* We use char because int might match the return type of a gcc2
29048 builtin and then its argument prototype would still apply. */
29049char connect ();
29050int
29051main ()
29052{
29053connect ();
29054 ;
29055 return 0;
29056}
29057_ACEOF
29058rm -f conftest.$ac_objext conftest$ac_exeext
29059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29060 (eval $ac_link) 2>conftest.er1
a848cd7e 29061 ac_status=$?
ac1cb8d3
VS
29062 grep -v '^ *+' conftest.er1 >conftest.err
29063 rm -f conftest.er1
29064 cat conftest.err >&5
a848cd7e
SC
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } &&
6954625c 29067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
29070 ac_status=$?
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; } &&
29073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29079 ac_cv_lib_socket_connect=yes
29080else
29081 echo "$as_me: failed program was:" >&5
29082sed 's/^/| /' conftest.$ac_ext >&5
29083
29084ac_cv_lib_socket_connect=no
29085fi
ac1cb8d3
VS
29086rm -f conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29088LIBS=$ac_check_lib_save_LIBS
29089fi
29090echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29091echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29092if test $ac_cv_lib_socket_connect = yes; then
29093 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29094fi
29095
29096 fi
29097
29098 # Guillermo Gomez says -lposix is necessary on A/UX.
29099 echo "$as_me:$LINENO: checking for remove" >&5
29100echo $ECHO_N "checking for remove... $ECHO_C" >&6
29101if test "${ac_cv_func_remove+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29103else
29104 cat >conftest.$ac_ext <<_ACEOF
29105/* confdefs.h. */
29106_ACEOF
29107cat confdefs.h >>conftest.$ac_ext
29108cat >>conftest.$ac_ext <<_ACEOF
29109/* end confdefs.h. */
ac1cb8d3
VS
29110/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29112#define remove innocuous_remove
29113
a848cd7e
SC
29114/* System header to define __stub macros and hopefully few prototypes,
29115 which can conflict with char remove (); below.
29116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29117 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29118
a848cd7e
SC
29119#ifdef __STDC__
29120# include <limits.h>
29121#else
29122# include <assert.h>
29123#endif
ac1cb8d3
VS
29124
29125#undef remove
29126
a848cd7e
SC
29127/* Override any gcc2 internal prototype to avoid an error. */
29128#ifdef __cplusplus
29129extern "C"
29130{
29131#endif
29132/* We use char because int might match the return type of a gcc2
29133 builtin and then its argument prototype would still apply. */
29134char remove ();
29135/* The GNU C library defines this for functions which it implements
29136 to always fail with ENOSYS. Some functions are actually named
29137 something starting with __ and the normal name is an alias. */
29138#if defined (__stub_remove) || defined (__stub___remove)
29139choke me
29140#else
29141char (*f) () = remove;
29142#endif
29143#ifdef __cplusplus
29144}
29145#endif
29146
29147int
29148main ()
29149{
29150return f != remove;
29151 ;
29152 return 0;
29153}
29154_ACEOF
29155rm -f conftest.$ac_objext conftest$ac_exeext
29156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29157 (eval $ac_link) 2>conftest.er1
a848cd7e 29158 ac_status=$?
ac1cb8d3
VS
29159 grep -v '^ *+' conftest.er1 >conftest.err
29160 rm -f conftest.er1
29161 cat conftest.err >&5
a848cd7e
SC
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); } &&
6954625c 29164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166 (eval $ac_try) 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; } &&
29170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172 (eval $ac_try) 2>&5
29173 ac_status=$?
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); }; }; then
29176 ac_cv_func_remove=yes
29177else
29178 echo "$as_me: failed program was:" >&5
29179sed 's/^/| /' conftest.$ac_ext >&5
29180
29181ac_cv_func_remove=no
29182fi
ac1cb8d3
VS
29183rm -f conftest.err conftest.$ac_objext \
29184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29185fi
29186echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29187echo "${ECHO_T}$ac_cv_func_remove" >&6
29188
29189 if test $ac_cv_func_remove = no; then
29190 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29191echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29192if test "${ac_cv_lib_posix_remove+set}" = set; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29194else
29195 ac_check_lib_save_LIBS=$LIBS
29196LIBS="-lposix $LIBS"
29197cat >conftest.$ac_ext <<_ACEOF
29198/* confdefs.h. */
29199_ACEOF
29200cat confdefs.h >>conftest.$ac_ext
29201cat >>conftest.$ac_ext <<_ACEOF
29202/* end confdefs.h. */
29203
29204/* Override any gcc2 internal prototype to avoid an error. */
29205#ifdef __cplusplus
29206extern "C"
29207#endif
29208/* We use char because int might match the return type of a gcc2
29209 builtin and then its argument prototype would still apply. */
29210char remove ();
29211int
29212main ()
29213{
29214remove ();
29215 ;
29216 return 0;
29217}
29218_ACEOF
29219rm -f conftest.$ac_objext conftest$ac_exeext
29220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29221 (eval $ac_link) 2>conftest.er1
a848cd7e 29222 ac_status=$?
ac1cb8d3
VS
29223 grep -v '^ *+' conftest.er1 >conftest.err
29224 rm -f conftest.er1
29225 cat conftest.err >&5
a848cd7e
SC
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
6954625c 29228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; } &&
29234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236 (eval $ac_try) 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; }; then
29240 ac_cv_lib_posix_remove=yes
29241else
29242 echo "$as_me: failed program was:" >&5
29243sed 's/^/| /' conftest.$ac_ext >&5
29244
29245ac_cv_lib_posix_remove=no
29246fi
ac1cb8d3
VS
29247rm -f conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29249LIBS=$ac_check_lib_save_LIBS
29250fi
29251echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29252echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29253if test $ac_cv_lib_posix_remove = yes; then
29254 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29255fi
29256
29257 fi
29258
29259 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29260 echo "$as_me:$LINENO: checking for shmat" >&5
29261echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29262if test "${ac_cv_func_shmat+set}" = set; then
29263 echo $ECHO_N "(cached) $ECHO_C" >&6
29264else
29265 cat >conftest.$ac_ext <<_ACEOF
29266/* confdefs.h. */
29267_ACEOF
29268cat confdefs.h >>conftest.$ac_ext
29269cat >>conftest.$ac_ext <<_ACEOF
29270/* end confdefs.h. */
ac1cb8d3
VS
29271/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29273#define shmat innocuous_shmat
29274
a848cd7e
SC
29275/* System header to define __stub macros and hopefully few prototypes,
29276 which can conflict with char shmat (); below.
29277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29278 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29279
a848cd7e
SC
29280#ifdef __STDC__
29281# include <limits.h>
29282#else
29283# include <assert.h>
29284#endif
ac1cb8d3
VS
29285
29286#undef shmat
29287
a848cd7e
SC
29288/* Override any gcc2 internal prototype to avoid an error. */
29289#ifdef __cplusplus
29290extern "C"
29291{
29292#endif
29293/* We use char because int might match the return type of a gcc2
29294 builtin and then its argument prototype would still apply. */
29295char shmat ();
29296/* The GNU C library defines this for functions which it implements
29297 to always fail with ENOSYS. Some functions are actually named
29298 something starting with __ and the normal name is an alias. */
29299#if defined (__stub_shmat) || defined (__stub___shmat)
29300choke me
29301#else
29302char (*f) () = shmat;
29303#endif
29304#ifdef __cplusplus
29305}
29306#endif
29307
29308int
29309main ()
29310{
29311return f != shmat;
29312 ;
29313 return 0;
29314}
29315_ACEOF
29316rm -f conftest.$ac_objext conftest$ac_exeext
29317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29318 (eval $ac_link) 2>conftest.er1
a848cd7e 29319 ac_status=$?
ac1cb8d3
VS
29320 grep -v '^ *+' conftest.er1 >conftest.err
29321 rm -f conftest.er1
29322 cat conftest.err >&5
a848cd7e
SC
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); } &&
6954625c 29325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 (eval $ac_try) 2>&5
29328 ac_status=$?
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; } &&
29331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29334 ac_status=$?
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; }; then
29337 ac_cv_func_shmat=yes
29338else
29339 echo "$as_me: failed program was:" >&5
29340sed 's/^/| /' conftest.$ac_ext >&5
29341
29342ac_cv_func_shmat=no
29343fi
ac1cb8d3
VS
29344rm -f conftest.err conftest.$ac_objext \
29345 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29346fi
29347echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29348echo "${ECHO_T}$ac_cv_func_shmat" >&6
29349
29350 if test $ac_cv_func_shmat = no; then
29351 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29352echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29353if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29354 echo $ECHO_N "(cached) $ECHO_C" >&6
29355else
29356 ac_check_lib_save_LIBS=$LIBS
29357LIBS="-lipc $LIBS"
29358cat >conftest.$ac_ext <<_ACEOF
29359/* confdefs.h. */
29360_ACEOF
29361cat confdefs.h >>conftest.$ac_ext
29362cat >>conftest.$ac_ext <<_ACEOF
29363/* end confdefs.h. */
29364
29365/* Override any gcc2 internal prototype to avoid an error. */
29366#ifdef __cplusplus
29367extern "C"
29368#endif
29369/* We use char because int might match the return type of a gcc2
29370 builtin and then its argument prototype would still apply. */
29371char shmat ();
29372int
29373main ()
29374{
29375shmat ();
29376 ;
29377 return 0;
29378}
29379_ACEOF
29380rm -f conftest.$ac_objext conftest$ac_exeext
29381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29382 (eval $ac_link) 2>conftest.er1
a848cd7e 29383 ac_status=$?
ac1cb8d3
VS
29384 grep -v '^ *+' conftest.er1 >conftest.err
29385 rm -f conftest.er1
29386 cat conftest.err >&5
a848cd7e
SC
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); } &&
6954625c 29389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; } &&
29395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; }; then
29401 ac_cv_lib_ipc_shmat=yes
29402else
29403 echo "$as_me: failed program was:" >&5
29404sed 's/^/| /' conftest.$ac_ext >&5
29405
29406ac_cv_lib_ipc_shmat=no
29407fi
ac1cb8d3
VS
29408rm -f conftest.err conftest.$ac_objext \
29409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29410LIBS=$ac_check_lib_save_LIBS
29411fi
29412echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29413echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29414if test $ac_cv_lib_ipc_shmat = yes; then
29415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29416fi
29417
29418 fi
29419 fi
29420
29421 # Check for libraries that X11R6 Xt/Xaw programs need.
29422 ac_save_LDFLAGS=$LDFLAGS
29423 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29424 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29425 # check for ICE first), but we must link in the order -lSM -lICE or
29426 # we get undefined symbols. So assume we have SM if we have ICE.
29427 # These have to be linked with before -lX11, unlike the other
29428 # libraries we check for below, so use a different variable.
29429 # John Interrante, Karl Berry
29430 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29431echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29432if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29434else
29435 ac_check_lib_save_LIBS=$LIBS
29436LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29437cat >conftest.$ac_ext <<_ACEOF
29438/* confdefs.h. */
29439_ACEOF
29440cat confdefs.h >>conftest.$ac_ext
29441cat >>conftest.$ac_ext <<_ACEOF
29442/* end confdefs.h. */
29443
29444/* Override any gcc2 internal prototype to avoid an error. */
29445#ifdef __cplusplus
29446extern "C"
29447#endif
29448/* We use char because int might match the return type of a gcc2
29449 builtin and then its argument prototype would still apply. */
29450char IceConnectionNumber ();
29451int
29452main ()
29453{
29454IceConnectionNumber ();
29455 ;
29456 return 0;
29457}
29458_ACEOF
29459rm -f conftest.$ac_objext conftest$ac_exeext
29460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29461 (eval $ac_link) 2>conftest.er1
a848cd7e 29462 ac_status=$?
ac1cb8d3
VS
29463 grep -v '^ *+' conftest.er1 >conftest.err
29464 rm -f conftest.er1
29465 cat conftest.err >&5
a848cd7e
SC
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); } &&
6954625c 29468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29471 ac_status=$?
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; } &&
29474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476 (eval $ac_try) 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); }; }; then
29480 ac_cv_lib_ICE_IceConnectionNumber=yes
29481else
29482 echo "$as_me: failed program was:" >&5
29483sed 's/^/| /' conftest.$ac_ext >&5
29484
29485ac_cv_lib_ICE_IceConnectionNumber=no
29486fi
ac1cb8d3
VS
29487rm -f conftest.err conftest.$ac_objext \
29488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29489LIBS=$ac_check_lib_save_LIBS
29490fi
29491echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29492echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29493if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29494 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29495fi
29496
29497 LDFLAGS=$ac_save_LDFLAGS
29498
29499fi
29500
29501
29502 if test "$no_x" = "yes"; then
89d90d6d
VZ
29503 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29504echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29505 { (exit 1); exit 1; }; }
a848cd7e
SC
29506 fi
29507
74b84332
VS
29508 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29509 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29510 AFMINSTALL=afminstall
29511 COMPILED_X_PROGRAM=0
29512
74b84332
VS
29513 fi
29514
29515 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29516 if test "$wxUSE_NANOX" = "yes"; then
29517 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29518echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29519 if test "x$MICROWIN" = x ; then
29520 echo "$as_me:$LINENO: result: not found" >&5
29521echo "${ECHO_T}not found" >&6
29522 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29523echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29524 { (exit 1); exit 1; }; }
29525 else
29526 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29527echo "${ECHO_T}$MICROWIN" >&6
29528 cat >>confdefs.h <<\_ACEOF
29529#define wxUSE_NANOX 1
29530_ACEOF
29531
29532 fi
29533 fi
29534
29535 if test "$wxUSE_UNICODE" = "yes"; then
29536
29537 succeeded=no
29538
29539 if test -z "$PKG_CONFIG"; then
29540 # Extract the first word of "pkg-config", so it can be a program name with args.
29541set dummy pkg-config; ac_word=$2
29542echo "$as_me:$LINENO: checking for $ac_word" >&5
29543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29544if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29546else
29547 case $PKG_CONFIG in
29548 [\\/]* | ?:[\\/]*)
29549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29550 ;;
29551 *)
29552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29553for as_dir in $PATH
29554do
29555 IFS=$as_save_IFS
29556 test -z "$as_dir" && as_dir=.
29557 for ac_exec_ext in '' $ac_executable_extensions; do
29558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29561 break 2
29562 fi
29563done
29564done
29565
29566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29567 ;;
29568esac
29569fi
29570PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29571
29572if test -n "$PKG_CONFIG"; then
29573 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29574echo "${ECHO_T}$PKG_CONFIG" >&6
29575else
29576 echo "$as_me:$LINENO: result: no" >&5
29577echo "${ECHO_T}no" >&6
29578fi
29579
29580 fi
29581
29582 if test "$PKG_CONFIG" = "no" ; then
29583 echo "*** The pkg-config script could not be found. Make sure it is"
29584 echo "*** in your path, or set the PKG_CONFIG environment variable"
29585 echo "*** to the full path to pkg-config."
29586 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29587 else
29588 PKG_CONFIG_MIN_VERSION=0.9.0
29589 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29590 echo "$as_me:$LINENO: checking for pangox" >&5
29591echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29592
29593 if $PKG_CONFIG --exists "pangox" ; then
29594 echo "$as_me:$LINENO: result: yes" >&5
29595echo "${ECHO_T}yes" >&6
29596 succeeded=yes
29597
29598 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29599echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29600 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29601 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29602echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29603
29604 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29605echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29606 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29607 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29608echo "${ECHO_T}$PANGOX_LIBS" >&6
29609 else
29610 PANGOX_CFLAGS=""
29611 PANGOX_LIBS=""
29612 ## If we have a custom action on failure, don't print errors, but
29613 ## do set a variable so people can do so.
29614 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29615
29616 fi
29617
29618
29619
29620 else
29621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29623 fi
29624 fi
29625
29626 if test $succeeded = yes; then
29627
c92ad099 29628 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29629 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29630
29631 else
29632
29633 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29634echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29635 { (exit 1); exit 1; }; }
29636
29637
29638 fi
29639
29640
29641 succeeded=no
29642
29643 if test -z "$PKG_CONFIG"; then
29644 # Extract the first word of "pkg-config", so it can be a program name with args.
29645set dummy pkg-config; ac_word=$2
29646echo "$as_me:$LINENO: checking for $ac_word" >&5
29647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29648if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29650else
29651 case $PKG_CONFIG in
29652 [\\/]* | ?:[\\/]*)
29653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29654 ;;
29655 *)
29656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29657for as_dir in $PATH
29658do
29659 IFS=$as_save_IFS
29660 test -z "$as_dir" && as_dir=.
29661 for ac_exec_ext in '' $ac_executable_extensions; do
29662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29665 break 2
29666 fi
29667done
29668done
29669
29670 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29671 ;;
29672esac
29673fi
29674PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29675
29676if test -n "$PKG_CONFIG"; then
29677 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29678echo "${ECHO_T}$PKG_CONFIG" >&6
29679else
29680 echo "$as_me:$LINENO: result: no" >&5
29681echo "${ECHO_T}no" >&6
29682fi
29683
29684 fi
29685
29686 if test "$PKG_CONFIG" = "no" ; then
29687 echo "*** The pkg-config script could not be found. Make sure it is"
29688 echo "*** in your path, or set the PKG_CONFIG environment variable"
29689 echo "*** to the full path to pkg-config."
29690 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29691 else
29692 PKG_CONFIG_MIN_VERSION=0.9.0
29693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29694 echo "$as_me:$LINENO: checking for pangoft2" >&5
29695echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29696
29697 if $PKG_CONFIG --exists "pangoft2" ; then
29698 echo "$as_me:$LINENO: result: yes" >&5
29699echo "${ECHO_T}yes" >&6
29700 succeeded=yes
29701
29702 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29703echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29704 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29705 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29706echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29707
29708 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29709echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29710 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29711 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29712echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29713 else
29714 PANGOFT2_CFLAGS=""
29715 PANGOFT2_LIBS=""
29716 ## If we have a custom action on failure, don't print errors, but
29717 ## do set a variable so people can do so.
29718 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29719
29720 fi
29721
29722
29723
29724 else
29725 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29726 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29727 fi
29728 fi
29729
29730 if test $succeeded = yes; then
29731
c92ad099 29732 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29733 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29734
29735 else
29736
29737 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29738echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29739 wxUSE_PRINTING_ARCHITECTURE="no"
29740
29741
29742 fi
29743
29744
29745 succeeded=no
29746
29747 if test -z "$PKG_CONFIG"; then
29748 # Extract the first word of "pkg-config", so it can be a program name with args.
29749set dummy pkg-config; ac_word=$2
29750echo "$as_me:$LINENO: checking for $ac_word" >&5
29751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29752if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29753 echo $ECHO_N "(cached) $ECHO_C" >&6
29754else
29755 case $PKG_CONFIG in
29756 [\\/]* | ?:[\\/]*)
29757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29758 ;;
29759 *)
29760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29761for as_dir in $PATH
29762do
29763 IFS=$as_save_IFS
29764 test -z "$as_dir" && as_dir=.
29765 for ac_exec_ext in '' $ac_executable_extensions; do
29766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29769 break 2
29770 fi
29771done
29772done
29773
29774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29775 ;;
29776esac
29777fi
29778PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29779
29780if test -n "$PKG_CONFIG"; then
29781 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29782echo "${ECHO_T}$PKG_CONFIG" >&6
29783else
29784 echo "$as_me:$LINENO: result: no" >&5
29785echo "${ECHO_T}no" >&6
29786fi
29787
29788 fi
29789
29790 if test "$PKG_CONFIG" = "no" ; then
29791 echo "*** The pkg-config script could not be found. Make sure it is"
29792 echo "*** in your path, or set the PKG_CONFIG environment variable"
29793 echo "*** to the full path to pkg-config."
29794 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29795 else
29796 PKG_CONFIG_MIN_VERSION=0.9.0
29797 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29798 echo "$as_me:$LINENO: checking for pangoxft" >&5
29799echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29800
29801 if $PKG_CONFIG --exists "pangoxft" ; then
29802 echo "$as_me:$LINENO: result: yes" >&5
29803echo "${ECHO_T}yes" >&6
29804 succeeded=yes
29805
29806 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29807echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29808 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29809 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29810echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29811
29812 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29813echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29814 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29815 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29816echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29817 else
29818 PANGOXFT_CFLAGS=""
29819 PANGOXFT_LIBS=""
29820 ## If we have a custom action on failure, don't print errors, but
29821 ## do set a variable so people can do so.
29822 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29823
29824 fi
29825
29826
29827
29828 else
29829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29831 fi
29832 fi
29833
29834 if test $succeeded = yes; then
29835
4ae1af05
MB
29836 cat >>confdefs.h <<\_ACEOF
29837#define HAVE_PANGO_XFT 1
29838_ACEOF
29839
c92ad099 29840 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29842
29843 else
29844
29845 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29846echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29847
29848
29849 fi
29850
e56f4f9e 29851 save_CXXFLAGS="$CXXFLAGS"
304205f1 29852 save_LIBS="$LIBS"
e56f4f9e 29853 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
29854 LIBS="$LIBS $PANGOX_LIBS"
29855
29856for ac_func in pango_font_family_is_monospace
29857do
29858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29859echo "$as_me:$LINENO: checking for $ac_func" >&5
29860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29861if eval "test \"\${$as_ac_var+set}\" = set"; then
29862 echo $ECHO_N "(cached) $ECHO_C" >&6
29863else
29864 cat >conftest.$ac_ext <<_ACEOF
29865/* confdefs.h. */
29866_ACEOF
29867cat confdefs.h >>conftest.$ac_ext
29868cat >>conftest.$ac_ext <<_ACEOF
29869/* end confdefs.h. */
29870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29872#define $ac_func innocuous_$ac_func
29873
29874/* System header to define __stub macros and hopefully few prototypes,
29875 which can conflict with char $ac_func (); below.
29876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29877 <limits.h> exists even on freestanding compilers. */
29878
29879#ifdef __STDC__
29880# include <limits.h>
29881#else
29882# include <assert.h>
29883#endif
29884
29885#undef $ac_func
29886
29887/* Override any gcc2 internal prototype to avoid an error. */
29888#ifdef __cplusplus
29889extern "C"
29890{
29891#endif
29892/* We use char because int might match the return type of a gcc2
29893 builtin and then its argument prototype would still apply. */
29894char $ac_func ();
29895/* The GNU C library defines this for functions which it implements
29896 to always fail with ENOSYS. Some functions are actually named
29897 something starting with __ and the normal name is an alias. */
29898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29899choke me
29900#else
29901char (*f) () = $ac_func;
29902#endif
29903#ifdef __cplusplus
29904}
29905#endif
29906
29907int
29908main ()
29909{
29910return f != $ac_func;
29911 ;
29912 return 0;
29913}
29914_ACEOF
29915rm -f conftest.$ac_objext conftest$ac_exeext
29916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29917 (eval $ac_link) 2>conftest.er1
29918 ac_status=$?
29919 grep -v '^ *+' conftest.er1 >conftest.err
29920 rm -f conftest.er1
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } &&
6954625c 29924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
29925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29926 (eval $ac_try) 2>&5
29927 ac_status=$?
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); }; } &&
29930 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29936 eval "$as_ac_var=yes"
29937else
29938 echo "$as_me: failed program was:" >&5
29939sed 's/^/| /' conftest.$ac_ext >&5
29940
29941eval "$as_ac_var=no"
29942fi
29943rm -f conftest.err conftest.$ac_objext \
29944 conftest$ac_exeext conftest.$ac_ext
29945fi
29946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29947echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29948if test `eval echo '${'$as_ac_var'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29951_ACEOF
29952
29953fi
29954done
29955
e56f4f9e 29956 CXXFLAGS="$save_CXXFLAGS"
304205f1 29957 LIBS="$save_LIBS"
a848cd7e
SC
29958 fi
29959
29960 wxUSE_UNIVERSAL="yes"
29961
29962 if test "$wxUSE_NANOX" = "yes"; then
29963 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29964 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"
29965 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29966 else
29967 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29968 fi
29969
a848cd7e
SC
29970 TOOLKIT=X11
29971 GUIDIST=X11_DIST
29972 fi
29973
29974 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29975 if test "$wxUSE_UNICODE" = "yes"; then
29976 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29977echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29978 { (exit 1); exit 1; }; }
29979 fi
29980
74b84332
VS
29981 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29982echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29983
74b84332
VS
29984ac_find_includes=
29985for ac_dir in $SEARCH_INCLUDE /usr/include;
29986 do
29987 if test -f "$ac_dir/Xm/Xm.h"; then
29988 ac_find_includes=$ac_dir
29989 break
29990 fi
29991 done
a848cd7e 29992
74b84332
VS
29993 if test "$ac_find_includes" != "" ; then
29994 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29995echo "${ECHO_T}found in $ac_find_includes" >&6
29996
29997 if test "x$ac_find_includes" = "x/usr/include"; then
29998 ac_path_to_include=""
29999 else
30000 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30001 result=$?
30002 if test $result = 0; then
30003 ac_path_to_include=""
30004 else
30005 ac_path_to_include=" -I$ac_find_includes"
30006 fi
a848cd7e
SC
30007 fi
30008
74b84332
VS
30009 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30010 else
e56f4f9e
VZ
30011 save_CXXFLAGS=$CXXFLAGS
30012 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30013
74b84332 30014 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30015/* confdefs.h. */
30016_ACEOF
30017cat confdefs.h >>conftest.$ac_ext
30018cat >>conftest.$ac_ext <<_ACEOF
30019/* end confdefs.h. */
30020
74b84332
VS
30021 #include <Xm/Xm.h>
30022
a848cd7e
SC
30023int
30024main ()
30025{
30026
74b84332
VS
30027 int version;
30028 version = xmUseVersion;
30029
a848cd7e
SC
30030 ;
30031 return 0;
30032}
30033_ACEOF
74b84332
VS
30034rm -f conftest.$ac_objext
30035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30036 (eval $ac_compile) 2>conftest.er1
a848cd7e 30037 ac_status=$?
ac1cb8d3
VS
30038 grep -v '^ *+' conftest.er1 >conftest.err
30039 rm -f conftest.er1
30040 cat conftest.err >&5
a848cd7e
SC
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } &&
6954625c 30043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30045 (eval $ac_try) 2>&5
30046 ac_status=$?
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; } &&
74b84332 30049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; }; then
74b84332
VS
30055
30056 echo "$as_me:$LINENO: result: found in default search path" >&5
30057echo "${ECHO_T}found in default search path" >&6
30058 COMPILED_X_PROGRAM=1
30059
a848cd7e
SC
30060else
30061 echo "$as_me: failed program was:" >&5
30062sed 's/^/| /' conftest.$ac_ext >&5
30063
a848cd7e 30064
74b84332
VS
30065 echo "$as_me:$LINENO: result: no" >&5
30066echo "${ECHO_T}no" >&6
e051b34e
MW
30067 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30068echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30069 { (exit 1); exit 1; }; }
a848cd7e 30070
a848cd7e 30071
a848cd7e 30072fi
74b84332 30073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30074
e56f4f9e 30075 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30076 fi
30077
0ad5d837
VZ
30078
30079 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30080echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30081
0ad5d837
VZ
30082 ac_find_libraries=
30083 for ac_dir in $SEARCH_LIB;
74b84332 30084 do
3eca31dc 30085 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30086 if test -f "$ac_dir/libXm.$ac_extension"; then
30087 ac_find_libraries=$ac_dir
30088 break 2
a848cd7e 30089 fi
74b84332
VS
30090 done
30091 done
a848cd7e 30092
0ad5d837
VZ
30093
30094 if test "x$ac_find_libraries" != "x" ; then
30095 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30096echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30097
74b84332 30098
0ad5d837 30099 if test "$ac_find_libraries" = "default location"; then
74b84332 30100 ac_path_to_link=""
a848cd7e 30101 else
0ad5d837
VZ
30102 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30103 result=$?
30104 if test $result = 0; then
30105 ac_path_to_link=""
30106 else
30107 ac_path_to_link=" -L$ac_find_libraries"
30108 fi
74b84332
VS
30109 fi
30110
0ad5d837
VZ
30111 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30112 else
e56f4f9e
VZ
30113 save_CXXFLAGS=$CXXFLAGS
30114 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30115 save_LIBS="$LIBS"
30116 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30117
0ad5d837 30118 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30119/* confdefs.h. */
30120_ACEOF
30121cat confdefs.h >>conftest.$ac_ext
30122cat >>conftest.$ac_ext <<_ACEOF
30123/* end confdefs.h. */
30124
0ad5d837 30125 #include <Xm/Xm.h>
74b84332 30126
a848cd7e
SC
30127int
30128main ()
30129{
74b84332 30130
0ad5d837
VZ
30131 int version;
30132 version = xmUseVersion;
74b84332 30133
a848cd7e
SC
30134 ;
30135 return 0;
30136}
30137_ACEOF
0ad5d837
VZ
30138rm -f conftest.$ac_objext conftest$ac_exeext
30139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30140 (eval $ac_link) 2>conftest.er1
a848cd7e 30141 ac_status=$?
ac1cb8d3
VS
30142 grep -v '^ *+' conftest.er1 >conftest.err
30143 rm -f conftest.er1
30144 cat conftest.err >&5
a848cd7e
SC
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } &&
6954625c 30147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30149 (eval $ac_try) 2>&5
30150 ac_status=$?
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; } &&
0ad5d837 30153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30155 (eval $ac_try) 2>&5
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; }; then
74b84332 30159
0ad5d837 30160 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30161echo "${ECHO_T}found in default search path" >&6
0ad5d837 30162 COMPILED_X_PROGRAM=1
74b84332 30163
a848cd7e
SC
30164else
30165 echo "$as_me: failed program was:" >&5
30166sed 's/^/| /' conftest.$ac_ext >&5
30167
74b84332 30168
6f9cf1e6 30169 echo "$as_me:$LINENO: result: no" >&5
74b84332 30170echo "${ECHO_T}no" >&6
6f9cf1e6 30171 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30172echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30173 { (exit 1); exit 1; }; }
30174
30175
30176fi
0ad5d837
VZ
30177rm -f conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
74b84332 30179
e56f4f9e 30180 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30181 LIBS="$save_LIBS"
74b84332
VS
30182 fi
30183
30184 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30185echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30186 libp_link=""
30187 libsm_ice_link=""
30188 libs_found=0
30189 for libp in "" " -lXp"; do
30190 if test "$libs_found" = "0"; then
30191 for libsm_ice in "" " -lSM -lICE"; do
30192 if test "$libs_found" = "0"; then
30193 save_LIBS="$LIBS"
30194 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30195 save_CXXFLAGS=$CXXFLAGS
30196 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30197
30198 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30199/* confdefs.h. */
30200_ACEOF
30201cat confdefs.h >>conftest.$ac_ext
30202cat >>conftest.$ac_ext <<_ACEOF
30203/* end confdefs.h. */
30204
74b84332
VS
30205 #include <Xm/Xm.h>
30206 #include <Xm/List.h>
30207
a848cd7e
SC
30208int
30209main ()
30210{
74b84332
VS
30211
30212 XmString string = NULL;
30213 Widget w = NULL;
30214 int position = 0;
30215 XmListAddItem(w, string, position);
30216
a848cd7e
SC
30217 ;
30218 return 0;
30219}
30220_ACEOF
30221rm -f conftest.$ac_objext conftest$ac_exeext
30222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30223 (eval $ac_link) 2>conftest.er1
a848cd7e 30224 ac_status=$?
ac1cb8d3
VS
30225 grep -v '^ *+' conftest.er1 >conftest.err
30226 rm -f conftest.er1
30227 cat conftest.err >&5
a848cd7e
SC
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); } &&
6954625c 30230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232 (eval $ac_try) 2>&5
30233 ac_status=$?
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); }; } &&
30236 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30238 (eval $ac_try) 2>&5
30239 ac_status=$?
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; }; then
30242
30243 libp_link="$libp"
30244 libsm_ice_link="$libsm_ice"
30245 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30246echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30247 libs_found=1
30248
30249else
30250 echo "$as_me: failed program was:" >&5
30251sed 's/^/| /' conftest.$ac_ext >&5
30252
30253
30254
30255fi
ac1cb8d3
VS
30256rm -f conftest.err conftest.$ac_objext \
30257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30258
30259 LIBS="$save_LIBS"
e56f4f9e 30260 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30261 fi
30262 done
30263 fi
30264 done
30265
30266 if test "$libs_found" = "0"; then
30267 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30268echo "${ECHO_T}can't find the right libraries" >&6
30269 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30270echo "$as_me: error: can't link a simple motif program" >&2;}
30271 { (exit 1); exit 1; }; }
30272 fi
30273
62fa8b3a
MW
30274 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30275echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30276if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30278else
30279 ac_check_lib_save_LIBS=$LIBS
30280LIBS="-lSgm $LIBS"
30281cat >conftest.$ac_ext <<_ACEOF
30282/* confdefs.h. */
30283_ACEOF
30284cat confdefs.h >>conftest.$ac_ext
30285cat >>conftest.$ac_ext <<_ACEOF
30286/* end confdefs.h. */
30287
30288/* Override any gcc2 internal prototype to avoid an error. */
30289#ifdef __cplusplus
30290extern "C"
30291#endif
30292/* We use char because int might match the return type of a gcc2
30293 builtin and then its argument prototype would still apply. */
30294char SgCreateList ();
30295int
30296main ()
30297{
30298SgCreateList ();
30299 ;
30300 return 0;
30301}
30302_ACEOF
30303rm -f conftest.$ac_objext conftest$ac_exeext
30304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30305 (eval $ac_link) 2>conftest.er1
30306 ac_status=$?
30307 grep -v '^ *+' conftest.er1 >conftest.err
30308 rm -f conftest.er1
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } &&
6954625c 30312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30314 (eval $ac_try) 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; } &&
30318 { ac_try='test -s conftest$ac_exeext'
30319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30320 (eval $ac_try) 2>&5
30321 ac_status=$?
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); }; }; then
30324 ac_cv_lib_Sgm_SgCreateList=yes
30325else
30326 echo "$as_me: failed program was:" >&5
30327sed 's/^/| /' conftest.$ac_ext >&5
30328
30329ac_cv_lib_Sgm_SgCreateList=no
30330fi
30331rm -f conftest.err conftest.$ac_objext \
30332 conftest$ac_exeext conftest.$ac_ext
30333LIBS=$ac_check_lib_save_LIBS
30334fi
30335echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30336echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30337if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30338 libsgm_link=" -lSgm"
30339fi
30340
30341
e56f4f9e
VZ
30342 save_CXXFLAGS=$CXXFLAGS
30343 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30344
a848cd7e
SC
30345 echo "$as_me:$LINENO: checking for Motif 2" >&5
30346echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30347if test "${wx_cv_lib_motif2+set}" = set; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349else
30350 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30351/* confdefs.h. */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h. */
30356
0ad5d837 30357 #include <Xm/Xm.h>
a848cd7e
SC
30358
30359int
30360main ()
30361{
30362
0ad5d837
VZ
30363 #if XmVersion < 2000
30364 Not Motif 2
30365 #endif
a848cd7e
SC
30366
30367 ;
30368 return 0;
30369}
30370_ACEOF
30371rm -f conftest.$ac_objext
30372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30373 (eval $ac_compile) 2>conftest.er1
a848cd7e 30374 ac_status=$?
ac1cb8d3
VS
30375 grep -v '^ *+' conftest.er1 >conftest.err
30376 rm -f conftest.er1
30377 cat conftest.err >&5
a848cd7e
SC
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); } &&
6954625c 30380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382 (eval $ac_try) 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; } &&
30386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; }; then
0ad5d837 30392 wx_cv_lib_motif2="yes"
a848cd7e
SC
30393else
30394 echo "$as_me: failed program was:" >&5
30395sed 's/^/| /' conftest.$ac_ext >&5
30396
0ad5d837
VZ
30397wx_cv_lib_motif2="no"
30398fi
30399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30400fi
30401echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30402echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30403 if test "$wx_cv_lib_motif2" = "yes"; then
30404 cat >>confdefs.h <<\_ACEOF
30405#define __WXMOTIF20__ 1
30406_ACEOF
a848cd7e 30407
0ad5d837
VZ
30408 else
30409 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30410#define __WXMOTIF20__ 0
30411_ACEOF
30412
0ad5d837 30413 fi
2113bc77
MW
30414
30415 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30416echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30417if test "${wx_cv_lib_lesstif+set}" = set; then
30418 echo $ECHO_N "(cached) $ECHO_C" >&6
30419else
30420 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30421/* confdefs.h. */
30422_ACEOF
30423cat confdefs.h >>conftest.$ac_ext
30424cat >>conftest.$ac_ext <<_ACEOF
30425/* end confdefs.h. */
30426
0ad5d837 30427 #include <Xm/Xm.h>
2113bc77
MW
30428
30429int
30430main ()
30431{
30432
0ad5d837
VZ
30433 #if !defined(LesstifVersion) || LesstifVersion <= 0
30434 Not Lesstif
30435 #endif
2113bc77
MW
30436
30437 ;
30438 return 0;
30439}
30440_ACEOF
30441rm -f conftest.$ac_objext
30442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30443 (eval $ac_compile) 2>conftest.er1
30444 ac_status=$?
30445 grep -v '^ *+' conftest.er1 >conftest.err
30446 rm -f conftest.er1
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } &&
6954625c 30450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452 (eval $ac_try) 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; } &&
30456 { ac_try='test -s conftest.$ac_objext'
30457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30458 (eval $ac_try) 2>&5
30459 ac_status=$?
30460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461 (exit $ac_status); }; }; then
0ad5d837 30462 wx_cv_lib_lesstif="yes"
2113bc77
MW
30463else
30464 echo "$as_me: failed program was:" >&5
30465sed 's/^/| /' conftest.$ac_ext >&5
30466
0ad5d837
VZ
30467wx_cv_lib_lesstif="no"
30468fi
30469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30470
0ad5d837
VZ
30471fi
30472echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30473echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30474 if test "$wx_cv_lib_lesstif" = "yes"; then
30475 cat >>confdefs.h <<\_ACEOF
30476#define __WXLESSTIF__ 1
30477_ACEOF
30478
30479 else
30480 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30481#define __WXLESSTIF__ 0
30482_ACEOF
30483
0ad5d837 30484 fi
2113bc77 30485
e56f4f9e 30486 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30487
62fa8b3a 30488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30489 TOOLKIT=MOTIF
30490 GUIDIST=MOTIF_DIST
30491 fi
30492
74b84332 30493 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30494 if test "$wxUSE_LIBXPM" = "sys"; then
30495 echo "$as_me:$LINENO: checking for Xpm library" >&5
30496echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30497
0ad5d837
VZ
30498 ac_find_libraries=
30499 for ac_dir in $SEARCH_LIB;
a848cd7e 30500 do
3eca31dc 30501 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30502 if test -f "$ac_dir/libXpm.$ac_extension"; then
30503 ac_find_libraries=$ac_dir
30504 break 2
30505 fi
30506 done
30507 done
30508
30509 if test "$ac_find_libraries" != "" ; then
30510
0ad5d837 30511 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30512 ac_path_to_link=""
30513 else
0ad5d837
VZ
30514 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30515 result=$?
30516 if test $result = 0; then
30517 ac_path_to_link=""
30518 else
30519 ac_path_to_link=" -L$ac_find_libraries"
30520 fi
a848cd7e
SC
30521 fi
30522
30523 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30524 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30525echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30526
30527 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30528echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30529if test "${wx_cv_x11_xpm_h+set}" = set; then
30530 echo $ECHO_N "(cached) $ECHO_C" >&6
30531else
30532
e56f4f9e
VZ
30533 save_CXXFLAGS=$CXXFLAGS
30534 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30535
30536 cat >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 #include <X11/xpm.h>
30544
30545int
30546main ()
30547{
30548
30549 int version;
30550 version = XpmLibraryVersion();
30551
30552 ;
30553 return 0;
30554}
30555_ACEOF
30556rm -f conftest.$ac_objext
30557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30558 (eval $ac_compile) 2>conftest.er1
a848cd7e 30559 ac_status=$?
ac1cb8d3
VS
30560 grep -v '^ *+' conftest.er1 >conftest.err
30561 rm -f conftest.er1
30562 cat conftest.err >&5
a848cd7e
SC
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); } &&
6954625c 30565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; } &&
30571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; }; then
30577 wx_cv_x11_xpm_h=yes
30578else
30579 echo "$as_me: failed program was:" >&5
30580sed 's/^/| /' conftest.$ac_ext >&5
30581
30582wx_cv_x11_xpm_h=no
30583
30584fi
ac1cb8d3 30585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30586
e56f4f9e 30587 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30588
30589
30590fi
30591echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30592echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30593
30594 if test $wx_cv_x11_xpm_h = "yes"; then
30595 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30596 cat >>confdefs.h <<\_ACEOF
30597#define wxHAVE_LIB_XPM 1
30598_ACEOF
30599
30600 else
30601 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30602echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30603 fi
30604 fi
30605
30606 fi
30607
30608 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30609echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30610if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612else
30613 ac_check_lib_save_LIBS=$LIBS
30614LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30615cat >conftest.$ac_ext <<_ACEOF
30616/* confdefs.h. */
30617_ACEOF
30618cat confdefs.h >>conftest.$ac_ext
30619cat >>conftest.$ac_ext <<_ACEOF
30620/* end confdefs.h. */
30621
30622/* Override any gcc2 internal prototype to avoid an error. */
30623#ifdef __cplusplus
30624extern "C"
30625#endif
30626/* We use char because int might match the return type of a gcc2
30627 builtin and then its argument prototype would still apply. */
30628char XShapeQueryExtension ();
30629int
30630main ()
30631{
30632XShapeQueryExtension ();
30633 ;
30634 return 0;
30635}
30636_ACEOF
30637rm -f conftest.$ac_objext conftest$ac_exeext
30638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30639 (eval $ac_link) 2>conftest.er1
a848cd7e 30640 ac_status=$?
ac1cb8d3
VS
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
a848cd7e
SC
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
6954625c 30646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648 (eval $ac_try) 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; } &&
30652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654 (eval $ac_try) 2>&5
30655 ac_status=$?
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; }; then
30658 ac_cv_lib_Xext_XShapeQueryExtension=yes
30659else
30660 echo "$as_me: failed program was:" >&5
30661sed 's/^/| /' conftest.$ac_ext >&5
30662
30663ac_cv_lib_Xext_XShapeQueryExtension=no
30664fi
ac1cb8d3
VS
30665rm -f conftest.err conftest.$ac_objext \
30666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30667LIBS=$ac_check_lib_save_LIBS
30668fi
30669echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30670echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30671if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30672
30673 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30674 wxHAVE_XEXT_LIB=1
30675
30676fi
30677
30678
30679 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
30680 save_CXXFLAGS="$CXXFLAGS"
30681 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30682
30683 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30684echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30685 cat >conftest.$ac_ext <<_ACEOF
30686/* confdefs.h. */
30687_ACEOF
30688cat confdefs.h >>conftest.$ac_ext
30689cat >>conftest.$ac_ext <<_ACEOF
30690/* end confdefs.h. */
30691
30692 #include <X11/Xlib.h>
30693 #include <X11/extensions/shape.h>
30694
30695int
30696main ()
30697{
30698
30699 int dummy1, dummy2;
30700 XShapeQueryExtension((Display*)NULL,
30701 (int*)NULL, (int*)NULL);
30702
30703 ;
30704 return 0;
30705}
30706_ACEOF
30707rm -f conftest.$ac_objext
30708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30709 (eval $ac_compile) 2>conftest.er1
a848cd7e 30710 ac_status=$?
ac1cb8d3
VS
30711 grep -v '^ *+' conftest.er1 >conftest.err
30712 rm -f conftest.er1
30713 cat conftest.err >&5
a848cd7e
SC
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); } &&
6954625c 30716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30718 (eval $ac_try) 2>&5
30719 ac_status=$?
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; } &&
30722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724 (eval $ac_try) 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728
30729 cat >>confdefs.h <<\_ACEOF
30730#define HAVE_XSHAPE 1
30731_ACEOF
30732
30733 echo "$as_me:$LINENO: result: found" >&5
30734echo "${ECHO_T}found" >&6
30735
30736else
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
30740
30741 echo "$as_me:$LINENO: result: not found" >&5
30742echo "${ECHO_T}not found" >&6
30743
30744fi
ac1cb8d3 30745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 30746 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
30747
30748 fi
30749 fi
30750
30751 if test "$wxUSE_MAC" = 1; then
30752 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30753echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30754 if test "$GCC" = yes; then
30755 echo "$as_me:$LINENO: result: gcc" >&5
30756echo "${ECHO_T}gcc" >&6
30757 CPPFLAGS_PASCAL="-fpascal-strings"
30758 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30759 echo "$as_me:$LINENO: result: xlc" >&5
30760echo "${ECHO_T}xlc" >&6
30761 CPPFLAGS_PASCAL="-qmacpstr"
30762 else
30763 echo "$as_me:$LINENO: result: none" >&5
30764echo "${ECHO_T}none" >&6
30765 fi
30766
1e9e8aba 30767 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30768 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30769 else
c92ad099 30770 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30771 fi
a848cd7e 30772
a848cd7e
SC
30773 TOOLKIT=MAC
30774 GUIDIST=MACX_DIST
dd21ced8 30775 WXBASEPORT="_carbon"
a848cd7e
SC
30776 fi
30777
30778 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30779 TOOLKIT=COCOA
30780 GUIDIST=COCOA_DIST
30781 fi
30782
30783 if test "$wxUSE_PM" = 1; then
30784 TOOLKIT=PM
de59c161
RD
30785 GUIDIST=PM_DIST
30786 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30787echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30788if test "${wx_cv_spbcdata+set}" = set; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790else
30791
30792 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30793/* confdefs.h. */
30794_ACEOF
30795cat confdefs.h >>conftest.$ac_ext
30796cat >>conftest.$ac_ext <<_ACEOF
30797/* end confdefs.h. */
30798
30799 #define INCL_PM
30800 #include <os2.h>
30801
30802int
30803main ()
30804{
30805
30806 SPBCDATA test;
30807
30808 ;
30809 return 0;
30810}
30811_ACEOF
30812rm -f conftest.$ac_objext
30813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30814 (eval $ac_compile) 2>conftest.er1
de59c161 30815 ac_status=$?
ac1cb8d3
VS
30816 grep -v '^ *+' conftest.er1 >conftest.err
30817 rm -f conftest.er1
30818 cat conftest.err >&5
de59c161
RD
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } &&
6954625c 30821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30830 ac_status=$?
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
30833 wx_cv_spbcdata=yes
30834else
30835 echo "$as_me: failed program was:" >&5
30836sed 's/^/| /' conftest.$ac_ext >&5
30837
30838wx_cv_spbcdata=no
30839
30840fi
ac1cb8d3 30841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30842
30843
30844fi
30845echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30846echo "${ECHO_T}$wx_cv_spbcdata" >&6
30847
30848 if test $wx_cv_spbcdata = "yes"; then
30849 cat >>confdefs.h <<\_ACEOF
30850#define HAVE_SPBCDATA 1
30851_ACEOF
30852
30853 fi
a848cd7e
SC
30854 fi
30855
30856 if test "$TOOLKIT" = "PM" ; then
30857 TOOLKIT_DIR="os2"
30858 else
30859 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30860 fi
30861
a848cd7e 30862 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30863 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30864 WIDGET_SET=univ
a848cd7e
SC
30865 fi
30866
30867 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30868 DISTDIR="wx\$(TOOLKIT)"
30869else
30870 USE_GUI=0
30871
30872 TOOLKIT_DIR="base"
30873
30874 if test "$USE_WIN32" = 1 ; then
a848cd7e 30875 TOOLKIT="MSW"
a848cd7e
SC
30876 fi
30877
a848cd7e
SC
30878 GUIDIST="BASE_DIST"
30879 DISTDIR="wxBase"
30880fi
30881
30882
d12aef51
VZ
30883if test "$wxUSE_GUI" = "yes"; then
30884 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30885
30886for ac_header in X11/Xlib.h
30887do
30888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30889if eval "test \"\${$as_ac_Header+set}\" = set"; then
30890 echo "$as_me:$LINENO: checking for $ac_header" >&5
30891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30892if eval "test \"\${$as_ac_Header+set}\" = set"; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30894fi
30895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30897else
30898 # Is the header compilable?
30899echo "$as_me:$LINENO: checking $ac_header usability" >&5
30900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30901cat >conftest.$ac_ext <<_ACEOF
30902/* confdefs.h. */
30903_ACEOF
30904cat confdefs.h >>conftest.$ac_ext
30905cat >>conftest.$ac_ext <<_ACEOF
30906/* end confdefs.h. */
30907$ac_includes_default
30908#include <$ac_header>
30909_ACEOF
30910rm -f conftest.$ac_objext
30911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30912 (eval $ac_compile) 2>conftest.er1
30913 ac_status=$?
30914 grep -v '^ *+' conftest.er1 >conftest.err
30915 rm -f conftest.er1
30916 cat conftest.err >&5
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); } &&
6954625c 30919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30921 (eval $ac_try) 2>&5
30922 ac_status=$?
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); }; } &&
30925 { ac_try='test -s conftest.$ac_objext'
30926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30927 (eval $ac_try) 2>&5
30928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); }; }; then
30931 ac_header_compiler=yes
30932else
30933 echo "$as_me: failed program was:" >&5
30934sed 's/^/| /' conftest.$ac_ext >&5
30935
30936ac_header_compiler=no
30937fi
30938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30940echo "${ECHO_T}$ac_header_compiler" >&6
30941
30942# Is the header present?
30943echo "$as_me:$LINENO: checking $ac_header presence" >&5
30944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30945cat >conftest.$ac_ext <<_ACEOF
30946/* confdefs.h. */
30947_ACEOF
30948cat confdefs.h >>conftest.$ac_ext
30949cat >>conftest.$ac_ext <<_ACEOF
30950/* end confdefs.h. */
30951#include <$ac_header>
30952_ACEOF
30953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30955 ac_status=$?
30956 grep -v '^ *+' conftest.er1 >conftest.err
30957 rm -f conftest.er1
30958 cat conftest.err >&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } >/dev/null; then
30961 if test -s conftest.err; then
5d7b7554
VZ
30962 ac_cpp_err=$ac_cxx_preproc_warn_flag
30963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
30964 else
30965 ac_cpp_err=
30966 fi
30967else
30968 ac_cpp_err=yes
30969fi
30970if test -z "$ac_cpp_err"; then
30971 ac_header_preproc=yes
30972else
30973 echo "$as_me: failed program was:" >&5
30974sed 's/^/| /' conftest.$ac_ext >&5
30975
30976 ac_header_preproc=no
30977fi
30978rm -f conftest.err conftest.$ac_ext
30979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30980echo "${ECHO_T}$ac_header_preproc" >&6
30981
30982# So? What about this header?
5d7b7554 30983case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
30984 yes:no: )
30985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30989 ac_header_preproc=yes
30990 ;;
30991 no:yes:* )
30992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31004 (
31005 cat <<\_ASBOX
31006## ----------------------------------------- ##
31007## Report this to wx-dev@lists.wxwidgets.org ##
31008## ----------------------------------------- ##
31009_ASBOX
31010 ) |
31011 sed "s/^/$as_me: WARNING: /" >&2
31012 ;;
31013esac
31014echo "$as_me:$LINENO: checking for $ac_header" >&5
31015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31016if eval "test \"\${$as_ac_Header+set}\" = set"; then
31017 echo $ECHO_N "(cached) $ECHO_C" >&6
31018else
31019 eval "$as_ac_Header=\$ac_header_preproc"
31020fi
31021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31023
31024fi
31025if test `eval echo '${'$as_ac_Header'}'` = yes; then
31026 cat >>confdefs.h <<_ACEOF
31027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31028_ACEOF
31029
31030fi
31031
31032done
31033
31034
31035for ac_header in X11/XKBlib.h
31036do
31037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31038echo "$as_me:$LINENO: checking for $ac_header" >&5
31039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31040if eval "test \"\${$as_ac_Header+set}\" = set"; then
31041 echo $ECHO_N "(cached) $ECHO_C" >&6
31042else
31043 cat >conftest.$ac_ext <<_ACEOF
31044/* confdefs.h. */
31045_ACEOF
31046cat confdefs.h >>conftest.$ac_ext
31047cat >>conftest.$ac_ext <<_ACEOF
31048/* end confdefs.h. */
31049
31050 #if HAVE_X11_XLIB_H
31051 #include <X11/Xlib.h>
31052 #endif
31053
31054
31055#include <$ac_header>
31056_ACEOF
31057rm -f conftest.$ac_objext
31058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31059 (eval $ac_compile) 2>conftest.er1
31060 ac_status=$?
31061 grep -v '^ *+' conftest.er1 >conftest.err
31062 rm -f conftest.er1
31063 cat conftest.err >&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } &&
6954625c 31066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31068 (eval $ac_try) 2>&5
31069 ac_status=$?
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); }; } &&
31072 { ac_try='test -s conftest.$ac_objext'
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; }; then
31078 eval "$as_ac_Header=yes"
31079else
31080 echo "$as_me: failed program was:" >&5
31081sed 's/^/| /' conftest.$ac_ext >&5
31082
31083eval "$as_ac_Header=no"
31084fi
31085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31086fi
31087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31089if test `eval echo '${'$as_ac_Header'}'` = yes; then
31090 cat >>confdefs.h <<_ACEOF
31091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31092_ACEOF
31093
31094fi
31095
31096done
31097
31098 fi
31099fi
31100
a848cd7e
SC
31101
31102
31103IODBC_C_SRC=""
31104
31105
31106if test "$TOOLKIT" != "MSW" ; then
31107
31108 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31109
31110 if test "${ac_cv_header_sql_h+set}" = set; then
31111 echo "$as_me:$LINENO: checking for sql.h" >&5
31112echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31113if test "${ac_cv_header_sql_h+set}" = set; then
31114 echo $ECHO_N "(cached) $ECHO_C" >&6
31115fi
31116echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31117echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31118else
31119 # Is the header compilable?
31120echo "$as_me:$LINENO: checking sql.h usability" >&5
31121echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31122cat >conftest.$ac_ext <<_ACEOF
31123/* confdefs.h. */
31124_ACEOF
31125cat confdefs.h >>conftest.$ac_ext
31126cat >>conftest.$ac_ext <<_ACEOF
31127/* end confdefs.h. */
31128$ac_includes_default
31129#include <sql.h>
31130_ACEOF
31131rm -f conftest.$ac_objext
31132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31133 (eval $ac_compile) 2>conftest.er1
a848cd7e 31134 ac_status=$?
ac1cb8d3
VS
31135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
a848cd7e
SC
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } &&
6954625c 31140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; } &&
31146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; }; then
31152 ac_header_compiler=yes
31153else
31154 echo "$as_me: failed program was:" >&5
31155sed 's/^/| /' conftest.$ac_ext >&5
31156
31157ac_header_compiler=no
31158fi
ac1cb8d3 31159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31161echo "${ECHO_T}$ac_header_compiler" >&6
31162
31163# Is the header present?
31164echo "$as_me:$LINENO: checking sql.h presence" >&5
31165echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31166cat >conftest.$ac_ext <<_ACEOF
31167/* confdefs.h. */
31168_ACEOF
31169cat confdefs.h >>conftest.$ac_ext
31170cat >>conftest.$ac_ext <<_ACEOF
31171/* end confdefs.h. */
31172#include <sql.h>
31173_ACEOF
31174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31176 ac_status=$?
31177 grep -v '^ *+' conftest.er1 >conftest.err
31178 rm -f conftest.er1
31179 cat conftest.err >&5
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } >/dev/null; then
31182 if test -s conftest.err; then
5d7b7554
VZ
31183 ac_cpp_err=$ac_cxx_preproc_warn_flag
31184 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31185 else
31186 ac_cpp_err=
31187 fi
31188else
31189 ac_cpp_err=yes
31190fi
31191if test -z "$ac_cpp_err"; then
31192 ac_header_preproc=yes
31193else
31194 echo "$as_me: failed program was:" >&5
31195sed 's/^/| /' conftest.$ac_ext >&5
31196
31197 ac_header_preproc=no
31198fi
31199rm -f conftest.err conftest.$ac_ext
31200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31201echo "${ECHO_T}$ac_header_preproc" >&6
31202
31203# So? What about this header?
5d7b7554 31204case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31205 yes:no: )
a848cd7e
SC
31206 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31207echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31208 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31209echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31210 ac_header_preproc=yes
a848cd7e 31211 ;;
ac1cb8d3 31212 no:yes:* )
a848cd7e
SC
31213 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31214echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31215 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31216echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31217 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31218echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31219 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31220echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31221 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31222echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31223 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31224echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31225 (
31226 cat <<\_ASBOX
ac1cb8d3
VS
31227## ----------------------------------------- ##
31228## Report this to wx-dev@lists.wxwidgets.org ##
31229## ----------------------------------------- ##
a848cd7e
SC
31230_ASBOX
31231 ) |
31232 sed "s/^/$as_me: WARNING: /" >&2
31233 ;;
31234esac
31235echo "$as_me:$LINENO: checking for sql.h" >&5
31236echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31237if test "${ac_cv_header_sql_h+set}" = set; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240 ac_cv_header_sql_h=$ac_header_preproc
31241fi
31242echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31243echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31244
31245fi
31246if test $ac_cv_header_sql_h = yes; then
31247 found_sql_h=1
31248fi
31249
31250
31251 if test "x$found_sql_h" = "x1" ; then
31252 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31253echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31254if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31256else
31257 ac_check_lib_save_LIBS=$LIBS
31258LIBS="-liodbc $LIBS"
31259cat >conftest.$ac_ext <<_ACEOF
31260/* confdefs.h. */
31261_ACEOF
31262cat confdefs.h >>conftest.$ac_ext
31263cat >>conftest.$ac_ext <<_ACEOF
31264/* end confdefs.h. */
31265
31266/* Override any gcc2 internal prototype to avoid an error. */
31267#ifdef __cplusplus
31268extern "C"
31269#endif
31270/* We use char because int might match the return type of a gcc2
31271 builtin and then its argument prototype would still apply. */
31272char SQLAllocEnv ();
31273int
31274main ()
31275{
31276SQLAllocEnv ();
31277 ;
31278 return 0;
31279}
31280_ACEOF
31281rm -f conftest.$ac_objext conftest$ac_exeext
31282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31283 (eval $ac_link) 2>conftest.er1
a848cd7e 31284 ac_status=$?
ac1cb8d3
VS
31285 grep -v '^ *+' conftest.er1 >conftest.err
31286 rm -f conftest.er1
31287 cat conftest.err >&5
a848cd7e
SC
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); } &&
6954625c 31290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292 (eval $ac_try) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; } &&
31296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31298 (eval $ac_try) 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
31302 ac_cv_lib_iodbc_SQLAllocEnv=yes
31303else
31304 echo "$as_me: failed program was:" >&5
31305sed 's/^/| /' conftest.$ac_ext >&5
31306
31307ac_cv_lib_iodbc_SQLAllocEnv=no
31308fi
ac1cb8d3
VS
31309rm -f conftest.err conftest.$ac_objext \
31310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31311LIBS=$ac_check_lib_save_LIBS
31312fi
31313echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31314echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31315if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31316 ODBC_LINK=" -liodbc"
31317else
31318
31319 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31320echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31321if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31322 echo $ECHO_N "(cached) $ECHO_C" >&6
31323else
31324 ac_check_lib_save_LIBS=$LIBS
31325LIBS="-lunixodbc $LIBS"
31326cat >conftest.$ac_ext <<_ACEOF
31327/* confdefs.h. */
31328_ACEOF
31329cat confdefs.h >>conftest.$ac_ext
31330cat >>conftest.$ac_ext <<_ACEOF
31331/* end confdefs.h. */
31332
31333/* Override any gcc2 internal prototype to avoid an error. */
31334#ifdef __cplusplus
31335extern "C"
31336#endif
31337/* We use char because int might match the return type of a gcc2
31338 builtin and then its argument prototype would still apply. */
31339char SQLAllocEnv ();
31340int
31341main ()
31342{
31343SQLAllocEnv ();
31344 ;
31345 return 0;
31346}
31347_ACEOF
31348rm -f conftest.$ac_objext conftest$ac_exeext
31349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31350 (eval $ac_link) 2>conftest.er1
a848cd7e 31351 ac_status=$?
ac1cb8d3
VS
31352 grep -v '^ *+' conftest.er1 >conftest.err
31353 rm -f conftest.er1
31354 cat conftest.err >&5
a848cd7e
SC
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); } &&
6954625c 31357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359 (eval $ac_try) 2>&5
31360 ac_status=$?
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); }; } &&
31363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31365 (eval $ac_try) 2>&5
31366 ac_status=$?
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; }; then
31369 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31370else
31371 echo "$as_me: failed program was:" >&5
31372sed 's/^/| /' conftest.$ac_ext >&5
31373
31374ac_cv_lib_unixodbc_SQLAllocEnv=no
31375fi
ac1cb8d3
VS
31376rm -f conftest.err conftest.$ac_objext \
31377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31378LIBS=$ac_check_lib_save_LIBS
31379fi
31380echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31381echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31382if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31383 ODBC_LINK=" -lunixodbc"
31384else
31385
31386 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31387echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31388if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390else
31391 ac_check_lib_save_LIBS=$LIBS
31392LIBS="-lodbc $LIBS"
31393cat >conftest.$ac_ext <<_ACEOF
31394/* confdefs.h. */
31395_ACEOF
31396cat confdefs.h >>conftest.$ac_ext
31397cat >>conftest.$ac_ext <<_ACEOF
31398/* end confdefs.h. */
31399
31400/* Override any gcc2 internal prototype to avoid an error. */
31401#ifdef __cplusplus
31402extern "C"
31403#endif
31404/* We use char because int might match the return type of a gcc2
31405 builtin and then its argument prototype would still apply. */
31406char SQLAllocEnv ();
31407int
31408main ()
31409{
31410SQLAllocEnv ();
31411 ;
31412 return 0;
31413}
31414_ACEOF
31415rm -f conftest.$ac_objext conftest$ac_exeext
31416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31417 (eval $ac_link) 2>conftest.er1
a848cd7e 31418 ac_status=$?
ac1cb8d3
VS
31419 grep -v '^ *+' conftest.er1 >conftest.err
31420 rm -f conftest.er1
31421 cat conftest.err >&5
a848cd7e
SC
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } &&
6954625c 31424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31427 ac_status=$?
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; } &&
31430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432 (eval $ac_try) 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 ac_cv_lib_odbc_SQLAllocEnv=yes
31437else
31438 echo "$as_me: failed program was:" >&5
31439sed 's/^/| /' conftest.$ac_ext >&5
31440
31441ac_cv_lib_odbc_SQLAllocEnv=no
31442fi
ac1cb8d3
VS
31443rm -f conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31445LIBS=$ac_check_lib_save_LIBS
31446fi
31447echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31448echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31449if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31450 ODBC_LINK=" -lodbc"
31451fi
31452
31453
31454fi
31455
31456
31457fi
31458
31459 fi
31460 if test "x$ODBC_LINK" = "x" ; then
31461 if test "$wxUSE_ODBC" = "sys" ; then
31462 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31463echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31464 { (exit 1); exit 1; }; }
31465 else
31466 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31467echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31468 wxUSE_ODBC=builtin
31469 fi
31470 else
31471 wxUSE_ODBC=sys
31472 fi
31473 fi
a848cd7e 31474
2da0c077
RD
31475 if test "$wxUSE_ODBC" = "builtin" ; then
31476 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31477#define wxUSE_BUILTIN_IODBC 1
31478_ACEOF
31479
a848cd7e
SC
31480 fi
31481fi
31482
2da0c077
RD
31483if test "$wxUSE_ODBC" != "no" ; then
31484 cat >>confdefs.h <<\_ACEOF
31485#define wxUSE_ODBC 1
31486_ACEOF
31487
31488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31489
5ff751d6 31490 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31491fi
a848cd7e 31492
01cb68df 31493
a848cd7e 31494if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31495 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31496 echo "$as_me:$LINENO: checking for Xinerama" >&5
31497echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31498
0ad5d837
VZ
31499 ac_find_libraries=
31500 for ac_dir in $SEARCH_LIB;
31501 do
31502 for ac_extension in a so sl dylib dll.a; do
31503 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31504 ac_find_libraries=$ac_dir
31505 break 2
31506 fi
31507 done
31508 done
31509
a848cd7e
SC
31510 if test "$ac_find_libraries" != "" ; then
31511
0ad5d837 31512 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31513 ac_path_to_link=""
31514 else
0ad5d837
VZ
31515 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31516 result=$?
31517 if test $result = 0; then
31518 ac_path_to_link=""
31519 else
31520 ac_path_to_link=" -L$ac_find_libraries"
31521 fi
a848cd7e
SC
31522 fi
31523
31524 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31525 LDFLAGS="$LDFLAGS $ac_path_to_link"
31526 fi
31527 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31528 echo "$as_me:$LINENO: result: yes" >&5
31529echo "${ECHO_T}yes" >&6
31530
31531 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31532echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31533
0ad5d837
VZ
31534 ac_find_libraries=
31535 for ac_dir in $SEARCH_LIB;
a848cd7e 31536 do
3eca31dc 31537 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31538 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31539 ac_find_libraries=$ac_dir
31540 break 2
31541 fi
31542 done
31543 done
31544
31545 if test "$ac_find_libraries" != "" ; then
31546 echo "$as_me:$LINENO: result: yes" >&5
31547echo "${ECHO_T}yes" >&6
31548
31549for ac_header in X11/extensions/xf86vmode.h
31550do
31551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31552echo "$as_me:$LINENO: checking for $ac_header" >&5
31553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31554if eval "test \"\${$as_ac_Header+set}\" = set"; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556else
31557 cat >conftest.$ac_ext <<_ACEOF
31558/* confdefs.h. */
31559_ACEOF
31560cat confdefs.h >>conftest.$ac_ext
31561cat >>conftest.$ac_ext <<_ACEOF
31562/* end confdefs.h. */
31563
31564 #if HAVE_X11_XLIB_H
31565 #include <X11/Xlib.h>
31566 #endif
31567
31568
31569#include <$ac_header>
31570_ACEOF
31571rm -f conftest.$ac_objext
31572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31573 (eval $ac_compile) 2>conftest.er1
a848cd7e 31574 ac_status=$?
ac1cb8d3
VS
31575 grep -v '^ *+' conftest.er1 >conftest.err
31576 rm -f conftest.er1
31577 cat conftest.err >&5
a848cd7e
SC
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } &&
6954625c 31580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31582 (eval $ac_try) 2>&5
31583 ac_status=$?
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; } &&
31586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31588 (eval $ac_try) 2>&5
31589 ac_status=$?
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); }; }; then
31592 eval "$as_ac_Header=yes"
31593else
31594 echo "$as_me: failed program was:" >&5
31595sed 's/^/| /' conftest.$ac_ext >&5
31596
31597eval "$as_ac_Header=no"
31598fi
ac1cb8d3 31599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31600fi
31601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31603if test `eval echo '${'$as_ac_Header'}'` = yes; then
31604 cat >>confdefs.h <<_ACEOF
31605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31606_ACEOF
31607
31608 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31609
31610fi
31611
31612done
31613
31614 else
31615 echo "$as_me:$LINENO: result: no" >&5
31616echo "${ECHO_T}no" >&6
31617 fi
31618
31619 else
31620 echo "$as_me:$LINENO: result: no" >&5
31621echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31622 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31623echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31624 wxUSE_DISPLAY="no"
31625 fi
01cb68df
RG
31626 elif test "$wxUSE_MSW" = 1; then
31627
e5efa97e 31628for ac_header in ddraw.h
01cb68df
RG
31629do
31630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31631echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31633if eval "test \"\${$as_ac_Header+set}\" = set"; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31635else
5294a27e 31636 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31637/* confdefs.h. */
31638_ACEOF
31639cat confdefs.h >>conftest.$ac_ext
31640cat >>conftest.$ac_ext <<_ACEOF
31641/* end confdefs.h. */
5294a27e
VZ
31642#include <windows.h>
31643
01cb68df
RG
31644#include <$ac_header>
31645_ACEOF
31646rm -f conftest.$ac_objext
31647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31648 (eval $ac_compile) 2>conftest.er1
01cb68df 31649 ac_status=$?
ac1cb8d3
VS
31650 grep -v '^ *+' conftest.er1 >conftest.err
31651 rm -f conftest.er1
31652 cat conftest.err >&5
01cb68df
RG
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); } &&
6954625c 31655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657 (eval $ac_try) 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; } &&
31661 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }; then
5294a27e 31667 eval "$as_ac_Header=yes"
01cb68df
RG
31668else
31669 echo "$as_me: failed program was:" >&5
31670sed 's/^/| /' conftest.$ac_ext >&5
31671
5294a27e 31672eval "$as_ac_Header=no"
01cb68df 31673fi
ac1cb8d3 31674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31675fi
31676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31678if test `eval echo '${'$as_ac_Header'}'` = yes; then
31679 cat >>confdefs.h <<_ACEOF
31680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31681_ACEOF
31682
01cb68df
RG
31683fi
31684
31685done
31686
a848cd7e
SC
31687 fi
31688fi
31689
31690
31691USE_OPENGL=0
31692if test "$wxUSE_OPENGL" = "yes"; then
31693 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31694 OPENGL_LIBS="-framework OpenGL -framework AGL"
31695 elif test "$wxUSE_MSW" = 1; then
31696 OPENGL_LIBS="-lopengl32 -lglu32"
31697 else
31698
31699
31700ac_find_includes=
31701for ac_dir in $SEARCH_INCLUDE /usr/include;
31702 do
31703 if test -f "$ac_dir/GL/gl.h"; then
31704 ac_find_includes=$ac_dir
31705 break
31706 fi
31707 done
31708
31709 if test "$ac_find_includes" != "" ; then
31710 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31711echo "${ECHO_T}found in $ac_find_includes" >&6
31712
31713 if test "x$ac_find_includes" = "x/usr/include"; then
31714 ac_path_to_include=""
31715 else
31716 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31717 result=$?
31718 if test $result = 0; then
31719 ac_path_to_include=""
31720 else
31721 ac_path_to_include=" -I$ac_find_includes"
31722 fi
31723 fi
31724
c92ad099 31725 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31726 fi
31727
31728 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31729 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31730echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31731if test "${ac_cv_header_GL_gl_h+set}" = set; then
31732 echo $ECHO_N "(cached) $ECHO_C" >&6
31733fi
31734echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31735echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31736else
31737 # Is the header compilable?
31738echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31739echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31740cat >conftest.$ac_ext <<_ACEOF
31741/* confdefs.h. */
31742_ACEOF
31743cat confdefs.h >>conftest.$ac_ext
31744cat >>conftest.$ac_ext <<_ACEOF
31745/* end confdefs.h. */
31746$ac_includes_default
31747#include <GL/gl.h>
31748_ACEOF
31749rm -f conftest.$ac_objext
31750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31751 (eval $ac_compile) 2>conftest.er1
a848cd7e 31752 ac_status=$?
ac1cb8d3
VS
31753 grep -v '^ *+' conftest.er1 >conftest.err
31754 rm -f conftest.er1
31755 cat conftest.err >&5
a848cd7e
SC
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); } &&
6954625c 31758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31760 (eval $ac_try) 2>&5
31761 ac_status=$?
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); }; } &&
31764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; }; then
31770 ac_header_compiler=yes
31771else
31772 echo "$as_me: failed program was:" >&5
31773sed 's/^/| /' conftest.$ac_ext >&5
31774
31775ac_header_compiler=no
31776fi
ac1cb8d3 31777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31779echo "${ECHO_T}$ac_header_compiler" >&6
31780
31781# Is the header present?
31782echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31783echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31784cat >conftest.$ac_ext <<_ACEOF
31785/* confdefs.h. */
31786_ACEOF
31787cat confdefs.h >>conftest.$ac_ext
31788cat >>conftest.$ac_ext <<_ACEOF
31789/* end confdefs.h. */
31790#include <GL/gl.h>
31791_ACEOF
31792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31794 ac_status=$?
31795 grep -v '^ *+' conftest.er1 >conftest.err
31796 rm -f conftest.er1
31797 cat conftest.err >&5
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); } >/dev/null; then
31800 if test -s conftest.err; then
5d7b7554
VZ
31801 ac_cpp_err=$ac_cxx_preproc_warn_flag
31802 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31803 else
31804 ac_cpp_err=
31805 fi
31806else
31807 ac_cpp_err=yes
31808fi
31809if test -z "$ac_cpp_err"; then
31810 ac_header_preproc=yes
31811else
31812 echo "$as_me: failed program was:" >&5
31813sed 's/^/| /' conftest.$ac_ext >&5
31814
31815 ac_header_preproc=no
31816fi
31817rm -f conftest.err conftest.$ac_ext
31818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31819echo "${ECHO_T}$ac_header_preproc" >&6
31820
31821# So? What about this header?
5d7b7554 31822case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31823 yes:no: )
a848cd7e
SC
31824 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31825echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31826 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31827echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31828 ac_header_preproc=yes
a848cd7e 31829 ;;
ac1cb8d3 31830 no:yes:* )
a848cd7e
SC
31831 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31832echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31833 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31834echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31835 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31836echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31837 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31838echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31839 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31840echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31841 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31842echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31843 (
31844 cat <<\_ASBOX
ac1cb8d3
VS
31845## ----------------------------------------- ##
31846## Report this to wx-dev@lists.wxwidgets.org ##
31847## ----------------------------------------- ##
a848cd7e
SC
31848_ASBOX
31849 ) |
31850 sed "s/^/$as_me: WARNING: /" >&2
31851 ;;
31852esac
31853echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31854echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31855if test "${ac_cv_header_GL_gl_h+set}" = set; then
31856 echo $ECHO_N "(cached) $ECHO_C" >&6
31857else
31858 ac_cv_header_GL_gl_h=$ac_header_preproc
31859fi
31860echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31861echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31862
31863fi
31864if test $ac_cv_header_GL_gl_h = yes; then
31865
31866 found_gl=0
31867
31868 echo "$as_me:$LINENO: checking for -lGL" >&5
31869echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31870
0ad5d837
VZ
31871 ac_find_libraries=
31872 for ac_dir in $SEARCH_LIB;
a848cd7e 31873 do
3eca31dc 31874 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31875 if test -f "$ac_dir/libGL.$ac_extension"; then
31876 ac_find_libraries=$ac_dir
31877 break 2
31878 fi
31879 done
31880 done
31881
31882 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31883 echo "$as_me:$LINENO: result: yes" >&5
31884echo "${ECHO_T}yes" >&6
31885
a848cd7e 31886
0ad5d837 31887 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31888 ac_path_to_link=""
31889 else
0ad5d837
VZ
31890 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31891 result=$?
31892 if test $result = 0; then
31893 ac_path_to_link=""
31894 else
31895 ac_path_to_link=" -L$ac_find_libraries"
31896 fi
a848cd7e
SC
31897 fi
31898
31899 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31900 LDFLAGS_GL="$ac_path_to_link"
31901 fi
31902
69120ee4
VZ
31903 echo "$as_me:$LINENO: checking for -lGLU" >&5
31904echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31905
0ad5d837
VZ
31906 ac_find_libraries=
31907 for ac_dir in $SEARCH_LIB;
31908 do
31909 for ac_extension in a so sl dylib dll.a; do
31910 if test -f "$ac_dir/libGLU.$ac_extension"; then
31911 ac_find_libraries=$ac_dir
31912 break 2
31913 fi
31914 done
31915 done
31916
a848cd7e
SC
31917 if test "$ac_find_libraries" != "" ; then
31918
0ad5d837 31919 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31920 ac_path_to_link=""
31921 else
0ad5d837
VZ
31922 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31923 result=$?
31924 if test $result = 0; then
31925 ac_path_to_link=""
31926 else
31927 ac_path_to_link=" -L$ac_find_libraries"
31928 fi
a848cd7e
SC
31929 fi
31930
31931 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31932 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31933 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31934 fi
31935
31936 found_gl=1
31937 OPENGL_LIBS="-lGL -lGLU"
31938 echo "$as_me:$LINENO: result: yes" >&5
31939echo "${ECHO_T}yes" >&6
69120ee4
VZ
31940 else
31941 echo "$as_me:$LINENO: result: no" >&5
31942echo "${ECHO_T}no" >&6
a848cd7e 31943 fi
69120ee4
VZ
31944 else
31945 echo "$as_me:$LINENO: result: no" >&5
31946echo "${ECHO_T}no" >&6
a848cd7e
SC
31947 fi
31948
31949 if test "$found_gl" != 1; then
a848cd7e
SC
31950 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31951echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31952
0ad5d837
VZ
31953 ac_find_libraries=
31954 for ac_dir in $SEARCH_LIB;
a848cd7e 31955 do
3eca31dc 31956 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31957 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31958 ac_find_libraries=$ac_dir
31959 break 2
31960 fi
31961 done
31962 done
31963
31964 if test "$ac_find_libraries" != "" ; then
31965
0ad5d837 31966 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31967 ac_path_to_link=""
31968 else
0ad5d837
VZ
31969 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31970 result=$?
31971 if test $result = 0; then
31972 ac_path_to_link=""
31973 else
31974 ac_path_to_link=" -L$ac_find_libraries"
31975 fi
a848cd7e
SC
31976 fi
31977
31978 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31979 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31980 echo "$as_me:$LINENO: result: yes" >&5
31981echo "${ECHO_T}yes" >&6
31982 else
31983 echo "$as_me:$LINENO: result: no" >&5
31984echo "${ECHO_T}no" >&6
31985 fi
31986 fi
31987
31988fi
31989
31990
31991
31992 if test "x$OPENGL_LIBS" = "x"; then
31993 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31994echo "$as_me: error: OpenGL libraries not available" >&2;}
31995 { (exit 1); exit 1; }; }
31996 fi
31997 fi
31998
31999 if test "$wxUSE_OPENGL" = "yes"; then
32000 USE_OPENGL=1
32001 cat >>confdefs.h <<\_ACEOF
32002#define wxUSE_OPENGL 1
32003_ACEOF
32004
32005 cat >>confdefs.h <<\_ACEOF
32006#define wxUSE_GLCANVAS 1
32007_ACEOF
32008
32009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32010 fi
32011fi
32012
a848cd7e
SC
32013
32014if test -n "$TOOLKIT" ; then
32015 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32016fi
32017
a848cd7e
SC
32018
32019
32020if test "$wxUSE_SHARED" = "yes"; then
32021 case "${host}" in
32022 *-pc-msdosdjgpp )
32023 wxUSE_SHARED=no
32024 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32025echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32026 ;;
32027 esac
32028fi
32029
a848cd7e 32030if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32031
32032
32033 found_versioning=no
32034
32035
32036 if test $found_versioning = no ; then
32037 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32038echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32039if test "${wx_cv_version_script+set}" = set; then
32040 echo $ECHO_N "(cached) $ECHO_C" >&6
32041else
32042
32043 echo "VER_1 { *; };" >conftest.sym
32044 echo "int main() { return 0; }" >conftest.cpp
32045
32046 if { ac_try='
32047 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32048 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } ; then
32054 if test -s conftest.stderr ; then
32055 wx_cv_version_script=no
32056 else
32057 wx_cv_version_script=yes
32058 fi
32059 else
32060 wx_cv_version_script=no
32061 fi
e5d4b470
MW
32062
32063 if test $wx_cv_version_script = yes
32064 then
32065 echo "struct B { virtual ~B() { } }; \
32066 struct D : public B { }; \
32067 void F() { D d; }" > conftest.cpp
32068
32069 if { ac_try='
32070 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32071 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32073 (eval $ac_try) 2>&5
32074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; } &&
32077 { ac_try='
32078 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32079 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081 (eval $ac_try) 2>&5
32082 ac_status=$?
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; }
32085 then
32086 if { ac_try='
32087 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32088 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32090 (eval $ac_try) 2>&5
32091 ac_status=$?
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); }; }
32094 then
32095 wx_cv_version_script=yes
32096 else
32097 wx_cv_version_script=no
32098 fi
32099 fi
32100 fi
32101
a848cd7e 32102 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32103 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32104
32105fi
32106echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32107echo "${ECHO_T}$wx_cv_version_script" >&6
32108 if test $wx_cv_version_script = yes ; then
32109 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32110 fi
32111 fi
32112
32113
32114 case "${host}" in
32115 *-*-linux* | *-*-gnu* )
32116 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32117 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32118 ;;
a848cd7e
SC
32119
32120 *-*-solaris2* )
32121 if test "$GCC" = yes ; then
c92ad099 32122 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32123
32124 saveLdflags="$LDFLAGS"
32125 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32126 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32127echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32128 cat >conftest.$ac_ext <<_ACEOF
32129/* confdefs.h. */
32130_ACEOF
32131cat confdefs.h >>conftest.$ac_ext
32132cat >>conftest.$ac_ext <<_ACEOF
32133/* end confdefs.h. */
32134
32135int
32136main ()
32137{
32138
32139 ;
32140 return 0;
32141}
32142_ACEOF
32143rm -f conftest.$ac_objext conftest$ac_exeext
32144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32145 (eval $ac_link) 2>conftest.er1
a848cd7e 32146 ac_status=$?
ac1cb8d3
VS
32147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
a848cd7e
SC
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
6954625c 32152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160 (eval $ac_try) 2>&5
32161 ac_status=$?
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); }; }; then
32164
32165 echo "$as_me:$LINENO: result: yes" >&5
32166echo "${ECHO_T}yes" >&6
32167 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32168 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32169
32170else
32171 echo "$as_me: failed program was:" >&5
32172sed 's/^/| /' conftest.$ac_ext >&5
32173
32174
32175 echo "$as_me:$LINENO: result: no" >&5
32176echo "${ECHO_T}no" >&6
32177 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32178echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32179 LDFLAGS="$saveLdflags -Wl,-R,/"
32180 cat >conftest.$ac_ext <<_ACEOF
32181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
32186
32187int
32188main ()
32189{
32190
32191 ;
32192 return 0;
32193}
32194_ACEOF
32195rm -f conftest.$ac_objext conftest$ac_exeext
32196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32197 (eval $ac_link) 2>conftest.er1
a848cd7e 32198 ac_status=$?
ac1cb8d3
VS
32199 grep -v '^ *+' conftest.er1 >conftest.err
32200 rm -f conftest.er1
32201 cat conftest.err >&5
a848cd7e
SC
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } &&
6954625c 32204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206 (eval $ac_try) 2>&5
32207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; } &&
32210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32212 (eval $ac_try) 2>&5
32213 ac_status=$?
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; }; then
32216
ffa0583f 32217 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32218echo "${ECHO_T}yes" >&6
ffa0583f
RL
32219 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32220 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32221
a848cd7e
SC
32222else
32223 echo "$as_me: failed program was:" >&5
32224sed 's/^/| /' conftest.$ac_ext >&5
32225
32226
32227 echo "$as_me:$LINENO: result: no" >&5
32228echo "${ECHO_T}no" >&6
32229
32230fi
ac1cb8d3
VS
32231rm -f conftest.err conftest.$ac_objext \
32232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32233
32234fi
ac1cb8d3
VS
32235rm -f conftest.err conftest.$ac_objext \
32236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32237 LDFLAGS="$saveLdflags"
32238 else
a848cd7e 32239 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32240 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32241 fi
32242 ;;
32243
cfda0ea8 32244 *-*-darwin* )
0caebc27
MW
32245 install_name_tool=`which install_name_tool`
32246 if test "$install_name_tool" -a -x "$install_name_tool"; then
32247 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32248 cat <<EOF >change-install-names
a848cd7e
SC
32249#!/bin/sh
32250libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32251inst_cmd="install_name_tool "
32252for i in \${libnames} ; do
32253 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32254done
32255\${inst_cmd} \${3}
32256EOF
0caebc27
MW
32257 chmod +x change-install-names
32258 fi
a848cd7e
SC
32259 ;;
32260
32261 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32262 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32263 ;;
a848cd7e 32264
81f90336
MW
32265 *-*-hpux* )
32266 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32267 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32268 ;;
81f90336 32269
a848cd7e 32270 esac
ceec2216 32271
ffa0583f
RL
32272 if test $wxUSE_RPATH = "no"; then
32273 SAMPLES_RPATH_FLAG=''
32274 SAMPLES_RPATH_POSTLINK=''
32275 WXCONFIG_RPATH=''
32276 fi
32277
32278 SHARED=1
32279
32280else
32281
ceec2216
RL
32282 config_linkage_component="-static"
32283 SHARED=0
ffa0583f 32284
ceec2216 32285fi
a848cd7e 32286
a848cd7e 32287
ceec2216
RL
32288UNICODE=0
32289lib_unicode_suffix=
32290WX_CHARTYPE="ansi"
32291if test "$wxUSE_UNICODE" = "yes"; then
32292 lib_unicode_suffix=u
32293 WX_CHARTYPE="unicode"
32294 UNICODE=1
a848cd7e
SC
32295fi
32296
ceec2216
RL
32297lib_debug_suffix=
32298WX_DEBUGTYPE="release"
32299DEBUG_FLAG=0
32300if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32301 lib_debug_suffix=d
32302 WX_DEBUGTYPE="debug"
32303 DEBUG_FLAG=1
32304fi
a848cd7e 32305
ceec2216
RL
32306WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32307WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32308
ceec2216
RL
32309DEBUG_INFO=0
32310if test "$wxUSE_DEBUG_INFO" = "yes"; then
32311 DEBUG_INFO=1
32312fi
a848cd7e 32313
ceec2216 32314WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32315
ceec2216 32316TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32317
ceec2216 32318TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32319
ceec2216
RL
32320if test "$cross_compiling" = "yes"; then
32321 HOST_SUFFIX="-$host_alias"
32322 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32323 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32324fi
32325
dd21ced8 32326WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32327if test "${TOOLKIT_DIR}" = "os2"; then
32328 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32329else
32330 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32331fi
ceec2216
RL
32332
32333
32334
1d1af5ea
DE
32335if test "$wxUSE_COCOA" = 1; then
32336
32337
32338 ac_ext=c
32339ac_cpp='$CPP $CPPFLAGS'
32340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32342ac_compiler_gnu=$ac_cv_c_compiler_gnu
32343
32344ac_ext=m
32345
32346 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32347echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32348 cat >conftest.$ac_ext <<_ACEOF
32349/* confdefs.h. */
32350_ACEOF
32351cat confdefs.h >>conftest.$ac_ext
32352cat >>conftest.$ac_ext <<_ACEOF
32353/* end confdefs.h. */
32354#include <AppKit/NSEvent.h>
32355#include <CoreFoundation/CoreFoundation.h>
32356
32357int
32358main ()
32359{
32360
32361 ;
32362 return 0;
32363}
32364_ACEOF
32365rm -f conftest.$ac_objext
32366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32367 (eval $ac_compile) 2>conftest.er1
32368 ac_status=$?
32369 grep -v '^ *+' conftest.er1 >conftest.err
32370 rm -f conftest.er1
32371 cat conftest.err >&5
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); } &&
6954625c 32374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32376 (eval $ac_try) 2>&5
32377 ac_status=$?
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); }; } &&
32380 { ac_try='test -s conftest.$ac_objext'
32381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32382 (eval $ac_try) 2>&5
32383 ac_status=$?
32384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385 (exit $ac_status); }; }; then
32386 echo "$as_me:$LINENO: result: no" >&5
32387echo "${ECHO_T}no" >&6
32388else
32389 echo "$as_me: failed program was:" >&5
32390sed 's/^/| /' conftest.$ac_ext >&5
32391
32392echo "$as_me:$LINENO: result: yes" >&5
32393echo "${ECHO_T}yes" >&6
32394 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32395echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32396 cat >conftest.$ac_ext <<_ACEOF
32397/* confdefs.h. */
32398_ACEOF
32399cat confdefs.h >>conftest.$ac_ext
32400cat >>conftest.$ac_ext <<_ACEOF
32401/* end confdefs.h. */
32402#define __Point__ 1
32403#include <AppKit/NSEvent.h>
32404#include <CoreFoundation/CoreFoundation.h>
32405
32406int
32407main ()
32408{
32409
32410 ;
32411 return 0;
32412}
32413_ACEOF
32414rm -f conftest.$ac_objext
32415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32416 (eval $ac_compile) 2>conftest.er1
32417 ac_status=$?
32418 grep -v '^ *+' conftest.er1 >conftest.err
32419 rm -f conftest.er1
32420 cat conftest.err >&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); } &&
6954625c 32423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; } &&
32429 { ac_try='test -s conftest.$ac_objext'
32430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431 (eval $ac_try) 2>&5
32432 ac_status=$?
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; }; then
32435 echo "$as_me:$LINENO: result: yes" >&5
32436echo "${ECHO_T}yes" >&6
32437 cat >>confdefs.h <<\_ACEOF
32438#define __Point__ 1
32439_ACEOF
32440
32441
32442else
32443 echo "$as_me: failed program was:" >&5
32444sed 's/^/| /' conftest.$ac_ext >&5
32445
32446{ { echo "$as_me:$LINENO: error: no
32447See \`config.log' for more details." >&5
32448echo "$as_me: error: no
32449See \`config.log' for more details." >&2;}
32450 { (exit 1); exit 1; }; }
32451
32452fi
32453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32454
32455fi
32456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32457 ac_ext=cc
32458ac_cpp='$CXXCPP $CPPFLAGS'
32459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32462
32463fi
32464
a848cd7e 32465if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32466 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32467 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32468
a848cd7e 32469 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32470
32471 # Extract the first word of "Rez", so it can be a program name with args.
32472set dummy Rez; ac_word=$2
32473echo "$as_me:$LINENO: checking for $ac_word" >&5
32474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32475if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32477else
8ced02f6
DE
32478 if test -n "$REZ"; then
32479 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32480else
32481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32482for as_dir in $PATH
32483do
32484 IFS=$as_save_IFS
32485 test -z "$as_dir" && as_dir=.
32486 for ac_exec_ext in '' $ac_executable_extensions; do
32487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32488 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32490 break 2
32491 fi
32492done
32493done
32494
8ced02f6 32495 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32496fi
32497fi
8ced02f6
DE
32498REZ=$ac_cv_prog_REZ
32499if test -n "$REZ"; then
32500 echo "$as_me:$LINENO: result: $REZ" >&5
32501echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32502else
32503 echo "$as_me:$LINENO: result: no" >&5
32504echo "${ECHO_T}no" >&6
32505fi
32506
32507 # Extract the first word of "DeRez", so it can be a program name with args.
32508set dummy DeRez; ac_word=$2
32509echo "$as_me:$LINENO: checking for $ac_word" >&5
32510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32511if test "${ac_cv_prog_DEREZ+set}" = set; then
32512 echo $ECHO_N "(cached) $ECHO_C" >&6
32513else
32514 if test -n "$DEREZ"; then
32515 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32516else
32517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32518for as_dir in $PATH
32519do
32520 IFS=$as_save_IFS
32521 test -z "$as_dir" && as_dir=.
32522 for ac_exec_ext in '' $ac_executable_extensions; do
32523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32524 ac_cv_prog_DEREZ="DeRez"
32525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32526 break 2
32527 fi
32528done
32529done
32530
32531 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32532fi
32533fi
32534DEREZ=$ac_cv_prog_DEREZ
32535if test -n "$DEREZ"; then
32536 echo "$as_me:$LINENO: result: $DEREZ" >&5
32537echo "${ECHO_T}$DEREZ" >&6
32538else
32539 echo "$as_me:$LINENO: result: no" >&5
32540echo "${ECHO_T}no" >&6
32541fi
32542
32543 # Extract the first word of "SetFile", so it can be a program name with args.
32544set dummy SetFile; ac_word=$2
32545echo "$as_me:$LINENO: checking for $ac_word" >&5
32546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32547if test "${ac_cv_prog_SETFILE+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32549else
32550 if test -n "$SETFILE"; then
32551 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32552else
32553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32554for as_dir in $PATH
32555do
32556 IFS=$as_save_IFS
32557 test -z "$as_dir" && as_dir=.
32558 for ac_exec_ext in '' $ac_executable_extensions; do
32559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32560 ac_cv_prog_SETFILE="SetFile"
32561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32562 break 2
32563 fi
32564done
32565done
32566
32567 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32568fi
32569fi
32570SETFILE=$ac_cv_prog_SETFILE
32571if test -n "$SETFILE"; then
32572 echo "$as_me:$LINENO: result: $SETFILE" >&5
32573echo "${ECHO_T}$SETFILE" >&6
32574else
32575 echo "$as_me:$LINENO: result: no" >&5
32576echo "${ECHO_T}no" >&6
32577fi
32578
32579
32580 MACSETFILE="\$(SETFILE)"
32581
32582 if test "$wxUSE_MAC" = 1; then
8ced02f6 32583 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32584 RESCOMP="$REZ"
32585 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32586 else
004ee6da
RL
32587 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32588 RESCOMP="echo -n \| $REZ"
32589 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32590 fi
004ee6da 32591
a848cd7e 32592else
ffa0583f 32593 MACSETFILE="@true"
a848cd7e 32594
8ced02f6 32595 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32596 RESCOMP="emxbind"
32597 WXCONFIG_RESFLAGS="-ep"
32598
32599 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32600 else
8ced02f6 32601 POSTLINK_COMMAND="@true"
a848cd7e 32602 fi
004ee6da 32603
a848cd7e
SC
32604fi
32605
32606
32607
32608echo "$as_me:$LINENO: checking for mode_t" >&5
32609echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32610if test "${ac_cv_type_mode_t+set}" = set; then
32611 echo $ECHO_N "(cached) $ECHO_C" >&6
32612else
32613 cat >conftest.$ac_ext <<_ACEOF
32614/* confdefs.h. */
32615_ACEOF
32616cat confdefs.h >>conftest.$ac_ext
32617cat >>conftest.$ac_ext <<_ACEOF
32618/* end confdefs.h. */
32619$ac_includes_default
32620int
32621main ()
32622{
32623if ((mode_t *) 0)
32624 return 0;
32625if (sizeof (mode_t))
32626 return 0;
32627 ;
32628 return 0;
32629}
32630_ACEOF
32631rm -f conftest.$ac_objext
32632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32633 (eval $ac_compile) 2>conftest.er1
a848cd7e 32634 ac_status=$?
ac1cb8d3
VS
32635 grep -v '^ *+' conftest.er1 >conftest.err
32636 rm -f conftest.er1
32637 cat conftest.err >&5
a848cd7e
SC
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); } &&
6954625c 32640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; }; then
32652 ac_cv_type_mode_t=yes
32653else
32654 echo "$as_me: failed program was:" >&5
32655sed 's/^/| /' conftest.$ac_ext >&5
32656
32657ac_cv_type_mode_t=no
32658fi
ac1cb8d3 32659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32660fi
32661echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32662echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32663if test $ac_cv_type_mode_t = yes; then
32664 :
32665else
32666
32667cat >>confdefs.h <<_ACEOF
32668#define mode_t int
32669_ACEOF
32670
32671fi
32672
32673echo "$as_me:$LINENO: checking for off_t" >&5
32674echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32675if test "${ac_cv_type_off_t+set}" = set; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
32677else
32678 cat >conftest.$ac_ext <<_ACEOF
32679/* confdefs.h. */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h. */
32684$ac_includes_default
32685int
32686main ()
32687{
32688if ((off_t *) 0)
32689 return 0;
32690if (sizeof (off_t))
32691 return 0;
32692 ;
32693 return 0;
32694}
32695_ACEOF
32696rm -f conftest.$ac_objext
32697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32698 (eval $ac_compile) 2>conftest.er1
a848cd7e 32699 ac_status=$?
ac1cb8d3
VS
32700 grep -v '^ *+' conftest.er1 >conftest.err
32701 rm -f conftest.er1
32702 cat conftest.err >&5
a848cd7e
SC
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); } &&
6954625c 32705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32707 (eval $ac_try) 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; } &&
32711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713 (eval $ac_try) 2>&5
32714 ac_status=$?
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; }; then
32717 ac_cv_type_off_t=yes
32718else
32719 echo "$as_me: failed program was:" >&5
32720sed 's/^/| /' conftest.$ac_ext >&5
32721
32722ac_cv_type_off_t=no
32723fi
ac1cb8d3 32724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32725fi
32726echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32727echo "${ECHO_T}$ac_cv_type_off_t" >&6
32728if test $ac_cv_type_off_t = yes; then
32729 :
32730else
32731
32732cat >>confdefs.h <<_ACEOF
32733#define off_t long
32734_ACEOF
32735
32736fi
32737
32738echo "$as_me:$LINENO: checking for pid_t" >&5
32739echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32740if test "${ac_cv_type_pid_t+set}" = set; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32742else
32743 cat >conftest.$ac_ext <<_ACEOF
32744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
32749$ac_includes_default
32750int
32751main ()
32752{
32753if ((pid_t *) 0)
32754 return 0;
32755if (sizeof (pid_t))
32756 return 0;
32757 ;
32758 return 0;
32759}
32760_ACEOF
32761rm -f conftest.$ac_objext
32762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32763 (eval $ac_compile) 2>conftest.er1
a848cd7e 32764 ac_status=$?
ac1cb8d3
VS
32765 grep -v '^ *+' conftest.er1 >conftest.err
32766 rm -f conftest.er1
32767 cat conftest.err >&5
a848cd7e
SC
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); } &&
6954625c 32770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ac_cv_type_pid_t=yes
32783else
32784 echo "$as_me: failed program was:" >&5
32785sed 's/^/| /' conftest.$ac_ext >&5
32786
32787ac_cv_type_pid_t=no
32788fi
ac1cb8d3 32789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32790fi
32791echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32792echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32793if test $ac_cv_type_pid_t = yes; then
32794 :
32795else
32796
32797cat >>confdefs.h <<_ACEOF
32798#define pid_t int
32799_ACEOF
32800
32801fi
32802
32803echo "$as_me:$LINENO: checking for size_t" >&5
32804echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32805if test "${ac_cv_type_size_t+set}" = set; then
32806 echo $ECHO_N "(cached) $ECHO_C" >&6
32807else
32808 cat >conftest.$ac_ext <<_ACEOF
32809/* confdefs.h. */
32810_ACEOF
32811cat confdefs.h >>conftest.$ac_ext
32812cat >>conftest.$ac_ext <<_ACEOF
32813/* end confdefs.h. */
32814$ac_includes_default
32815int
32816main ()
32817{
32818if ((size_t *) 0)
32819 return 0;
32820if (sizeof (size_t))
32821 return 0;
32822 ;
32823 return 0;
32824}
32825_ACEOF
32826rm -f conftest.$ac_objext
32827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32828 (eval $ac_compile) 2>conftest.er1
a848cd7e 32829 ac_status=$?
ac1cb8d3
VS
32830 grep -v '^ *+' conftest.er1 >conftest.err
32831 rm -f conftest.er1
32832 cat conftest.err >&5
a848cd7e
SC
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } &&
6954625c 32835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32837 (eval $ac_try) 2>&5
32838 ac_status=$?
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); }; } &&
32841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32843 (eval $ac_try) 2>&5
32844 ac_status=$?
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); }; }; then
32847 ac_cv_type_size_t=yes
32848else
32849 echo "$as_me: failed program was:" >&5
32850sed 's/^/| /' conftest.$ac_ext >&5
32851
32852ac_cv_type_size_t=no
32853fi
ac1cb8d3 32854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32855fi
32856echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32857echo "${ECHO_T}$ac_cv_type_size_t" >&6
32858if test $ac_cv_type_size_t = yes; then
32859 :
32860else
32861
32862cat >>confdefs.h <<_ACEOF
32863#define size_t unsigned
32864_ACEOF
32865
32866fi
32867
32868echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32869echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32870if test "${ac_cv_type_uid_t+set}" = set; then
32871 echo $ECHO_N "(cached) $ECHO_C" >&6
32872else
32873 cat >conftest.$ac_ext <<_ACEOF
32874/* confdefs.h. */
32875_ACEOF
32876cat confdefs.h >>conftest.$ac_ext
32877cat >>conftest.$ac_ext <<_ACEOF
32878/* end confdefs.h. */
32879#include <sys/types.h>
32880
32881_ACEOF
32882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32883 $EGREP "uid_t" >/dev/null 2>&1; then
32884 ac_cv_type_uid_t=yes
32885else
32886 ac_cv_type_uid_t=no
32887fi
32888rm -f conftest*
32889
32890fi
32891echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32892echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32893if test $ac_cv_type_uid_t = no; then
32894
32895cat >>confdefs.h <<\_ACEOF
32896#define uid_t int
32897_ACEOF
32898
32899
32900cat >>confdefs.h <<\_ACEOF
32901#define gid_t int
32902_ACEOF
32903
32904fi
32905
32906
d51253e8
RL
32907echo "$as_me:$LINENO: checking for ssize_t" >&5
32908echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32909if test "${ac_cv_type_ssize_t+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32911else
32912 cat >conftest.$ac_ext <<_ACEOF
32913/* confdefs.h. */
32914_ACEOF
32915cat confdefs.h >>conftest.$ac_ext
32916cat >>conftest.$ac_ext <<_ACEOF
32917/* end confdefs.h. */
32918$ac_includes_default
32919int
32920main ()
32921{
32922if ((ssize_t *) 0)
32923 return 0;
32924if (sizeof (ssize_t))
32925 return 0;
32926 ;
32927 return 0;
32928}
32929_ACEOF
32930rm -f conftest.$ac_objext
32931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32932 (eval $ac_compile) 2>conftest.er1
32933 ac_status=$?
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
6954625c 32939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32941 (eval $ac_try) 2>&5
32942 ac_status=$?
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest.$ac_objext'
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 ac_cv_type_ssize_t=yes
32952else
32953 echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
32956ac_cv_type_ssize_t=no
32957fi
32958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32959fi
32960echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32961echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32962if test $ac_cv_type_ssize_t = yes; then
32963
32964cat >>confdefs.h <<_ACEOF
32965#define HAVE_SSIZE_T 1
32966_ACEOF
32967
32968
32969fi
32970
32971
a848cd7e
SC
32972echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32973echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32974if test "${wx_cv_size_t_is_uint+set}" = set; then
32975 echo $ECHO_N "(cached) $ECHO_C" >&6
32976else
32977
32978 cat >conftest.$ac_ext <<_ACEOF
32979/* confdefs.h. */
32980_ACEOF
32981cat confdefs.h >>conftest.$ac_ext
32982cat >>conftest.$ac_ext <<_ACEOF
32983/* end confdefs.h. */
32984#include <stddef.h>
32985int
32986main ()
32987{
32988
32989 return 0; }
32990
32991 struct Foo { void foo(size_t); void foo(unsigned int); };
32992
32993 int bar() {
32994
32995 ;
32996 return 0;
32997}
32998_ACEOF
32999rm -f conftest.$ac_objext
33000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33001 (eval $ac_compile) 2>conftest.er1
a848cd7e 33002 ac_status=$?
ac1cb8d3
VS
33003 grep -v '^ *+' conftest.er1 >conftest.err
33004 rm -f conftest.er1
33005 cat conftest.err >&5
a848cd7e
SC
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); } &&
6954625c 33008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010 (eval $ac_try) 2>&5
33011 ac_status=$?
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; } &&
33014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33020 wx_cv_size_t_is_uint=no
33021else
33022 echo "$as_me: failed program was:" >&5
33023sed 's/^/| /' conftest.$ac_ext >&5
33024
33025wx_cv_size_t_is_uint=yes
33026
33027fi
ac1cb8d3 33028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33029
33030
33031fi
33032echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33033echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33034
33035if test "$wx_cv_size_t_is_uint" = "yes"; then
33036 cat >>confdefs.h <<\_ACEOF
33037#define wxSIZE_T_IS_UINT 1
33038_ACEOF
33039
33040else
33041 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33042echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33043if test "${wx_cv_size_t_is_ulong+set}" = set; then
33044 echo $ECHO_N "(cached) $ECHO_C" >&6
33045else
33046 cat >conftest.$ac_ext <<_ACEOF
33047/* confdefs.h. */
33048_ACEOF
33049cat confdefs.h >>conftest.$ac_ext
33050cat >>conftest.$ac_ext <<_ACEOF
33051/* end confdefs.h. */
33052#include <stddef.h>
33053int
33054main ()
33055{
33056
33057 return 0; }
33058
33059 struct Foo { void foo(size_t); void foo(unsigned long); };
33060
33061 int bar() {
33062
33063 ;
33064 return 0;
33065}
33066_ACEOF
33067rm -f conftest.$ac_objext
33068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33069 (eval $ac_compile) 2>conftest.er1
a848cd7e 33070 ac_status=$?
ac1cb8d3
VS
33071 grep -v '^ *+' conftest.er1 >conftest.err
33072 rm -f conftest.er1
33073 cat conftest.err >&5
a848cd7e
SC
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } &&
6954625c 33076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33078 (eval $ac_try) 2>&5
33079 ac_status=$?
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); }; } &&
33082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084 (eval $ac_try) 2>&5
33085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; }; then
33088 wx_cv_size_t_is_ulong=no
33089else
33090 echo "$as_me: failed program was:" >&5
33091sed 's/^/| /' conftest.$ac_ext >&5
33092
33093wx_cv_size_t_is_ulong=yes
33094
33095fi
ac1cb8d3 33096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33097
33098fi
33099echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33100echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33101
33102 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33103 cat >>confdefs.h <<\_ACEOF
33104#define wxSIZE_T_IS_ULONG 1
33105_ACEOF
33106
33107 fi
33108fi
33109
a848cd7e
SC
33110
33111echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33112echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33113if test "${wx_cv_struct_pw_gecos+set}" = set; then
33114 echo $ECHO_N "(cached) $ECHO_C" >&6
33115else
33116
33117 cat >conftest.$ac_ext <<_ACEOF
33118/* confdefs.h. */
33119_ACEOF
33120cat confdefs.h >>conftest.$ac_ext
33121cat >>conftest.$ac_ext <<_ACEOF
33122/* end confdefs.h. */
33123#include <pwd.h>
33124int
33125main ()
33126{
33127
33128 char *p;
33129 struct passwd *pw;
33130 p = pw->pw_gecos;
33131
33132 ;
33133 return 0;
33134}
33135_ACEOF
33136rm -f conftest.$ac_objext
33137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33138 (eval $ac_compile) 2>conftest.er1
a848cd7e 33139 ac_status=$?
ac1cb8d3
VS
33140 grep -v '^ *+' conftest.er1 >conftest.err
33141 rm -f conftest.er1
33142 cat conftest.err >&5
a848cd7e
SC
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } &&
6954625c 33145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147 (eval $ac_try) 2>&5
33148 ac_status=$?
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; } &&
33151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153 (eval $ac_try) 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; }; then
33157
33158 wx_cv_struct_pw_gecos=yes
33159
33160else
33161 echo "$as_me: failed program was:" >&5
33162sed 's/^/| /' conftest.$ac_ext >&5
33163
33164
33165 wx_cv_struct_pw_gecos=no
33166
33167
33168fi
ac1cb8d3 33169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33170
33171
33172fi
33173echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33174echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33175
33176if test "$wx_cv_struct_pw_gecos" = "yes"; then
33177 cat >>confdefs.h <<\_ACEOF
33178#define HAVE_PW_GECOS 1
33179_ACEOF
33180
33181fi
33182
33183
47a7e797 33184if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33185 cat >>confdefs.h <<\_ACEOF
33186#define wxUSE_WCHAR_T 1
33187_ACEOF
33188
33189
33190 WCSLEN_FOUND=0
33191 WCHAR_LINK=
33192
33193for ac_func in wcslen
33194do
33195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33196echo "$as_me:$LINENO: checking for $ac_func" >&5
33197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33198if eval "test \"\${$as_ac_var+set}\" = set"; then
33199 echo $ECHO_N "(cached) $ECHO_C" >&6
33200else
33201 cat >conftest.$ac_ext <<_ACEOF
33202/* confdefs.h. */
33203_ACEOF
33204cat confdefs.h >>conftest.$ac_ext
33205cat >>conftest.$ac_ext <<_ACEOF
33206/* end confdefs.h. */
ac1cb8d3
VS
33207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33209#define $ac_func innocuous_$ac_func
33210
a848cd7e
SC
33211/* System header to define __stub macros and hopefully few prototypes,
33212 which can conflict with char $ac_func (); below.
33213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33214 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33215
a848cd7e
SC
33216#ifdef __STDC__
33217# include <limits.h>
33218#else
33219# include <assert.h>
33220#endif
ac1cb8d3
VS
33221
33222#undef $ac_func
33223
a848cd7e
SC
33224/* Override any gcc2 internal prototype to avoid an error. */
33225#ifdef __cplusplus
33226extern "C"
33227{
33228#endif
33229/* We use char because int might match the return type of a gcc2
33230 builtin and then its argument prototype would still apply. */
33231char $ac_func ();
33232/* The GNU C library defines this for functions which it implements
33233 to always fail with ENOSYS. Some functions are actually named
33234 something starting with __ and the normal name is an alias. */
33235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33236choke me
33237#else
33238char (*f) () = $ac_func;
33239#endif
33240#ifdef __cplusplus
33241}
33242#endif
33243
33244int
33245main ()
33246{
33247return f != $ac_func;
33248 ;
33249 return 0;
33250}
33251_ACEOF
33252rm -f conftest.$ac_objext conftest$ac_exeext
33253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33254 (eval $ac_link) 2>conftest.er1
a848cd7e 33255 ac_status=$?
ac1cb8d3
VS
33256 grep -v '^ *+' conftest.er1 >conftest.err
33257 rm -f conftest.er1
33258 cat conftest.err >&5
a848cd7e
SC
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); } &&
6954625c 33261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33263 (eval $ac_try) 2>&5
33264 ac_status=$?
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); }; } &&
33267 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33269 (eval $ac_try) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; }; then
33273 eval "$as_ac_var=yes"
33274else
33275 echo "$as_me: failed program was:" >&5
33276sed 's/^/| /' conftest.$ac_ext >&5
33277
33278eval "$as_ac_var=no"
33279fi
ac1cb8d3
VS
33280rm -f conftest.err conftest.$ac_objext \
33281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33282fi
33283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33285if test `eval echo '${'$as_ac_var'}'` = yes; then
33286 cat >>confdefs.h <<_ACEOF
33287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33288_ACEOF
33289 WCSLEN_FOUND=1
33290fi
33291done
33292
33293
33294 if test "$WCSLEN_FOUND" = 0; then
33295 if test "$TOOLKIT" = "MSW"; then
33296 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33297echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33298if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33299 echo $ECHO_N "(cached) $ECHO_C" >&6
33300else
33301 ac_check_lib_save_LIBS=$LIBS
33302LIBS="-lmsvcrt $LIBS"
33303cat >conftest.$ac_ext <<_ACEOF
33304/* confdefs.h. */
33305_ACEOF
33306cat confdefs.h >>conftest.$ac_ext
33307cat >>conftest.$ac_ext <<_ACEOF
33308/* end confdefs.h. */
33309
33310/* Override any gcc2 internal prototype to avoid an error. */
33311#ifdef __cplusplus
33312extern "C"
33313#endif
33314/* We use char because int might match the return type of a gcc2
33315 builtin and then its argument prototype would still apply. */
33316char wcslen ();
33317int
33318main ()
33319{
33320wcslen ();
33321 ;
33322 return 0;
33323}
33324_ACEOF
33325rm -f conftest.$ac_objext conftest$ac_exeext
33326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33327 (eval $ac_link) 2>conftest.er1
a848cd7e 33328 ac_status=$?
ac1cb8d3
VS
33329 grep -v '^ *+' conftest.er1 >conftest.err
33330 rm -f conftest.er1
33331 cat conftest.err >&5
a848cd7e
SC
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); } &&
6954625c 33334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33336 (eval $ac_try) 2>&5
33337 ac_status=$?
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; } &&
33340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33342 (eval $ac_try) 2>&5
33343 ac_status=$?
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); }; }; then
33346 ac_cv_lib_msvcrt_wcslen=yes
33347else
33348 echo "$as_me: failed program was:" >&5
33349sed 's/^/| /' conftest.$ac_ext >&5
33350
33351ac_cv_lib_msvcrt_wcslen=no
33352fi
ac1cb8d3
VS
33353rm -f conftest.err conftest.$ac_objext \
33354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33355LIBS=$ac_check_lib_save_LIBS
33356fi
33357echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33358echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33359if test $ac_cv_lib_msvcrt_wcslen = yes; then
33360 WCHAR_OK=1
33361fi
33362
33363 else
33364 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33365echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33366if test "${ac_cv_lib_w_wcslen+set}" = set; then
33367 echo $ECHO_N "(cached) $ECHO_C" >&6
33368else
33369 ac_check_lib_save_LIBS=$LIBS
33370LIBS="-lw $LIBS"
33371cat >conftest.$ac_ext <<_ACEOF
33372/* confdefs.h. */
33373_ACEOF
33374cat confdefs.h >>conftest.$ac_ext
33375cat >>conftest.$ac_ext <<_ACEOF
33376/* end confdefs.h. */
33377
33378/* Override any gcc2 internal prototype to avoid an error. */
33379#ifdef __cplusplus
33380extern "C"
33381#endif
33382/* We use char because int might match the return type of a gcc2
33383 builtin and then its argument prototype would still apply. */
33384char wcslen ();
33385int
33386main ()
33387{
33388wcslen ();
33389 ;
33390 return 0;
33391}
33392_ACEOF
33393rm -f conftest.$ac_objext conftest$ac_exeext
33394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33395 (eval $ac_link) 2>conftest.er1
a848cd7e 33396 ac_status=$?
ac1cb8d3
VS
33397 grep -v '^ *+' conftest.er1 >conftest.err
33398 rm -f conftest.er1
33399 cat conftest.err >&5
a848cd7e
SC
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); } &&
6954625c 33402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33404 (eval $ac_try) 2>&5
33405 ac_status=$?
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); }; } &&
33408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33410 (eval $ac_try) 2>&5
33411 ac_status=$?
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); }; }; then
33414 ac_cv_lib_w_wcslen=yes
33415else
33416 echo "$as_me: failed program was:" >&5
33417sed 's/^/| /' conftest.$ac_ext >&5
33418
33419ac_cv_lib_w_wcslen=no
33420fi
ac1cb8d3
VS
33421rm -f conftest.err conftest.$ac_objext \
33422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33423LIBS=$ac_check_lib_save_LIBS
33424fi
33425echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33426echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33427if test $ac_cv_lib_w_wcslen = yes; then
33428
33429 WCHAR_LINK=" -lw"
33430 WCSLEN_FOUND=1
33431
33432fi
33433
33434 fi
33435 fi
33436
33437 if test "$WCSLEN_FOUND" = 1; then
33438 cat >>confdefs.h <<\_ACEOF
33439#define HAVE_WCSLEN 1
33440_ACEOF
33441
33442 fi
33443
efdf6afe 33444 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33445 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33446 fi
33447
efdf6afe
VZ
33448 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33449echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33450if test "${ac_cv_type_mbstate_t+set}" = set; then
33451 echo $ECHO_N "(cached) $ECHO_C" >&6
33452else
33453 cat >conftest.$ac_ext <<_ACEOF
33454/* confdefs.h. */
33455_ACEOF
33456cat confdefs.h >>conftest.$ac_ext
33457cat >>conftest.$ac_ext <<_ACEOF
33458/* end confdefs.h. */
33459#include <wchar.h>
33460
33461int
33462main ()
33463{
33464if ((mbstate_t *) 0)
33465 return 0;
33466if (sizeof (mbstate_t))
33467 return 0;
33468 ;
33469 return 0;
33470}
33471_ACEOF
33472rm -f conftest.$ac_objext
33473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33474 (eval $ac_compile) 2>conftest.er1
33475 ac_status=$?
33476 grep -v '^ *+' conftest.er1 >conftest.err
33477 rm -f conftest.er1
33478 cat conftest.err >&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); } &&
6954625c 33481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
33482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 (eval $ac_try) 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; } &&
33487 { ac_try='test -s conftest.$ac_objext'
33488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 (eval $ac_try) 2>&5
33490 ac_status=$?
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; }; then
33493 ac_cv_type_mbstate_t=yes
33494else
33495 echo "$as_me: failed program was:" >&5
33496sed 's/^/| /' conftest.$ac_ext >&5
33497
33498ac_cv_type_mbstate_t=no
33499fi
33500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33501fi
33502echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33503echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33504if test $ac_cv_type_mbstate_t = yes; then
33505
33506cat >>confdefs.h <<_ACEOF
33507#define HAVE_MBSTATE_T 1
33508_ACEOF
33509
a848cd7e
SC
33510
33511for ac_func in wcsrtombs
33512do
33513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33514echo "$as_me:$LINENO: checking for $ac_func" >&5
33515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33516if eval "test \"\${$as_ac_var+set}\" = set"; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33518else
33519 cat >conftest.$ac_ext <<_ACEOF
33520/* confdefs.h. */
33521_ACEOF
33522cat confdefs.h >>conftest.$ac_ext
33523cat >>conftest.$ac_ext <<_ACEOF
33524/* end confdefs.h. */
ac1cb8d3
VS
33525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33527#define $ac_func innocuous_$ac_func
33528
a848cd7e
SC
33529/* System header to define __stub macros and hopefully few prototypes,
33530 which can conflict with char $ac_func (); below.
33531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33532 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33533
a848cd7e
SC
33534#ifdef __STDC__
33535# include <limits.h>
33536#else
33537# include <assert.h>
33538#endif
ac1cb8d3
VS
33539
33540#undef $ac_func
33541
a848cd7e
SC
33542/* Override any gcc2 internal prototype to avoid an error. */
33543#ifdef __cplusplus
33544extern "C"
33545{
33546#endif
33547/* We use char because int might match the return type of a gcc2
33548 builtin and then its argument prototype would still apply. */
33549char $ac_func ();
33550/* The GNU C library defines this for functions which it implements
33551 to always fail with ENOSYS. Some functions are actually named
33552 something starting with __ and the normal name is an alias. */
33553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33554choke me
33555#else
33556char (*f) () = $ac_func;
33557#endif
33558#ifdef __cplusplus
33559}
33560#endif
33561
33562int
33563main ()
33564{
33565return f != $ac_func;
33566 ;
33567 return 0;
33568}
33569_ACEOF
33570rm -f conftest.$ac_objext conftest$ac_exeext
33571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33572 (eval $ac_link) 2>conftest.er1
a848cd7e 33573 ac_status=$?
ac1cb8d3
VS
33574 grep -v '^ *+' conftest.er1 >conftest.err
33575 rm -f conftest.er1
33576 cat conftest.err >&5
a848cd7e
SC
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); } &&
6954625c 33579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33581 (eval $ac_try) 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; } &&
33585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587 (eval $ac_try) 2>&5
33588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); }; }; then
33591 eval "$as_ac_var=yes"
33592else
33593 echo "$as_me: failed program was:" >&5
33594sed 's/^/| /' conftest.$ac_ext >&5
33595
33596eval "$as_ac_var=no"
33597fi
ac1cb8d3
VS
33598rm -f conftest.err conftest.$ac_objext \
33599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33600fi
33601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33603if test `eval echo '${'$as_ac_var'}'` = yes; then
33604 cat >>confdefs.h <<_ACEOF
33605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33606_ACEOF
33607
33608fi
33609done
33610
efdf6afe
VZ
33611fi
33612
a848cd7e
SC
33613else
33614 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33615echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33616fi
33617
a848cd7e 33618
4a767dd5
VZ
33619
33620for ac_func in snprintf vsnprintf
a848cd7e
SC
33621do
33622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33623echo "$as_me:$LINENO: checking for $ac_func" >&5
33624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33625if eval "test \"\${$as_ac_var+set}\" = set"; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33627else
33628 cat >conftest.$ac_ext <<_ACEOF
33629/* confdefs.h. */
33630_ACEOF
33631cat confdefs.h >>conftest.$ac_ext
33632cat >>conftest.$ac_ext <<_ACEOF
33633/* end confdefs.h. */
ac1cb8d3
VS
33634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33636#define $ac_func innocuous_$ac_func
33637
a848cd7e
SC
33638/* System header to define __stub macros and hopefully few prototypes,
33639 which can conflict with char $ac_func (); below.
33640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33642
a848cd7e
SC
33643#ifdef __STDC__
33644# include <limits.h>
33645#else
33646# include <assert.h>
33647#endif
ac1cb8d3
VS
33648
33649#undef $ac_func
33650
a848cd7e
SC
33651/* Override any gcc2 internal prototype to avoid an error. */
33652#ifdef __cplusplus
33653extern "C"
33654{
33655#endif
33656/* We use char because int might match the return type of a gcc2
33657 builtin and then its argument prototype would still apply. */
33658char $ac_func ();
33659/* The GNU C library defines this for functions which it implements
33660 to always fail with ENOSYS. Some functions are actually named
33661 something starting with __ and the normal name is an alias. */
33662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33663choke me
33664#else
33665char (*f) () = $ac_func;
33666#endif
33667#ifdef __cplusplus
33668}
33669#endif
33670
33671int
33672main ()
33673{
33674return f != $ac_func;
33675 ;
33676 return 0;
33677}
33678_ACEOF
33679rm -f conftest.$ac_objext conftest$ac_exeext
33680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33681 (eval $ac_link) 2>conftest.er1
a848cd7e 33682 ac_status=$?
ac1cb8d3
VS
33683 grep -v '^ *+' conftest.er1 >conftest.err
33684 rm -f conftest.er1
33685 cat conftest.err >&5
a848cd7e
SC
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } &&
6954625c 33688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33691 ac_status=$?
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; } &&
33694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33696 (eval $ac_try) 2>&5
33697 ac_status=$?
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); }; }; then
33700 eval "$as_ac_var=yes"
33701else
33702 echo "$as_me: failed program was:" >&5
33703sed 's/^/| /' conftest.$ac_ext >&5
33704
33705eval "$as_ac_var=no"
33706fi
ac1cb8d3
VS
33707rm -f conftest.err conftest.$ac_objext \
33708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33709fi
33710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33712if test `eval echo '${'$as_ac_var'}'` = yes; then
33713 cat >>confdefs.h <<_ACEOF
33714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33715_ACEOF
33716
33717fi
33718done
33719
33720
33721if test "$ac_cv_func_vsnprintf" = "yes"; then
33722 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33723echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33724if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33725 echo $ECHO_N "(cached) $ECHO_C" >&6
33726else
33727
efdf6afe 33728 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33729/* confdefs.h. */
33730_ACEOF
33731cat confdefs.h >>conftest.$ac_ext
33732cat >>conftest.$ac_ext <<_ACEOF
33733/* end confdefs.h. */
33734
33735 #include <stdio.h>
33736 #include <stdarg.h>
efdf6afe
VZ
33737 #ifdef __MSL__
33738 #if __MSL__ >= 0x6000
33739 namespace std {}
33740 using namespace std;
33741 #endif
33742 #endif
a848cd7e
SC
33743
33744int
33745main ()
33746{
33747
33748 char *buf;
33749 va_list ap;
62fa8b3a 33750 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33751
33752 ;
33753 return 0;
33754}
33755_ACEOF
33756rm -f conftest.$ac_objext
33757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33758 (eval $ac_compile) 2>conftest.er1
33759 ac_status=$?
33760 grep -v '^ *+' conftest.er1 >conftest.err
33761 rm -f conftest.er1
33762 cat conftest.err >&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); } &&
6954625c 33765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33767 (eval $ac_try) 2>&5
33768 ac_status=$?
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; } &&
33771 { ac_try='test -s conftest.$ac_objext'
33772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773 (eval $ac_try) 2>&5
33774 ac_status=$?
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; }; then
33777 wx_cv_func_vsnprintf_decl=yes
33778else
33779 echo "$as_me: failed program was:" >&5
33780sed 's/^/| /' conftest.$ac_ext >&5
33781
a848cd7e
SC
33782wx_cv_func_vsnprintf_decl=no
33783
33784fi
ac1cb8d3 33785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33786
33787
33788fi
33789echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33790echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33791
33792 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33793 cat >>confdefs.h <<\_ACEOF
33794#define HAVE_VSNPRINTF_DECL 1
33795_ACEOF
33796
62fa8b3a
MW
33797
33798 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33799echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33800if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33801 echo $ECHO_N "(cached) $ECHO_C" >&6
33802else
33803
33804 cat >conftest.$ac_ext <<_ACEOF
33805/* confdefs.h. */
33806_ACEOF
33807cat confdefs.h >>conftest.$ac_ext
33808cat >>conftest.$ac_ext <<_ACEOF
33809/* end confdefs.h. */
33810
33811 #include <stdio.h>
33812 #include <stdarg.h>
33813 #ifdef __MSL__
33814 #if __MSL__ >= 0x6000
33815 namespace std {}
33816 using namespace std;
33817 #endif
33818 #endif
33819
33820int
33821main ()
33822{
33823
33824 char *buf;
33825 va_list ap;
33826 const char *fmt = "%s";
33827 vsnprintf(buf, 10u, fmt, ap);
33828
33829 ;
33830 return 0;
33831}
33832_ACEOF
33833rm -f conftest.$ac_objext
33834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33835 (eval $ac_compile) 2>conftest.er1
33836 ac_status=$?
33837 grep -v '^ *+' conftest.er1 >conftest.err
33838 rm -f conftest.er1
33839 cat conftest.err >&5
33840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); } &&
6954625c 33842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844 (eval $ac_try) 2>&5
33845 ac_status=$?
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; } &&
33848 { ac_try='test -s conftest.$ac_objext'
33849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850 (eval $ac_try) 2>&5
33851 ac_status=$?
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); }; }; then
33854 wx_cv_func_broken_vsnprintf_decl=no
33855else
33856 echo "$as_me: failed program was:" >&5
33857sed 's/^/| /' conftest.$ac_ext >&5
33858
33859wx_cv_func_broken_vsnprintf_decl=yes
33860
33861fi
33862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33863
33864
33865fi
33866echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33867echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33868
33869 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33870 cat >>confdefs.h <<\_ACEOF
33871#define HAVE_BROKEN_VSNPRINTF_DECL 1
33872_ACEOF
33873
33874 fi
a848cd7e
SC
33875 fi
33876fi
33877
4a767dd5
VZ
33878if test "$ac_cv_func_snprintf" = "yes"; then
33879 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33880echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33881if test "${wx_cv_func_snprintf_decl+set}" = set; then
33882 echo $ECHO_N "(cached) $ECHO_C" >&6
33883else
33884
33885 cat >conftest.$ac_ext <<_ACEOF
33886/* confdefs.h. */
33887_ACEOF
33888cat confdefs.h >>conftest.$ac_ext
33889cat >>conftest.$ac_ext <<_ACEOF
33890/* end confdefs.h. */
33891
33892 #include <stdio.h>
33893 #include <stdarg.h>
33894 #ifdef __MSL__
33895 #if __MSL__ >= 0x6000
33896 namespace std {}
33897 using namespace std;
33898 #endif
33899 #endif
33900
33901int
33902main ()
33903{
33904
33905 char *buf;
62fa8b3a 33906 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33907
33908 ;
33909 return 0;
33910}
33911_ACEOF
33912rm -f conftest.$ac_objext
33913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33914 (eval $ac_compile) 2>conftest.er1
33915 ac_status=$?
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
6954625c 33921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest.$ac_objext'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 wx_cv_func_snprintf_decl=yes
33934else
33935 echo "$as_me: failed program was:" >&5
33936sed 's/^/| /' conftest.$ac_ext >&5
33937
33938wx_cv_func_snprintf_decl=no
33939
33940fi
33941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33942
33943
33944fi
33945echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33946echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33947
33948 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33949 cat >>confdefs.h <<\_ACEOF
33950#define HAVE_SNPRINTF_DECL 1
33951_ACEOF
33952
62fa8b3a
MW
33953
33954 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33955echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33956if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33957 echo $ECHO_N "(cached) $ECHO_C" >&6
33958else
33959
33960 cat >conftest.$ac_ext <<_ACEOF
33961/* confdefs.h. */
33962_ACEOF
33963cat confdefs.h >>conftest.$ac_ext
33964cat >>conftest.$ac_ext <<_ACEOF
33965/* end confdefs.h. */
33966
33967 #include <stdio.h>
33968 #include <stdarg.h>
33969 #ifdef __MSL__
33970 #if __MSL__ >= 0x6000
33971 namespace std {}
33972 using namespace std;
33973 #endif
33974 #endif
33975
33976int
33977main ()
33978{
33979
33980 char *buf;
33981 const char *fmt = "%s";
33982 snprintf(buf, 10u, fmt, "wx");
33983
33984 ;
33985 return 0;
33986}
33987_ACEOF
33988rm -f conftest.$ac_objext
33989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33990 (eval $ac_compile) 2>conftest.er1
33991 ac_status=$?
33992 grep -v '^ *+' conftest.er1 >conftest.err
33993 rm -f conftest.er1
33994 cat conftest.err >&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); } &&
6954625c 33997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34000 ac_status=$?
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; } &&
34003 { ac_try='test -s conftest.$ac_objext'
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; }; then
34009 wx_cv_func_broken_snprintf_decl=no
34010else
34011 echo "$as_me: failed program was:" >&5
34012sed 's/^/| /' conftest.$ac_ext >&5
34013
34014wx_cv_func_broken_snprintf_decl=yes
34015
34016fi
34017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34018
34019
34020fi
34021echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34022echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34023
34024 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34025 cat >>confdefs.h <<\_ACEOF
34026#define HAVE_BROKEN_SNPRINTF_DECL 1
34027_ACEOF
34028
34029 fi
4a767dd5
VZ
34030 fi
34031fi
34032
a848cd7e
SC
34033if test "$wxUSE_UNICODE" = yes; then
34034
34035
34036
fbe47c7b
VS
34037
34038
34039
34040for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34041do
34042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34043echo "$as_me:$LINENO: checking for $ac_func" >&5
34044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34045if eval "test \"\${$as_ac_var+set}\" = set"; then
34046 echo $ECHO_N "(cached) $ECHO_C" >&6
34047else
34048 cat >conftest.$ac_ext <<_ACEOF
34049/* confdefs.h. */
34050_ACEOF
34051cat confdefs.h >>conftest.$ac_ext
34052cat >>conftest.$ac_ext <<_ACEOF
34053/* end confdefs.h. */
ac1cb8d3
VS
34054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34056#define $ac_func innocuous_$ac_func
34057
a848cd7e
SC
34058/* System header to define __stub macros and hopefully few prototypes,
34059 which can conflict with char $ac_func (); below.
34060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34062
a848cd7e
SC
34063#ifdef __STDC__
34064# include <limits.h>
34065#else
34066# include <assert.h>
34067#endif
ac1cb8d3
VS
34068
34069#undef $ac_func
34070
a848cd7e
SC
34071/* Override any gcc2 internal prototype to avoid an error. */
34072#ifdef __cplusplus
34073extern "C"
34074{
34075#endif
34076/* We use char because int might match the return type of a gcc2
34077 builtin and then its argument prototype would still apply. */
34078char $ac_func ();
34079/* The GNU C library defines this for functions which it implements
34080 to always fail with ENOSYS. Some functions are actually named
34081 something starting with __ and the normal name is an alias. */
34082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34083choke me
34084#else
34085char (*f) () = $ac_func;
34086#endif
34087#ifdef __cplusplus
34088}
34089#endif
34090
34091int
34092main ()
34093{
34094return f != $ac_func;
34095 ;
34096 return 0;
34097}
34098_ACEOF
34099rm -f conftest.$ac_objext conftest$ac_exeext
34100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34101 (eval $ac_link) 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); } &&
6954625c 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_exeext'
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 eval "$as_ac_var=yes"
34121else
34122 echo "$as_me: failed program was:" >&5
34123sed 's/^/| /' conftest.$ac_ext >&5
34124
34125eval "$as_ac_var=no"
34126fi
ac1cb8d3
VS
34127rm -f conftest.err conftest.$ac_objext \
34128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34129fi
34130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34132if test `eval echo '${'$as_ac_var'}'` = yes; then
34133 cat >>confdefs.h <<_ACEOF
34134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34135_ACEOF
34136
34137fi
34138done
34139
34140
34141 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34142echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34143 cat >conftest.$ac_ext <<_ACEOF
34144/* confdefs.h. */
34145_ACEOF
34146cat confdefs.h >>conftest.$ac_ext
34147cat >>conftest.$ac_ext <<_ACEOF
34148/* end confdefs.h. */
34149#include <wchar.h>
34150int
34151main ()
34152{
34153&_vsnwprintf;
34154 ;
34155 return 0;
34156}
34157_ACEOF
34158rm -f conftest.$ac_objext
34159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34160 (eval $ac_compile) 2>conftest.er1
a848cd7e 34161 ac_status=$?
ac1cb8d3
VS
34162 grep -v '^ *+' conftest.er1 >conftest.err
34163 rm -f conftest.er1
34164 cat conftest.err >&5
a848cd7e
SC
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); } &&
6954625c 34167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34169 (eval $ac_try) 2>&5
34170 ac_status=$?
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); }; } &&
34173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34175 (eval $ac_try) 2>&5
34176 ac_status=$?
34177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178 (exit $ac_status); }; }; then
34179 echo "$as_me:$LINENO: result: yes" >&5
34180echo "${ECHO_T}yes" >&6
34181 cat >>confdefs.h <<\_ACEOF
34182#define HAVE__VSNWPRINTF 1
34183_ACEOF
34184
34185else
34186 echo "$as_me: failed program was:" >&5
34187sed 's/^/| /' conftest.$ac_ext >&5
34188
34189echo "$as_me:$LINENO: result: no" >&5
34190echo "${ECHO_T}no" >&6
34191fi
ac1cb8d3 34192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34193fi
34194
6ebeb4c7
VZ
34195if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34196
34197for ac_func in fnmatch
34198do
34199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34200echo "$as_me:$LINENO: checking for $ac_func" >&5
34201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34202if eval "test \"\${$as_ac_var+set}\" = set"; then
34203 echo $ECHO_N "(cached) $ECHO_C" >&6
34204else
34205 cat >conftest.$ac_ext <<_ACEOF
34206/* confdefs.h. */
34207_ACEOF
34208cat confdefs.h >>conftest.$ac_ext
34209cat >>conftest.$ac_ext <<_ACEOF
34210/* end confdefs.h. */
34211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34213#define $ac_func innocuous_$ac_func
34214
34215/* System header to define __stub macros and hopefully few prototypes,
34216 which can conflict with char $ac_func (); below.
34217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34218 <limits.h> exists even on freestanding compilers. */
34219
34220#ifdef __STDC__
34221# include <limits.h>
34222#else
34223# include <assert.h>
34224#endif
34225
34226#undef $ac_func
34227
34228/* Override any gcc2 internal prototype to avoid an error. */
34229#ifdef __cplusplus
34230extern "C"
34231{
34232#endif
34233/* We use char because int might match the return type of a gcc2
34234 builtin and then its argument prototype would still apply. */
34235char $ac_func ();
34236/* The GNU C library defines this for functions which it implements
34237 to always fail with ENOSYS. Some functions are actually named
34238 something starting with __ and the normal name is an alias. */
34239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34240choke me
34241#else
34242char (*f) () = $ac_func;
34243#endif
34244#ifdef __cplusplus
34245}
34246#endif
34247
34248int
34249main ()
34250{
34251return f != $ac_func;
34252 ;
34253 return 0;
34254}
34255_ACEOF
34256rm -f conftest.$ac_objext conftest$ac_exeext
34257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34258 (eval $ac_link) 2>conftest.er1
34259 ac_status=$?
34260 grep -v '^ *+' conftest.er1 >conftest.err
34261 rm -f conftest.er1
34262 cat conftest.err >&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } &&
6954625c 34265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34267 (eval $ac_try) 2>&5
34268 ac_status=$?
34269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270 (exit $ac_status); }; } &&
34271 { ac_try='test -s conftest$ac_exeext'
34272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34273 (eval $ac_try) 2>&5
34274 ac_status=$?
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); }; }; then
34277 eval "$as_ac_var=yes"
34278else
34279 echo "$as_me: failed program was:" >&5
34280sed 's/^/| /' conftest.$ac_ext >&5
34281
34282eval "$as_ac_var=no"
34283fi
34284rm -f conftest.err conftest.$ac_objext \
34285 conftest$ac_exeext conftest.$ac_ext
34286fi
34287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34288echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34289if test `eval echo '${'$as_ac_var'}'` = yes; then
34290 cat >>confdefs.h <<_ACEOF
34291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34292_ACEOF
34293
34294fi
34295done
34296
34297fi
34298
34299if test "$wxUSE_FILE" = "yes"; then
34300
34301for ac_func in fsync
34302do
34303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34304echo "$as_me:$LINENO: checking for $ac_func" >&5
34305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34306if eval "test \"\${$as_ac_var+set}\" = set"; then
34307 echo $ECHO_N "(cached) $ECHO_C" >&6
34308else
34309 cat >conftest.$ac_ext <<_ACEOF
34310/* confdefs.h. */
34311_ACEOF
34312cat confdefs.h >>conftest.$ac_ext
34313cat >>conftest.$ac_ext <<_ACEOF
34314/* end confdefs.h. */
34315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34317#define $ac_func innocuous_$ac_func
34318
34319/* System header to define __stub macros and hopefully few prototypes,
34320 which can conflict with char $ac_func (); below.
34321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34322 <limits.h> exists even on freestanding compilers. */
34323
34324#ifdef __STDC__
34325# include <limits.h>
34326#else
34327# include <assert.h>
34328#endif
34329
34330#undef $ac_func
34331
34332/* Override any gcc2 internal prototype to avoid an error. */
34333#ifdef __cplusplus
34334extern "C"
34335{
34336#endif
34337/* We use char because int might match the return type of a gcc2
34338 builtin and then its argument prototype would still apply. */
34339char $ac_func ();
34340/* The GNU C library defines this for functions which it implements
34341 to always fail with ENOSYS. Some functions are actually named
34342 something starting with __ and the normal name is an alias. */
34343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34344choke me
34345#else
34346char (*f) () = $ac_func;
34347#endif
34348#ifdef __cplusplus
34349}
34350#endif
34351
34352int
34353main ()
34354{
34355return f != $ac_func;
34356 ;
34357 return 0;
34358}
34359_ACEOF
34360rm -f conftest.$ac_objext conftest$ac_exeext
34361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34362 (eval $ac_link) 2>conftest.er1
34363 ac_status=$?
34364 grep -v '^ *+' conftest.er1 >conftest.err
34365 rm -f conftest.er1
34366 cat conftest.err >&5
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); } &&
6954625c 34369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371 (eval $ac_try) 2>&5
34372 ac_status=$?
34373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 (exit $ac_status); }; } &&
34375 { ac_try='test -s conftest$ac_exeext'
34376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34377 (eval $ac_try) 2>&5
34378 ac_status=$?
34379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380 (exit $ac_status); }; }; then
34381 eval "$as_ac_var=yes"
34382else
34383 echo "$as_me: failed program was:" >&5
34384sed 's/^/| /' conftest.$ac_ext >&5
34385
34386eval "$as_ac_var=no"
34387fi
34388rm -f conftest.err conftest.$ac_objext \
34389 conftest$ac_exeext conftest.$ac_ext
34390fi
34391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34393if test `eval echo '${'$as_ac_var'}'` = yes; then
34394 cat >>confdefs.h <<_ACEOF
34395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34396_ACEOF
34397
34398fi
34399done
34400
34401fi
a848cd7e
SC
34402
34403
34404if test "$TOOLKIT" != "MSW"; then
34405
34406
a848cd7e
SC
34407
34408
34409
34410# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34411if test "${with_libiconv_prefix+set}" = set; then
34412 withval="$with_libiconv_prefix"
34413
34414 for dir in `echo "$withval" | tr : ' '`; do
34415 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34416 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34417 done
34418
34419fi;
34420
34421 echo "$as_me:$LINENO: checking for iconv" >&5
34422echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34423if test "${am_cv_func_iconv+set}" = set; then
34424 echo $ECHO_N "(cached) $ECHO_C" >&6
34425else
34426
34427 am_cv_func_iconv="no, consider installing GNU libiconv"
34428 am_cv_lib_iconv=no
34429 cat >conftest.$ac_ext <<_ACEOF
34430/* confdefs.h. */
34431_ACEOF
34432cat confdefs.h >>conftest.$ac_ext
34433cat >>conftest.$ac_ext <<_ACEOF
34434/* end confdefs.h. */
34435#include <stdlib.h>
34436#include <iconv.h>
34437int
34438main ()
34439{
34440iconv_t cd = iconv_open("","");
34441 iconv(cd,NULL,NULL,NULL,NULL);
34442 iconv_close(cd);
34443 ;
34444 return 0;
34445}
34446_ACEOF
34447rm -f conftest.$ac_objext conftest$ac_exeext
34448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34449 (eval $ac_link) 2>conftest.er1
a848cd7e 34450 ac_status=$?
ac1cb8d3
VS
34451 grep -v '^ *+' conftest.er1 >conftest.err
34452 rm -f conftest.er1
34453 cat conftest.err >&5
a848cd7e
SC
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); } &&
6954625c 34456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34458 (eval $ac_try) 2>&5
34459 ac_status=$?
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; } &&
34462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34464 (eval $ac_try) 2>&5
34465 ac_status=$?
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); }; }; then
34468 am_cv_func_iconv=yes
34469else
34470 echo "$as_me: failed program was:" >&5
34471sed 's/^/| /' conftest.$ac_ext >&5
34472
34473fi
ac1cb8d3
VS
34474rm -f conftest.err conftest.$ac_objext \
34475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34476 if test "$am_cv_func_iconv" != yes; then
34477 am_save_LIBS="$LIBS"
34478 LIBS="$LIBS -liconv"
34479 cat >conftest.$ac_ext <<_ACEOF
34480/* confdefs.h. */
34481_ACEOF
34482cat confdefs.h >>conftest.$ac_ext
34483cat >>conftest.$ac_ext <<_ACEOF
34484/* end confdefs.h. */
34485#include <stdlib.h>
34486#include <iconv.h>
34487int
34488main ()
34489{
34490iconv_t cd = iconv_open("","");
34491 iconv(cd,NULL,NULL,NULL,NULL);
34492 iconv_close(cd);
34493 ;
34494 return 0;
34495}
34496_ACEOF
34497rm -f conftest.$ac_objext conftest$ac_exeext
34498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34499 (eval $ac_link) 2>conftest.er1
a848cd7e 34500 ac_status=$?
ac1cb8d3
VS
34501 grep -v '^ *+' conftest.er1 >conftest.err
34502 rm -f conftest.er1
34503 cat conftest.err >&5
a848cd7e
SC
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); } &&
6954625c 34506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34508 (eval $ac_try) 2>&5
34509 ac_status=$?
34510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511 (exit $ac_status); }; } &&
34512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34514 (eval $ac_try) 2>&5
34515 ac_status=$?
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); }; }; then
34518 am_cv_lib_iconv=yes
34519 am_cv_func_iconv=yes
34520else
34521 echo "$as_me: failed program was:" >&5
34522sed 's/^/| /' conftest.$ac_ext >&5
34523
34524fi
ac1cb8d3
VS
34525rm -f conftest.err conftest.$ac_objext \
34526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34527 LIBS="$am_save_LIBS"
34528 fi
34529
34530fi
34531echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34532echo "${ECHO_T}$am_cv_func_iconv" >&6
34533 if test "$am_cv_func_iconv" = yes; then
34534
34535cat >>confdefs.h <<\_ACEOF
34536#define HAVE_ICONV 1
34537_ACEOF
34538
34539 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34540echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34541if test "${wx_cv_func_iconv_const+set}" = set; then
34542 echo $ECHO_N "(cached) $ECHO_C" >&6
34543else
34544 cat >conftest.$ac_ext <<_ACEOF
34545/* confdefs.h. */
34546_ACEOF
34547cat confdefs.h >>conftest.$ac_ext
34548cat >>conftest.$ac_ext <<_ACEOF
34549/* end confdefs.h. */
34550
34551#include <stdlib.h>
34552#include <iconv.h>
34553extern
34554#ifdef __cplusplus
34555"C"
34556#endif
34557#if defined(__STDC__) || defined(__cplusplus)
34558size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34559#else
34560size_t iconv();
34561#endif
34562
34563int
34564main ()
34565{
34566
34567 ;
34568 return 0;
34569}
34570_ACEOF
34571rm -f conftest.$ac_objext
34572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34573 (eval $ac_compile) 2>conftest.er1
a848cd7e 34574 ac_status=$?
ac1cb8d3
VS
34575 grep -v '^ *+' conftest.er1 >conftest.err
34576 rm -f conftest.er1
34577 cat conftest.err >&5
a848cd7e
SC
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); } &&
6954625c 34580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34582 (eval $ac_try) 2>&5
34583 ac_status=$?
34584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585 (exit $ac_status); }; } &&
34586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34588 (eval $ac_try) 2>&5
34589 ac_status=$?
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); }; }; then
34592 wx_cv_func_iconv_const="no"
34593else
34594 echo "$as_me: failed program was:" >&5
34595sed 's/^/| /' conftest.$ac_ext >&5
34596
34597wx_cv_func_iconv_const="yes"
34598
34599fi
ac1cb8d3 34600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34601
34602fi
34603echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34604echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34605
34606 iconv_const=
34607 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34608 iconv_const="const"
34609 fi
34610
34611
34612cat >>confdefs.h <<_ACEOF
34613#define ICONV_CONST $iconv_const
34614_ACEOF
34615
34616 fi
34617 LIBICONV=
34618 if test "$am_cv_lib_iconv" = yes; then
34619 LIBICONV="-liconv"
34620 fi
34621
34622
34623LIBS="$LIBICONV $LIBS"
a848cd7e
SC
34624
34625if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34626
34627for ac_func in sigaction
34628do
34629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34630echo "$as_me:$LINENO: checking for $ac_func" >&5
34631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34632if eval "test \"\${$as_ac_var+set}\" = set"; then
34633 echo $ECHO_N "(cached) $ECHO_C" >&6
34634else
34635 cat >conftest.$ac_ext <<_ACEOF
34636/* confdefs.h. */
34637_ACEOF
34638cat confdefs.h >>conftest.$ac_ext
34639cat >>conftest.$ac_ext <<_ACEOF
34640/* end confdefs.h. */
ac1cb8d3
VS
34641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34643#define $ac_func innocuous_$ac_func
34644
a848cd7e
SC
34645/* System header to define __stub macros and hopefully few prototypes,
34646 which can conflict with char $ac_func (); below.
34647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34648 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34649
a848cd7e
SC
34650#ifdef __STDC__
34651# include <limits.h>
34652#else
34653# include <assert.h>
34654#endif
ac1cb8d3
VS
34655
34656#undef $ac_func
34657
a848cd7e
SC
34658/* Override any gcc2 internal prototype to avoid an error. */
34659#ifdef __cplusplus
34660extern "C"
34661{
34662#endif
34663/* We use char because int might match the return type of a gcc2
34664 builtin and then its argument prototype would still apply. */
34665char $ac_func ();
34666/* The GNU C library defines this for functions which it implements
34667 to always fail with ENOSYS. Some functions are actually named
34668 something starting with __ and the normal name is an alias. */
34669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34670choke me
34671#else
34672char (*f) () = $ac_func;
34673#endif
34674#ifdef __cplusplus
34675}
34676#endif
34677
34678int
34679main ()
34680{
34681return f != $ac_func;
34682 ;
34683 return 0;
34684}
34685_ACEOF
34686rm -f conftest.$ac_objext conftest$ac_exeext
34687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34688 (eval $ac_link) 2>conftest.er1
a848cd7e 34689 ac_status=$?
ac1cb8d3
VS
34690 grep -v '^ *+' conftest.er1 >conftest.err
34691 rm -f conftest.er1
34692 cat conftest.err >&5
a848cd7e
SC
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } &&
6954625c 34695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34697 (eval $ac_try) 2>&5
34698 ac_status=$?
34699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700 (exit $ac_status); }; } &&
34701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34703 (eval $ac_try) 2>&5
34704 ac_status=$?
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); }; }; then
34707 eval "$as_ac_var=yes"
34708else
34709 echo "$as_me: failed program was:" >&5
34710sed 's/^/| /' conftest.$ac_ext >&5
34711
34712eval "$as_ac_var=no"
34713fi
ac1cb8d3
VS
34714rm -f conftest.err conftest.$ac_objext \
34715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34716fi
34717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34719if test `eval echo '${'$as_ac_var'}'` = yes; then
34720 cat >>confdefs.h <<_ACEOF
34721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34722_ACEOF
34723
34724fi
34725done
34726
34727
34728 if test "$ac_cv_func_sigaction" = "no"; then
34729 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34730echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34731 wxUSE_ON_FATAL_EXCEPTION=no
34732 fi
34733
34734 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34735 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34736echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34737if test "${wx_cv_type_sa_handler+set}" = set; then
34738 echo $ECHO_N "(cached) $ECHO_C" >&6
34739else
34740
34741 cat >conftest.$ac_ext <<_ACEOF
34742/* confdefs.h. */
34743_ACEOF
34744cat confdefs.h >>conftest.$ac_ext
34745cat >>conftest.$ac_ext <<_ACEOF
34746/* end confdefs.h. */
34747#include <signal.h>
34748int
34749main ()
34750{
34751
34752 extern void testSigHandler(int);
34753
34754 struct sigaction sa;
34755 sa.sa_handler = testSigHandler;
34756
34757 ;
34758 return 0;
34759}
34760_ACEOF
34761rm -f conftest.$ac_objext
34762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34763 (eval $ac_compile) 2>conftest.er1
a848cd7e 34764 ac_status=$?
ac1cb8d3
VS
34765 grep -v '^ *+' conftest.er1 >conftest.err
34766 rm -f conftest.er1
34767 cat conftest.err >&5
a848cd7e
SC
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
6954625c 34770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; } &&
34776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34778 (eval $ac_try) 2>&5
34779 ac_status=$?
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); }; }; then
34782
34783 wx_cv_type_sa_handler=int
34784
34785else
34786 echo "$as_me: failed program was:" >&5
34787sed 's/^/| /' conftest.$ac_ext >&5
34788
34789
34790 wx_cv_type_sa_handler=void
34791
34792fi
ac1cb8d3 34793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34794
34795fi
34796echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34797echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34798
a848cd7e
SC
34799 cat >>confdefs.h <<_ACEOF
34800#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34801_ACEOF
34802
34803 fi
34804fi
34805
eaff0f0d 34806if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
34807 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34808echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34809if test "${wx_cv_func_backtrace+set}" = set; then
34810 echo $ECHO_N "(cached) $ECHO_C" >&6
34811else
34812
34813 cat >conftest.$ac_ext <<_ACEOF
34814/* confdefs.h. */
34815_ACEOF
34816cat confdefs.h >>conftest.$ac_ext
34817cat >>conftest.$ac_ext <<_ACEOF
34818/* end confdefs.h. */
34819#include <execinfo.h>
34820int
34821main ()
34822{
34823
34824 void *trace[1];
34825 char **messages;
34826
34827 backtrace(trace, 1);
34828 messages = backtrace_symbols(trace, 1);
34829
34830 ;
34831 return 0;
34832}
34833_ACEOF
34834rm -f conftest.$ac_objext
34835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34836 (eval $ac_compile) 2>conftest.er1
34837 ac_status=$?
34838 grep -v '^ *+' conftest.er1 >conftest.err
34839 rm -f conftest.er1
34840 cat conftest.err >&5
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); } &&
6954625c 34843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34845 (eval $ac_try) 2>&5
34846 ac_status=$?
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); }; } &&
34849 { ac_try='test -s conftest.$ac_objext'
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 wx_cv_func_backtrace=yes
34856else
34857 echo "$as_me: failed program was:" >&5
34858sed 's/^/| /' conftest.$ac_ext >&5
34859
34860wx_cv_func_backtrace=no
34861
34862fi
34863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34864
34865
34866fi
34867echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34868echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34869
34870
34871 if test "$wx_cv_func_backtrace" = "no"; then
34872 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34873echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34874 wxUSE_STACKWALKER=no
34875 else
34876 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34877echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34878if test "${wx_cv_func_cxa_demangle+set}" = set; then
34879 echo $ECHO_N "(cached) $ECHO_C" >&6
34880else
34881
34882 cat >conftest.$ac_ext <<_ACEOF
34883/* confdefs.h. */
34884_ACEOF
34885cat confdefs.h >>conftest.$ac_ext
34886cat >>conftest.$ac_ext <<_ACEOF
34887/* end confdefs.h. */
34888#include <cxxabi.h>
34889int
34890main ()
34891{
34892
34893 int rc;
34894 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34895
34896 ;
34897 return 0;
34898}
34899_ACEOF
dfe0c803
JS
34900rm -f conftest.$ac_objext conftest$ac_exeext
34901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34902 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34903 ac_status=$?
34904 grep -v '^ *+' conftest.er1 >conftest.err
34905 rm -f conftest.er1
34906 cat conftest.err >&5
34907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908 (exit $ac_status); } &&
6954625c 34909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911 (eval $ac_try) 2>&5
34912 ac_status=$?
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); }; } &&
dfe0c803 34915 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
34918 ac_status=$?
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; }; then
34921 wx_cv_func_cxa_demangle=yes
34922else
34923 echo "$as_me: failed program was:" >&5
34924sed 's/^/| /' conftest.$ac_ext >&5
34925
34926wx_cv_func_cxa_demangle=no
34927
34928fi
dfe0c803
JS
34929rm -f conftest.err conftest.$ac_objext \
34930 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34931
34932
34933fi
34934echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34935echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34936
34937 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34938 cat >>confdefs.h <<\_ACEOF
34939#define HAVE_CXA_DEMANGLE 1
34940_ACEOF
34941
34942 fi
34943 fi
eaff0f0d
VZ
34944fi
34945
898beab1
DE
34946if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34947 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34948echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34949 wxUSE_STACKWALKER=no
34950fi
34951
34952
a848cd7e
SC
34953
34954
34955for ac_func in mkstemp mktemp
34956do
34957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34958echo "$as_me:$LINENO: checking for $ac_func" >&5
34959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34960if eval "test \"\${$as_ac_var+set}\" = set"; then
34961 echo $ECHO_N "(cached) $ECHO_C" >&6
34962else
34963 cat >conftest.$ac_ext <<_ACEOF
34964/* confdefs.h. */
34965_ACEOF
34966cat confdefs.h >>conftest.$ac_ext
34967cat >>conftest.$ac_ext <<_ACEOF
34968/* end confdefs.h. */
ac1cb8d3
VS
34969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34971#define $ac_func innocuous_$ac_func
34972
a848cd7e
SC
34973/* System header to define __stub macros and hopefully few prototypes,
34974 which can conflict with char $ac_func (); below.
34975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34976 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34977
a848cd7e
SC
34978#ifdef __STDC__
34979# include <limits.h>
34980#else
34981# include <assert.h>
34982#endif
ac1cb8d3
VS
34983
34984#undef $ac_func
34985
a848cd7e
SC
34986/* Override any gcc2 internal prototype to avoid an error. */
34987#ifdef __cplusplus
34988extern "C"
34989{
34990#endif
34991/* We use char because int might match the return type of a gcc2
34992 builtin and then its argument prototype would still apply. */
34993char $ac_func ();
34994/* The GNU C library defines this for functions which it implements
34995 to always fail with ENOSYS. Some functions are actually named
34996 something starting with __ and the normal name is an alias. */
34997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34998choke me
34999#else
35000char (*f) () = $ac_func;
35001#endif
35002#ifdef __cplusplus
35003}
35004#endif
35005
35006int
35007main ()
35008{
35009return f != $ac_func;
35010 ;
35011 return 0;
35012}
35013_ACEOF
35014rm -f conftest.$ac_objext conftest$ac_exeext
35015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35016 (eval $ac_link) 2>conftest.er1
a848cd7e 35017 ac_status=$?
ac1cb8d3
VS
35018 grep -v '^ *+' conftest.er1 >conftest.err
35019 rm -f conftest.er1
35020 cat conftest.err >&5
a848cd7e
SC
35021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022 (exit $ac_status); } &&
6954625c 35023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35025 (eval $ac_try) 2>&5
35026 ac_status=$?
35027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028 (exit $ac_status); }; } &&
35029 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35035 eval "$as_ac_var=yes"
35036else
35037 echo "$as_me: failed program was:" >&5
35038sed 's/^/| /' conftest.$ac_ext >&5
35039
35040eval "$as_ac_var=no"
35041fi
ac1cb8d3
VS
35042rm -f conftest.err conftest.$ac_objext \
35043 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35044fi
35045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35047if test `eval echo '${'$as_ac_var'}'` = yes; then
35048 cat >>confdefs.h <<_ACEOF
35049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35050_ACEOF
35051 break
35052fi
35053done
35054
35055
35056echo "$as_me:$LINENO: checking for statfs" >&5
35057echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35058if test "${wx_cv_func_statfs+set}" = set; then
35059 echo $ECHO_N "(cached) $ECHO_C" >&6
35060else
35061 cat >conftest.$ac_ext <<_ACEOF
35062/* confdefs.h. */
35063_ACEOF
35064cat confdefs.h >>conftest.$ac_ext
35065cat >>conftest.$ac_ext <<_ACEOF
35066/* end confdefs.h. */
35067
35068 #if defined(__BSD__)
84ae7ca4
VZ
35069 #include <sys/param.h>
35070 #include <sys/mount.h>
a848cd7e 35071 #else
84ae7ca4 35072 #include <sys/vfs.h>
a848cd7e
SC
35073 #endif
35074
35075int
35076main ()
35077{
35078
35079 long l;
35080 struct statfs fs;
35081 statfs("/", &fs);
35082 l = fs.f_bsize;
35083 l += fs.f_blocks;
35084 l += fs.f_bavail;
35085
35086 ;
35087 return 0;
35088}
35089_ACEOF
35090rm -f conftest.$ac_objext
35091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35092 (eval $ac_compile) 2>conftest.er1
a848cd7e 35093 ac_status=$?
ac1cb8d3
VS
35094 grep -v '^ *+' conftest.er1 >conftest.err
35095 rm -f conftest.er1
35096 cat conftest.err >&5
a848cd7e
SC
35097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098 (exit $ac_status); } &&
6954625c 35099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35101 (eval $ac_try) 2>&5
35102 ac_status=$?
35103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104 (exit $ac_status); }; } &&
35105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35107 (eval $ac_try) 2>&5
35108 ac_status=$?
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); }; }; then
84ae7ca4 35111 wx_cv_func_statfs=yes
a848cd7e
SC
35112else
35113 echo "$as_me: failed program was:" >&5
35114sed 's/^/| /' conftest.$ac_ext >&5
35115
84ae7ca4 35116wx_cv_func_statfs=no
a848cd7e
SC
35117
35118fi
ac1cb8d3 35119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35120
35121fi
35122echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35123echo "${ECHO_T}$wx_cv_func_statfs" >&6
35124
35125if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35126 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35127echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35128if test "${wx_cv_func_statfs_decl+set}" = set; then
35129 echo $ECHO_N "(cached) $ECHO_C" >&6
35130else
0683aca6
VZ
35131 cat >conftest.$ac_ext <<_ACEOF
35132/* confdefs.h. */
35133_ACEOF
35134cat confdefs.h >>conftest.$ac_ext
35135cat >>conftest.$ac_ext <<_ACEOF
35136/* end confdefs.h. */
84ae7ca4 35137
0683aca6
VZ
35138 #if defined(__BSD__)
35139 #include <sys/param.h>
35140 #include <sys/mount.h>
35141 #else
35142 #include <sys/vfs.h>
35143 #endif
35144
35145int
35146main ()
35147{
35148
35149 struct statfs fs;
35150 statfs("", &fs);
35151
35152 ;
35153 return 0;
35154}
35155_ACEOF
35156rm -f conftest.$ac_objext
35157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35158 (eval $ac_compile) 2>conftest.er1
35159 ac_status=$?
35160 grep -v '^ *+' conftest.er1 >conftest.err
35161 rm -f conftest.er1
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); } &&
6954625c 35165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35167 (eval $ac_try) 2>&5
35168 ac_status=$?
35169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35170 (exit $ac_status); }; } &&
35171 { ac_try='test -s conftest.$ac_objext'
35172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35173 (eval $ac_try) 2>&5
35174 ac_status=$?
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); }; }; then
35177 wx_cv_func_statfs_decl=yes
35178else
35179 echo "$as_me: failed program was:" >&5
35180sed 's/^/| /' conftest.$ac_ext >&5
35181
35182wx_cv_func_statfs_decl=no
35183
35184fi
35185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35186
35187fi
35188echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35189echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35190
35191 if test "$wx_cv_func_statfs_decl" = "yes"; then
35192 cat >>confdefs.h <<\_ACEOF
35193#define HAVE_STATFS_DECL 1
35194_ACEOF
35195
35196 fi
35197
a848cd7e
SC
35198 wx_cv_type_statvfs_t="struct statfs"
35199 cat >>confdefs.h <<\_ACEOF
35200#define HAVE_STATFS 1
35201_ACEOF
35202
35203else
35204 echo "$as_me:$LINENO: checking for statvfs" >&5
35205echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35206if test "${wx_cv_func_statvfs+set}" = set; then
35207 echo $ECHO_N "(cached) $ECHO_C" >&6
35208else
35209 cat >conftest.$ac_ext <<_ACEOF
35210/* confdefs.h. */
35211_ACEOF
35212cat confdefs.h >>conftest.$ac_ext
35213cat >>conftest.$ac_ext <<_ACEOF
35214/* end confdefs.h. */
35215
35216 #include <stddef.h>
35217 #include <sys/statvfs.h>
35218
35219int
35220main ()
35221{
35222
35223 statvfs("/", NULL);
35224
35225 ;
35226 return 0;
35227}
35228_ACEOF
35229rm -f conftest.$ac_objext
35230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35231 (eval $ac_compile) 2>conftest.er1
a848cd7e 35232 ac_status=$?
ac1cb8d3
VS
35233 grep -v '^ *+' conftest.er1 >conftest.err
35234 rm -f conftest.er1
35235 cat conftest.err >&5
a848cd7e
SC
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); } &&
6954625c 35238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35241 ac_status=$?
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; } &&
35244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35246 (eval $ac_try) 2>&5
35247 ac_status=$?
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); }; }; then
35250 wx_cv_func_statvfs=yes
35251else
35252 echo "$as_me: failed program was:" >&5
35253sed 's/^/| /' conftest.$ac_ext >&5
35254
35255wx_cv_func_statvfs=no
35256
35257fi
ac1cb8d3 35258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35259
35260fi
35261echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35262echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35263
35264 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35265 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35266echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35267if test "${wx_cv_type_statvfs_t+set}" = set; then
35268 echo $ECHO_N "(cached) $ECHO_C" >&6
35269else
35270 cat >conftest.$ac_ext <<_ACEOF
35271/* confdefs.h. */
35272_ACEOF
35273cat confdefs.h >>conftest.$ac_ext
35274cat >>conftest.$ac_ext <<_ACEOF
35275/* end confdefs.h. */
35276
35277 #include <sys/statvfs.h>
35278
35279int
35280main ()
35281{
35282
35283 long l;
35284 statvfs_t fs;
35285 statvfs("/", &fs);
35286 l = fs.f_bsize;
35287 l += fs.f_blocks;
35288 l += fs.f_bavail;
35289
35290 ;
35291 return 0;
35292}
35293_ACEOF
35294rm -f conftest.$ac_objext
35295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35296 (eval $ac_compile) 2>conftest.er1
a848cd7e 35297 ac_status=$?
ac1cb8d3
VS
35298 grep -v '^ *+' conftest.er1 >conftest.err
35299 rm -f conftest.er1
35300 cat conftest.err >&5
a848cd7e
SC
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); } &&
6954625c 35303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305 (eval $ac_try) 2>&5
35306 ac_status=$?
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); }; } &&
35309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35312 ac_status=$?
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; }; then
35315 wx_cv_type_statvfs_t=statvfs_t
35316else
35317 echo "$as_me: failed program was:" >&5
35318sed 's/^/| /' conftest.$ac_ext >&5
35319
35320
35321 cat >conftest.$ac_ext <<_ACEOF
35322/* confdefs.h. */
35323_ACEOF
35324cat confdefs.h >>conftest.$ac_ext
35325cat >>conftest.$ac_ext <<_ACEOF
35326/* end confdefs.h. */
35327
35328 #include <sys/statvfs.h>
35329
35330int
35331main ()
35332{
35333
35334 long l;
35335 struct statvfs fs;
35336 statvfs("/", &fs);
35337 l = fs.f_bsize;
35338 l += fs.f_blocks;
35339 l += fs.f_bavail;
35340
35341 ;
35342 return 0;
35343}
35344_ACEOF
35345rm -f conftest.$ac_objext
35346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35347 (eval $ac_compile) 2>conftest.er1
a848cd7e 35348 ac_status=$?
ac1cb8d3
VS
35349 grep -v '^ *+' conftest.er1 >conftest.err
35350 rm -f conftest.er1
35351 cat conftest.err >&5
a848cd7e
SC
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); } &&
6954625c 35354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356 (eval $ac_try) 2>&5
35357 ac_status=$?
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); }; } &&
35360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35362 (eval $ac_try) 2>&5
35363 ac_status=$?
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); }; }; then
35366 wx_cv_type_statvfs_t="struct statvfs"
35367else
35368 echo "$as_me: failed program was:" >&5
35369sed 's/^/| /' conftest.$ac_ext >&5
35370
35371wx_cv_type_statvfs_t="unknown"
35372
35373fi
ac1cb8d3 35374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35375
35376
35377fi
ac1cb8d3 35378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35379
35380fi
35381echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35382echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35383
a848cd7e
SC
35384 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35385 cat >>confdefs.h <<\_ACEOF
35386#define HAVE_STATVFS 1
35387_ACEOF
35388
35389 fi
35390 else
35391 wx_cv_type_statvfs_t="unknown"
35392 fi
35393fi
35394
35395if test "$wx_cv_type_statvfs_t" != "unknown"; then
35396 cat >>confdefs.h <<_ACEOF
35397#define WX_STATFS_T $wx_cv_type_statvfs_t
35398_ACEOF
35399
35400else
35401 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35402echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35403fi
35404
35405if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35406
35407
35408for ac_func in fcntl flock
35409do
35410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35411echo "$as_me:$LINENO: checking for $ac_func" >&5
35412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35413if eval "test \"\${$as_ac_var+set}\" = set"; then
35414 echo $ECHO_N "(cached) $ECHO_C" >&6
35415else
35416 cat >conftest.$ac_ext <<_ACEOF
35417/* confdefs.h. */
35418_ACEOF
35419cat confdefs.h >>conftest.$ac_ext
35420cat >>conftest.$ac_ext <<_ACEOF
35421/* end confdefs.h. */
ac1cb8d3
VS
35422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35424#define $ac_func innocuous_$ac_func
35425
a848cd7e
SC
35426/* System header to define __stub macros and hopefully few prototypes,
35427 which can conflict with char $ac_func (); below.
35428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35429 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35430
a848cd7e
SC
35431#ifdef __STDC__
35432# include <limits.h>
35433#else
35434# include <assert.h>
35435#endif
ac1cb8d3
VS
35436
35437#undef $ac_func
35438
a848cd7e
SC
35439/* Override any gcc2 internal prototype to avoid an error. */
35440#ifdef __cplusplus
35441extern "C"
35442{
35443#endif
35444/* We use char because int might match the return type of a gcc2
35445 builtin and then its argument prototype would still apply. */
35446char $ac_func ();
35447/* The GNU C library defines this for functions which it implements
35448 to always fail with ENOSYS. Some functions are actually named
35449 something starting with __ and the normal name is an alias. */
35450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35451choke me
35452#else
35453char (*f) () = $ac_func;
35454#endif
35455#ifdef __cplusplus
35456}
35457#endif
35458
35459int
35460main ()
35461{
35462return f != $ac_func;
35463 ;
35464 return 0;
35465}
35466_ACEOF
35467rm -f conftest.$ac_objext conftest$ac_exeext
35468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35469 (eval $ac_link) 2>conftest.er1
a848cd7e 35470 ac_status=$?
ac1cb8d3
VS
35471 grep -v '^ *+' conftest.er1 >conftest.err
35472 rm -f conftest.er1
35473 cat conftest.err >&5
a848cd7e
SC
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); } &&
6954625c 35476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35478 (eval $ac_try) 2>&5
35479 ac_status=$?
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); }; } &&
35482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35484 (eval $ac_try) 2>&5
35485 ac_status=$?
35486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487 (exit $ac_status); }; }; then
35488 eval "$as_ac_var=yes"
35489else
35490 echo "$as_me: failed program was:" >&5
35491sed 's/^/| /' conftest.$ac_ext >&5
35492
35493eval "$as_ac_var=no"
35494fi
ac1cb8d3
VS
35495rm -f conftest.err conftest.$ac_objext \
35496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35497fi
35498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35500if test `eval echo '${'$as_ac_var'}'` = yes; then
35501 cat >>confdefs.h <<_ACEOF
35502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35503_ACEOF
35504 break
35505fi
35506done
35507
35508
35509 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35510 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35511echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35512 wxUSE_SNGLINST_CHECKER=no
35513 fi
35514fi
35515
35516
35517for ac_func in timegm
35518do
35519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35520echo "$as_me:$LINENO: checking for $ac_func" >&5
35521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35522if eval "test \"\${$as_ac_var+set}\" = set"; then
35523 echo $ECHO_N "(cached) $ECHO_C" >&6
35524else
35525 cat >conftest.$ac_ext <<_ACEOF
35526/* confdefs.h. */
35527_ACEOF
35528cat confdefs.h >>conftest.$ac_ext
35529cat >>conftest.$ac_ext <<_ACEOF
35530/* end confdefs.h. */
ac1cb8d3
VS
35531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35533#define $ac_func innocuous_$ac_func
35534
a848cd7e
SC
35535/* System header to define __stub macros and hopefully few prototypes,
35536 which can conflict with char $ac_func (); below.
35537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35539
a848cd7e
SC
35540#ifdef __STDC__
35541# include <limits.h>
35542#else
35543# include <assert.h>
35544#endif
ac1cb8d3
VS
35545
35546#undef $ac_func
35547
a848cd7e
SC
35548/* Override any gcc2 internal prototype to avoid an error. */
35549#ifdef __cplusplus
35550extern "C"
35551{
35552#endif
35553/* We use char because int might match the return type of a gcc2
35554 builtin and then its argument prototype would still apply. */
35555char $ac_func ();
35556/* The GNU C library defines this for functions which it implements
35557 to always fail with ENOSYS. Some functions are actually named
35558 something starting with __ and the normal name is an alias. */
35559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35560choke me
35561#else
35562char (*f) () = $ac_func;
35563#endif
35564#ifdef __cplusplus
35565}
35566#endif
35567
35568int
35569main ()
35570{
35571return f != $ac_func;
35572 ;
35573 return 0;
35574}
35575_ACEOF
35576rm -f conftest.$ac_objext conftest$ac_exeext
35577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35578 (eval $ac_link) 2>conftest.er1
a848cd7e 35579 ac_status=$?
ac1cb8d3
VS
35580 grep -v '^ *+' conftest.er1 >conftest.err
35581 rm -f conftest.er1
35582 cat conftest.err >&5
a848cd7e
SC
35583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35584 (exit $ac_status); } &&
6954625c 35585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35587 (eval $ac_try) 2>&5
35588 ac_status=$?
35589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); }; } &&
35591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593 (eval $ac_try) 2>&5
35594 ac_status=$?
35595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); }; }; then
35597 eval "$as_ac_var=yes"
35598else
35599 echo "$as_me: failed program was:" >&5
35600sed 's/^/| /' conftest.$ac_ext >&5
35601
35602eval "$as_ac_var=no"
35603fi
ac1cb8d3
VS
35604rm -f conftest.err conftest.$ac_objext \
35605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35606fi
35607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35609if test `eval echo '${'$as_ac_var'}'` = yes; then
35610 cat >>confdefs.h <<_ACEOF
35611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35612_ACEOF
35613
35614fi
35615done
35616
35617
35618
35619
35620for ac_func in putenv setenv
35621do
35622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35623echo "$as_me:$LINENO: checking for $ac_func" >&5
35624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35625if eval "test \"\${$as_ac_var+set}\" = set"; then
35626 echo $ECHO_N "(cached) $ECHO_C" >&6
35627else
35628 cat >conftest.$ac_ext <<_ACEOF
35629/* confdefs.h. */
35630_ACEOF
35631cat confdefs.h >>conftest.$ac_ext
35632cat >>conftest.$ac_ext <<_ACEOF
35633/* end confdefs.h. */
ac1cb8d3
VS
35634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35636#define $ac_func innocuous_$ac_func
35637
a848cd7e
SC
35638/* System header to define __stub macros and hopefully few prototypes,
35639 which can conflict with char $ac_func (); below.
35640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35642
a848cd7e
SC
35643#ifdef __STDC__
35644# include <limits.h>
35645#else
35646# include <assert.h>
35647#endif
ac1cb8d3
VS
35648
35649#undef $ac_func
35650
a848cd7e
SC
35651/* Override any gcc2 internal prototype to avoid an error. */
35652#ifdef __cplusplus
35653extern "C"
35654{
35655#endif
35656/* We use char because int might match the return type of a gcc2
35657 builtin and then its argument prototype would still apply. */
35658char $ac_func ();
35659/* The GNU C library defines this for functions which it implements
35660 to always fail with ENOSYS. Some functions are actually named
35661 something starting with __ and the normal name is an alias. */
35662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35663choke me
35664#else
35665char (*f) () = $ac_func;
35666#endif
35667#ifdef __cplusplus
35668}
35669#endif
35670
35671int
35672main ()
35673{
35674return f != $ac_func;
35675 ;
35676 return 0;
35677}
35678_ACEOF
35679rm -f conftest.$ac_objext conftest$ac_exeext
35680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35681 (eval $ac_link) 2>conftest.er1
a848cd7e 35682 ac_status=$?
ac1cb8d3
VS
35683 grep -v '^ *+' conftest.er1 >conftest.err
35684 rm -f conftest.er1
35685 cat conftest.err >&5
a848cd7e
SC
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); } &&
6954625c 35688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35691 ac_status=$?
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; } &&
35694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35696 (eval $ac_try) 2>&5
35697 ac_status=$?
35698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699 (exit $ac_status); }; }; then
35700 eval "$as_ac_var=yes"
35701else
35702 echo "$as_me: failed program was:" >&5
35703sed 's/^/| /' conftest.$ac_ext >&5
35704
35705eval "$as_ac_var=no"
35706fi
ac1cb8d3
VS
35707rm -f conftest.err conftest.$ac_objext \
35708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35709fi
35710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35712if test `eval echo '${'$as_ac_var'}'` = yes; then
35713 cat >>confdefs.h <<_ACEOF
35714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35715_ACEOF
35716 break
35717fi
35718done
35719
35720
35721HAVE_SOME_SLEEP_FUNC=0
35722if test "$USE_BEOS" = 1; then
35723 cat >>confdefs.h <<\_ACEOF
35724#define HAVE_SLEEP 1
35725_ACEOF
35726
35727 HAVE_SOME_SLEEP_FUNC=1
35728fi
35729
35730if test "$USE_DARWIN" = 1; then
35731 cat >>confdefs.h <<\_ACEOF
35732#define HAVE_USLEEP 1
35733_ACEOF
35734
35735 HAVE_SOME_SLEEP_FUNC=1
35736fi
35737
35738if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35739 POSIX4_LINK=
35740
35741for ac_func in nanosleep
35742do
35743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35744echo "$as_me:$LINENO: checking for $ac_func" >&5
35745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35746if eval "test \"\${$as_ac_var+set}\" = set"; then
35747 echo $ECHO_N "(cached) $ECHO_C" >&6
35748else
35749 cat >conftest.$ac_ext <<_ACEOF
35750/* confdefs.h. */
35751_ACEOF
35752cat confdefs.h >>conftest.$ac_ext
35753cat >>conftest.$ac_ext <<_ACEOF
35754/* end confdefs.h. */
ac1cb8d3
VS
35755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35757#define $ac_func innocuous_$ac_func
35758
a848cd7e
SC
35759/* System header to define __stub macros and hopefully few prototypes,
35760 which can conflict with char $ac_func (); below.
35761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35762 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35763
a848cd7e
SC
35764#ifdef __STDC__
35765# include <limits.h>
35766#else
35767# include <assert.h>
35768#endif
ac1cb8d3
VS
35769
35770#undef $ac_func
35771
a848cd7e
SC
35772/* Override any gcc2 internal prototype to avoid an error. */
35773#ifdef __cplusplus
35774extern "C"
35775{
35776#endif
35777/* We use char because int might match the return type of a gcc2
35778 builtin and then its argument prototype would still apply. */
35779char $ac_func ();
35780/* The GNU C library defines this for functions which it implements
35781 to always fail with ENOSYS. Some functions are actually named
35782 something starting with __ and the normal name is an alias. */
35783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35784choke me
35785#else
35786char (*f) () = $ac_func;
35787#endif
35788#ifdef __cplusplus
35789}
35790#endif
35791
35792int
35793main ()
35794{
35795return f != $ac_func;
35796 ;
35797 return 0;
35798}
35799_ACEOF
35800rm -f conftest.$ac_objext conftest$ac_exeext
35801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35802 (eval $ac_link) 2>conftest.er1
a848cd7e 35803 ac_status=$?
ac1cb8d3
VS
35804 grep -v '^ *+' conftest.er1 >conftest.err
35805 rm -f conftest.er1
35806 cat conftest.err >&5
a848cd7e
SC
35807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 (exit $ac_status); } &&
6954625c 35809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35811 (eval $ac_try) 2>&5
35812 ac_status=$?
35813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 (exit $ac_status); }; } &&
35815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817 (eval $ac_try) 2>&5
35818 ac_status=$?
35819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 (exit $ac_status); }; }; then
35821 eval "$as_ac_var=yes"
35822else
35823 echo "$as_me: failed program was:" >&5
35824sed 's/^/| /' conftest.$ac_ext >&5
35825
35826eval "$as_ac_var=no"
35827fi
ac1cb8d3
VS
35828rm -f conftest.err conftest.$ac_objext \
35829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35830fi
35831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35833if test `eval echo '${'$as_ac_var'}'` = yes; then
35834 cat >>confdefs.h <<_ACEOF
35835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35836_ACEOF
35837 cat >>confdefs.h <<\_ACEOF
35838#define HAVE_NANOSLEEP 1
35839_ACEOF
35840
35841else
35842
35843 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35844echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35845if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35846 echo $ECHO_N "(cached) $ECHO_C" >&6
35847else
35848 ac_check_lib_save_LIBS=$LIBS
35849LIBS="-lposix4 $LIBS"
35850cat >conftest.$ac_ext <<_ACEOF
35851/* confdefs.h. */
35852_ACEOF
35853cat confdefs.h >>conftest.$ac_ext
35854cat >>conftest.$ac_ext <<_ACEOF
35855/* end confdefs.h. */
35856
35857/* Override any gcc2 internal prototype to avoid an error. */
35858#ifdef __cplusplus
35859extern "C"
35860#endif
35861/* We use char because int might match the return type of a gcc2
35862 builtin and then its argument prototype would still apply. */
35863char nanosleep ();
35864int
35865main ()
35866{
35867nanosleep ();
35868 ;
35869 return 0;
35870}
35871_ACEOF
35872rm -f conftest.$ac_objext conftest$ac_exeext
35873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35874 (eval $ac_link) 2>conftest.er1
a848cd7e 35875 ac_status=$?
ac1cb8d3
VS
35876 grep -v '^ *+' conftest.er1 >conftest.err
35877 rm -f conftest.er1
35878 cat conftest.err >&5
a848cd7e
SC
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } &&
6954625c 35881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 (eval $ac_try) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); }; } &&
35887 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 (eval $ac_try) 2>&5
35890 ac_status=$?
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; }; then
35893 ac_cv_lib_posix4_nanosleep=yes
35894else
35895 echo "$as_me: failed program was:" >&5
35896sed 's/^/| /' conftest.$ac_ext >&5
35897
35898ac_cv_lib_posix4_nanosleep=no
35899fi
ac1cb8d3
VS
35900rm -f conftest.err conftest.$ac_objext \
35901 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35902LIBS=$ac_check_lib_save_LIBS
35903fi
35904echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35905echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35906if test $ac_cv_lib_posix4_nanosleep = yes; then
35907
35908 cat >>confdefs.h <<\_ACEOF
35909#define HAVE_NANOSLEEP 1
35910_ACEOF
35911
35912 POSIX4_LINK=" -lposix4"
35913
35914else
35915
35916
35917for ac_func in usleep
35918do
35919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35920echo "$as_me:$LINENO: checking for $ac_func" >&5
35921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35922if eval "test \"\${$as_ac_var+set}\" = set"; then
35923 echo $ECHO_N "(cached) $ECHO_C" >&6
35924else
35925 cat >conftest.$ac_ext <<_ACEOF
35926/* confdefs.h. */
35927_ACEOF
35928cat confdefs.h >>conftest.$ac_ext
35929cat >>conftest.$ac_ext <<_ACEOF
35930/* end confdefs.h. */
ac1cb8d3
VS
35931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35933#define $ac_func innocuous_$ac_func
35934
a848cd7e
SC
35935/* System header to define __stub macros and hopefully few prototypes,
35936 which can conflict with char $ac_func (); below.
35937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35939
a848cd7e
SC
35940#ifdef __STDC__
35941# include <limits.h>
35942#else
35943# include <assert.h>
35944#endif
ac1cb8d3
VS
35945
35946#undef $ac_func
35947
a848cd7e
SC
35948/* Override any gcc2 internal prototype to avoid an error. */
35949#ifdef __cplusplus
35950extern "C"
35951{
35952#endif
35953/* We use char because int might match the return type of a gcc2
35954 builtin and then its argument prototype would still apply. */
35955char $ac_func ();
35956/* The GNU C library defines this for functions which it implements
35957 to always fail with ENOSYS. Some functions are actually named
35958 something starting with __ and the normal name is an alias. */
35959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35960choke me
35961#else
35962char (*f) () = $ac_func;
35963#endif
35964#ifdef __cplusplus
35965}
35966#endif
35967
35968int
35969main ()
35970{
35971return f != $ac_func;
35972 ;
35973 return 0;
35974}
35975_ACEOF
35976rm -f conftest.$ac_objext conftest$ac_exeext
35977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35978 (eval $ac_link) 2>conftest.er1
a848cd7e 35979 ac_status=$?
ac1cb8d3
VS
35980 grep -v '^ *+' conftest.er1 >conftest.err
35981 rm -f conftest.er1
35982 cat conftest.err >&5
a848cd7e
SC
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } &&
6954625c 35985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35987 (eval $ac_try) 2>&5
35988 ac_status=$?
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); }; } &&
35991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; }; then
35997 eval "$as_ac_var=yes"
35998else
35999 echo "$as_me: failed program was:" >&5
36000sed 's/^/| /' conftest.$ac_ext >&5
36001
36002eval "$as_ac_var=no"
36003fi
ac1cb8d3
VS
36004rm -f conftest.err conftest.$ac_objext \
36005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36006fi
36007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36009if test `eval echo '${'$as_ac_var'}'` = yes; then
36010 cat >>confdefs.h <<_ACEOF
36011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36012_ACEOF
36013 cat >>confdefs.h <<\_ACEOF
36014#define HAVE_USLEEP 1
36015_ACEOF
36016
36017else
36018 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36019echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36020
36021fi
36022done
36023
36024
36025
36026fi
36027
36028
36029
36030fi
36031done
36032
36033fi
36034
36035
36036
36037for ac_func in uname gethostname
36038do
36039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36040echo "$as_me:$LINENO: checking for $ac_func" >&5
36041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36042if eval "test \"\${$as_ac_var+set}\" = set"; then
36043 echo $ECHO_N "(cached) $ECHO_C" >&6
36044else
36045 cat >conftest.$ac_ext <<_ACEOF
36046/* confdefs.h. */
36047_ACEOF
36048cat confdefs.h >>conftest.$ac_ext
36049cat >>conftest.$ac_ext <<_ACEOF
36050/* end confdefs.h. */
ac1cb8d3
VS
36051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36053#define $ac_func innocuous_$ac_func
36054
a848cd7e
SC
36055/* System header to define __stub macros and hopefully few prototypes,
36056 which can conflict with char $ac_func (); below.
36057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36058 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36059
a848cd7e
SC
36060#ifdef __STDC__
36061# include <limits.h>
36062#else
36063# include <assert.h>
36064#endif
ac1cb8d3
VS
36065
36066#undef $ac_func
36067
a848cd7e
SC
36068/* Override any gcc2 internal prototype to avoid an error. */
36069#ifdef __cplusplus
36070extern "C"
36071{
36072#endif
36073/* We use char because int might match the return type of a gcc2
36074 builtin and then its argument prototype would still apply. */
36075char $ac_func ();
36076/* The GNU C library defines this for functions which it implements
36077 to always fail with ENOSYS. Some functions are actually named
36078 something starting with __ and the normal name is an alias. */
36079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36080choke me
36081#else
36082char (*f) () = $ac_func;
36083#endif
36084#ifdef __cplusplus
36085}
36086#endif
36087
36088int
36089main ()
36090{
36091return f != $ac_func;
36092 ;
36093 return 0;
36094}
36095_ACEOF
36096rm -f conftest.$ac_objext conftest$ac_exeext
36097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36098 (eval $ac_link) 2>conftest.er1
a848cd7e 36099 ac_status=$?
ac1cb8d3
VS
36100 grep -v '^ *+' conftest.er1 >conftest.err
36101 rm -f conftest.er1
36102 cat conftest.err >&5
a848cd7e
SC
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); } &&
6954625c 36105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36107 (eval $ac_try) 2>&5
36108 ac_status=$?
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); }; } &&
36111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36113 (eval $ac_try) 2>&5
36114 ac_status=$?
36115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116 (exit $ac_status); }; }; then
36117 eval "$as_ac_var=yes"
36118else
36119 echo "$as_me: failed program was:" >&5
36120sed 's/^/| /' conftest.$ac_ext >&5
36121
36122eval "$as_ac_var=no"
36123fi
ac1cb8d3
VS
36124rm -f conftest.err conftest.$ac_objext \
36125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36126fi
36127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36129if test `eval echo '${'$as_ac_var'}'` = yes; then
36130 cat >>confdefs.h <<_ACEOF
36131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36132_ACEOF
36133 break
36134fi
36135done
36136
36137
a848cd7e
SC
36138
36139for ac_func in strtok_r
36140do
36141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36142echo "$as_me:$LINENO: checking for $ac_func" >&5
36143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36144if eval "test \"\${$as_ac_var+set}\" = set"; then
36145 echo $ECHO_N "(cached) $ECHO_C" >&6
36146else
36147 cat >conftest.$ac_ext <<_ACEOF
36148/* confdefs.h. */
36149_ACEOF
36150cat confdefs.h >>conftest.$ac_ext
36151cat >>conftest.$ac_ext <<_ACEOF
36152/* end confdefs.h. */
ac1cb8d3
VS
36153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36155#define $ac_func innocuous_$ac_func
36156
a848cd7e
SC
36157/* System header to define __stub macros and hopefully few prototypes,
36158 which can conflict with char $ac_func (); below.
36159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36161
a848cd7e
SC
36162#ifdef __STDC__
36163# include <limits.h>
36164#else
36165# include <assert.h>
36166#endif
ac1cb8d3
VS
36167
36168#undef $ac_func
36169
a848cd7e
SC
36170/* Override any gcc2 internal prototype to avoid an error. */
36171#ifdef __cplusplus
36172extern "C"
36173{
36174#endif
36175/* We use char because int might match the return type of a gcc2
36176 builtin and then its argument prototype would still apply. */
36177char $ac_func ();
36178/* The GNU C library defines this for functions which it implements
36179 to always fail with ENOSYS. Some functions are actually named
36180 something starting with __ and the normal name is an alias. */
36181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36182choke me
36183#else
36184char (*f) () = $ac_func;
36185#endif
36186#ifdef __cplusplus
36187}
36188#endif
36189
36190int
36191main ()
36192{
36193return f != $ac_func;
36194 ;
36195 return 0;
36196}
36197_ACEOF
36198rm -f conftest.$ac_objext conftest$ac_exeext
36199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36200 (eval $ac_link) 2>conftest.er1
a848cd7e 36201 ac_status=$?
ac1cb8d3
VS
36202 grep -v '^ *+' conftest.er1 >conftest.err
36203 rm -f conftest.er1
36204 cat conftest.err >&5
a848cd7e
SC
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
6954625c 36207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36210 ac_status=$?
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; } &&
36213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215 (eval $ac_try) 2>&5
36216 ac_status=$?
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; }; then
36219 eval "$as_ac_var=yes"
36220else
36221 echo "$as_me: failed program was:" >&5
36222sed 's/^/| /' conftest.$ac_ext >&5
36223
36224eval "$as_ac_var=no"
36225fi
ac1cb8d3
VS
36226rm -f conftest.err conftest.$ac_objext \
36227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36228fi
36229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36231if test `eval echo '${'$as_ac_var'}'` = yes; then
36232 cat >>confdefs.h <<_ACEOF
36233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36234_ACEOF
36235
36236fi
36237done
36238
36239
a848cd7e
SC
36240INET_LINK=
36241
36242for ac_func in inet_addr
36243do
36244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36245echo "$as_me:$LINENO: checking for $ac_func" >&5
36246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36247if eval "test \"\${$as_ac_var+set}\" = set"; then
36248 echo $ECHO_N "(cached) $ECHO_C" >&6
36249else
36250 cat >conftest.$ac_ext <<_ACEOF
36251/* confdefs.h. */
36252_ACEOF
36253cat confdefs.h >>conftest.$ac_ext
36254cat >>conftest.$ac_ext <<_ACEOF
36255/* end confdefs.h. */
ac1cb8d3
VS
36256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36258#define $ac_func innocuous_$ac_func
36259
a848cd7e
SC
36260/* System header to define __stub macros and hopefully few prototypes,
36261 which can conflict with char $ac_func (); below.
36262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36264
a848cd7e
SC
36265#ifdef __STDC__
36266# include <limits.h>
36267#else
36268# include <assert.h>
36269#endif
ac1cb8d3
VS
36270
36271#undef $ac_func
36272
a848cd7e
SC
36273/* Override any gcc2 internal prototype to avoid an error. */
36274#ifdef __cplusplus
36275extern "C"
36276{
36277#endif
36278/* We use char because int might match the return type of a gcc2
36279 builtin and then its argument prototype would still apply. */
36280char $ac_func ();
36281/* The GNU C library defines this for functions which it implements
36282 to always fail with ENOSYS. Some functions are actually named
36283 something starting with __ and the normal name is an alias. */
36284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36285choke me
36286#else
36287char (*f) () = $ac_func;
36288#endif
36289#ifdef __cplusplus
36290}
36291#endif
36292
36293int
36294main ()
36295{
36296return f != $ac_func;
36297 ;
36298 return 0;
36299}
36300_ACEOF
36301rm -f conftest.$ac_objext conftest$ac_exeext
36302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36303 (eval $ac_link) 2>conftest.er1
a848cd7e 36304 ac_status=$?
ac1cb8d3
VS
36305 grep -v '^ *+' conftest.er1 >conftest.err
36306 rm -f conftest.er1
36307 cat conftest.err >&5
a848cd7e
SC
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); } &&
6954625c 36310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312 (eval $ac_try) 2>&5
36313 ac_status=$?
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); }; } &&
36316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36318 (eval $ac_try) 2>&5
36319 ac_status=$?
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); }; }; then
36322 eval "$as_ac_var=yes"
36323else
36324 echo "$as_me: failed program was:" >&5
36325sed 's/^/| /' conftest.$ac_ext >&5
36326
36327eval "$as_ac_var=no"
36328fi
ac1cb8d3
VS
36329rm -f conftest.err conftest.$ac_objext \
36330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36331fi
36332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36334if test `eval echo '${'$as_ac_var'}'` = yes; then
36335 cat >>confdefs.h <<_ACEOF
36336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36337_ACEOF
36338 cat >>confdefs.h <<\_ACEOF
36339#define HAVE_INET_ADDR 1
36340_ACEOF
36341
36342else
36343
36344 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36345echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36346if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36347 echo $ECHO_N "(cached) $ECHO_C" >&6
36348else
36349 ac_check_lib_save_LIBS=$LIBS
36350LIBS="-lnsl $LIBS"
36351cat >conftest.$ac_ext <<_ACEOF
36352/* confdefs.h. */
36353_ACEOF
36354cat confdefs.h >>conftest.$ac_ext
36355cat >>conftest.$ac_ext <<_ACEOF
36356/* end confdefs.h. */
36357
36358/* Override any gcc2 internal prototype to avoid an error. */
36359#ifdef __cplusplus
36360extern "C"
36361#endif
36362/* We use char because int might match the return type of a gcc2
36363 builtin and then its argument prototype would still apply. */
36364char inet_addr ();
36365int
36366main ()
36367{
36368inet_addr ();
36369 ;
36370 return 0;
36371}
36372_ACEOF
36373rm -f conftest.$ac_objext conftest$ac_exeext
36374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36375 (eval $ac_link) 2>conftest.er1
a848cd7e 36376 ac_status=$?
ac1cb8d3
VS
36377 grep -v '^ *+' conftest.er1 >conftest.err
36378 rm -f conftest.er1
36379 cat conftest.err >&5
a848cd7e
SC
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } &&
6954625c 36382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36384 (eval $ac_try) 2>&5
36385 ac_status=$?
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); }; } &&
36388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394 ac_cv_lib_nsl_inet_addr=yes
36395else
36396 echo "$as_me: failed program was:" >&5
36397sed 's/^/| /' conftest.$ac_ext >&5
36398
36399ac_cv_lib_nsl_inet_addr=no
36400fi
ac1cb8d3
VS
36401rm -f conftest.err conftest.$ac_objext \
36402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36403LIBS=$ac_check_lib_save_LIBS
36404fi
36405echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36406echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36407if test $ac_cv_lib_nsl_inet_addr = yes; then
36408 INET_LINK="nsl"
36409else
36410
36411 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36412echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36413if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36414 echo $ECHO_N "(cached) $ECHO_C" >&6
36415else
36416 ac_check_lib_save_LIBS=$LIBS
36417LIBS="-lresolv $LIBS"
36418cat >conftest.$ac_ext <<_ACEOF
36419/* confdefs.h. */
36420_ACEOF
36421cat confdefs.h >>conftest.$ac_ext
36422cat >>conftest.$ac_ext <<_ACEOF
36423/* end confdefs.h. */
36424
36425/* Override any gcc2 internal prototype to avoid an error. */
36426#ifdef __cplusplus
36427extern "C"
36428#endif
36429/* We use char because int might match the return type of a gcc2
36430 builtin and then its argument prototype would still apply. */
36431char inet_addr ();
36432int
36433main ()
36434{
36435inet_addr ();
36436 ;
36437 return 0;
36438}
36439_ACEOF
36440rm -f conftest.$ac_objext conftest$ac_exeext
36441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36442 (eval $ac_link) 2>conftest.er1
a848cd7e 36443 ac_status=$?
ac1cb8d3
VS
36444 grep -v '^ *+' conftest.er1 >conftest.err
36445 rm -f conftest.er1
36446 cat conftest.err >&5
a848cd7e
SC
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); } &&
6954625c 36449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36451 (eval $ac_try) 2>&5
36452 ac_status=$?
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); }; } &&
36455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457 (eval $ac_try) 2>&5
36458 ac_status=$?
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); }; }; then
36461 ac_cv_lib_resolv_inet_addr=yes
36462else
36463 echo "$as_me: failed program was:" >&5
36464sed 's/^/| /' conftest.$ac_ext >&5
36465
36466ac_cv_lib_resolv_inet_addr=no
36467fi
ac1cb8d3
VS
36468rm -f conftest.err conftest.$ac_objext \
36469 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36470LIBS=$ac_check_lib_save_LIBS
36471fi
36472echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36473echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36474if test $ac_cv_lib_resolv_inet_addr = yes; then
36475 INET_LINK="resolv"
36476else
36477
36478 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36479echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36480if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36481 echo $ECHO_N "(cached) $ECHO_C" >&6
36482else
36483 ac_check_lib_save_LIBS=$LIBS
36484LIBS="-lsocket $LIBS"
36485cat >conftest.$ac_ext <<_ACEOF
36486/* confdefs.h. */
36487_ACEOF
36488cat confdefs.h >>conftest.$ac_ext
36489cat >>conftest.$ac_ext <<_ACEOF
36490/* end confdefs.h. */
36491
36492/* Override any gcc2 internal prototype to avoid an error. */
36493#ifdef __cplusplus
36494extern "C"
36495#endif
36496/* We use char because int might match the return type of a gcc2
36497 builtin and then its argument prototype would still apply. */
36498char inet_addr ();
36499int
36500main ()
36501{
36502inet_addr ();
36503 ;
36504 return 0;
36505}
36506_ACEOF
36507rm -f conftest.$ac_objext conftest$ac_exeext
36508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36509 (eval $ac_link) 2>conftest.er1
a848cd7e 36510 ac_status=$?
ac1cb8d3
VS
36511 grep -v '^ *+' conftest.er1 >conftest.err
36512 rm -f conftest.er1
36513 cat conftest.err >&5
a848cd7e
SC
36514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515 (exit $ac_status); } &&
6954625c 36516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36518 (eval $ac_try) 2>&5
36519 ac_status=$?
36520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521 (exit $ac_status); }; } &&
36522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36525 ac_status=$?
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; }; then
36528 ac_cv_lib_socket_inet_addr=yes
36529else
36530 echo "$as_me: failed program was:" >&5
36531sed 's/^/| /' conftest.$ac_ext >&5
36532
36533ac_cv_lib_socket_inet_addr=no
36534fi
ac1cb8d3
VS
36535rm -f conftest.err conftest.$ac_objext \
36536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36537LIBS=$ac_check_lib_save_LIBS
36538fi
36539echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36540echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36541if test $ac_cv_lib_socket_inet_addr = yes; then
36542 INET_LINK="socket"
36543
36544fi
36545
36546
36547
36548fi
36549
36550
36551
36552fi
36553
36554
36555
36556fi
36557done
36558
36559
36560
36561for ac_func in inet_aton
36562do
36563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36564echo "$as_me:$LINENO: checking for $ac_func" >&5
36565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36566if eval "test \"\${$as_ac_var+set}\" = set"; then
36567 echo $ECHO_N "(cached) $ECHO_C" >&6
36568else
36569 cat >conftest.$ac_ext <<_ACEOF
36570/* confdefs.h. */
36571_ACEOF
36572cat confdefs.h >>conftest.$ac_ext
36573cat >>conftest.$ac_ext <<_ACEOF
36574/* end confdefs.h. */
ac1cb8d3
VS
36575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36577#define $ac_func innocuous_$ac_func
36578
a848cd7e
SC
36579/* System header to define __stub macros and hopefully few prototypes,
36580 which can conflict with char $ac_func (); below.
36581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36583
a848cd7e
SC
36584#ifdef __STDC__
36585# include <limits.h>
36586#else
36587# include <assert.h>
36588#endif
ac1cb8d3
VS
36589
36590#undef $ac_func
36591
a848cd7e
SC
36592/* Override any gcc2 internal prototype to avoid an error. */
36593#ifdef __cplusplus
36594extern "C"
36595{
36596#endif
36597/* We use char because int might match the return type of a gcc2
36598 builtin and then its argument prototype would still apply. */
36599char $ac_func ();
36600/* The GNU C library defines this for functions which it implements
36601 to always fail with ENOSYS. Some functions are actually named
36602 something starting with __ and the normal name is an alias. */
36603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36604choke me
36605#else
36606char (*f) () = $ac_func;
36607#endif
36608#ifdef __cplusplus
36609}
36610#endif
36611
36612int
36613main ()
36614{
36615return f != $ac_func;
36616 ;
36617 return 0;
36618}
36619_ACEOF
36620rm -f conftest.$ac_objext conftest$ac_exeext
36621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36622 (eval $ac_link) 2>conftest.er1
a848cd7e 36623 ac_status=$?
ac1cb8d3
VS
36624 grep -v '^ *+' conftest.er1 >conftest.err
36625 rm -f conftest.er1
36626 cat conftest.err >&5
a848cd7e
SC
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); } &&
6954625c 36629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
36635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36638 ac_status=$?
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; }; then
36641 eval "$as_ac_var=yes"
36642else
36643 echo "$as_me: failed program was:" >&5
36644sed 's/^/| /' conftest.$ac_ext >&5
36645
36646eval "$as_ac_var=no"
36647fi
ac1cb8d3
VS
36648rm -f conftest.err conftest.$ac_objext \
36649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36650fi
36651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36653if test `eval echo '${'$as_ac_var'}'` = yes; then
36654 cat >>confdefs.h <<_ACEOF
36655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36656_ACEOF
36657 cat >>confdefs.h <<\_ACEOF
36658#define HAVE_INET_ATON 1
36659_ACEOF
36660
36661else
36662
36663 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36664echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36665echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36666if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36668else
36669 ac_check_lib_save_LIBS=$LIBS
36670LIBS="-l$INET_LINK $LIBS"
36671cat >conftest.$ac_ext <<_ACEOF
36672/* confdefs.h. */
36673_ACEOF
36674cat confdefs.h >>conftest.$ac_ext
36675cat >>conftest.$ac_ext <<_ACEOF
36676/* end confdefs.h. */
36677
36678/* Override any gcc2 internal prototype to avoid an error. */
36679#ifdef __cplusplus
36680extern "C"
36681#endif
36682/* We use char because int might match the return type of a gcc2
36683 builtin and then its argument prototype would still apply. */
36684char inet_aton ();
36685int
36686main ()
36687{
36688inet_aton ();
36689 ;
36690 return 0;
36691}
36692_ACEOF
36693rm -f conftest.$ac_objext conftest$ac_exeext
36694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36695 (eval $ac_link) 2>conftest.er1
a848cd7e 36696 ac_status=$?
ac1cb8d3
VS
36697 grep -v '^ *+' conftest.er1 >conftest.err
36698 rm -f conftest.er1
36699 cat conftest.err >&5
a848cd7e
SC
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } &&
6954625c 36702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36704 (eval $ac_try) 2>&5
36705 ac_status=$?
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); }; } &&
36708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36711 ac_status=$?
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; }; then
36714 eval "$as_ac_Lib=yes"
36715else
36716 echo "$as_me: failed program was:" >&5
36717sed 's/^/| /' conftest.$ac_ext >&5
36718
36719eval "$as_ac_Lib=no"
36720fi
ac1cb8d3
VS
36721rm -f conftest.err conftest.$ac_objext \
36722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36723LIBS=$ac_check_lib_save_LIBS
36724fi
36725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36726echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36727if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36728 cat >>confdefs.h <<\_ACEOF
36729#define HAVE_INET_ATON 1
36730_ACEOF
36731
36732fi
36733
36734
36735fi
36736done
36737
36738
36739if test "x$INET_LINK" != "x"; then
36740 cat >>confdefs.h <<\_ACEOF
36741#define HAVE_INET_ADDR 1
36742_ACEOF
36743
36744 INET_LINK=" -l$INET_LINK"
36745fi
36746
36747fi
36748
36749
36750
36751EXTRALIBS_ESD=
36752echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36753echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36754if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36755 echo $ECHO_N "(cached) $ECHO_C" >&6
36756else
36757 ac_check_lib_save_LIBS=$LIBS
36758LIBS="-lesd $LIBS"
36759cat >conftest.$ac_ext <<_ACEOF
36760/* confdefs.h. */
36761_ACEOF
36762cat confdefs.h >>conftest.$ac_ext
36763cat >>conftest.$ac_ext <<_ACEOF
36764/* end confdefs.h. */
36765
36766/* Override any gcc2 internal prototype to avoid an error. */
36767#ifdef __cplusplus
36768extern "C"
36769#endif
36770/* We use char because int might match the return type of a gcc2
36771 builtin and then its argument prototype would still apply. */
36772char esd_close ();
36773int
36774main ()
36775{
36776esd_close ();
36777 ;
36778 return 0;
36779}
36780_ACEOF
36781rm -f conftest.$ac_objext conftest$ac_exeext
36782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36783 (eval $ac_link) 2>conftest.er1
a848cd7e 36784 ac_status=$?
ac1cb8d3
VS
36785 grep -v '^ *+' conftest.er1 >conftest.err
36786 rm -f conftest.er1
36787 cat conftest.err >&5
a848cd7e
SC
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); } &&
6954625c 36790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36792 (eval $ac_try) 2>&5
36793 ac_status=$?
36794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36795 (exit $ac_status); }; } &&
36796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36798 (eval $ac_try) 2>&5
36799 ac_status=$?
36800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36801 (exit $ac_status); }; }; then
36802 ac_cv_lib_esd_esd_close=yes
36803else
36804 echo "$as_me: failed program was:" >&5
36805sed 's/^/| /' conftest.$ac_ext >&5
36806
36807ac_cv_lib_esd_esd_close=no
36808fi
ac1cb8d3
VS
36809rm -f conftest.err conftest.$ac_objext \
36810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36811LIBS=$ac_check_lib_save_LIBS
36812fi
36813echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36814echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36815if test $ac_cv_lib_esd_esd_close = yes; then
36816
36817
36818for ac_header in esd.h
36819do
36820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36821if eval "test \"\${$as_ac_Header+set}\" = set"; then
36822 echo "$as_me:$LINENO: checking for $ac_header" >&5
36823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36824if eval "test \"\${$as_ac_Header+set}\" = set"; then
36825 echo $ECHO_N "(cached) $ECHO_C" >&6
36826fi
36827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36829else
36830 # Is the header compilable?
36831echo "$as_me:$LINENO: checking $ac_header usability" >&5
36832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36833cat >conftest.$ac_ext <<_ACEOF
36834/* confdefs.h. */
36835_ACEOF
36836cat confdefs.h >>conftest.$ac_ext
36837cat >>conftest.$ac_ext <<_ACEOF
36838/* end confdefs.h. */
36839$ac_includes_default
36840#include <$ac_header>
36841_ACEOF
36842rm -f conftest.$ac_objext
36843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36844 (eval $ac_compile) 2>conftest.er1
a848cd7e 36845 ac_status=$?
ac1cb8d3
VS
36846 grep -v '^ *+' conftest.er1 >conftest.err
36847 rm -f conftest.er1
36848 cat conftest.err >&5
a848cd7e
SC
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); } &&
6954625c 36851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36853 (eval $ac_try) 2>&5
36854 ac_status=$?
36855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36856 (exit $ac_status); }; } &&
36857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36859 (eval $ac_try) 2>&5
36860 ac_status=$?
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; }; then
36863 ac_header_compiler=yes
36864else
36865 echo "$as_me: failed program was:" >&5
36866sed 's/^/| /' conftest.$ac_ext >&5
36867
36868ac_header_compiler=no
36869fi
ac1cb8d3 36870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36872echo "${ECHO_T}$ac_header_compiler" >&6
36873
36874# Is the header present?
36875echo "$as_me:$LINENO: checking $ac_header presence" >&5
36876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36877cat >conftest.$ac_ext <<_ACEOF
36878/* confdefs.h. */
36879_ACEOF
36880cat confdefs.h >>conftest.$ac_ext
36881cat >>conftest.$ac_ext <<_ACEOF
36882/* end confdefs.h. */
36883#include <$ac_header>
36884_ACEOF
36885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36887 ac_status=$?
36888 grep -v '^ *+' conftest.er1 >conftest.err
36889 rm -f conftest.er1
36890 cat conftest.err >&5
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); } >/dev/null; then
36893 if test -s conftest.err; then
5d7b7554
VZ
36894 ac_cpp_err=$ac_cxx_preproc_warn_flag
36895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
36896 else
36897 ac_cpp_err=
36898 fi
36899else
36900 ac_cpp_err=yes
36901fi
36902if test -z "$ac_cpp_err"; then
36903 ac_header_preproc=yes
36904else
36905 echo "$as_me: failed program was:" >&5
36906sed 's/^/| /' conftest.$ac_ext >&5
36907
36908 ac_header_preproc=no
36909fi
36910rm -f conftest.err conftest.$ac_ext
36911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36912echo "${ECHO_T}$ac_header_preproc" >&6
36913
36914# So? What about this header?
5d7b7554 36915case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 36916 yes:no: )
a848cd7e
SC
36917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36921 ac_header_preproc=yes
a848cd7e 36922 ;;
ac1cb8d3 36923 no:yes:* )
a848cd7e
SC
36924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36936 (
36937 cat <<\_ASBOX
ac1cb8d3
VS
36938## ----------------------------------------- ##
36939## Report this to wx-dev@lists.wxwidgets.org ##
36940## ----------------------------------------- ##
a848cd7e
SC
36941_ASBOX
36942 ) |
36943 sed "s/^/$as_me: WARNING: /" >&2
36944 ;;
36945esac
36946echo "$as_me:$LINENO: checking for $ac_header" >&5
36947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36948if eval "test \"\${$as_ac_Header+set}\" = set"; then
36949 echo $ECHO_N "(cached) $ECHO_C" >&6
36950else
ac1cb8d3 36951 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36952fi
36953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36955
36956fi
36957if test `eval echo '${'$as_ac_Header'}'` = yes; then
36958 cat >>confdefs.h <<_ACEOF
36959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36960_ACEOF
36961
36962 EXTRALIBS_ESD="-lesd"
36963
36964fi
36965
36966done
36967
36968
36969fi
36970
36971
36972
36973echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36974echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36975cat >conftest.$ac_ext <<_ACEOF
36976/* confdefs.h. */
36977_ACEOF
36978cat confdefs.h >>conftest.$ac_ext
36979cat >>conftest.$ac_ext <<_ACEOF
36980/* end confdefs.h. */
36981#ifdef __linux__
36982 #include <linux/cdrom.h>
36983 #else
36984 /* For Solaris */
36985 #include <sys/cdio.h>
36986 #endif
36987
36988int
36989main ()
36990{
36991struct cdrom_tocentry entry, old_entry;
36992 ;
36993 return 0;
36994}
36995_ACEOF
36996rm -f conftest.$ac_objext
36997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36998 (eval $ac_compile) 2>conftest.er1
a848cd7e 36999 ac_status=$?
ac1cb8d3
VS
37000 grep -v '^ *+' conftest.er1 >conftest.err
37001 rm -f conftest.er1
37002 cat conftest.err >&5
a848cd7e
SC
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); } &&
6954625c 37005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007 (eval $ac_try) 2>&5
37008 ac_status=$?
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); }; } &&
37011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37013 (eval $ac_try) 2>&5
37014 ac_status=$?
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); }; }; then
37017 echo "$as_me:$LINENO: result: yes" >&5
37018echo "${ECHO_T}yes" >&6
37019 cat >>confdefs.h <<\_ACEOF
37020#define HAVE_KNOWN_CDROM_INTERFACE 1
37021_ACEOF
37022
37023else
37024 echo "$as_me: failed program was:" >&5
37025sed 's/^/| /' conftest.$ac_ext >&5
37026
37027echo "$as_me:$LINENO: result: no" >&5
37028echo "${ECHO_T}no" >&6
37029fi
ac1cb8d3 37030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37031
37032
37033cat >confcache <<\_ACEOF
37034# This file is a shell script that caches the results of configure
37035# tests run on this system so they can be shared between configure
37036# scripts and configure runs, see configure's option --config-cache.
37037# It is not useful on other systems. If it contains results you don't
37038# want to keep, you may remove or edit it.
37039#
37040# config.status only pays attention to the cache file if you give it
37041# the --recheck option to rerun configure.
37042#
37043# `ac_cv_env_foo' variables (set or unset) will be overridden when
37044# loading this file, other *unset* `ac_cv_foo' will be assigned the
37045# following values.
37046
37047_ACEOF
37048
37049# The following way of writing the cache mishandles newlines in values,
37050# but we know of no workaround that is simple, portable, and efficient.
37051# So, don't put newlines in cache variables' values.
37052# Ultrix sh set writes to stderr and can't be redirected directly,
37053# and sets the high bit in the cache file unless we assign to the vars.
37054{
37055 (set) 2>&1 |
37056 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37057 *ac_space=\ *)
37058 # `set' does not quote correctly, so add quotes (double-quote
37059 # substitution turns \\\\ into \\, and sed turns \\ into \).
37060 sed -n \
ac1cb8d3
VS
37061 "s/'/'\\\\''/g;
37062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37063 ;;
37064 *)
37065 # `set' quotes correctly as required by POSIX, so do not add quotes.
37066 sed -n \
ac1cb8d3 37067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37068 ;;
37069 esac;
37070} |
37071 sed '
37072 t clear
37073 : clear
37074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37075 t end
37076 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37077 : end' >>confcache
37078if diff $cache_file confcache >/dev/null 2>&1; then :; else
37079 if test -w $cache_file; then
37080 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37081 cat confcache >$cache_file
37082 else
37083 echo "not updating unwritable cache $cache_file"
37084 fi
37085fi
37086rm -f confcache
37087
37088
a848cd7e
SC
37089if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37090
37091
37092 THREADS_LINK=
e56f4f9e 37093 THREADS_CXXFLAGS=
a848cd7e
SC
37094
37095 if test "$wxUSE_THREADS" = "yes" ; then
37096 if test "$USE_BEOS" = 1; then
37097 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37098echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37099 wxUSE_THREADS="no"
37100 fi
37101 fi
37102
37103 if test "$wxUSE_THREADS" = "yes" ; then
37104
37105
37106 THREAD_OPTS="-pthread"
37107 case "${host}" in
37108 *-*-solaris2* | *-*-sunos4* )
37109 if test "x$GCC" = "xyes"; then
37110 THREAD_OPTS="-pthreads $THREAD_OPTS"
37111 else
37112 THREAD_OPTS="-mt $THREAD_OPTS"
37113 fi
37114 ;;
37115 *-*-freebsd*)
37116 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37117 ;;
37118 *-*-darwin* | *-*-cygwin* )
37119 THREAD_OPTS=""
37120 ;;
37121 *-*-aix*)
37122 THREAD_OPTS="pthreads"
37123 ;;
37124 *-hp-hpux* )
00421666
MW
37125 if test "x$GCC" = "xyes"; then
37126 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37127 THREAD_OPTS=""
37128 else
0093c2fc 37129 THREAD_OPTS="-mt"
a848cd7e
SC
37130 fi
37131 ;;
37132
37133 *-*-irix* )
37134 if test "x$GCC" = "xyes"; then
37135 THREAD_OPTS=""
37136 fi
37137 ;;
37138
37139 *-*-*UnixWare*)
37140 if test "x$GCC" != "xyes"; then
37141 THREAD_OPTS="-Ethread"
37142 fi
37143 ;;
37144 esac
37145
37146 THREAD_OPTS="$THREAD_OPTS pthread none"
37147
37148 THREADS_OK=no
37149 for flag in $THREAD_OPTS; do
37150 case $flag in
37151 none)
37152 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37153echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37154 ;;
37155
37156 -*)
37157 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37158echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37159 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37160 ;;
37161
37162 *)
37163 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37164echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37165 THREADS_LINK="-l$flag"
37166 ;;
37167 esac
37168
37169 save_LIBS="$LIBS"
e56f4f9e 37170 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37171 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37172 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37173
37174 cat >conftest.$ac_ext <<_ACEOF
37175/* confdefs.h. */
37176_ACEOF
37177cat confdefs.h >>conftest.$ac_ext
37178cat >>conftest.$ac_ext <<_ACEOF
37179/* end confdefs.h. */
37180#include <pthread.h>
37181int
37182main ()
37183{
37184pthread_create(0,0,0,0);
37185 ;
37186 return 0;
37187}
37188_ACEOF
37189rm -f conftest.$ac_objext conftest$ac_exeext
37190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37191 (eval $ac_link) 2>conftest.er1
a848cd7e 37192 ac_status=$?
ac1cb8d3
VS
37193 grep -v '^ *+' conftest.er1 >conftest.err
37194 rm -f conftest.er1
37195 cat conftest.err >&5
a848cd7e
SC
37196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197 (exit $ac_status); } &&
6954625c 37198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37200 (eval $ac_try) 2>&5
37201 ac_status=$?
37202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203 (exit $ac_status); }; } &&
37204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37206 (eval $ac_try) 2>&5
37207 ac_status=$?
37208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209 (exit $ac_status); }; }; then
37210 THREADS_OK=yes
37211else
37212 echo "$as_me: failed program was:" >&5
37213sed 's/^/| /' conftest.$ac_ext >&5
37214
37215fi
ac1cb8d3
VS
37216rm -f conftest.err conftest.$ac_objext \
37217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37218
37219 LIBS="$save_LIBS"
e56f4f9e 37220 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37221
37222 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37223echo "${ECHO_T}$THREADS_OK" >&6
37224 if test "x$THREADS_OK" = "xyes"; then
37225 break;
37226 fi
37227
37228 THREADS_LINK=""
e56f4f9e 37229 THREADS_CXXFLAGS=""
a848cd7e
SC
37230 done
37231
37232 if test "x$THREADS_OK" != "xyes"; then
37233 wxUSE_THREADS=no
37234 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37235echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37236 else
e56f4f9e 37237 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37238 LIBS="$THREADS_LINK $LIBS"
37239
37240 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37241echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37242 flag=no
37243 case "${host}" in
37244 *-aix*)
37245 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37246 flag="-D_THREAD_SAFE"
37247 ;;
37248 *-freebsd*)
37249 flag="-D_THREAD_SAFE"
37250 ;;
37251 *-hp-hpux* )
37252 flag="-D_REENTRANT"
37253 if test "x$GCC" != "xyes"; then
37254 flag="$flag -D_RWSTD_MULTI_THREAD"
37255 fi
37256 ;;
37257 *solaris* | alpha*-osf*)
37258 flag="-D_REENTRANT"
37259 ;;
37260 esac
37261 echo "$as_me:$LINENO: result: ${flag}" >&5
37262echo "${ECHO_T}${flag}" >&6
37263 if test "x$flag" != xno; then
e56f4f9e 37264 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37265 fi
37266
e56f4f9e 37267 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37268 fi
37269 fi
37270
37271 if test "$wxUSE_THREADS" = "yes" ; then
37272
37273for ac_func in thr_setconcurrency
37274do
37275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37276echo "$as_me:$LINENO: checking for $ac_func" >&5
37277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37278if eval "test \"\${$as_ac_var+set}\" = set"; then
37279 echo $ECHO_N "(cached) $ECHO_C" >&6
37280else
37281 cat >conftest.$ac_ext <<_ACEOF
37282/* confdefs.h. */
37283_ACEOF
37284cat confdefs.h >>conftest.$ac_ext
37285cat >>conftest.$ac_ext <<_ACEOF
37286/* end confdefs.h. */
ac1cb8d3
VS
37287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37289#define $ac_func innocuous_$ac_func
37290
a848cd7e
SC
37291/* System header to define __stub macros and hopefully few prototypes,
37292 which can conflict with char $ac_func (); below.
37293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37294 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37295
a848cd7e
SC
37296#ifdef __STDC__
37297# include <limits.h>
37298#else
37299# include <assert.h>
37300#endif
ac1cb8d3
VS
37301
37302#undef $ac_func
37303
a848cd7e
SC
37304/* Override any gcc2 internal prototype to avoid an error. */
37305#ifdef __cplusplus
37306extern "C"
37307{
37308#endif
37309/* We use char because int might match the return type of a gcc2
37310 builtin and then its argument prototype would still apply. */
37311char $ac_func ();
37312/* The GNU C library defines this for functions which it implements
37313 to always fail with ENOSYS. Some functions are actually named
37314 something starting with __ and the normal name is an alias. */
37315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37316choke me
37317#else
37318char (*f) () = $ac_func;
37319#endif
37320#ifdef __cplusplus
37321}
37322#endif
37323
37324int
37325main ()
37326{
37327return f != $ac_func;
37328 ;
37329 return 0;
37330}
37331_ACEOF
37332rm -f conftest.$ac_objext conftest$ac_exeext
37333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37334 (eval $ac_link) 2>conftest.er1
a848cd7e 37335 ac_status=$?
ac1cb8d3
VS
37336 grep -v '^ *+' conftest.er1 >conftest.err
37337 rm -f conftest.er1
37338 cat conftest.err >&5
a848cd7e
SC
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } &&
6954625c 37341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37343 (eval $ac_try) 2>&5
37344 ac_status=$?
37345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346 (exit $ac_status); }; } &&
37347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37349 (eval $ac_try) 2>&5
37350 ac_status=$?
37351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352 (exit $ac_status); }; }; then
37353 eval "$as_ac_var=yes"
37354else
37355 echo "$as_me: failed program was:" >&5
37356sed 's/^/| /' conftest.$ac_ext >&5
37357
37358eval "$as_ac_var=no"
37359fi
ac1cb8d3
VS
37360rm -f conftest.err conftest.$ac_objext \
37361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37362fi
37363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37365if test `eval echo '${'$as_ac_var'}'` = yes; then
37366 cat >>confdefs.h <<_ACEOF
37367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37368_ACEOF
37369
37370fi
37371done
37372
37373
6ebeb4c7
VZ
37374 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37375echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37376if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37377 echo $ECHO_N "(cached) $ECHO_C" >&6
37378else
37379
37380 cat >conftest.$ac_ext <<_ACEOF
37381/* confdefs.h. */
37382_ACEOF
37383cat confdefs.h >>conftest.$ac_ext
37384cat >>conftest.$ac_ext <<_ACEOF
37385/* end confdefs.h. */
37386#include <pthread.h>
37387 void ThreadCleanupFunc(void *p);
37388
37389int
37390main ()
37391{
37392
37393 void *p;
37394 pthread_cleanup_push(ThreadCleanupFunc, p);
37395 pthread_cleanup_pop(0);
37396
37397 ;
37398 return 0;
37399}
37400_ACEOF
37401rm -f conftest.$ac_objext
37402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37403 (eval $ac_compile) 2>conftest.er1
37404 ac_status=$?
37405 grep -v '^ *+' conftest.er1 >conftest.err
37406 rm -f conftest.er1
37407 cat conftest.err >&5
37408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409 (exit $ac_status); } &&
6954625c 37410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
37411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37412 (eval $ac_try) 2>&5
37413 ac_status=$?
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); }; } &&
37416 { ac_try='test -s conftest.$ac_objext'
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37419 ac_status=$?
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; }; then
37422
37423 wx_cv_func_pthread_cleanup=yes
37424
37425else
37426 echo "$as_me: failed program was:" >&5
37427sed 's/^/| /' conftest.$ac_ext >&5
37428
37429
37430 wx_cv_func_pthread_cleanup=no
37431
37432
37433fi
37434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37435
37436fi
37437echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37438echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37439 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37440 cat >>confdefs.h <<\_ACEOF
37441#define wxHAVE_PTHREAD_CLEANUP 1
37442_ACEOF
37443
37444 fi
37445
a848cd7e
SC
37446
37447for ac_header in sched.h
37448do
37449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37450if eval "test \"\${$as_ac_Header+set}\" = set"; then
37451 echo "$as_me:$LINENO: checking for $ac_header" >&5
37452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37453if eval "test \"\${$as_ac_Header+set}\" = set"; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455fi
37456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37458else
37459 # Is the header compilable?
37460echo "$as_me:$LINENO: checking $ac_header usability" >&5
37461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37462cat >conftest.$ac_ext <<_ACEOF
37463/* confdefs.h. */
37464_ACEOF
37465cat confdefs.h >>conftest.$ac_ext
37466cat >>conftest.$ac_ext <<_ACEOF
37467/* end confdefs.h. */
37468$ac_includes_default
37469#include <$ac_header>
37470_ACEOF
37471rm -f conftest.$ac_objext
37472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37473 (eval $ac_compile) 2>conftest.er1
a848cd7e 37474 ac_status=$?
ac1cb8d3
VS
37475 grep -v '^ *+' conftest.er1 >conftest.err
37476 rm -f conftest.er1
37477 cat conftest.err >&5
a848cd7e
SC
37478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479 (exit $ac_status); } &&
6954625c 37480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482 (eval $ac_try) 2>&5
37483 ac_status=$?
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); }; } &&
37486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488 (eval $ac_try) 2>&5
37489 ac_status=$?
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); }; }; then
37492 ac_header_compiler=yes
37493else
37494 echo "$as_me: failed program was:" >&5
37495sed 's/^/| /' conftest.$ac_ext >&5
37496
37497ac_header_compiler=no
37498fi
ac1cb8d3 37499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37501echo "${ECHO_T}$ac_header_compiler" >&6
37502
37503# Is the header present?
37504echo "$as_me:$LINENO: checking $ac_header presence" >&5
37505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37506cat >conftest.$ac_ext <<_ACEOF
37507/* confdefs.h. */
37508_ACEOF
37509cat confdefs.h >>conftest.$ac_ext
37510cat >>conftest.$ac_ext <<_ACEOF
37511/* end confdefs.h. */
37512#include <$ac_header>
37513_ACEOF
37514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37516 ac_status=$?
37517 grep -v '^ *+' conftest.er1 >conftest.err
37518 rm -f conftest.er1
37519 cat conftest.err >&5
37520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521 (exit $ac_status); } >/dev/null; then
37522 if test -s conftest.err; then
5d7b7554
VZ
37523 ac_cpp_err=$ac_cxx_preproc_warn_flag
37524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37525 else
37526 ac_cpp_err=
37527 fi
37528else
37529 ac_cpp_err=yes
37530fi
37531if test -z "$ac_cpp_err"; then
37532 ac_header_preproc=yes
37533else
37534 echo "$as_me: failed program was:" >&5
37535sed 's/^/| /' conftest.$ac_ext >&5
37536
37537 ac_header_preproc=no
37538fi
37539rm -f conftest.err conftest.$ac_ext
37540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37541echo "${ECHO_T}$ac_header_preproc" >&6
37542
37543# So? What about this header?
5d7b7554 37544case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37545 yes:no: )
a848cd7e
SC
37546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37550 ac_header_preproc=yes
a848cd7e 37551 ;;
ac1cb8d3 37552 no:yes:* )
a848cd7e
SC
37553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37560echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37565 (
37566 cat <<\_ASBOX
ac1cb8d3
VS
37567## ----------------------------------------- ##
37568## Report this to wx-dev@lists.wxwidgets.org ##
37569## ----------------------------------------- ##
a848cd7e
SC
37570_ASBOX
37571 ) |
37572 sed "s/^/$as_me: WARNING: /" >&2
37573 ;;
37574esac
37575echo "$as_me:$LINENO: checking for $ac_header" >&5
37576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37577if eval "test \"\${$as_ac_Header+set}\" = set"; then
37578 echo $ECHO_N "(cached) $ECHO_C" >&6
37579else
ac1cb8d3 37580 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37581fi
37582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37584
37585fi
37586if test `eval echo '${'$as_ac_Header'}'` = yes; then
37587 cat >>confdefs.h <<_ACEOF
37588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37589_ACEOF
37590
37591fi
37592
37593done
37594
37595 if test "$ac_cv_header_sched_h" = "yes"; then
37596 echo "$as_me:$LINENO: checking for sched_yield" >&5
37597echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37598if test "${ac_cv_func_sched_yield+set}" = set; then
37599 echo $ECHO_N "(cached) $ECHO_C" >&6
37600else
37601 cat >conftest.$ac_ext <<_ACEOF
37602/* confdefs.h. */
37603_ACEOF
37604cat confdefs.h >>conftest.$ac_ext
37605cat >>conftest.$ac_ext <<_ACEOF
37606/* end confdefs.h. */
ac1cb8d3
VS
37607/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37609#define sched_yield innocuous_sched_yield
37610
a848cd7e
SC
37611/* System header to define __stub macros and hopefully few prototypes,
37612 which can conflict with char sched_yield (); below.
37613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37614 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37615
a848cd7e
SC
37616#ifdef __STDC__
37617# include <limits.h>
37618#else
37619# include <assert.h>
37620#endif
ac1cb8d3
VS
37621
37622#undef sched_yield
37623
a848cd7e
SC
37624/* Override any gcc2 internal prototype to avoid an error. */
37625#ifdef __cplusplus
37626extern "C"
37627{
37628#endif
37629/* We use char because int might match the return type of a gcc2
37630 builtin and then its argument prototype would still apply. */
37631char sched_yield ();
37632/* The GNU C library defines this for functions which it implements
37633 to always fail with ENOSYS. Some functions are actually named
37634 something starting with __ and the normal name is an alias. */
37635#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37636choke me
37637#else
37638char (*f) () = sched_yield;
37639#endif
37640#ifdef __cplusplus
37641}
37642#endif
37643
37644int
37645main ()
37646{
37647return f != sched_yield;
37648 ;
37649 return 0;
37650}
37651_ACEOF
37652rm -f conftest.$ac_objext conftest$ac_exeext
37653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37654 (eval $ac_link) 2>conftest.er1
a848cd7e 37655 ac_status=$?
ac1cb8d3
VS
37656 grep -v '^ *+' conftest.er1 >conftest.err
37657 rm -f conftest.er1
37658 cat conftest.err >&5
a848cd7e
SC
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); } &&
6954625c 37661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37664 ac_status=$?
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; } &&
37667 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37670 ac_status=$?
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; }; then
37673 ac_cv_func_sched_yield=yes
37674else
37675 echo "$as_me: failed program was:" >&5
37676sed 's/^/| /' conftest.$ac_ext >&5
37677
37678ac_cv_func_sched_yield=no
37679fi
ac1cb8d3
VS
37680rm -f conftest.err conftest.$ac_objext \
37681 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37682fi
37683echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37684echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37685if test $ac_cv_func_sched_yield = yes; then
37686 cat >>confdefs.h <<\_ACEOF
37687#define HAVE_SCHED_YIELD 1
37688_ACEOF
37689
37690else
37691
37692 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37693echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37694if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37695 echo $ECHO_N "(cached) $ECHO_C" >&6
37696else
37697 ac_check_lib_save_LIBS=$LIBS
37698LIBS="-lposix4 $LIBS"
37699cat >conftest.$ac_ext <<_ACEOF
37700/* confdefs.h. */
37701_ACEOF
37702cat confdefs.h >>conftest.$ac_ext
37703cat >>conftest.$ac_ext <<_ACEOF
37704/* end confdefs.h. */
37705
37706/* Override any gcc2 internal prototype to avoid an error. */
37707#ifdef __cplusplus
37708extern "C"
37709#endif
37710/* We use char because int might match the return type of a gcc2
37711 builtin and then its argument prototype would still apply. */
37712char sched_yield ();
37713int
37714main ()
37715{
37716sched_yield ();
37717 ;
37718 return 0;
37719}
37720_ACEOF
37721rm -f conftest.$ac_objext conftest$ac_exeext
37722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37723 (eval $ac_link) 2>conftest.er1
a848cd7e 37724 ac_status=$?
ac1cb8d3
VS
37725 grep -v '^ *+' conftest.er1 >conftest.err
37726 rm -f conftest.er1
37727 cat conftest.err >&5
a848cd7e
SC
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); } &&
6954625c 37730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732 (eval $ac_try) 2>&5
37733 ac_status=$?
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); }; } &&
37736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 (eval $ac_try) 2>&5
37739 ac_status=$?
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); }; }; then
37742 ac_cv_lib_posix4_sched_yield=yes
37743else
37744 echo "$as_me: failed program was:" >&5
37745sed 's/^/| /' conftest.$ac_ext >&5
37746
37747ac_cv_lib_posix4_sched_yield=no
37748fi
ac1cb8d3
VS
37749rm -f conftest.err conftest.$ac_objext \
37750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37751LIBS=$ac_check_lib_save_LIBS
37752fi
37753echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37754echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37755if test $ac_cv_lib_posix4_sched_yield = yes; then
37756 cat >>confdefs.h <<\_ACEOF
37757#define HAVE_SCHED_YIELD 1
37758_ACEOF
37759 POSIX4_LINK=" -lposix4"
37760else
37761 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37762echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37763
37764fi
37765
37766
37767
37768fi
37769
37770 fi
37771
37772 HAVE_PRIOR_FUNCS=0
37773 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37774echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37775if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37776 echo $ECHO_N "(cached) $ECHO_C" >&6
37777else
37778 cat >conftest.$ac_ext <<_ACEOF
37779/* confdefs.h. */
37780_ACEOF
37781cat confdefs.h >>conftest.$ac_ext
37782cat >>conftest.$ac_ext <<_ACEOF
37783/* end confdefs.h. */
ac1cb8d3
VS
37784/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37786#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37787
a848cd7e
SC
37788/* System header to define __stub macros and hopefully few prototypes,
37789 which can conflict with char pthread_attr_getschedpolicy (); below.
37790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37792
a848cd7e
SC
37793#ifdef __STDC__
37794# include <limits.h>
37795#else
37796# include <assert.h>
37797#endif
ac1cb8d3
VS
37798
37799#undef pthread_attr_getschedpolicy
37800
a848cd7e
SC
37801/* Override any gcc2 internal prototype to avoid an error. */
37802#ifdef __cplusplus
37803extern "C"
37804{
37805#endif
37806/* We use char because int might match the return type of a gcc2
37807 builtin and then its argument prototype would still apply. */
37808char pthread_attr_getschedpolicy ();
37809/* The GNU C library defines this for functions which it implements
37810 to always fail with ENOSYS. Some functions are actually named
37811 something starting with __ and the normal name is an alias. */
37812#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37813choke me
37814#else
37815char (*f) () = pthread_attr_getschedpolicy;
37816#endif
37817#ifdef __cplusplus
37818}
37819#endif
37820
37821int
37822main ()
37823{
37824return f != pthread_attr_getschedpolicy;
37825 ;
37826 return 0;
37827}
37828_ACEOF
37829rm -f conftest.$ac_objext conftest$ac_exeext
37830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37831 (eval $ac_link) 2>conftest.er1
a848cd7e 37832 ac_status=$?
ac1cb8d3
VS
37833 grep -v '^ *+' conftest.er1 >conftest.err
37834 rm -f conftest.er1
37835 cat conftest.err >&5
a848cd7e
SC
37836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837 (exit $ac_status); } &&
6954625c 37838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37840 (eval $ac_try) 2>&5
37841 ac_status=$?
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); }; } &&
37844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37846 (eval $ac_try) 2>&5
37847 ac_status=$?
37848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849 (exit $ac_status); }; }; then
37850 ac_cv_func_pthread_attr_getschedpolicy=yes
37851else
37852 echo "$as_me: failed program was:" >&5
37853sed 's/^/| /' conftest.$ac_ext >&5
37854
37855ac_cv_func_pthread_attr_getschedpolicy=no
37856fi
ac1cb8d3
VS
37857rm -f conftest.err conftest.$ac_objext \
37858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37859fi
37860echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37861echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37862if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37863 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37864echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37865if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37866 echo $ECHO_N "(cached) $ECHO_C" >&6
37867else
37868 cat >conftest.$ac_ext <<_ACEOF
37869/* confdefs.h. */
37870_ACEOF
37871cat confdefs.h >>conftest.$ac_ext
37872cat >>conftest.$ac_ext <<_ACEOF
37873/* end confdefs.h. */
ac1cb8d3
VS
37874/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37876#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37877
a848cd7e
SC
37878/* System header to define __stub macros and hopefully few prototypes,
37879 which can conflict with char pthread_attr_setschedparam (); below.
37880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37881 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37882
a848cd7e
SC
37883#ifdef __STDC__
37884# include <limits.h>
37885#else
37886# include <assert.h>
37887#endif
ac1cb8d3
VS
37888
37889#undef pthread_attr_setschedparam
37890
a848cd7e
SC
37891/* Override any gcc2 internal prototype to avoid an error. */
37892#ifdef __cplusplus
37893extern "C"
37894{
37895#endif
37896/* We use char because int might match the return type of a gcc2
37897 builtin and then its argument prototype would still apply. */
37898char pthread_attr_setschedparam ();
37899/* The GNU C library defines this for functions which it implements
37900 to always fail with ENOSYS. Some functions are actually named
37901 something starting with __ and the normal name is an alias. */
37902#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37903choke me
37904#else
37905char (*f) () = pthread_attr_setschedparam;
37906#endif
37907#ifdef __cplusplus
37908}
37909#endif
37910
37911int
37912main ()
37913{
37914return f != pthread_attr_setschedparam;
37915 ;
37916 return 0;
37917}
37918_ACEOF
37919rm -f conftest.$ac_objext conftest$ac_exeext
37920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37921 (eval $ac_link) 2>conftest.er1
a848cd7e 37922 ac_status=$?
ac1cb8d3
VS
37923 grep -v '^ *+' conftest.er1 >conftest.err
37924 rm -f conftest.er1
37925 cat conftest.err >&5
a848cd7e
SC
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); } &&
6954625c 37928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930 (eval $ac_try) 2>&5
37931 ac_status=$?
37932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933 (exit $ac_status); }; } &&
37934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37936 (eval $ac_try) 2>&5
37937 ac_status=$?
37938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37939 (exit $ac_status); }; }; then
37940 ac_cv_func_pthread_attr_setschedparam=yes
37941else
37942 echo "$as_me: failed program was:" >&5
37943sed 's/^/| /' conftest.$ac_ext >&5
37944
37945ac_cv_func_pthread_attr_setschedparam=no
37946fi
ac1cb8d3
VS
37947rm -f conftest.err conftest.$ac_objext \
37948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37949fi
37950echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37951echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37952if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37953 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37954echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37955if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37956 echo $ECHO_N "(cached) $ECHO_C" >&6
37957else
37958 cat >conftest.$ac_ext <<_ACEOF
37959/* confdefs.h. */
37960_ACEOF
37961cat confdefs.h >>conftest.$ac_ext
37962cat >>conftest.$ac_ext <<_ACEOF
37963/* end confdefs.h. */
ac1cb8d3
VS
37964/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37966#define sched_get_priority_max innocuous_sched_get_priority_max
37967
a848cd7e
SC
37968/* System header to define __stub macros and hopefully few prototypes,
37969 which can conflict with char sched_get_priority_max (); below.
37970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37971 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37972
a848cd7e
SC
37973#ifdef __STDC__
37974# include <limits.h>
37975#else
37976# include <assert.h>
37977#endif
ac1cb8d3
VS
37978
37979#undef sched_get_priority_max
37980
a848cd7e
SC
37981/* Override any gcc2 internal prototype to avoid an error. */
37982#ifdef __cplusplus
37983extern "C"
37984{
37985#endif
37986/* We use char because int might match the return type of a gcc2
37987 builtin and then its argument prototype would still apply. */
37988char sched_get_priority_max ();
37989/* The GNU C library defines this for functions which it implements
37990 to always fail with ENOSYS. Some functions are actually named
37991 something starting with __ and the normal name is an alias. */
37992#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37993choke me
37994#else
37995char (*f) () = sched_get_priority_max;
37996#endif
37997#ifdef __cplusplus
37998}
37999#endif
38000
38001int
38002main ()
38003{
38004return f != sched_get_priority_max;
38005 ;
38006 return 0;
38007}
38008_ACEOF
38009rm -f conftest.$ac_objext conftest$ac_exeext
38010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38011 (eval $ac_link) 2>conftest.er1
a848cd7e 38012 ac_status=$?
ac1cb8d3
VS
38013 grep -v '^ *+' conftest.er1 >conftest.err
38014 rm -f conftest.er1
38015 cat conftest.err >&5
a848cd7e
SC
38016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017 (exit $ac_status); } &&
6954625c 38018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020 (eval $ac_try) 2>&5
38021 ac_status=$?
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); }; } &&
38024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38026 (eval $ac_try) 2>&5
38027 ac_status=$?
38028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029 (exit $ac_status); }; }; then
38030 ac_cv_func_sched_get_priority_max=yes
38031else
38032 echo "$as_me: failed program was:" >&5
38033sed 's/^/| /' conftest.$ac_ext >&5
38034
38035ac_cv_func_sched_get_priority_max=no
38036fi
ac1cb8d3
VS
38037rm -f conftest.err conftest.$ac_objext \
38038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38039fi
38040echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38041echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38042if test $ac_cv_func_sched_get_priority_max = yes; then
38043 HAVE_PRIOR_FUNCS=1
38044else
38045 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38046echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38047if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38048 echo $ECHO_N "(cached) $ECHO_C" >&6
38049else
38050 ac_check_lib_save_LIBS=$LIBS
38051LIBS="-lposix4 $LIBS"
38052cat >conftest.$ac_ext <<_ACEOF
38053/* confdefs.h. */
38054_ACEOF
38055cat confdefs.h >>conftest.$ac_ext
38056cat >>conftest.$ac_ext <<_ACEOF
38057/* end confdefs.h. */
38058
38059/* Override any gcc2 internal prototype to avoid an error. */
38060#ifdef __cplusplus
38061extern "C"
38062#endif
38063/* We use char because int might match the return type of a gcc2
38064 builtin and then its argument prototype would still apply. */
38065char sched_get_priority_max ();
38066int
38067main ()
38068{
38069sched_get_priority_max ();
38070 ;
38071 return 0;
38072}
38073_ACEOF
38074rm -f conftest.$ac_objext conftest$ac_exeext
38075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38076 (eval $ac_link) 2>conftest.er1
a848cd7e 38077 ac_status=$?
ac1cb8d3
VS
38078 grep -v '^ *+' conftest.er1 >conftest.err
38079 rm -f conftest.er1
38080 cat conftest.err >&5
a848cd7e
SC
38081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38082 (exit $ac_status); } &&
6954625c 38083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38085 (eval $ac_try) 2>&5
38086 ac_status=$?
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); }; } &&
38089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38091 (eval $ac_try) 2>&5
38092 ac_status=$?
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); }; }; then
38095 ac_cv_lib_posix4_sched_get_priority_max=yes
38096else
38097 echo "$as_me: failed program was:" >&5
38098sed 's/^/| /' conftest.$ac_ext >&5
38099
38100ac_cv_lib_posix4_sched_get_priority_max=no
38101fi
ac1cb8d3
VS
38102rm -f conftest.err conftest.$ac_objext \
38103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38104LIBS=$ac_check_lib_save_LIBS
38105fi
38106echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38107echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38108if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38109
38110 HAVE_PRIOR_FUNCS=1
38111 POSIX4_LINK=" -lposix4"
38112
38113fi
38114
38115
38116fi
38117
38118
38119fi
38120
38121
38122fi
38123
38124
38125 if test "$HAVE_PRIOR_FUNCS" = 1; then
38126 cat >>confdefs.h <<\_ACEOF
38127#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38128_ACEOF
38129
38130 else
38131 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38132echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38133 fi
38134
38135 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38136echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38137if test "${ac_cv_func_pthread_cancel+set}" = set; then
38138 echo $ECHO_N "(cached) $ECHO_C" >&6
38139else
38140 cat >conftest.$ac_ext <<_ACEOF
38141/* confdefs.h. */
38142_ACEOF
38143cat confdefs.h >>conftest.$ac_ext
38144cat >>conftest.$ac_ext <<_ACEOF
38145/* end confdefs.h. */
ac1cb8d3
VS
38146/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38148#define pthread_cancel innocuous_pthread_cancel
38149
a848cd7e
SC
38150/* System header to define __stub macros and hopefully few prototypes,
38151 which can conflict with char pthread_cancel (); below.
38152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38154
a848cd7e
SC
38155#ifdef __STDC__
38156# include <limits.h>
38157#else
38158# include <assert.h>
38159#endif
ac1cb8d3
VS
38160
38161#undef pthread_cancel
38162
a848cd7e
SC
38163/* Override any gcc2 internal prototype to avoid an error. */
38164#ifdef __cplusplus
38165extern "C"
38166{
38167#endif
38168/* We use char because int might match the return type of a gcc2
38169 builtin and then its argument prototype would still apply. */
38170char pthread_cancel ();
38171/* The GNU C library defines this for functions which it implements
38172 to always fail with ENOSYS. Some functions are actually named
38173 something starting with __ and the normal name is an alias. */
38174#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38175choke me
38176#else
38177char (*f) () = pthread_cancel;
38178#endif
38179#ifdef __cplusplus
38180}
38181#endif
38182
38183int
38184main ()
38185{
38186return f != pthread_cancel;
38187 ;
38188 return 0;
38189}
38190_ACEOF
38191rm -f conftest.$ac_objext conftest$ac_exeext
38192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38193 (eval $ac_link) 2>conftest.er1
a848cd7e 38194 ac_status=$?
ac1cb8d3
VS
38195 grep -v '^ *+' conftest.er1 >conftest.err
38196 rm -f conftest.er1
38197 cat conftest.err >&5
a848cd7e
SC
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); } &&
6954625c 38200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38202 (eval $ac_try) 2>&5
38203 ac_status=$?
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); }; } &&
38206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38208 (eval $ac_try) 2>&5
38209 ac_status=$?
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); }; }; then
38212 ac_cv_func_pthread_cancel=yes
38213else
38214 echo "$as_me: failed program was:" >&5
38215sed 's/^/| /' conftest.$ac_ext >&5
38216
38217ac_cv_func_pthread_cancel=no
38218fi
ac1cb8d3
VS
38219rm -f conftest.err conftest.$ac_objext \
38220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38221fi
38222echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38223echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38224if test $ac_cv_func_pthread_cancel = yes; then
38225 cat >>confdefs.h <<\_ACEOF
38226#define HAVE_PTHREAD_CANCEL 1
38227_ACEOF
38228
38229else
38230 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38231echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38232fi
38233
38234
abc736fd
MW
38235 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38236echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38237if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38238 echo $ECHO_N "(cached) $ECHO_C" >&6
38239else
38240 cat >conftest.$ac_ext <<_ACEOF
38241/* confdefs.h. */
38242_ACEOF
38243cat confdefs.h >>conftest.$ac_ext
38244cat >>conftest.$ac_ext <<_ACEOF
38245/* end confdefs.h. */
38246/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38248#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38249
38250/* System header to define __stub macros and hopefully few prototypes,
38251 which can conflict with char pthread_attr_setstacksize (); below.
38252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38253 <limits.h> exists even on freestanding compilers. */
38254
38255#ifdef __STDC__
38256# include <limits.h>
38257#else
38258# include <assert.h>
38259#endif
38260
38261#undef pthread_attr_setstacksize
38262
38263/* Override any gcc2 internal prototype to avoid an error. */
38264#ifdef __cplusplus
38265extern "C"
38266{
38267#endif
38268/* We use char because int might match the return type of a gcc2
38269 builtin and then its argument prototype would still apply. */
38270char pthread_attr_setstacksize ();
38271/* The GNU C library defines this for functions which it implements
38272 to always fail with ENOSYS. Some functions are actually named
38273 something starting with __ and the normal name is an alias. */
38274#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38275choke me
38276#else
38277char (*f) () = pthread_attr_setstacksize;
38278#endif
38279#ifdef __cplusplus
38280}
38281#endif
38282
38283int
38284main ()
38285{
38286return f != pthread_attr_setstacksize;
38287 ;
38288 return 0;
38289}
38290_ACEOF
38291rm -f conftest.$ac_objext conftest$ac_exeext
38292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38293 (eval $ac_link) 2>conftest.er1
38294 ac_status=$?
38295 grep -v '^ *+' conftest.er1 >conftest.err
38296 rm -f conftest.er1
38297 cat conftest.err >&5
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } &&
6954625c 38300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; } &&
38306 { ac_try='test -s conftest$ac_exeext'
38307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38308 (eval $ac_try) 2>&5
38309 ac_status=$?
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); }; }; then
38312 ac_cv_func_pthread_attr_setstacksize=yes
38313else
38314 echo "$as_me: failed program was:" >&5
38315sed 's/^/| /' conftest.$ac_ext >&5
38316
38317ac_cv_func_pthread_attr_setstacksize=no
38318fi
38319rm -f conftest.err conftest.$ac_objext \
38320 conftest$ac_exeext conftest.$ac_ext
38321fi
38322echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38323echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38324if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38325 cat >>confdefs.h <<\_ACEOF
38326#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38327_ACEOF
38328
38329fi
38330
a848cd7e
SC
38331
38332
38333 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38334echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38335if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38336 echo $ECHO_N "(cached) $ECHO_C" >&6
38337else
38338
38339 cat >conftest.$ac_ext <<_ACEOF
38340/* confdefs.h. */
38341_ACEOF
38342cat confdefs.h >>conftest.$ac_ext
38343cat >>conftest.$ac_ext <<_ACEOF
38344/* end confdefs.h. */
38345#include <pthread.h>
38346int
38347main ()
38348{
38349
38350 pthread_mutexattr_t attr;
38351 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38352
38353 ;
38354 return 0;
38355}
38356_ACEOF
38357rm -f conftest.$ac_objext
38358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38359 (eval $ac_compile) 2>conftest.er1
a848cd7e 38360 ac_status=$?
ac1cb8d3
VS
38361 grep -v '^ *+' conftest.er1 >conftest.err
38362 rm -f conftest.er1
38363 cat conftest.err >&5
a848cd7e
SC
38364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38365 (exit $ac_status); } &&
6954625c 38366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38368 (eval $ac_try) 2>&5
38369 ac_status=$?
38370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38371 (exit $ac_status); }; } &&
38372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38374 (eval $ac_try) 2>&5
38375 ac_status=$?
38376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38377 (exit $ac_status); }; }; then
123dca7d 38378 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38379else
38380 echo "$as_me: failed program was:" >&5
38381sed 's/^/| /' conftest.$ac_ext >&5
38382
123dca7d 38383wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38384
38385fi
ac1cb8d3 38386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38387
38388fi
38389echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38390echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38391
38392 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38393 cat >>confdefs.h <<\_ACEOF
38394#define HAVE_PTHREAD_MUTEXATTR_T 1
38395_ACEOF
38396
123dca7d
VZ
38397
38398 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38399echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38400if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38401 echo $ECHO_N "(cached) $ECHO_C" >&6
38402else
38403
38404 cat >conftest.$ac_ext <<_ACEOF
38405/* confdefs.h. */
38406_ACEOF
38407cat confdefs.h >>conftest.$ac_ext
38408cat >>conftest.$ac_ext <<_ACEOF
38409/* end confdefs.h. */
38410#include <pthread.h>
38411int
38412main ()
38413{
38414
38415 pthread_mutexattr_t attr;
38416 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38417
38418 ;
38419 return 0;
38420}
38421_ACEOF
38422rm -f conftest.$ac_objext
38423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38424 (eval $ac_compile) 2>conftest.er1
38425 ac_status=$?
38426 grep -v '^ *+' conftest.er1 >conftest.err
38427 rm -f conftest.er1
38428 cat conftest.err >&5
38429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 (exit $ac_status); } &&
6954625c 38431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
38432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38433 (eval $ac_try) 2>&5
38434 ac_status=$?
38435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 (exit $ac_status); }; } &&
38437 { ac_try='test -s conftest.$ac_objext'
38438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38439 (eval $ac_try) 2>&5
38440 ac_status=$?
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); }; }; then
38443 wx_cv_func_pthread_mutexattr_settype_decl=yes
38444else
38445 echo "$as_me: failed program was:" >&5
38446sed 's/^/| /' conftest.$ac_ext >&5
38447
38448wx_cv_func_pthread_mutexattr_settype_decl=no
38449
38450fi
38451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38452
38453fi
38454echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38455echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38456 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38457 cat >>confdefs.h <<\_ACEOF
38458#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38459_ACEOF
38460
38461 fi
a848cd7e
SC
38462 else
38463 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38464echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38465if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38466 echo $ECHO_N "(cached) $ECHO_C" >&6
38467else
38468
38469 cat >conftest.$ac_ext <<_ACEOF
38470/* confdefs.h. */
38471_ACEOF
38472cat confdefs.h >>conftest.$ac_ext
38473cat >>conftest.$ac_ext <<_ACEOF
38474/* end confdefs.h. */
38475#include <pthread.h>
38476int
38477main ()
38478{
38479
38480 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38481
38482 ;
38483 return 0;
38484}
38485_ACEOF
38486rm -f conftest.$ac_objext
38487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38488 (eval $ac_compile) 2>conftest.er1
a848cd7e 38489 ac_status=$?
ac1cb8d3
VS
38490 grep -v '^ *+' conftest.er1 >conftest.err
38491 rm -f conftest.er1
38492 cat conftest.err >&5
a848cd7e
SC
38493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494 (exit $ac_status); } &&
6954625c 38495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497 (eval $ac_try) 2>&5
38498 ac_status=$?
38499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); }; } &&
38501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38503 (eval $ac_try) 2>&5
38504 ac_status=$?
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); }; }; then
38507
38508 wx_cv_type_pthread_rec_mutex_init=yes
38509
38510else
38511 echo "$as_me: failed program was:" >&5
38512sed 's/^/| /' conftest.$ac_ext >&5
38513
38514
38515 wx_cv_type_pthread_rec_mutex_init=no
38516
38517
38518fi
ac1cb8d3 38519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38520
38521fi
38522echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38523echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38524 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38525 cat >>confdefs.h <<\_ACEOF
38526#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38527_ACEOF
38528
38529 else
38530 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38531echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38532 fi
38533 fi
38534 fi
38535
38536else
38537 if test "$wxUSE_THREADS" = "yes" ; then
38538 case "${host}" in
38539 *-*-mingw32* )
38540 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38541echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38542if test "${wx_cv_cflags_mthread+set}" = set; then
38543 echo $ECHO_N "(cached) $ECHO_C" >&6
38544else
38545
e56f4f9e
VZ
38546 CXXFLAGS_OLD="$CXXFLAGS"
38547 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
38548 cat >conftest.$ac_ext <<_ACEOF
38549/* confdefs.h. */
38550_ACEOF
38551cat confdefs.h >>conftest.$ac_ext
38552cat >>conftest.$ac_ext <<_ACEOF
38553/* end confdefs.h. */
38554
38555int
38556main ()
38557{
38558
38559 ;
38560 return 0;
38561}
38562_ACEOF
38563rm -f conftest.$ac_objext
38564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38565 (eval $ac_compile) 2>conftest.er1
a848cd7e 38566 ac_status=$?
ac1cb8d3
VS
38567 grep -v '^ *+' conftest.er1 >conftest.err
38568 rm -f conftest.er1
38569 cat conftest.err >&5
a848cd7e
SC
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); } &&
6954625c 38572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 (eval $ac_try) 2>&5
38575 ac_status=$?
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); }; } &&
38578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 (eval $ac_try) 2>&5
38581 ac_status=$?
38582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 (exit $ac_status); }; }; then
38584 wx_cv_cflags_mthread=yes
38585else
38586 echo "$as_me: failed program was:" >&5
38587sed 's/^/| /' conftest.$ac_ext >&5
38588
38589wx_cv_cflags_mthread=no
38590
38591fi
ac1cb8d3 38592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38593
38594
38595fi
38596echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38597echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38598
38599 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 38600 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
38601 LDFLAGS="$LDFLAGS -mthreads"
38602 else
e56f4f9e 38603 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
38604 fi
38605 ;;
38606 *-pc-os2*emx )
5ff751d6
VZ
38607 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38608 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38609 LDFLAGS="$LDFLAGS -Zmt"
38610 ;;
38611 esac
38612 fi
38613fi
38614
004ee6da
RL
38615echo "$as_me:$LINENO: checking for localtime_r" >&5
38616echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38617if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38618 echo $ECHO_N "(cached) $ECHO_C" >&6
38619else
38620 cat >conftest.$ac_ext <<_ACEOF
38621/* confdefs.h. */
38622_ACEOF
38623cat confdefs.h >>conftest.$ac_ext
38624cat >>conftest.$ac_ext <<_ACEOF
38625/* end confdefs.h. */
004ee6da 38626/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38628#define localtime_r innocuous_localtime_r
ac1cb8d3 38629
a848cd7e 38630/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38631 which can conflict with char localtime_r (); below.
a848cd7e
SC
38632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38633 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38634
a848cd7e
SC
38635#ifdef __STDC__
38636# include <limits.h>
38637#else
38638# include <assert.h>
38639#endif
ac1cb8d3 38640
004ee6da 38641#undef localtime_r
ac1cb8d3 38642
a848cd7e
SC
38643/* Override any gcc2 internal prototype to avoid an error. */
38644#ifdef __cplusplus
38645extern "C"
38646{
38647#endif
38648/* We use char because int might match the return type of a gcc2
38649 builtin and then its argument prototype would still apply. */
004ee6da 38650char localtime_r ();
a848cd7e
SC
38651/* The GNU C library defines this for functions which it implements
38652 to always fail with ENOSYS. Some functions are actually named
38653 something starting with __ and the normal name is an alias. */
004ee6da 38654#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38655choke me
38656#else
004ee6da 38657char (*f) () = localtime_r;
a848cd7e
SC
38658#endif
38659#ifdef __cplusplus
38660}
38661#endif
38662
38663int
38664main ()
38665{
004ee6da
RL
38666return f != localtime_r;
38667 ;
38668 return 0;
38669}
38670_ACEOF
38671rm -f conftest.$ac_objext conftest$ac_exeext
38672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38673 (eval $ac_link) 2>conftest.er1
38674 ac_status=$?
38675 grep -v '^ *+' conftest.er1 >conftest.err
38676 rm -f conftest.er1
38677 cat conftest.err >&5
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); } &&
6954625c 38680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38682 (eval $ac_try) 2>&5
38683 ac_status=$?
38684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685 (exit $ac_status); }; } &&
38686 { ac_try='test -s conftest$ac_exeext'
38687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38688 (eval $ac_try) 2>&5
38689 ac_status=$?
38690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691 (exit $ac_status); }; }; then
38692 ac_cv_func_localtime_r=yes
38693else
38694 echo "$as_me: failed program was:" >&5
38695sed 's/^/| /' conftest.$ac_ext >&5
38696
38697ac_cv_func_localtime_r=no
38698fi
38699rm -f conftest.err conftest.$ac_objext \
38700 conftest$ac_exeext conftest.$ac_ext
38701fi
38702echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38703echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38704if test $ac_cv_func_localtime_r = yes; then
38705 cat >>confdefs.h <<\_ACEOF
38706#define HAVE_LOCALTIME_R 1
38707_ACEOF
38708
38709fi
38710
38711echo "$as_me:$LINENO: checking for gmtime_r" >&5
38712echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38713if test "${ac_cv_func_gmtime_r+set}" = set; then
38714 echo $ECHO_N "(cached) $ECHO_C" >&6
38715else
38716 cat >conftest.$ac_ext <<_ACEOF
38717/* confdefs.h. */
38718_ACEOF
38719cat confdefs.h >>conftest.$ac_ext
38720cat >>conftest.$ac_ext <<_ACEOF
38721/* end confdefs.h. */
38722/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38724#define gmtime_r innocuous_gmtime_r
38725
38726/* System header to define __stub macros and hopefully few prototypes,
38727 which can conflict with char gmtime_r (); below.
38728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38729 <limits.h> exists even on freestanding compilers. */
38730
38731#ifdef __STDC__
38732# include <limits.h>
38733#else
38734# include <assert.h>
38735#endif
38736
38737#undef gmtime_r
38738
38739/* Override any gcc2 internal prototype to avoid an error. */
38740#ifdef __cplusplus
38741extern "C"
38742{
38743#endif
38744/* We use char because int might match the return type of a gcc2
38745 builtin and then its argument prototype would still apply. */
38746char gmtime_r ();
38747/* The GNU C library defines this for functions which it implements
38748 to always fail with ENOSYS. Some functions are actually named
38749 something starting with __ and the normal name is an alias. */
38750#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38751choke me
38752#else
38753char (*f) () = gmtime_r;
38754#endif
38755#ifdef __cplusplus
38756}
38757#endif
38758
38759int
38760main ()
38761{
38762return f != gmtime_r;
38763 ;
38764 return 0;
38765}
38766_ACEOF
38767rm -f conftest.$ac_objext conftest$ac_exeext
38768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38769 (eval $ac_link) 2>conftest.er1
38770 ac_status=$?
38771 grep -v '^ *+' conftest.er1 >conftest.err
38772 rm -f conftest.er1
38773 cat conftest.err >&5
38774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775 (exit $ac_status); } &&
6954625c 38776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38778 (eval $ac_try) 2>&5
38779 ac_status=$?
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); }; } &&
38782 { ac_try='test -s conftest$ac_exeext'
38783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38784 (eval $ac_try) 2>&5
38785 ac_status=$?
38786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787 (exit $ac_status); }; }; then
38788 ac_cv_func_gmtime_r=yes
38789else
38790 echo "$as_me: failed program was:" >&5
38791sed 's/^/| /' conftest.$ac_ext >&5
38792
38793ac_cv_func_gmtime_r=no
38794fi
38795rm -f conftest.err conftest.$ac_objext \
38796 conftest$ac_exeext conftest.$ac_ext
38797fi
38798echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38799echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38800if test $ac_cv_func_gmtime_r = yes; then
38801 cat >>confdefs.h <<\_ACEOF
38802#define HAVE_GMTIME_R 1
38803_ACEOF
38804
38805fi
38806
38807echo "$as_me:$LINENO: checking for readdir_r" >&5
38808echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38809if test "${ac_cv_func_readdir_r+set}" = set; then
38810 echo $ECHO_N "(cached) $ECHO_C" >&6
38811else
38812 cat >conftest.$ac_ext <<_ACEOF
38813/* confdefs.h. */
38814_ACEOF
38815cat confdefs.h >>conftest.$ac_ext
38816cat >>conftest.$ac_ext <<_ACEOF
38817/* end confdefs.h. */
38818/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38820#define readdir_r innocuous_readdir_r
38821
38822/* System header to define __stub macros and hopefully few prototypes,
38823 which can conflict with char readdir_r (); below.
38824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38825 <limits.h> exists even on freestanding compilers. */
38826
38827#ifdef __STDC__
38828# include <limits.h>
38829#else
38830# include <assert.h>
38831#endif
38832
38833#undef readdir_r
38834
38835/* Override any gcc2 internal prototype to avoid an error. */
38836#ifdef __cplusplus
38837extern "C"
38838{
38839#endif
38840/* We use char because int might match the return type of a gcc2
38841 builtin and then its argument prototype would still apply. */
38842char readdir_r ();
38843/* The GNU C library defines this for functions which it implements
38844 to always fail with ENOSYS. Some functions are actually named
38845 something starting with __ and the normal name is an alias. */
38846#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38847choke me
38848#else
38849char (*f) () = readdir_r;
38850#endif
38851#ifdef __cplusplus
38852}
38853#endif
38854
38855int
38856main ()
38857{
38858return f != readdir_r;
38859 ;
38860 return 0;
38861}
38862_ACEOF
38863rm -f conftest.$ac_objext conftest$ac_exeext
38864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38865 (eval $ac_link) 2>conftest.er1
38866 ac_status=$?
38867 grep -v '^ *+' conftest.er1 >conftest.err
38868 rm -f conftest.er1
38869 cat conftest.err >&5
38870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871 (exit $ac_status); } &&
6954625c 38872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38874 (eval $ac_try) 2>&5
38875 ac_status=$?
38876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38877 (exit $ac_status); }; } &&
38878 { ac_try='test -s conftest$ac_exeext'
38879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880 (eval $ac_try) 2>&5
38881 ac_status=$?
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); }; }; then
38884 ac_cv_func_readdir_r=yes
38885else
38886 echo "$as_me: failed program was:" >&5
38887sed 's/^/| /' conftest.$ac_ext >&5
38888
38889ac_cv_func_readdir_r=no
38890fi
38891rm -f conftest.err conftest.$ac_objext \
38892 conftest$ac_exeext conftest.$ac_ext
38893fi
38894echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38895echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38896if test $ac_cv_func_readdir_r = yes; then
38897 cat >>confdefs.h <<\_ACEOF
38898#define HAVE_READDIR_R 1
38899_ACEOF
38900
38901fi
38902
004ee6da 38903
004ee6da
RL
38904
38905
38906 ac_ext=c
38907ac_cpp='$CPP $CPPFLAGS'
38908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38910ac_compiler_gnu=$ac_cv_c_compiler_gnu
38911
38912 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38913echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38914
38915 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38916 echo $ECHO_N "(cached) $ECHO_C" >&6
38917else
38918
38919
004ee6da
RL
38920
38921ac_cv_func_which_gethostbyname_r=unknown
38922
38923#
38924# ONE ARGUMENT (sanity check)
38925#
38926
38927# This should fail, as there is no variant of gethostbyname_r() that takes
38928# a single argument. If it actually compiles, then we can assume that
38929# netdb.h is not declaring the function, and the compiler is thereby
38930# assuming an implicit prototype. In which case, we're out of luck.
38931#
38932cat >conftest.$ac_ext <<_ACEOF
38933/* confdefs.h. */
38934_ACEOF
38935cat confdefs.h >>conftest.$ac_ext
38936cat >>conftest.$ac_ext <<_ACEOF
38937/* end confdefs.h. */
38938#include <netdb.h>
38939int
38940main ()
38941{
38942
38943 char *name = "www.gnu.org";
38944 (void)gethostbyname_r(name) /* ; */
38945
38946 ;
38947 return 0;
38948}
38949_ACEOF
38950rm -f conftest.$ac_objext
38951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38952 (eval $ac_compile) 2>conftest.er1
38953 ac_status=$?
38954 grep -v '^ *+' conftest.er1 >conftest.err
38955 rm -f conftest.er1
38956 cat conftest.err >&5
38957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958 (exit $ac_status); } &&
6954625c 38959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38961 (eval $ac_try) 2>&5
38962 ac_status=$?
38963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38964 (exit $ac_status); }; } &&
38965 { ac_try='test -s conftest.$ac_objext'
38966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38967 (eval $ac_try) 2>&5
38968 ac_status=$?
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); }; }; then
38971 ac_cv_func_which_gethostbyname_r=no
38972else
38973 echo "$as_me: failed program was:" >&5
38974sed 's/^/| /' conftest.$ac_ext >&5
38975
38976fi
38977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38978
38979#
38980# SIX ARGUMENTS
38981# (e.g. Linux)
38982#
38983
38984if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38985
38986cat >conftest.$ac_ext <<_ACEOF
38987/* confdefs.h. */
38988_ACEOF
38989cat confdefs.h >>conftest.$ac_ext
38990cat >>conftest.$ac_ext <<_ACEOF
38991/* end confdefs.h. */
38992#include <netdb.h>
38993int
38994main ()
38995{
38996
38997 char *name = "www.gnu.org";
38998 struct hostent ret, *retp;
38999 char buf[1024];
39000 int buflen = 1024;
39001 int my_h_errno;
39002 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39003
39004 ;
39005 return 0;
39006}
39007_ACEOF
39008rm -f conftest.$ac_objext
39009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39010 (eval $ac_compile) 2>conftest.er1
39011 ac_status=$?
39012 grep -v '^ *+' conftest.er1 >conftest.err
39013 rm -f conftest.er1
39014 cat conftest.err >&5
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); } &&
6954625c 39017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39019 (eval $ac_try) 2>&5
39020 ac_status=$?
39021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022 (exit $ac_status); }; } &&
39023 { ac_try='test -s conftest.$ac_objext'
39024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39025 (eval $ac_try) 2>&5
39026 ac_status=$?
39027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39028 (exit $ac_status); }; }; then
39029 ac_cv_func_which_gethostbyname_r=six
39030else
39031 echo "$as_me: failed program was:" >&5
39032sed 's/^/| /' conftest.$ac_ext >&5
39033
39034fi
39035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39036
39037fi
39038
39039#
39040# FIVE ARGUMENTS
39041# (e.g. Solaris)
39042#
39043
39044if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39045
39046cat >conftest.$ac_ext <<_ACEOF
39047/* confdefs.h. */
39048_ACEOF
39049cat confdefs.h >>conftest.$ac_ext
39050cat >>conftest.$ac_ext <<_ACEOF
39051/* end confdefs.h. */
39052#include <netdb.h>
39053int
39054main ()
39055{
39056
39057 char *name = "www.gnu.org";
39058 struct hostent ret;
39059 char buf[1024];
39060 int buflen = 1024;
39061 int my_h_errno;
39062 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39063
39064 ;
39065 return 0;
39066}
39067_ACEOF
39068rm -f conftest.$ac_objext
39069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39070 (eval $ac_compile) 2>conftest.er1
39071 ac_status=$?
39072 grep -v '^ *+' conftest.er1 >conftest.err
39073 rm -f conftest.er1
39074 cat conftest.err >&5
39075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); } &&
6954625c 39077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079 (eval $ac_try) 2>&5
39080 ac_status=$?
39081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082 (exit $ac_status); }; } &&
39083 { ac_try='test -s conftest.$ac_objext'
39084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39085 (eval $ac_try) 2>&5
39086 ac_status=$?
39087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088 (exit $ac_status); }; }; then
39089 ac_cv_func_which_gethostbyname_r=five
39090else
39091 echo "$as_me: failed program was:" >&5
39092sed 's/^/| /' conftest.$ac_ext >&5
39093
39094fi
39095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39096
39097fi
39098
39099#
39100# THREE ARGUMENTS
39101# (e.g. AIX, HP-UX, Tru64)
39102#
39103
39104if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39105
39106cat >conftest.$ac_ext <<_ACEOF
39107/* confdefs.h. */
39108_ACEOF
39109cat confdefs.h >>conftest.$ac_ext
39110cat >>conftest.$ac_ext <<_ACEOF
39111/* end confdefs.h. */
39112#include <netdb.h>
39113int
39114main ()
39115{
39116
39117 char *name = "www.gnu.org";
39118 struct hostent ret;
39119 struct hostent_data data;
39120 (void)gethostbyname_r(name, &ret, &data) /* ; */
39121
39122 ;
39123 return 0;
39124}
39125_ACEOF
39126rm -f conftest.$ac_objext
39127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39128 (eval $ac_compile) 2>conftest.er1
39129 ac_status=$?
39130 grep -v '^ *+' conftest.er1 >conftest.err
39131 rm -f conftest.er1
39132 cat conftest.err >&5
39133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39134 (exit $ac_status); } &&
6954625c 39135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39137 (eval $ac_try) 2>&5
39138 ac_status=$?
39139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140 (exit $ac_status); }; } &&
39141 { ac_try='test -s conftest.$ac_objext'
39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143 (eval $ac_try) 2>&5
39144 ac_status=$?
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); }; }; then
39147 ac_cv_func_which_gethostbyname_r=three
39148else
39149 echo "$as_me: failed program was:" >&5
39150sed 's/^/| /' conftest.$ac_ext >&5
39151
39152fi
39153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39154
39155fi
39156
004ee6da
RL
39157
39158
39159fi
39160
39161case "$ac_cv_func_which_gethostbyname_r" in
39162 three)
39163 echo "$as_me:$LINENO: result: three" >&5
39164echo "${ECHO_T}three" >&6
39165 cat >>confdefs.h <<\_ACEOF
39166#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39167_ACEOF
39168
39169 ;;
39170
39171 five)
39172 echo "$as_me:$LINENO: result: five" >&5
39173echo "${ECHO_T}five" >&6
39174 cat >>confdefs.h <<\_ACEOF
39175#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39176_ACEOF
39177
39178 ;;
39179
39180 six)
39181 echo "$as_me:$LINENO: result: six" >&5
39182echo "${ECHO_T}six" >&6
39183 cat >>confdefs.h <<\_ACEOF
39184#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39185_ACEOF
39186
39187 ;;
39188
39189 no)
39190 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39191echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39192 ;;
39193
39194 unknown)
39195 echo "$as_me:$LINENO: result: can't tell" >&5
39196echo "${ECHO_T}can't tell" >&6
39197 ;;
39198
39199 *)
39200 { { echo "$as_me:$LINENO: error: internal error" >&5
39201echo "$as_me: error: internal error" >&2;}
39202 { (exit 1); exit 1; }; }
39203 ;;
39204esac
39205
5ec3bc43
JS
39206ac_ext=cc
39207ac_cpp='$CXXCPP $CPPFLAGS'
39208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39211
39212
39213
39214 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39215 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39216 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39217echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39218if test "${ac_cv_func_gethostbyname+set}" = set; then
39219 echo $ECHO_N "(cached) $ECHO_C" >&6
39220else
39221 cat >conftest.$ac_ext <<_ACEOF
39222/* confdefs.h. */
39223_ACEOF
39224cat confdefs.h >>conftest.$ac_ext
39225cat >>conftest.$ac_ext <<_ACEOF
39226/* end confdefs.h. */
39227/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39229#define gethostbyname innocuous_gethostbyname
39230
39231/* System header to define __stub macros and hopefully few prototypes,
39232 which can conflict with char gethostbyname (); below.
39233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39234 <limits.h> exists even on freestanding compilers. */
39235
39236#ifdef __STDC__
39237# include <limits.h>
39238#else
39239# include <assert.h>
39240#endif
39241
39242#undef gethostbyname
39243
39244/* Override any gcc2 internal prototype to avoid an error. */
39245#ifdef __cplusplus
39246extern "C"
39247{
39248#endif
39249/* We use char because int might match the return type of a gcc2
39250 builtin and then its argument prototype would still apply. */
39251char gethostbyname ();
39252/* The GNU C library defines this for functions which it implements
39253 to always fail with ENOSYS. Some functions are actually named
39254 something starting with __ and the normal name is an alias. */
39255#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39256choke me
39257#else
39258char (*f) () = gethostbyname;
39259#endif
39260#ifdef __cplusplus
39261}
39262#endif
39263
39264int
39265main ()
39266{
39267return f != gethostbyname;
39268 ;
39269 return 0;
39270}
39271_ACEOF
39272rm -f conftest.$ac_objext conftest$ac_exeext
39273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39274 (eval $ac_link) 2>conftest.er1
39275 ac_status=$?
39276 grep -v '^ *+' conftest.er1 >conftest.err
39277 rm -f conftest.er1
39278 cat conftest.err >&5
39279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280 (exit $ac_status); } &&
6954625c 39281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283 (eval $ac_try) 2>&5
39284 ac_status=$?
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); }; } &&
39287 { ac_try='test -s conftest$ac_exeext'
39288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39289 (eval $ac_try) 2>&5
39290 ac_status=$?
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); }; }; then
39293 ac_cv_func_gethostbyname=yes
39294else
39295 echo "$as_me: failed program was:" >&5
39296sed 's/^/| /' conftest.$ac_ext >&5
39297
39298ac_cv_func_gethostbyname=no
39299fi
39300rm -f conftest.err conftest.$ac_objext \
39301 conftest$ac_exeext conftest.$ac_ext
39302fi
39303echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39304echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39305if test $ac_cv_func_gethostbyname = yes; then
39306 cat >>confdefs.h <<\_ACEOF
39307#define HAVE_GETHOSTBYNAME 1
39308_ACEOF
39309
39310fi
39311
39312 fi
39313 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39314echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39315if test "${ac_cv_func_getservbyname_r+set}" = set; then
39316 echo $ECHO_N "(cached) $ECHO_C" >&6
39317else
39318 cat >conftest.$ac_ext <<_ACEOF
39319/* confdefs.h. */
39320_ACEOF
39321cat confdefs.h >>conftest.$ac_ext
39322cat >>conftest.$ac_ext <<_ACEOF
39323/* end confdefs.h. */
39324/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39326#define getservbyname_r innocuous_getservbyname_r
39327
39328/* System header to define __stub macros and hopefully few prototypes,
39329 which can conflict with char getservbyname_r (); below.
39330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39331 <limits.h> exists even on freestanding compilers. */
39332
39333#ifdef __STDC__
39334# include <limits.h>
39335#else
39336# include <assert.h>
39337#endif
39338
39339#undef getservbyname_r
39340
39341/* Override any gcc2 internal prototype to avoid an error. */
39342#ifdef __cplusplus
39343extern "C"
39344{
39345#endif
39346/* We use char because int might match the return type of a gcc2
39347 builtin and then its argument prototype would still apply. */
39348char getservbyname_r ();
39349/* The GNU C library defines this for functions which it implements
39350 to always fail with ENOSYS. Some functions are actually named
39351 something starting with __ and the normal name is an alias. */
39352#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39353choke me
39354#else
39355char (*f) () = getservbyname_r;
39356#endif
39357#ifdef __cplusplus
39358}
39359#endif
39360
39361int
39362main ()
39363{
39364return f != getservbyname_r;
39365 ;
39366 return 0;
39367}
39368_ACEOF
39369rm -f conftest.$ac_objext conftest$ac_exeext
39370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39371 (eval $ac_link) 2>conftest.er1
39372 ac_status=$?
39373 grep -v '^ *+' conftest.er1 >conftest.err
39374 rm -f conftest.er1
39375 cat conftest.err >&5
39376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377 (exit $ac_status); } &&
6954625c 39378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39380 (eval $ac_try) 2>&5
39381 ac_status=$?
39382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); }; } &&
39384 { ac_try='test -s conftest$ac_exeext'
39385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39386 (eval $ac_try) 2>&5
39387 ac_status=$?
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); }; }; then
39390 ac_cv_func_getservbyname_r=yes
39391else
39392 echo "$as_me: failed program was:" >&5
39393sed 's/^/| /' conftest.$ac_ext >&5
39394
39395ac_cv_func_getservbyname_r=no
39396fi
39397rm -f conftest.err conftest.$ac_objext \
39398 conftest$ac_exeext conftest.$ac_ext
39399fi
39400echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39401echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39402if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39403 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39404/* confdefs.h. */
39405_ACEOF
39406cat confdefs.h >>conftest.$ac_ext
39407cat >>conftest.$ac_ext <<_ACEOF
39408/* end confdefs.h. */
99879bbf 39409#include <netdb.h>
004ee6da
RL
39410int
39411main ()
39412{
39413
99879bbf
MR
39414 char *name;
39415 char *proto;
39416 struct servent *se;
39417 struct servent_data data;
39418 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39419
39420 ;
39421 return 0;
39422}
39423_ACEOF
39424rm -f conftest.$ac_objext
39425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39426 (eval $ac_compile) 2>conftest.er1
39427 ac_status=$?
39428 grep -v '^ *+' conftest.er1 >conftest.err
39429 rm -f conftest.er1
39430 cat conftest.err >&5
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); } &&
6954625c 39433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435 (eval $ac_try) 2>&5
39436 ac_status=$?
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); }; } &&
39439 { ac_try='test -s conftest.$ac_objext'
39440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441 (eval $ac_try) 2>&5
39442 ac_status=$?
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); }; }; then
39445 ac_cv_func_which_getservbyname_r=four
39446else
39447 echo "$as_me: failed program was:" >&5
39448sed 's/^/| /' conftest.$ac_ext >&5
39449
99879bbf 39450cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39451/* confdefs.h. */
39452_ACEOF
39453cat confdefs.h >>conftest.$ac_ext
39454cat >>conftest.$ac_ext <<_ACEOF
39455/* end confdefs.h. */
99879bbf 39456#include <netdb.h>
004ee6da
RL
39457int
39458main ()
39459{
39460
99879bbf
MR
39461 char *name;
39462 char *proto;
39463 struct servent *se, *res;
39464 char buffer[2048];
39465 int buflen = 2048;
39466 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39467
39468 ;
39469 return 0;
39470}
39471_ACEOF
39472rm -f conftest.$ac_objext
39473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39474 (eval $ac_compile) 2>conftest.er1
39475 ac_status=$?
39476 grep -v '^ *+' conftest.er1 >conftest.err
39477 rm -f conftest.er1
39478 cat conftest.err >&5
39479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39480 (exit $ac_status); } &&
6954625c 39481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39483 (eval $ac_try) 2>&5
39484 ac_status=$?
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); }; } &&
39487 { ac_try='test -s conftest.$ac_objext'
39488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489 (eval $ac_try) 2>&5
39490 ac_status=$?
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); }; }; then
39493 ac_cv_func_which_getservbyname_r=six
39494else
39495 echo "$as_me: failed program was:" >&5
39496sed 's/^/| /' conftest.$ac_ext >&5
39497
99879bbf 39498cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39499/* confdefs.h. */
39500_ACEOF
39501cat confdefs.h >>conftest.$ac_ext
39502cat >>conftest.$ac_ext <<_ACEOF
39503/* end confdefs.h. */
99879bbf 39504#include <netdb.h>
004ee6da
RL
39505int
39506main ()
39507{
39508
99879bbf
MR
39509 char *name;
39510 char *proto;
39511 struct servent *se;
39512 char buffer[2048];
39513 int buflen = 2048;
39514 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39515
39516 ;
39517 return 0;
39518}
39519_ACEOF
39520rm -f conftest.$ac_objext
39521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39522 (eval $ac_compile) 2>conftest.er1
39523 ac_status=$?
39524 grep -v '^ *+' conftest.er1 >conftest.err
39525 rm -f conftest.er1
39526 cat conftest.err >&5
39527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528 (exit $ac_status); } &&
6954625c 39529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39531 (eval $ac_try) 2>&5
39532 ac_status=$?
39533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39534 (exit $ac_status); }; } &&
39535 { ac_try='test -s conftest.$ac_objext'
39536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39537 (eval $ac_try) 2>&5
39538 ac_status=$?
39539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540 (exit $ac_status); }; }; then
39541 ac_cv_func_which_getservbyname_r=five
39542else
39543 echo "$as_me: failed program was:" >&5
39544sed 's/^/| /' conftest.$ac_ext >&5
39545
39546ac_cv_func_which_getservbyname_r=no
99879bbf 39547
004ee6da
RL
39548fi
39549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39550
004ee6da
RL
39551fi
39552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39553
004ee6da
RL
39554fi
39555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39556else
39557 ac_cv_func_which_getservbyname_r=no
39558fi
39559
004ee6da
RL
39560
39561if test $ac_cv_func_which_getservbyname_r = six; then
39562 cat >>confdefs.h <<\_ACEOF
39563#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39564_ACEOF
39565
39566elif test $ac_cv_func_which_getservbyname_r = five; then
39567 cat >>confdefs.h <<\_ACEOF
39568#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39569_ACEOF
39570
39571elif test $ac_cv_func_which_getservbyname_r = four; then
39572 cat >>confdefs.h <<\_ACEOF
39573#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39574_ACEOF
39575
004ee6da
RL
39576fi
39577
39578
39579 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39580 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39581
39582for ac_func in getservbyname
39583do
39584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39585echo "$as_me:$LINENO: checking for $ac_func" >&5
39586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39587if eval "test \"\${$as_ac_var+set}\" = set"; then
39588 echo $ECHO_N "(cached) $ECHO_C" >&6
39589else
39590 cat >conftest.$ac_ext <<_ACEOF
39591/* confdefs.h. */
39592_ACEOF
39593cat confdefs.h >>conftest.$ac_ext
39594cat >>conftest.$ac_ext <<_ACEOF
39595/* end confdefs.h. */
39596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39598#define $ac_func innocuous_$ac_func
39599
39600/* System header to define __stub macros and hopefully few prototypes,
39601 which can conflict with char $ac_func (); below.
39602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39603 <limits.h> exists even on freestanding compilers. */
39604
39605#ifdef __STDC__
39606# include <limits.h>
39607#else
39608# include <assert.h>
39609#endif
39610
39611#undef $ac_func
39612
39613/* Override any gcc2 internal prototype to avoid an error. */
39614#ifdef __cplusplus
39615extern "C"
39616{
39617#endif
39618/* We use char because int might match the return type of a gcc2
39619 builtin and then its argument prototype would still apply. */
39620char $ac_func ();
39621/* The GNU C library defines this for functions which it implements
39622 to always fail with ENOSYS. Some functions are actually named
39623 something starting with __ and the normal name is an alias. */
39624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39625choke me
39626#else
39627char (*f) () = $ac_func;
39628#endif
39629#ifdef __cplusplus
39630}
39631#endif
39632
39633int
39634main ()
39635{
39636return f != $ac_func;
39637 ;
39638 return 0;
39639}
39640_ACEOF
39641rm -f conftest.$ac_objext conftest$ac_exeext
39642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39643 (eval $ac_link) 2>conftest.er1
39644 ac_status=$?
39645 grep -v '^ *+' conftest.er1 >conftest.err
39646 rm -f conftest.er1
39647 cat conftest.err >&5
39648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); } &&
6954625c 39650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39652 (eval $ac_try) 2>&5
39653 ac_status=$?
39654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39655 (exit $ac_status); }; } &&
39656 { ac_try='test -s conftest$ac_exeext'
39657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39658 (eval $ac_try) 2>&5
39659 ac_status=$?
39660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661 (exit $ac_status); }; }; then
39662 eval "$as_ac_var=yes"
39663else
39664 echo "$as_me: failed program was:" >&5
39665sed 's/^/| /' conftest.$ac_ext >&5
39666
39667eval "$as_ac_var=no"
39668fi
39669rm -f conftest.err conftest.$ac_objext \
39670 conftest$ac_exeext conftest.$ac_ext
39671fi
39672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39674if test `eval echo '${'$as_ac_var'}'` = yes; then
39675 cat >>confdefs.h <<_ACEOF
39676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39677_ACEOF
39678 cat >>confdefs.h <<\_ACEOF
39679#define HAVE_GETSERVBYNAME 1
39680_ACEOF
39681
39682fi
39683done
39684
39685 fi
39686
004ee6da
RL
39687if test "$wxUSE_THREADS" = "yes"; then
39688 cat >>confdefs.h <<\_ACEOF
39689#define wxUSE_THREADS 1
39690_ACEOF
39691
39692
39693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39694else
39695 if test "$ac_cv_func_strtok_r" = "yes"; then
39696 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39697echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39698 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39699 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39700 echo "$as_me:$LINENO: result: yes" >&5
39701echo "${ECHO_T}yes" >&6
39702 else
39703 echo "$as_me:$LINENO: result: no" >&5
39704echo "${ECHO_T}no" >&6
39705 fi
39706 fi
39707fi
39708
39709if test "$WXGTK20" = 1 ; then
39710 cat >>confdefs.h <<_ACEOF
39711#define __WXGTK20__ $WXGTK20
39712_ACEOF
39713
39714 WXGTK12=1
39715fi
39716
39717if test "$WXGTK12" = 1 ; then
39718 cat >>confdefs.h <<_ACEOF
39719#define __WXGTK12__ $WXGTK12
39720_ACEOF
39721
39722fi
39723
39724if test "$WXGTK127" = 1 ; then
39725 cat >>confdefs.h <<_ACEOF
39726#define __WXGTK127__ $WXGTK127
39727_ACEOF
39728
39729fi
39730
39731if test "$WXGPE" = 1 ; then
39732 cat >>confdefs.h <<_ACEOF
39733#define __WXGPE__ $WXGPE
39734_ACEOF
39735
39736fi
39737
39738DEBUG_CFLAGS=
39739if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39740 DEBUG_CFLAGS="-g"
39741 wxUSE_OPTIMISE=no
39742fi
39743
39744if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39745 wxUSE_DEBUG_INFO=yes
39746 if test "$GCC" = yes; then
39747 DEBUG_CFLAGS="-ggdb"
39748 fi
39749fi
39750
39751if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39752 cat >>confdefs.h <<\_ACEOF
39753#define WXDEBUG 1
39754_ACEOF
39755
39756 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39757else
39758 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39759 if test "x$wxGTK_VERSION" = "x1" ; then
39760 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39761 fi
004ee6da
RL
39762 fi
39763fi
39764
39765if test "$wxUSE_MEM_TRACING" = "yes" ; then
39766 cat >>confdefs.h <<\_ACEOF
39767#define wxUSE_MEMORY_TRACING 1
39768_ACEOF
39769
39770 cat >>confdefs.h <<\_ACEOF
39771#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39772_ACEOF
39773
39774 cat >>confdefs.h <<\_ACEOF
39775#define wxUSE_DEBUG_NEW_ALWAYS 1
39776_ACEOF
39777
39778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39779fi
39780
39781if test "$wxUSE_DMALLOC" = "yes" ; then
39782 DMALLOC_LIBS="-ldmallocthcxx"
39783fi
39784
39785PROFILE_FLAGS=
39786if test "$wxUSE_PROFILE" = "yes" ; then
39787 PROFILE_FLAGS=" -pg"
39788fi
39789
39790if test "$GCC" = "yes" ; then
39791 if test "$wxUSE_NO_RTTI" = "yes" ; then
39792 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39793 fi
39794 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39795 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39796 fi
39797 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39798 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39799 fi
39800
39801 case "${host}" in
39802 powerpc*-*-aix* )
39803 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39804 ;;
39805 *-hppa* )
39806 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39807 ;;
39808 esac
39809fi
39810
39811OPTIMISE_CFLAGS=
39812if test "$wxUSE_OPTIMISE" = "no" ; then
39813 if test "$GCC" = yes ; then
39814 OPTIMISE_CFLAGS="-O0"
39815 fi
39816else
39817 if test "$GCC" = yes ; then
e5efa97e
VZ
39818 case "${host}" in
39819 *-pc-os2_emx | *-pc-os2-emx )
39820 OPTIMISE_CFLAGS="-O2"
39821 ;;
39822 *)
39823 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
39824 ;;
39825 esac
004ee6da
RL
39826 else
39827 OPTIMISE_CFLAGS="-O"
39828 fi
39829fi
39830
39831
39832if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39833 cat >>confdefs.h <<\_ACEOF
39834#define WXWIN_COMPATIBILITY_2_4 1
39835_ACEOF
39836
39837
39838 WXWIN_COMPATIBILITY_2_6="yes"
39839fi
39840
39841if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39842 cat >>confdefs.h <<\_ACEOF
39843#define WXWIN_COMPATIBILITY_2_6 1
39844_ACEOF
39845
39846fi
39847
39848
39849if test "$wxUSE_GUI" = "yes"; then
39850 cat >>confdefs.h <<\_ACEOF
39851#define wxUSE_GUI 1
39852_ACEOF
39853
39854
39855 fi
39856
39857
39858if test "$wxUSE_UNIX" = "yes"; then
39859 cat >>confdefs.h <<\_ACEOF
39860#define wxUSE_UNIX 1
39861_ACEOF
39862
39863fi
39864
39865
39866if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39867
39868 HAVE_DL_FUNCS=0
39869 HAVE_SHL_FUNCS=0
39870 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39871 if test "$USE_DARWIN" = 1; then
39872 HAVE_DL_FUNCS=1
39873 elif test "$USE_DOS" = 1; then
39874 HAVE_DL_FUNCS=0
39875 else
39876
39877for ac_func in dlopen
39878do
39879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39880echo "$as_me:$LINENO: checking for $ac_func" >&5
39881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39882if eval "test \"\${$as_ac_var+set}\" = set"; then
39883 echo $ECHO_N "(cached) $ECHO_C" >&6
39884else
39885 cat >conftest.$ac_ext <<_ACEOF
39886/* confdefs.h. */
39887_ACEOF
39888cat confdefs.h >>conftest.$ac_ext
39889cat >>conftest.$ac_ext <<_ACEOF
39890/* end confdefs.h. */
39891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39893#define $ac_func innocuous_$ac_func
39894
39895/* System header to define __stub macros and hopefully few prototypes,
39896 which can conflict with char $ac_func (); below.
39897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39898 <limits.h> exists even on freestanding compilers. */
39899
39900#ifdef __STDC__
39901# include <limits.h>
39902#else
39903# include <assert.h>
39904#endif
39905
39906#undef $ac_func
39907
39908/* Override any gcc2 internal prototype to avoid an error. */
39909#ifdef __cplusplus
39910extern "C"
39911{
39912#endif
39913/* We use char because int might match the return type of a gcc2
39914 builtin and then its argument prototype would still apply. */
39915char $ac_func ();
39916/* The GNU C library defines this for functions which it implements
39917 to always fail with ENOSYS. Some functions are actually named
39918 something starting with __ and the normal name is an alias. */
39919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39920choke me
39921#else
39922char (*f) () = $ac_func;
39923#endif
39924#ifdef __cplusplus
39925}
39926#endif
39927
39928int
39929main ()
39930{
39931return f != $ac_func;
a848cd7e
SC
39932 ;
39933 return 0;
39934}
39935_ACEOF
39936rm -f conftest.$ac_objext conftest$ac_exeext
39937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39938 (eval $ac_link) 2>conftest.er1
a848cd7e 39939 ac_status=$?
ac1cb8d3
VS
39940 grep -v '^ *+' conftest.er1 >conftest.err
39941 rm -f conftest.er1
39942 cat conftest.err >&5
a848cd7e
SC
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); } &&
6954625c 39945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39948 ac_status=$?
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; } &&
39951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39954 ac_status=$?
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; }; then
39957 eval "$as_ac_var=yes"
39958else
39959 echo "$as_me: failed program was:" >&5
39960sed 's/^/| /' conftest.$ac_ext >&5
39961
39962eval "$as_ac_var=no"
39963fi
ac1cb8d3
VS
39964rm -f conftest.err conftest.$ac_objext \
39965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39966fi
39967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39969if test `eval echo '${'$as_ac_var'}'` = yes; then
39970 cat >>confdefs.h <<_ACEOF
39971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39972_ACEOF
39973
39974 cat >>confdefs.h <<\_ACEOF
39975#define HAVE_DLOPEN 1
39976_ACEOF
39977
39978 HAVE_DL_FUNCS=1
39979
39980else
39981
39982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39983echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39984if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39985 echo $ECHO_N "(cached) $ECHO_C" >&6
39986else
39987 ac_check_lib_save_LIBS=$LIBS
39988LIBS="-ldl $LIBS"
39989cat >conftest.$ac_ext <<_ACEOF
39990/* confdefs.h. */
39991_ACEOF
39992cat confdefs.h >>conftest.$ac_ext
39993cat >>conftest.$ac_ext <<_ACEOF
39994/* end confdefs.h. */
39995
39996/* Override any gcc2 internal prototype to avoid an error. */
39997#ifdef __cplusplus
39998extern "C"
39999#endif
40000/* We use char because int might match the return type of a gcc2
40001 builtin and then its argument prototype would still apply. */
40002char dlopen ();
40003int
40004main ()
40005{
40006dlopen ();
40007 ;
40008 return 0;
40009}
40010_ACEOF
40011rm -f conftest.$ac_objext conftest$ac_exeext
40012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40013 (eval $ac_link) 2>conftest.er1
a848cd7e 40014 ac_status=$?
ac1cb8d3
VS
40015 grep -v '^ *+' conftest.er1 >conftest.err
40016 rm -f conftest.er1
40017 cat conftest.err >&5
a848cd7e
SC
40018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019 (exit $ac_status); } &&
6954625c 40020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40022 (eval $ac_try) 2>&5
40023 ac_status=$?
40024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025 (exit $ac_status); }; } &&
40026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40028 (eval $ac_try) 2>&5
40029 ac_status=$?
40030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40031 (exit $ac_status); }; }; then
40032 ac_cv_lib_dl_dlopen=yes
40033else
40034 echo "$as_me: failed program was:" >&5
40035sed 's/^/| /' conftest.$ac_ext >&5
40036
40037ac_cv_lib_dl_dlopen=no
40038fi
ac1cb8d3
VS
40039rm -f conftest.err conftest.$ac_objext \
40040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40041LIBS=$ac_check_lib_save_LIBS
40042fi
40043echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40044echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40045if test $ac_cv_lib_dl_dlopen = yes; then
40046
40047 cat >>confdefs.h <<\_ACEOF
40048#define HAVE_DLOPEN 1
40049_ACEOF
40050
40051 HAVE_DL_FUNCS=1
40052 DL_LINK=" -ldl$DL_LINK"
40053
40054else
40055
40056
40057for ac_func in shl_load
40058do
40059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40060echo "$as_me:$LINENO: checking for $ac_func" >&5
40061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40062if eval "test \"\${$as_ac_var+set}\" = set"; then
40063 echo $ECHO_N "(cached) $ECHO_C" >&6
40064else
40065 cat >conftest.$ac_ext <<_ACEOF
40066/* confdefs.h. */
40067_ACEOF
40068cat confdefs.h >>conftest.$ac_ext
40069cat >>conftest.$ac_ext <<_ACEOF
40070/* end confdefs.h. */
ac1cb8d3
VS
40071/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40073#define $ac_func innocuous_$ac_func
40074
a848cd7e
SC
40075/* System header to define __stub macros and hopefully few prototypes,
40076 which can conflict with char $ac_func (); below.
40077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40078 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40079
a848cd7e
SC
40080#ifdef __STDC__
40081# include <limits.h>
40082#else
40083# include <assert.h>
40084#endif
ac1cb8d3
VS
40085
40086#undef $ac_func
40087
a848cd7e
SC
40088/* Override any gcc2 internal prototype to avoid an error. */
40089#ifdef __cplusplus
40090extern "C"
40091{
40092#endif
40093/* We use char because int might match the return type of a gcc2
40094 builtin and then its argument prototype would still apply. */
40095char $ac_func ();
40096/* The GNU C library defines this for functions which it implements
40097 to always fail with ENOSYS. Some functions are actually named
40098 something starting with __ and the normal name is an alias. */
40099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40100choke me
40101#else
40102char (*f) () = $ac_func;
40103#endif
40104#ifdef __cplusplus
40105}
40106#endif
40107
40108int
40109main ()
40110{
40111return f != $ac_func;
40112 ;
40113 return 0;
40114}
40115_ACEOF
40116rm -f conftest.$ac_objext conftest$ac_exeext
40117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40118 (eval $ac_link) 2>conftest.er1
a848cd7e 40119 ac_status=$?
ac1cb8d3
VS
40120 grep -v '^ *+' conftest.er1 >conftest.err
40121 rm -f conftest.er1
40122 cat conftest.err >&5
a848cd7e
SC
40123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124 (exit $ac_status); } &&
6954625c 40125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
40131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133 (eval $ac_try) 2>&5
40134 ac_status=$?
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); }; }; then
40137 eval "$as_ac_var=yes"
40138else
40139 echo "$as_me: failed program was:" >&5
40140sed 's/^/| /' conftest.$ac_ext >&5
40141
40142eval "$as_ac_var=no"
40143fi
ac1cb8d3
VS
40144rm -f conftest.err conftest.$ac_objext \
40145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40146fi
40147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40149if test `eval echo '${'$as_ac_var'}'` = yes; then
40150 cat >>confdefs.h <<_ACEOF
40151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40152_ACEOF
40153
40154 cat >>confdefs.h <<\_ACEOF
40155#define HAVE_SHL_LOAD 1
40156_ACEOF
40157
40158 HAVE_SHL_FUNCS=1
40159
40160else
40161
40162 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40163echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40164if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40165 echo $ECHO_N "(cached) $ECHO_C" >&6
40166else
40167 ac_check_lib_save_LIBS=$LIBS
40168LIBS="-lshl_load $LIBS"
40169cat >conftest.$ac_ext <<_ACEOF
40170/* confdefs.h. */
40171_ACEOF
40172cat confdefs.h >>conftest.$ac_ext
40173cat >>conftest.$ac_ext <<_ACEOF
40174/* end confdefs.h. */
40175
40176/* Override any gcc2 internal prototype to avoid an error. */
40177#ifdef __cplusplus
40178extern "C"
40179#endif
40180/* We use char because int might match the return type of a gcc2
40181 builtin and then its argument prototype would still apply. */
40182char dld ();
40183int
40184main ()
40185{
40186dld ();
40187 ;
40188 return 0;
40189}
40190_ACEOF
40191rm -f conftest.$ac_objext conftest$ac_exeext
40192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40193 (eval $ac_link) 2>conftest.er1
a848cd7e 40194 ac_status=$?
ac1cb8d3
VS
40195 grep -v '^ *+' conftest.er1 >conftest.err
40196 rm -f conftest.er1
40197 cat conftest.err >&5
a848cd7e
SC
40198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40199 (exit $ac_status); } &&
6954625c 40200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40202 (eval $ac_try) 2>&5
40203 ac_status=$?
40204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205 (exit $ac_status); }; } &&
40206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40208 (eval $ac_try) 2>&5
40209 ac_status=$?
40210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40211 (exit $ac_status); }; }; then
40212 ac_cv_lib_shl_load_dld=yes
40213else
40214 echo "$as_me: failed program was:" >&5
40215sed 's/^/| /' conftest.$ac_ext >&5
40216
40217ac_cv_lib_shl_load_dld=no
40218fi
ac1cb8d3
VS
40219rm -f conftest.err conftest.$ac_objext \
40220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40221LIBS=$ac_check_lib_save_LIBS
40222fi
40223echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40224echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40225if test $ac_cv_lib_shl_load_dld = yes; then
40226
40227 HAVE_SHL_FUNCS=1
40228 DL_LINK=" -ldld$DL_LINK"
40229
40230fi
40231
40232
40233fi
40234done
40235
40236
40237fi
40238
40239
40240fi
40241done
40242
40243
40244 if test "$HAVE_DL_FUNCS" = 1; then
40245
40246for ac_func in dlerror
40247do
40248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40249echo "$as_me:$LINENO: checking for $ac_func" >&5
40250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40251if eval "test \"\${$as_ac_var+set}\" = set"; then
40252 echo $ECHO_N "(cached) $ECHO_C" >&6
40253else
40254 cat >conftest.$ac_ext <<_ACEOF
40255/* confdefs.h. */
40256_ACEOF
40257cat confdefs.h >>conftest.$ac_ext
40258cat >>conftest.$ac_ext <<_ACEOF
40259/* end confdefs.h. */
ac1cb8d3
VS
40260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40262#define $ac_func innocuous_$ac_func
40263
a848cd7e
SC
40264/* System header to define __stub macros and hopefully few prototypes,
40265 which can conflict with char $ac_func (); below.
40266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40267 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40268
a848cd7e
SC
40269#ifdef __STDC__
40270# include <limits.h>
40271#else
40272# include <assert.h>
40273#endif
ac1cb8d3
VS
40274
40275#undef $ac_func
40276
a848cd7e
SC
40277/* Override any gcc2 internal prototype to avoid an error. */
40278#ifdef __cplusplus
40279extern "C"
40280{
40281#endif
40282/* We use char because int might match the return type of a gcc2
40283 builtin and then its argument prototype would still apply. */
40284char $ac_func ();
40285/* The GNU C library defines this for functions which it implements
40286 to always fail with ENOSYS. Some functions are actually named
40287 something starting with __ and the normal name is an alias. */
40288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40289choke me
40290#else
40291char (*f) () = $ac_func;
40292#endif
40293#ifdef __cplusplus
40294}
40295#endif
40296
40297int
40298main ()
40299{
40300return f != $ac_func;
40301 ;
40302 return 0;
40303}
40304_ACEOF
40305rm -f conftest.$ac_objext conftest$ac_exeext
40306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40307 (eval $ac_link) 2>conftest.er1
a848cd7e 40308 ac_status=$?
ac1cb8d3
VS
40309 grep -v '^ *+' conftest.er1 >conftest.err
40310 rm -f conftest.er1
40311 cat conftest.err >&5
a848cd7e
SC
40312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313 (exit $ac_status); } &&
6954625c 40314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40316 (eval $ac_try) 2>&5
40317 ac_status=$?
40318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40319 (exit $ac_status); }; } &&
40320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40322 (eval $ac_try) 2>&5
40323 ac_status=$?
40324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40325 (exit $ac_status); }; }; then
40326 eval "$as_ac_var=yes"
40327else
40328 echo "$as_me: failed program was:" >&5
40329sed 's/^/| /' conftest.$ac_ext >&5
40330
40331eval "$as_ac_var=no"
40332fi
ac1cb8d3
VS
40333rm -f conftest.err conftest.$ac_objext \
40334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40335fi
40336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40338if test `eval echo '${'$as_ac_var'}'` = yes; then
40339 cat >>confdefs.h <<_ACEOF
40340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40341_ACEOF
40342 cat >>confdefs.h <<\_ACEOF
40343#define HAVE_DLERROR 1
40344_ACEOF
40345
40346else
40347
40348 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40349echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40350if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40351 echo $ECHO_N "(cached) $ECHO_C" >&6
40352else
40353 ac_check_lib_save_LIBS=$LIBS
40354LIBS="-ldl $LIBS"
40355cat >conftest.$ac_ext <<_ACEOF
40356/* confdefs.h. */
40357_ACEOF
40358cat confdefs.h >>conftest.$ac_ext
40359cat >>conftest.$ac_ext <<_ACEOF
40360/* end confdefs.h. */
40361
40362/* Override any gcc2 internal prototype to avoid an error. */
40363#ifdef __cplusplus
40364extern "C"
40365#endif
40366/* We use char because int might match the return type of a gcc2
40367 builtin and then its argument prototype would still apply. */
40368char dlerror ();
40369int
40370main ()
40371{
40372dlerror ();
40373 ;
40374 return 0;
40375}
40376_ACEOF
40377rm -f conftest.$ac_objext conftest$ac_exeext
40378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40379 (eval $ac_link) 2>conftest.er1
a848cd7e 40380 ac_status=$?
ac1cb8d3
VS
40381 grep -v '^ *+' conftest.er1 >conftest.err
40382 rm -f conftest.er1
40383 cat conftest.err >&5
a848cd7e
SC
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); } &&
6954625c 40386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40388 (eval $ac_try) 2>&5
40389 ac_status=$?
40390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40391 (exit $ac_status); }; } &&
40392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40394 (eval $ac_try) 2>&5
40395 ac_status=$?
40396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397 (exit $ac_status); }; }; then
40398 ac_cv_lib_dl_dlerror=yes
40399else
40400 echo "$as_me: failed program was:" >&5
40401sed 's/^/| /' conftest.$ac_ext >&5
40402
40403ac_cv_lib_dl_dlerror=no
40404fi
ac1cb8d3
VS
40405rm -f conftest.err conftest.$ac_objext \
40406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40407LIBS=$ac_check_lib_save_LIBS
40408fi
40409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40410echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40411if test $ac_cv_lib_dl_dlerror = yes; then
40412 cat >>confdefs.h <<\_ACEOF
40413#define HAVE_DLERROR 1
40414_ACEOF
40415
40416fi
40417
40418
40419
40420fi
40421done
40422
40423 fi
40424 fi
40425
40426 if test "$HAVE_DL_FUNCS" = 0; then
40427 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40428 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40429 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40430echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40431 wxUSE_DYNAMIC_LOADER=no
40432 wxUSE_DYNLIB_CLASS=no
40433 else
40434 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40435echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40436 fi
40437 fi
40438 fi
40439 fi
40440fi
40441
40442if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40443 cat >>confdefs.h <<\_ACEOF
40444#define wxUSE_DYNAMIC_LOADER 1
40445_ACEOF
40446
40447fi
40448if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40449 cat >>confdefs.h <<\_ACEOF
40450#define wxUSE_DYNLIB_CLASS 1
40451_ACEOF
40452
40453fi
40454
40455
40456
40457if test "$wxUSE_PLUGINS" = "yes" ; then
40458 if test "$wxUSE_SHARED" = "no" ; then
40459 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40460echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40461 wxUSE_PLUGINS=no
40462 fi
40463 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40464 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40465echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40466 wxUSE_PLUGINS=no
40467 fi
40468 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40469 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40470echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40471 wxUSE_PLUGINS=no
40472 fi
40473 if test "$wxUSE_PLUGINS" = "yes" ; then
40474 cat >>confdefs.h <<\_ACEOF
40475#define wxUSE_PLUGINS 1
40476_ACEOF
40477
40478 fi
40479fi
40480
40481
40482if test "$wxUSE_STL" = "yes"; then
40483 cat >>confdefs.h <<\_ACEOF
40484#define wxUSE_STL 1
40485_ACEOF
40486
40487fi
40488
40489if test "$wxUSE_APPLE_IEEE" = "yes"; then
40490 cat >>confdefs.h <<\_ACEOF
40491#define wxUSE_APPLE_IEEE 1
40492_ACEOF
40493
40494fi
40495
40496if test "$wxUSE_TIMER" = "yes"; then
40497 cat >>confdefs.h <<\_ACEOF
40498#define wxUSE_TIMER 1
40499_ACEOF
40500
40501fi
40502
9c112555 40503if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40504 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40505echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40506if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40507 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40508else
d12aef51
VZ
40509
40510 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40511/* confdefs.h. */
40512_ACEOF
40513cat confdefs.h >>conftest.$ac_ext
40514cat >>conftest.$ac_ext <<_ACEOF
40515/* end confdefs.h. */
d12aef51
VZ
40516
40517 #include <sys/soundcard.h>
40518
40519int
40520main ()
40521{
40522
40523 ioctl(0, SNDCTL_DSP_SYNC, 0);
40524
40525 ;
40526 return 0;
40527}
a848cd7e 40528_ACEOF
d12aef51
VZ
40529rm -f conftest.$ac_objext conftest$ac_exeext
40530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40531 (eval $ac_link) 2>conftest.er1
a848cd7e 40532 ac_status=$?
ac1cb8d3
VS
40533 grep -v '^ *+' conftest.er1 >conftest.err
40534 rm -f conftest.er1
40535 cat conftest.err >&5
a848cd7e
SC
40536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40537 (exit $ac_status); } &&
6954625c 40538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40540 (eval $ac_try) 2>&5
40541 ac_status=$?
40542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40543 (exit $ac_status); }; } &&
d12aef51 40544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40546 (eval $ac_try) 2>&5
40547 ac_status=$?
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); }; }; then
d12aef51 40550 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40551else
40552 echo "$as_me: failed program was:" >&5
40553sed 's/^/| /' conftest.$ac_ext >&5
40554
a848cd7e 40555
d12aef51
VZ
40556 saveLibs="$LIBS"
40557 LIBS="$saveLibs -lossaudio"
40558 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40559/* confdefs.h. */
40560_ACEOF
40561cat confdefs.h >>conftest.$ac_ext
40562cat >>conftest.$ac_ext <<_ACEOF
40563/* end confdefs.h. */
d12aef51
VZ
40564
40565 #include <sys/soundcard.h>
40566
40567int
40568main ()
40569{
40570
40571 ioctl(0, SNDCTL_DSP_SYNC, 0);
40572
40573 ;
40574 return 0;
40575}
a848cd7e 40576_ACEOF
d12aef51
VZ
40577rm -f conftest.$ac_objext conftest$ac_exeext
40578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40579 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40580 ac_status=$?
40581 grep -v '^ *+' conftest.er1 >conftest.err
40582 rm -f conftest.er1
40583 cat conftest.err >&5
40584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40585 (exit $ac_status); } &&
6954625c 40586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40588 (eval $ac_try) 2>&5
40589 ac_status=$?
40590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591 (exit $ac_status); }; } &&
40592 { ac_try='test -s conftest$ac_exeext'
40593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40594 (eval $ac_try) 2>&5
40595 ac_status=$?
40596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40597 (exit $ac_status); }; }; then
40598 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40599else
40600 echo "$as_me: failed program was:" >&5
40601sed 's/^/| /' conftest.$ac_ext >&5
40602
a848cd7e 40603
d12aef51
VZ
40604 LIBS="$saveLibs"
40605 ac_cv_header_sys_soundcard=no
40606
40607
a848cd7e 40608fi
d12aef51
VZ
40609rm -f conftest.err conftest.$ac_objext \
40610 conftest$ac_exeext conftest.$ac_ext
40611
a848cd7e
SC
40612
40613fi
d12aef51
VZ
40614rm -f conftest.err conftest.$ac_objext \
40615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40616
40617fi
d12aef51
VZ
40618echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40619echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40620
d12aef51
VZ
40621 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40622 cat >>confdefs.h <<\_ACEOF
40623#define HAVE_SYS_SOUNDCARD_H 1
40624_ACEOF
a848cd7e 40625
d12aef51
VZ
40626 else
40627 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40628 fi
9c112555
MW
40629fi
40630WITH_PLUGIN_SDL=0
40631if test "$wxUSE_SOUND" = "yes"; then
40632 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40633 if test "$wxUSE_LIBSDL" != "no"; then
40634
40635# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40636if test "${with_sdl_prefix+set}" = set; then
40637 withval="$with_sdl_prefix"
40638 sdl_prefix="$withval"
40639else
40640 sdl_prefix=""
40641fi;
40642
40643# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40644if test "${with_sdl_exec_prefix+set}" = set; then
40645 withval="$with_sdl_exec_prefix"
40646 sdl_exec_prefix="$withval"
40647else
40648 sdl_exec_prefix=""
40649fi;
40650# Check whether --enable-sdltest or --disable-sdltest was given.
40651if test "${enable_sdltest+set}" = set; then
40652 enableval="$enable_sdltest"
40653
40654else
40655 enable_sdltest=yes
40656fi;
40657
40658 if test x$sdl_exec_prefix != x ; then
40659 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40660 if test x${SDL_CONFIG+set} != xset ; then
40661 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40662 fi
40663 fi
40664 if test x$sdl_prefix != x ; then
40665 sdl_args="$sdl_args --prefix=$sdl_prefix"
40666 if test x${SDL_CONFIG+set} != xset ; then
40667 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40668 fi
40669 fi
40670
40671
40672 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40673 # Extract the first word of "sdl-config", so it can be a program name with args.
40674set dummy sdl-config; ac_word=$2
40675echo "$as_me:$LINENO: checking for $ac_word" >&5
40676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40677if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40678 echo $ECHO_N "(cached) $ECHO_C" >&6
40679else
40680 case $SDL_CONFIG in
40681 [\\/]* | ?:[\\/]*)
40682 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40683 ;;
40684 *)
40685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40686for as_dir in $PATH
40687do
40688 IFS=$as_save_IFS
40689 test -z "$as_dir" && as_dir=.
40690 for ac_exec_ext in '' $ac_executable_extensions; do
40691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40692 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40694 break 2
40695 fi
40696done
40697done
40698
40699 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40700 ;;
40701esac
40702fi
40703SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40704
40705if test -n "$SDL_CONFIG"; then
40706 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40707echo "${ECHO_T}$SDL_CONFIG" >&6
40708else
40709 echo "$as_me:$LINENO: result: no" >&5
40710echo "${ECHO_T}no" >&6
40711fi
40712
40713 min_sdl_version=1.2.0
40714 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40715echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40716 no_sdl=""
40717 if test "$SDL_CONFIG" = "no" ; then
40718 no_sdl=yes
40719 else
40720 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40721 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40722
40723 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40724 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40725 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40726 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40727 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40729 if test "x$enable_sdltest" = "xyes" ; then
40730 ac_save_CFLAGS="$CFLAGS"
94acd38e 40731 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40732 ac_save_LIBS="$LIBS"
40733 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40734 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40735 LIBS="$LIBS $SDL_LIBS"
40736 rm -f conf.sdltest
40737 if test "$cross_compiling" = yes; then
40738 echo $ac_n "cross compiling; assumed OK... $ac_c"
40739else
40740 cat >conftest.$ac_ext <<_ACEOF
40741/* confdefs.h. */
40742_ACEOF
40743cat confdefs.h >>conftest.$ac_ext
40744cat >>conftest.$ac_ext <<_ACEOF
40745/* end confdefs.h. */
40746
40747#include <stdio.h>
40748#include <stdlib.h>
40749#include <string.h>
40750#include "SDL.h"
40751
40752char*
40753my_strdup (char *str)
40754{
40755 char *new_str;
40756
40757 if (str)
40758 {
40759 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40760 strcpy (new_str, str);
40761 }
40762 else
40763 new_str = NULL;
40764
40765 return new_str;
40766}
40767
40768int main (int argc, char *argv[])
40769{
40770 int major, minor, micro;
40771 char *tmp_version;
40772
40773 /* This hangs on some systems (?)
40774 system ("touch conf.sdltest");
40775 */
40776 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40777
40778 /* HP/UX 9 (%@#!) writes to sscanf strings */
40779 tmp_version = my_strdup("$min_sdl_version");
40780 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40781 printf("%s, bad version string\n", "$min_sdl_version");
40782 exit(1);
40783 }
40784
40785 if (($sdl_major_version > major) ||
40786 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40787 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40788 {
40789 return 0;
40790 }
40791 else
40792 {
40793 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40794 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40795 printf("*** best to upgrade to the required version.\n");
40796 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40797 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40798 printf("*** config.cache before re-running configure\n");
40799 return 1;
40800 }
40801}
40802
40803
40804_ACEOF
40805rm -f conftest$ac_exeext
40806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40807 (eval $ac_link) 2>&5
40808 ac_status=$?
40809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40812 (eval $ac_try) 2>&5
40813 ac_status=$?
40814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815 (exit $ac_status); }; }; then
40816 :
40817else
40818 echo "$as_me: program exited with status $ac_status" >&5
40819echo "$as_me: failed program was:" >&5
40820sed 's/^/| /' conftest.$ac_ext >&5
40821
40822( exit $ac_status )
40823no_sdl=yes
40824fi
ac1cb8d3 40825rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40826fi
40827 CFLAGS="$ac_save_CFLAGS"
94acd38e 40828 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40829 LIBS="$ac_save_LIBS"
40830 fi
40831 fi
40832 if test "x$no_sdl" = x ; then
40833 echo "$as_me:$LINENO: result: yes" >&5
40834echo "${ECHO_T}yes" >&6
40835
40836 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40837 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40838 cat >>confdefs.h <<\_ACEOF
40839#define wxUSE_LIBSDL 1
40840_ACEOF
40841
40842
40843 else
40844 echo "$as_me:$LINENO: result: no" >&5
40845echo "${ECHO_T}no" >&6
40846 if test "$SDL_CONFIG" = "no" ; then
40847 echo "*** The sdl-config script installed by SDL could not be found"
40848 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40849 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40850 echo "*** full path to sdl-config."
40851 else
40852 if test -f conf.sdltest ; then
40853 :
40854 else
40855 echo "*** Could not run SDL test program, checking why..."
40856 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40857 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40858 LIBS="$LIBS $SDL_LIBS"
40859 cat >conftest.$ac_ext <<_ACEOF
40860/* confdefs.h. */
40861_ACEOF
40862cat confdefs.h >>conftest.$ac_ext
40863cat >>conftest.$ac_ext <<_ACEOF
40864/* end confdefs.h. */
40865
40866#include <stdio.h>
40867#include "SDL.h"
40868
40869int main(int argc, char *argv[])
40870{ return 0; }
40871#undef main
40872#define main K_and_R_C_main
40873
40874int
40875main ()
40876{
40877 return 0;
40878 ;
40879 return 0;
40880}
40881_ACEOF
40882rm -f conftest.$ac_objext conftest$ac_exeext
40883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40884 (eval $ac_link) 2>conftest.er1
a848cd7e 40885 ac_status=$?
ac1cb8d3
VS
40886 grep -v '^ *+' conftest.er1 >conftest.err
40887 rm -f conftest.er1
40888 cat conftest.err >&5
a848cd7e
SC
40889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); } &&
6954625c 40891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
40897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40899 (eval $ac_try) 2>&5
40900 ac_status=$?
40901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902 (exit $ac_status); }; }; then
40903 echo "*** The test program compiled, but did not run. This usually means"
40904 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40905 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40906 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40907 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40908 echo "*** is required on your system"
40909 echo "***"
40910 echo "*** If you have an old version installed, it is best to remove it, although"
40911 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40912else
40913 echo "$as_me: failed program was:" >&5
40914sed 's/^/| /' conftest.$ac_ext >&5
40915
40916 echo "*** The test program failed to compile or link. See the file config.log for the"
40917 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40918 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40919 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40920fi
ac1cb8d3
VS
40921rm -f conftest.err conftest.$ac_objext \
40922 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40923 CFLAGS="$ac_save_CFLAGS"
94acd38e 40924 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40925 LIBS="$ac_save_LIBS"
40926 fi
40927 fi
40928 SDL_CFLAGS=""
40929 SDL_LIBS=""
40930 wxUSE_LIBSDL="no"
40931 fi
40932
40933
40934 rm -f conf.sdltest
40935
40936 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40937 WITH_PLUGIN_SDL=1
40938 fi
40939 fi
40940 fi
40941
40942 cat >>confdefs.h <<\_ACEOF
40943#define wxUSE_SOUND 1
40944_ACEOF
40945
40946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40947fi
40948
d1c38808
VZ
40949if test "$WXGTK20" = 1; then
40950 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40951 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40952
40953
40954 succeeded=no
40955
40956 if test -z "$PKG_CONFIG"; then
40957 # Extract the first word of "pkg-config", so it can be a program name with args.
40958set dummy pkg-config; ac_word=$2
40959echo "$as_me:$LINENO: checking for $ac_word" >&5
40960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40961if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40962 echo $ECHO_N "(cached) $ECHO_C" >&6
40963else
40964 case $PKG_CONFIG in
40965 [\\/]* | ?:[\\/]*)
40966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40967 ;;
40968 *)
40969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40970for as_dir in $PATH
40971do
40972 IFS=$as_save_IFS
40973 test -z "$as_dir" && as_dir=.
40974 for ac_exec_ext in '' $ac_executable_extensions; do
40975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40978 break 2
40979 fi
40980done
40981done
40982
40983 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40984 ;;
40985esac
40986fi
40987PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40988
40989if test -n "$PKG_CONFIG"; then
40990 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40991echo "${ECHO_T}$PKG_CONFIG" >&6
40992else
40993 echo "$as_me:$LINENO: result: no" >&5
40994echo "${ECHO_T}no" >&6
40995fi
40996
40997 fi
40998
40999 if test "$PKG_CONFIG" = "no" ; then
41000 echo "*** The pkg-config script could not be found. Make sure it is"
41001 echo "*** in your path, or set the PKG_CONFIG environment variable"
41002 echo "*** to the full path to pkg-config."
41003 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41004 else
41005 PKG_CONFIG_MIN_VERSION=0.9.0
41006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
41007 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41008echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 41009
ffa762ff 41010 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
41011 echo "$as_me:$LINENO: result: yes" >&5
41012echo "${ECHO_T}yes" >&6
41013 succeeded=yes
41014
41015 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41016echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 41017 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41018 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41019echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41020
41021 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41022echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 41023 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41024 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41025echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41026 else
41027 LIBGNOMEPRINTUI_CFLAGS=""
41028 LIBGNOMEPRINTUI_LIBS=""
41029 ## If we have a custom action on failure, don't print errors, but
41030 ## do set a variable so people can do so.
ffa762ff 41031 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41032
41033 fi
41034
41035
41036
41037 else
41038 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41039 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41040 fi
41041 fi
41042
41043 if test $succeeded = yes; then
41044
c92ad099 41045 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41046 cat >>confdefs.h <<\_ACEOF
41047#define wxUSE_LIBGNOMEPRINT 1
41048_ACEOF
41049
41050
41051 else
41052
41053 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41054echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41055 wxUSE_LIBGNOMEPRINT="no"
41056
41057
41058 fi
41059
41060 fi
41061 fi
41062fi
41063
2b850ae1
RR
41064if test "$WXGTK20" = 1; then
41065 if test "$wxUSE_MIMETYPE" = "yes" ; then
41066 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41067
41068
41069 succeeded=no
41070
41071 if test -z "$PKG_CONFIG"; then
41072 # Extract the first word of "pkg-config", so it can be a program name with args.
41073set dummy pkg-config; ac_word=$2
41074echo "$as_me:$LINENO: checking for $ac_word" >&5
41075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41076if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41077 echo $ECHO_N "(cached) $ECHO_C" >&6
41078else
41079 case $PKG_CONFIG in
41080 [\\/]* | ?:[\\/]*)
41081 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41082 ;;
41083 *)
41084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41085for as_dir in $PATH
41086do
41087 IFS=$as_save_IFS
41088 test -z "$as_dir" && as_dir=.
41089 for ac_exec_ext in '' $ac_executable_extensions; do
41090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41091 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41093 break 2
41094 fi
41095done
41096done
41097
41098 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41099 ;;
41100esac
41101fi
41102PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41103
41104if test -n "$PKG_CONFIG"; then
41105 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41106echo "${ECHO_T}$PKG_CONFIG" >&6
41107else
41108 echo "$as_me:$LINENO: result: no" >&5
41109echo "${ECHO_T}no" >&6
41110fi
41111
41112 fi
41113
41114 if test "$PKG_CONFIG" = "no" ; then
41115 echo "*** The pkg-config script could not be found. Make sure it is"
41116 echo "*** in your path, or set the PKG_CONFIG environment variable"
41117 echo "*** to the full path to pkg-config."
41118 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41119 else
41120 PKG_CONFIG_MIN_VERSION=0.9.0
41121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41122 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41123echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41124
41125 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41126 echo "$as_me:$LINENO: result: yes" >&5
41127echo "${ECHO_T}yes" >&6
41128 succeeded=yes
41129
41130 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41131echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41132 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41133 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41134echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41135
41136 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41137echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41138 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41139 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41140echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41141 else
41142 GNOMEVFS_CFLAGS=""
41143 GNOMEVFS_LIBS=""
41144 ## If we have a custom action on failure, don't print errors, but
41145 ## do set a variable so people can do so.
41146 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41147
41148 fi
41149
41150
41151
41152 else
41153 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41154 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41155 fi
41156 fi
41157
41158 if test $succeeded = yes; then
41159
41160 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41161 cat >>confdefs.h <<\_ACEOF
41162#define wxUSE_LIBGNOMEVFS 1
41163_ACEOF
41164
41165
41166 else
41167
41168 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41169echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41170 wxUSE_LIBGNOMEVFS="no"
41171
41172
41173 fi
41174
41175 fi
41176 fi
41177fi
41178
3565d135
RR
41179if test "$WXGTK20" = 1; then
41180 if test "$wxUSE_LIBHILDON" = "yes" ; then
41181
41182 succeeded=no
41183
41184 if test -z "$PKG_CONFIG"; then
41185 # Extract the first word of "pkg-config", so it can be a program name with args.
41186set dummy pkg-config; ac_word=$2
41187echo "$as_me:$LINENO: checking for $ac_word" >&5
41188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41189if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41190 echo $ECHO_N "(cached) $ECHO_C" >&6
41191else
41192 case $PKG_CONFIG in
41193 [\\/]* | ?:[\\/]*)
41194 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41195 ;;
41196 *)
41197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41198for as_dir in $PATH
41199do
41200 IFS=$as_save_IFS
41201 test -z "$as_dir" && as_dir=.
41202 for ac_exec_ext in '' $ac_executable_extensions; do
41203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41204 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41206 break 2
41207 fi
41208done
41209done
41210
41211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41212 ;;
41213esac
41214fi
41215PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41216
41217if test -n "$PKG_CONFIG"; then
41218 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41219echo "${ECHO_T}$PKG_CONFIG" >&6
41220else
41221 echo "$as_me:$LINENO: result: no" >&5
41222echo "${ECHO_T}no" >&6
41223fi
41224
41225 fi
41226
41227 if test "$PKG_CONFIG" = "no" ; then
41228 echo "*** The pkg-config script could not be found. Make sure it is"
41229 echo "*** in your path, or set the PKG_CONFIG environment variable"
41230 echo "*** to the full path to pkg-config."
41231 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41232 else
41233 PKG_CONFIG_MIN_VERSION=0.9.0
41234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41235 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41236echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41237
41238 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41239 echo "$as_me:$LINENO: result: yes" >&5
41240echo "${ECHO_T}yes" >&6
41241 succeeded=yes
41242
41243 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41244echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41245 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41246 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41247echo "${ECHO_T}$HILDON_CFLAGS" >&6
41248
41249 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41250echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41251 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41252 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41253echo "${ECHO_T}$HILDON_LIBS" >&6
41254 else
41255 HILDON_CFLAGS=""
41256 HILDON_LIBS=""
41257 ## If we have a custom action on failure, don't print errors, but
41258 ## do set a variable so people can do so.
41259 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41260
41261 fi
41262
41263
41264
41265 else
41266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41268 fi
41269 fi
41270
41271 if test $succeeded = yes; then
41272
41273 EXTRALIBS_HILDON="$HILDON_LIBS"
41274 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41275 cat >>confdefs.h <<\_ACEOF
41276#define wxUSE_LIBHILDON 1
41277_ACEOF
41278
41279
41280 else
41281
41282 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41283echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41284 wxUSE_LIBHILDON="no"
41285
41286
41287 fi
41288
41289 fi
41290fi
d1c38808 41291
a848cd7e
SC
41292if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41293 cat >>confdefs.h <<\_ACEOF
41294#define wxUSE_CMDLINE_PARSER 1
41295_ACEOF
41296
41297fi
41298
41299if test "$wxUSE_STOPWATCH" = "yes"; then
41300 cat >>confdefs.h <<\_ACEOF
41301#define wxUSE_STOPWATCH 1
41302_ACEOF
41303
41304fi
41305
41306if test "$wxUSE_DATETIME" = "yes"; then
41307 cat >>confdefs.h <<\_ACEOF
41308#define wxUSE_DATETIME 1
41309_ACEOF
41310
41311fi
41312
41313if test "$wxUSE_FILE" = "yes"; then
41314 cat >>confdefs.h <<\_ACEOF
41315#define wxUSE_FILE 1
41316_ACEOF
41317
41318fi
41319
41320if test "$wxUSE_FFILE" = "yes"; then
41321 cat >>confdefs.h <<\_ACEOF
41322#define wxUSE_FFILE 1
41323_ACEOF
41324
41325fi
41326
41327if test "$wxUSE_FILESYSTEM" = "yes"; then
41328 cat >>confdefs.h <<\_ACEOF
41329#define wxUSE_FILESYSTEM 1
41330_ACEOF
41331
41332fi
41333
41334if test "$wxUSE_FS_ZIP" = "yes"; then
41335 cat >>confdefs.h <<\_ACEOF
41336#define wxUSE_FS_ZIP 1
41337_ACEOF
41338
41339fi
41340
9e8e867f 41341if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41342 cat >>confdefs.h <<\_ACEOF
9e8e867f 41343#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41344_ACEOF
41345
41346fi
41347
41348if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41349 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41350 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41351echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41352 elif test "$wxUSE_ZLIB" = "no"; then
41353 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41354echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41355 else
41356 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41357#define wxUSE_ZIPSTREAM 1
41358_ACEOF
41359
81f90336 41360 fi
a848cd7e
SC
41361fi
41362
a848cd7e 41363if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41364 if test "$USE_UNIX" != 1; then
41365 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41366echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41367 wxUSE_ON_FATAL_EXCEPTION=no
41368 else
41369 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41370#define wxUSE_ON_FATAL_EXCEPTION 1
41371_ACEOF
41372
18228ab4 41373 fi
a848cd7e
SC
41374fi
41375
eaff0f0d
VZ
41376if test "$wxUSE_STACKWALKER" = "yes"; then
41377 cat >>confdefs.h <<\_ACEOF
41378#define wxUSE_STACKWALKER 1
41379_ACEOF
41380
41381fi
41382
36b6448c 41383if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41384 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41385 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41386echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41387 wxUSE_DEBUGREPORT=no
41388 else
41389 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41390#define wxUSE_DEBUGREPORT 1
41391_ACEOF
41392
21dfc162
MW
41393 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41395 fi
dfe0c803 41396 fi
36b6448c
VZ
41397fi
41398
a848cd7e
SC
41399if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41400 cat >>confdefs.h <<\_ACEOF
41401#define wxUSE_SNGLINST_CHECKER 1
41402_ACEOF
41403
41404fi
41405
41406if test "$wxUSE_BUSYINFO" = "yes"; then
41407 cat >>confdefs.h <<\_ACEOF
41408#define wxUSE_BUSYINFO 1
41409_ACEOF
41410
41411fi
41412
41413if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41414 cat >>confdefs.h <<\_ACEOF
41415#define wxUSE_STD_IOSTREAM 1
41416_ACEOF
41417
41418fi
41419
59746b65
MW
41420if test "$wxUSE_STD_STRING" = "yes"; then
41421 cat >>confdefs.h <<\_ACEOF
41422#define wxUSE_STD_STRING 1
41423_ACEOF
41424
41425fi
41426
07158944
VZ
41427if test "$wxUSE_STDPATHS" = "yes"; then
41428 cat >>confdefs.h <<\_ACEOF
41429#define wxUSE_STDPATHS 1
41430_ACEOF
41431
41432fi
41433
a848cd7e
SC
41434if test "$wxUSE_TEXTBUFFER" = "yes"; then
41435 cat >>confdefs.h <<\_ACEOF
41436#define wxUSE_TEXTBUFFER 1
41437_ACEOF
41438
41439fi
41440
41441if test "$wxUSE_TEXTFILE" = "yes"; then
41442 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41443 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41444echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41445 else
41446 cat >>confdefs.h <<\_ACEOF
41447#define wxUSE_TEXTFILE 1
41448_ACEOF
41449
41450 fi
41451fi
41452
41453if test "$wxUSE_CONFIG" = "yes" ; then
41454 if test "$wxUSE_TEXTFILE" != "yes"; then
41455 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41456echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41457 else
41458 cat >>confdefs.h <<\_ACEOF
41459#define wxUSE_CONFIG 1
89be85c2
VS
41460_ACEOF
41461
41462 cat >>confdefs.h <<\_ACEOF
41463#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41464_ACEOF
41465
41466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41467 fi
41468fi
41469
41470if test "$wxUSE_INTL" = "yes" ; then
41471 if test "$wxUSE_FILE" != "yes"; then
41472 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41473echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41474 else
41475 cat >>confdefs.h <<\_ACEOF
41476#define wxUSE_INTL 1
41477_ACEOF
41478
41479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41480 GUIDIST="$GUIDIST INTL_DIST"
41481 fi
41482fi
41483
41484if test "$wxUSE_LOG" = "yes"; then
41485 cat >>confdefs.h <<\_ACEOF
41486#define wxUSE_LOG 1
41487_ACEOF
41488
41489
41490 if test "$wxUSE_LOGGUI" = "yes"; then
41491 cat >>confdefs.h <<\_ACEOF
41492#define wxUSE_LOGGUI 1
41493_ACEOF
41494
41495 fi
41496
41497 if test "$wxUSE_LOGWINDOW" = "yes"; then
41498 cat >>confdefs.h <<\_ACEOF
41499#define wxUSE_LOGWINDOW 1
41500_ACEOF
41501
41502 fi
41503
41504 if test "$wxUSE_LOGDIALOG" = "yes"; then
41505 cat >>confdefs.h <<\_ACEOF
41506#define wxUSE_LOG_DIALOG 1
41507_ACEOF
41508
41509 fi
0b78747f
MW
41510
41511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41512fi
41513
41514if test "$wxUSE_LONGLONG" = "yes"; then
41515 cat >>confdefs.h <<\_ACEOF
41516#define wxUSE_LONGLONG 1
41517_ACEOF
41518
41519fi
41520
41521if test "$wxUSE_GEOMETRY" = "yes"; then
41522 cat >>confdefs.h <<\_ACEOF
41523#define wxUSE_GEOMETRY 1
41524_ACEOF
41525
41526fi
41527
a848cd7e
SC
41528if test "$wxUSE_STREAMS" = "yes" ; then
41529 cat >>confdefs.h <<\_ACEOF
41530#define wxUSE_STREAMS 1
41531_ACEOF
41532
41533fi
41534
41535
41536if test "$wxUSE_DATETIME" = "yes"; then
41537
41538for ac_func in strptime
41539do
41540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41541echo "$as_me:$LINENO: checking for $ac_func" >&5
41542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41543if eval "test \"\${$as_ac_var+set}\" = set"; then
41544 echo $ECHO_N "(cached) $ECHO_C" >&6
41545else
41546 cat >conftest.$ac_ext <<_ACEOF
41547/* confdefs.h. */
41548_ACEOF
41549cat confdefs.h >>conftest.$ac_ext
41550cat >>conftest.$ac_ext <<_ACEOF
41551/* end confdefs.h. */
ac1cb8d3
VS
41552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41554#define $ac_func innocuous_$ac_func
41555
a848cd7e
SC
41556/* System header to define __stub macros and hopefully few prototypes,
41557 which can conflict with char $ac_func (); below.
41558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41559 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41560
a848cd7e
SC
41561#ifdef __STDC__
41562# include <limits.h>
41563#else
41564# include <assert.h>
41565#endif
ac1cb8d3
VS
41566
41567#undef $ac_func
41568
a848cd7e
SC
41569/* Override any gcc2 internal prototype to avoid an error. */
41570#ifdef __cplusplus
41571extern "C"
41572{
41573#endif
41574/* We use char because int might match the return type of a gcc2
41575 builtin and then its argument prototype would still apply. */
41576char $ac_func ();
41577/* The GNU C library defines this for functions which it implements
41578 to always fail with ENOSYS. Some functions are actually named
41579 something starting with __ and the normal name is an alias. */
41580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41581choke me
41582#else
41583char (*f) () = $ac_func;
41584#endif
41585#ifdef __cplusplus
41586}
41587#endif
41588
41589int
41590main ()
41591{
41592return f != $ac_func;
41593 ;
41594 return 0;
41595}
41596_ACEOF
41597rm -f conftest.$ac_objext conftest$ac_exeext
41598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41599 (eval $ac_link) 2>conftest.er1
a848cd7e 41600 ac_status=$?
ac1cb8d3
VS
41601 grep -v '^ *+' conftest.er1 >conftest.err
41602 rm -f conftest.er1
41603 cat conftest.err >&5
a848cd7e
SC
41604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41605 (exit $ac_status); } &&
6954625c 41606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41608 (eval $ac_try) 2>&5
41609 ac_status=$?
41610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41611 (exit $ac_status); }; } &&
41612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41614 (eval $ac_try) 2>&5
41615 ac_status=$?
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); }; }; then
41618 eval "$as_ac_var=yes"
41619else
41620 echo "$as_me: failed program was:" >&5
41621sed 's/^/| /' conftest.$ac_ext >&5
41622
41623eval "$as_ac_var=no"
41624fi
ac1cb8d3
VS
41625rm -f conftest.err conftest.$ac_objext \
41626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41627fi
41628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41630if test `eval echo '${'$as_ac_var'}'` = yes; then
41631 cat >>confdefs.h <<_ACEOF
41632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41633_ACEOF
41634
41635fi
41636done
41637
f536f005
VZ
41638 if test "$ac_cv_func_strptime" = "yes"; then
41639 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41640echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41641if test "${wx_cv_func_strptime_decl+set}" = set; then
41642 echo $ECHO_N "(cached) $ECHO_C" >&6
41643else
41644
f536f005
VZ
41645 cat >conftest.$ac_ext <<_ACEOF
41646/* confdefs.h. */
41647_ACEOF
41648cat confdefs.h >>conftest.$ac_ext
41649cat >>conftest.$ac_ext <<_ACEOF
41650/* end confdefs.h. */
41651
41652 #include <time.h>
41653
41654int
41655main ()
41656{
41657
41658 struct tm t;
41659 strptime("foo", "bar", &t);
41660
41661 ;
41662 return 0;
41663}
41664_ACEOF
41665rm -f conftest.$ac_objext
41666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41667 (eval $ac_compile) 2>conftest.er1
41668 ac_status=$?
41669 grep -v '^ *+' conftest.er1 >conftest.err
41670 rm -f conftest.er1
41671 cat conftest.err >&5
41672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41673 (exit $ac_status); } &&
6954625c 41674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
41675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41676 (eval $ac_try) 2>&5
41677 ac_status=$?
41678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41679 (exit $ac_status); }; } &&
41680 { ac_try='test -s conftest.$ac_objext'
41681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41682 (eval $ac_try) 2>&5
41683 ac_status=$?
41684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685 (exit $ac_status); }; }; then
41686 wx_cv_func_strptime_decl=yes
41687else
41688 echo "$as_me: failed program was:" >&5
41689sed 's/^/| /' conftest.$ac_ext >&5
41690
41691wx_cv_func_strptime_decl=no
41692
41693fi
41694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
41695
41696
41697fi
41698echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41699echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41700 fi
41701 if test "$wx_cv_func_strptime_decl" = "yes"; then
41702 cat >>confdefs.h <<\_ACEOF
41703#define HAVE_STRPTIME_DECL 1
41704_ACEOF
41705
41706 fi
a848cd7e
SC
41707
41708 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41709echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41710if test "${wx_cv_var_timezone+set}" = set; then
41711 echo $ECHO_N "(cached) $ECHO_C" >&6
41712else
41713
41714 cat >conftest.$ac_ext <<_ACEOF
41715/* confdefs.h. */
41716_ACEOF
41717cat confdefs.h >>conftest.$ac_ext
41718cat >>conftest.$ac_ext <<_ACEOF
41719/* end confdefs.h. */
41720
41721 #include <time.h>
41722
41723int
41724main ()
41725{
41726
41727 int tz;
41728 tz = timezone;
41729
41730 ;
41731 return 0;
41732}
41733_ACEOF
41734rm -f conftest.$ac_objext
41735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41736 (eval $ac_compile) 2>conftest.er1
a848cd7e 41737 ac_status=$?
ac1cb8d3
VS
41738 grep -v '^ *+' conftest.er1 >conftest.err
41739 rm -f conftest.er1
41740 cat conftest.err >&5
a848cd7e
SC
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); } &&
6954625c 41743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41745 (eval $ac_try) 2>&5
41746 ac_status=$?
41747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748 (exit $ac_status); }; } &&
41749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41751 (eval $ac_try) 2>&5
41752 ac_status=$?
41753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754 (exit $ac_status); }; }; then
41755
41756 wx_cv_var_timezone=timezone
41757
41758else
41759 echo "$as_me: failed program was:" >&5
41760sed 's/^/| /' conftest.$ac_ext >&5
41761
41762
41763 cat >conftest.$ac_ext <<_ACEOF
41764/* confdefs.h. */
41765_ACEOF
41766cat confdefs.h >>conftest.$ac_ext
41767cat >>conftest.$ac_ext <<_ACEOF
41768/* end confdefs.h. */
41769
41770 #include <time.h>
41771
41772int
41773main ()
41774{
41775
41776 int tz;
41777 tz = _timezone;
41778
41779 ;
41780 return 0;
41781}
41782_ACEOF
41783rm -f conftest.$ac_objext
41784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41785 (eval $ac_compile) 2>conftest.er1
a848cd7e 41786 ac_status=$?
ac1cb8d3
VS
41787 grep -v '^ *+' conftest.er1 >conftest.err
41788 rm -f conftest.er1
41789 cat conftest.err >&5
a848cd7e
SC
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); } &&
6954625c 41792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41794 (eval $ac_try) 2>&5
41795 ac_status=$?
41796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41797 (exit $ac_status); }; } &&
41798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41800 (eval $ac_try) 2>&5
41801 ac_status=$?
41802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41803 (exit $ac_status); }; }; then
41804
41805 wx_cv_var_timezone=_timezone
41806
41807else
41808 echo "$as_me: failed program was:" >&5
41809sed 's/^/| /' conftest.$ac_ext >&5
41810
41811
41812 cat >conftest.$ac_ext <<_ACEOF
41813/* confdefs.h. */
41814_ACEOF
41815cat confdefs.h >>conftest.$ac_ext
41816cat >>conftest.$ac_ext <<_ACEOF
41817/* end confdefs.h. */
41818
41819 #include <time.h>
41820
41821int
41822main ()
41823{
41824
41825 int tz;
41826 tz = __timezone;
41827
41828 ;
41829 return 0;
41830}
41831_ACEOF
41832rm -f conftest.$ac_objext
41833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41834 (eval $ac_compile) 2>conftest.er1
a848cd7e 41835 ac_status=$?
ac1cb8d3
VS
41836 grep -v '^ *+' conftest.er1 >conftest.err
41837 rm -f conftest.er1
41838 cat conftest.err >&5
a848cd7e
SC
41839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); } &&
6954625c 41841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 (eval $ac_try) 2>&5
41844 ac_status=$?
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); }; } &&
41847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41849 (eval $ac_try) 2>&5
41850 ac_status=$?
41851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852 (exit $ac_status); }; }; then
41853
41854 wx_cv_var_timezone=__timezone
41855
41856else
41857 echo "$as_me: failed program was:" >&5
41858sed 's/^/| /' conftest.$ac_ext >&5
41859
41860
41861 if test "$USE_DOS" = 0 ; then
41862 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41863echo "$as_me: WARNING: no timezone variable" >&2;}
41864 fi
41865
41866
41867fi
ac1cb8d3 41868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41869
41870
41871fi
ac1cb8d3 41872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41873
41874
41875fi
ac1cb8d3 41876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41877
41878
41879fi
41880echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41881echo "${ECHO_T}$wx_cv_var_timezone" >&6
41882
41883 if test "x$wx_cv_var_timezone" != x ; then
41884 cat >>confdefs.h <<_ACEOF
41885#define WX_TIMEZONE $wx_cv_var_timezone
41886_ACEOF
41887
41888 fi
41889
41890
41891for ac_func in localtime
41892do
41893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41894echo "$as_me:$LINENO: checking for $ac_func" >&5
41895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41896if eval "test \"\${$as_ac_var+set}\" = set"; then
41897 echo $ECHO_N "(cached) $ECHO_C" >&6
41898else
41899 cat >conftest.$ac_ext <<_ACEOF
41900/* confdefs.h. */
41901_ACEOF
41902cat confdefs.h >>conftest.$ac_ext
41903cat >>conftest.$ac_ext <<_ACEOF
41904/* end confdefs.h. */
ac1cb8d3
VS
41905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41907#define $ac_func innocuous_$ac_func
41908
a848cd7e
SC
41909/* System header to define __stub macros and hopefully few prototypes,
41910 which can conflict with char $ac_func (); below.
41911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41912 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41913
a848cd7e
SC
41914#ifdef __STDC__
41915# include <limits.h>
41916#else
41917# include <assert.h>
41918#endif
ac1cb8d3
VS
41919
41920#undef $ac_func
41921
a848cd7e
SC
41922/* Override any gcc2 internal prototype to avoid an error. */
41923#ifdef __cplusplus
41924extern "C"
41925{
41926#endif
41927/* We use char because int might match the return type of a gcc2
41928 builtin and then its argument prototype would still apply. */
41929char $ac_func ();
41930/* The GNU C library defines this for functions which it implements
41931 to always fail with ENOSYS. Some functions are actually named
41932 something starting with __ and the normal name is an alias. */
41933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41934choke me
41935#else
41936char (*f) () = $ac_func;
41937#endif
41938#ifdef __cplusplus
41939}
41940#endif
41941
41942int
41943main ()
41944{
41945return f != $ac_func;
41946 ;
41947 return 0;
41948}
41949_ACEOF
41950rm -f conftest.$ac_objext conftest$ac_exeext
41951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41952 (eval $ac_link) 2>conftest.er1
a848cd7e 41953 ac_status=$?
ac1cb8d3
VS
41954 grep -v '^ *+' conftest.er1 >conftest.err
41955 rm -f conftest.er1
41956 cat conftest.err >&5
a848cd7e
SC
41957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958 (exit $ac_status); } &&
6954625c 41959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41961 (eval $ac_try) 2>&5
41962 ac_status=$?
41963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964 (exit $ac_status); }; } &&
41965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41967 (eval $ac_try) 2>&5
41968 ac_status=$?
41969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); }; }; then
41971 eval "$as_ac_var=yes"
41972else
41973 echo "$as_me: failed program was:" >&5
41974sed 's/^/| /' conftest.$ac_ext >&5
41975
41976eval "$as_ac_var=no"
41977fi
ac1cb8d3
VS
41978rm -f conftest.err conftest.$ac_objext \
41979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41980fi
41981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41983if test `eval echo '${'$as_ac_var'}'` = yes; then
41984 cat >>confdefs.h <<_ACEOF
41985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41986_ACEOF
41987
41988fi
41989done
41990
41991
41992 if test "$ac_cv_func_localtime" = "yes"; then
41993 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41994echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41995if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41996 echo $ECHO_N "(cached) $ECHO_C" >&6
41997else
41998
41999 cat >conftest.$ac_ext <<_ACEOF
42000/* confdefs.h. */
42001_ACEOF
42002cat confdefs.h >>conftest.$ac_ext
42003cat >>conftest.$ac_ext <<_ACEOF
42004/* end confdefs.h. */
42005
42006 #include <time.h>
42007
42008int
42009main ()
42010{
42011
42012 struct tm tm;
42013 tm.tm_gmtoff++;
42014
42015 ;
42016 return 0;
42017}
42018_ACEOF
42019rm -f conftest.$ac_objext
42020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42021 (eval $ac_compile) 2>conftest.er1
a848cd7e 42022 ac_status=$?
ac1cb8d3
VS
42023 grep -v '^ *+' conftest.er1 >conftest.err
42024 rm -f conftest.er1
42025 cat conftest.err >&5
a848cd7e
SC
42026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027 (exit $ac_status); } &&
6954625c 42028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42030 (eval $ac_try) 2>&5
42031 ac_status=$?
42032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033 (exit $ac_status); }; } &&
42034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42036 (eval $ac_try) 2>&5
42037 ac_status=$?
42038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039 (exit $ac_status); }; }; then
42040
42041 wx_cv_struct_tm_has_gmtoff=yes
42042
42043else
42044 echo "$as_me: failed program was:" >&5
42045sed 's/^/| /' conftest.$ac_ext >&5
42046
42047wx_cv_struct_tm_has_gmtoff=no
42048
42049fi
ac1cb8d3 42050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42051
42052fi
42053echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42054echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42055 fi
42056
42057 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42058 cat >>confdefs.h <<\_ACEOF
42059#define WX_GMTOFF_IN_TM 1
42060_ACEOF
42061
42062 fi
42063
42064
42065
42066for ac_func in gettimeofday ftime
42067do
42068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42069echo "$as_me:$LINENO: checking for $ac_func" >&5
42070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42071if eval "test \"\${$as_ac_var+set}\" = set"; then
42072 echo $ECHO_N "(cached) $ECHO_C" >&6
42073else
42074 cat >conftest.$ac_ext <<_ACEOF
42075/* confdefs.h. */
42076_ACEOF
42077cat confdefs.h >>conftest.$ac_ext
42078cat >>conftest.$ac_ext <<_ACEOF
42079/* end confdefs.h. */
ac1cb8d3
VS
42080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42082#define $ac_func innocuous_$ac_func
42083
a848cd7e
SC
42084/* System header to define __stub macros and hopefully few prototypes,
42085 which can conflict with char $ac_func (); below.
42086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42087 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42088
a848cd7e
SC
42089#ifdef __STDC__
42090# include <limits.h>
42091#else
42092# include <assert.h>
42093#endif
ac1cb8d3
VS
42094
42095#undef $ac_func
42096
a848cd7e
SC
42097/* Override any gcc2 internal prototype to avoid an error. */
42098#ifdef __cplusplus
42099extern "C"
42100{
42101#endif
42102/* We use char because int might match the return type of a gcc2
42103 builtin and then its argument prototype would still apply. */
42104char $ac_func ();
42105/* The GNU C library defines this for functions which it implements
42106 to always fail with ENOSYS. Some functions are actually named
42107 something starting with __ and the normal name is an alias. */
42108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42109choke me
42110#else
42111char (*f) () = $ac_func;
42112#endif
42113#ifdef __cplusplus
42114}
42115#endif
42116
42117int
42118main ()
42119{
42120return f != $ac_func;
42121 ;
42122 return 0;
42123}
42124_ACEOF
42125rm -f conftest.$ac_objext conftest$ac_exeext
42126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42127 (eval $ac_link) 2>conftest.er1
a848cd7e 42128 ac_status=$?
ac1cb8d3
VS
42129 grep -v '^ *+' conftest.er1 >conftest.err
42130 rm -f conftest.er1
42131 cat conftest.err >&5
a848cd7e
SC
42132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); } &&
6954625c 42134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42136 (eval $ac_try) 2>&5
42137 ac_status=$?
42138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139 (exit $ac_status); }; } &&
42140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142 (eval $ac_try) 2>&5
42143 ac_status=$?
42144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145 (exit $ac_status); }; }; then
42146 eval "$as_ac_var=yes"
42147else
42148 echo "$as_me: failed program was:" >&5
42149sed 's/^/| /' conftest.$ac_ext >&5
42150
42151eval "$as_ac_var=no"
42152fi
ac1cb8d3
VS
42153rm -f conftest.err conftest.$ac_objext \
42154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42155fi
42156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42158if test `eval echo '${'$as_ac_var'}'` = yes; then
42159 cat >>confdefs.h <<_ACEOF
42160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42161_ACEOF
42162 break
42163fi
42164done
42165
42166
42167 if test "$ac_cv_func_gettimeofday" = "yes"; then
42168 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42169echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42170if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42171 echo $ECHO_N "(cached) $ECHO_C" >&6
42172else
42173
5d7b7554 42174 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42175/* confdefs.h. */
42176_ACEOF
42177cat confdefs.h >>conftest.$ac_ext
42178cat >>conftest.$ac_ext <<_ACEOF
42179/* end confdefs.h. */
42180
42181 #include <sys/time.h>
42182 #include <unistd.h>
42183
42184int
42185main ()
42186{
42187
42188 struct timeval tv;
42189 gettimeofday(&tv, NULL);
42190
42191 ;
42192 return 0;
42193}
42194_ACEOF
42195rm -f conftest.$ac_objext
42196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42197 (eval $ac_compile) 2>conftest.er1
a848cd7e 42198 ac_status=$?
ac1cb8d3
VS
42199 grep -v '^ *+' conftest.er1 >conftest.err
42200 rm -f conftest.er1
42201 cat conftest.err >&5
a848cd7e
SC
42202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42203 (exit $ac_status); } &&
6954625c 42204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42206 (eval $ac_try) 2>&5
42207 ac_status=$?
42208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209 (exit $ac_status); }; } &&
42210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42212 (eval $ac_try) 2>&5
42213 ac_status=$?
42214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215 (exit $ac_status); }; }; then
42216 wx_cv_func_gettimeofday_has_2_args=yes
42217else
42218 echo "$as_me: failed program was:" >&5
42219sed 's/^/| /' conftest.$ac_ext >&5
42220
42221cat >conftest.$ac_ext <<_ACEOF
42222/* confdefs.h. */
42223_ACEOF
42224cat confdefs.h >>conftest.$ac_ext
42225cat >>conftest.$ac_ext <<_ACEOF
42226/* end confdefs.h. */
42227
42228 #include <sys/time.h>
42229 #include <unistd.h>
42230
42231int
42232main ()
42233{
42234
42235 struct timeval tv;
42236 gettimeofday(&tv);
42237
42238 ;
42239 return 0;
42240}
42241_ACEOF
42242rm -f conftest.$ac_objext
42243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42244 (eval $ac_compile) 2>conftest.er1
a848cd7e 42245 ac_status=$?
ac1cb8d3
VS
42246 grep -v '^ *+' conftest.er1 >conftest.err
42247 rm -f conftest.er1
42248 cat conftest.err >&5
a848cd7e
SC
42249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42250 (exit $ac_status); } &&
6954625c 42251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42253 (eval $ac_try) 2>&5
42254 ac_status=$?
42255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256 (exit $ac_status); }; } &&
42257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42259 (eval $ac_try) 2>&5
42260 ac_status=$?
42261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42262 (exit $ac_status); }; }; then
42263 wx_cv_func_gettimeofday_has_2_args=no
42264else
42265 echo "$as_me: failed program was:" >&5
42266sed 's/^/| /' conftest.$ac_ext >&5
42267
42268
42269 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42270echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42271 wx_cv_func_gettimeofday_has_2_args=unknown
42272
42273
42274fi
ac1cb8d3 42275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42276
42277fi
ac1cb8d3 42278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42279
42280fi
42281echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42282echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42283
42284 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42285 cat >>confdefs.h <<\_ACEOF
42286#define WX_GETTIMEOFDAY_NO_TZ 1
42287_ACEOF
42288
42289 fi
42290 fi
42291
42292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42293fi
42294
42295
42296if test "$wxUSE_SOCKETS" = "yes"; then
42297 if test "$wxUSE_MGL" = "1"; then
42298 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42299echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42300 wxUSE_SOCKETS="no"
42301 fi
42302fi
42303
42304if test "$wxUSE_SOCKETS" = "yes"; then
42305 if test "$TOOLKIT" != "MSW"; then
42306 echo "$as_me:$LINENO: checking for socket" >&5
42307echo $ECHO_N "checking for socket... $ECHO_C" >&6
42308if test "${ac_cv_func_socket+set}" = set; then
42309 echo $ECHO_N "(cached) $ECHO_C" >&6
42310else
42311 cat >conftest.$ac_ext <<_ACEOF
42312/* confdefs.h. */
42313_ACEOF
42314cat confdefs.h >>conftest.$ac_ext
42315cat >>conftest.$ac_ext <<_ACEOF
42316/* end confdefs.h. */
ac1cb8d3
VS
42317/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42319#define socket innocuous_socket
42320
a848cd7e
SC
42321/* System header to define __stub macros and hopefully few prototypes,
42322 which can conflict with char socket (); below.
42323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42324 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42325
a848cd7e
SC
42326#ifdef __STDC__
42327# include <limits.h>
42328#else
42329# include <assert.h>
42330#endif
ac1cb8d3
VS
42331
42332#undef socket
42333
a848cd7e
SC
42334/* Override any gcc2 internal prototype to avoid an error. */
42335#ifdef __cplusplus
42336extern "C"
42337{
42338#endif
42339/* We use char because int might match the return type of a gcc2
42340 builtin and then its argument prototype would still apply. */
42341char socket ();
42342/* The GNU C library defines this for functions which it implements
42343 to always fail with ENOSYS. Some functions are actually named
42344 something starting with __ and the normal name is an alias. */
42345#if defined (__stub_socket) || defined (__stub___socket)
42346choke me
42347#else
42348char (*f) () = socket;
42349#endif
42350#ifdef __cplusplus
42351}
42352#endif
42353
42354int
42355main ()
42356{
42357return f != socket;
42358 ;
42359 return 0;
42360}
42361_ACEOF
42362rm -f conftest.$ac_objext conftest$ac_exeext
42363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42364 (eval $ac_link) 2>conftest.er1
a848cd7e 42365 ac_status=$?
ac1cb8d3
VS
42366 grep -v '^ *+' conftest.er1 >conftest.err
42367 rm -f conftest.er1
42368 cat conftest.err >&5
a848cd7e
SC
42369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42370 (exit $ac_status); } &&
6954625c 42371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42373 (eval $ac_try) 2>&5
42374 ac_status=$?
42375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376 (exit $ac_status); }; } &&
42377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42379 (eval $ac_try) 2>&5
42380 ac_status=$?
42381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42382 (exit $ac_status); }; }; then
42383 ac_cv_func_socket=yes
42384else
42385 echo "$as_me: failed program was:" >&5
42386sed 's/^/| /' conftest.$ac_ext >&5
42387
42388ac_cv_func_socket=no
42389fi
ac1cb8d3
VS
42390rm -f conftest.err conftest.$ac_objext \
42391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42392fi
42393echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42394echo "${ECHO_T}$ac_cv_func_socket" >&6
42395if test $ac_cv_func_socket = yes; then
42396 :
42397else
42398
42399 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42400echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42401if test "${ac_cv_lib_socket_socket+set}" = set; then
42402 echo $ECHO_N "(cached) $ECHO_C" >&6
42403else
42404 ac_check_lib_save_LIBS=$LIBS
42405LIBS="-lsocket $LIBS"
42406cat >conftest.$ac_ext <<_ACEOF
42407/* confdefs.h. */
42408_ACEOF
42409cat confdefs.h >>conftest.$ac_ext
42410cat >>conftest.$ac_ext <<_ACEOF
42411/* end confdefs.h. */
42412
42413/* Override any gcc2 internal prototype to avoid an error. */
42414#ifdef __cplusplus
42415extern "C"
42416#endif
42417/* We use char because int might match the return type of a gcc2
42418 builtin and then its argument prototype would still apply. */
42419char socket ();
42420int
42421main ()
42422{
42423socket ();
42424 ;
42425 return 0;
42426}
42427_ACEOF
42428rm -f conftest.$ac_objext conftest$ac_exeext
42429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42430 (eval $ac_link) 2>conftest.er1
a848cd7e 42431 ac_status=$?
ac1cb8d3
VS
42432 grep -v '^ *+' conftest.er1 >conftest.err
42433 rm -f conftest.er1
42434 cat conftest.err >&5
a848cd7e
SC
42435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436 (exit $ac_status); } &&
6954625c 42437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42439 (eval $ac_try) 2>&5
42440 ac_status=$?
42441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442 (exit $ac_status); }; } &&
42443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42445 (eval $ac_try) 2>&5
42446 ac_status=$?
42447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42448 (exit $ac_status); }; }; then
42449 ac_cv_lib_socket_socket=yes
42450else
42451 echo "$as_me: failed program was:" >&5
42452sed 's/^/| /' conftest.$ac_ext >&5
42453
42454ac_cv_lib_socket_socket=no
42455fi
ac1cb8d3
VS
42456rm -f conftest.err conftest.$ac_objext \
42457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42458LIBS=$ac_check_lib_save_LIBS
42459fi
42460echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42461echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42462if test $ac_cv_lib_socket_socket = yes; then
42463 if test "$INET_LINK" != " -lsocket"; then
42464 INET_LINK="$INET_LINK -lsocket"
42465 fi
42466else
42467
42468 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42469echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42470 wxUSE_SOCKETS=no
42471
42472
42473fi
42474
42475
42476
42477fi
42478
42479 fi
42480fi
42481
42482if test "$wxUSE_SOCKETS" = "yes" ; then
42483 if test "$TOOLKIT" != "MSW"; then
5d7b7554 42484 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42485echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42486if test "${wx_cv_type_getsockname3+set}" = set; then
42487 echo $ECHO_N "(cached) $ECHO_C" >&6
42488else
42489
42490 cat >conftest.$ac_ext <<_ACEOF
42491/* confdefs.h. */
42492_ACEOF
42493cat confdefs.h >>conftest.$ac_ext
42494cat >>conftest.$ac_ext <<_ACEOF
42495/* end confdefs.h. */
42496
42497 #include <sys/types.h>
42498 #include <sys/socket.h>
42499
42500int
42501main ()
42502{
42503
42504 socklen_t len;
42505 getsockname(0, 0, &len);
42506
42507 ;
42508 return 0;
42509}
42510_ACEOF
42511rm -f conftest.$ac_objext
42512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42513 (eval $ac_compile) 2>conftest.er1
a848cd7e 42514 ac_status=$?
ac1cb8d3
VS
42515 grep -v '^ *+' conftest.er1 >conftest.err
42516 rm -f conftest.er1
42517 cat conftest.err >&5
a848cd7e
SC
42518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42519 (exit $ac_status); } &&
6954625c 42520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42522 (eval $ac_try) 2>&5
42523 ac_status=$?
42524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42525 (exit $ac_status); }; } &&
42526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528 (eval $ac_try) 2>&5
42529 ac_status=$?
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); }; }; then
42532 wx_cv_type_getsockname3=socklen_t
42533else
42534 echo "$as_me: failed program was:" >&5
42535sed 's/^/| /' conftest.$ac_ext >&5
42536
42537
6459a506 42538 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42539 if test "$GCC" = yes ; then
c92ad099 42540 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42541 fi
42542
42543 cat >conftest.$ac_ext <<_ACEOF
42544/* confdefs.h. */
42545_ACEOF
42546cat confdefs.h >>conftest.$ac_ext
42547cat >>conftest.$ac_ext <<_ACEOF
42548/* end confdefs.h. */
42549
42550 #include <sys/types.h>
42551 #include <sys/socket.h>
42552
42553int
42554main ()
42555{
42556
42557 size_t len;
42558 getsockname(0, 0, &len);
42559
42560 ;
42561 return 0;
42562}
42563_ACEOF
42564rm -f conftest.$ac_objext
42565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42566 (eval $ac_compile) 2>conftest.er1
a848cd7e 42567 ac_status=$?
ac1cb8d3
VS
42568 grep -v '^ *+' conftest.er1 >conftest.err
42569 rm -f conftest.er1
42570 cat conftest.err >&5
a848cd7e
SC
42571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572 (exit $ac_status); } &&
6954625c 42573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42575 (eval $ac_try) 2>&5
42576 ac_status=$?
42577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42578 (exit $ac_status); }; } &&
42579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42581 (eval $ac_try) 2>&5
42582 ac_status=$?
42583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42584 (exit $ac_status); }; }; then
42585 wx_cv_type_getsockname3=size_t
42586else
42587 echo "$as_me: failed program was:" >&5
42588sed 's/^/| /' conftest.$ac_ext >&5
42589
42590cat >conftest.$ac_ext <<_ACEOF
42591/* confdefs.h. */
42592_ACEOF
42593cat confdefs.h >>conftest.$ac_ext
42594cat >>conftest.$ac_ext <<_ACEOF
42595/* end confdefs.h. */
42596
42597 #include <sys/types.h>
42598 #include <sys/socket.h>
42599
42600int
42601main ()
42602{
42603
42604 int len;
42605 getsockname(0, 0, &len);
42606
42607 ;
42608 return 0;
42609}
42610_ACEOF
42611rm -f conftest.$ac_objext
42612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42613 (eval $ac_compile) 2>conftest.er1
a848cd7e 42614 ac_status=$?
ac1cb8d3
VS
42615 grep -v '^ *+' conftest.er1 >conftest.err
42616 rm -f conftest.er1
42617 cat conftest.err >&5
a848cd7e
SC
42618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619 (exit $ac_status); } &&
6954625c 42620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42622 (eval $ac_try) 2>&5
42623 ac_status=$?
42624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42625 (exit $ac_status); }; } &&
42626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42628 (eval $ac_try) 2>&5
42629 ac_status=$?
42630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42631 (exit $ac_status); }; }; then
42632 wx_cv_type_getsockname3=int
42633else
42634 echo "$as_me: failed program was:" >&5
42635sed 's/^/| /' conftest.$ac_ext >&5
42636
42637wx_cv_type_getsockname3=unknown
42638
42639fi
ac1cb8d3 42640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42641
42642fi
ac1cb8d3 42643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42644
6459a506 42645 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42646
42647
42648fi
ac1cb8d3 42649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42650
42651fi
42652echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42653echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42654
42655 if test "$wx_cv_type_getsockname3" = "unknown"; then
42656 wxUSE_SOCKETS=no
42657 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42658echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42659 else
42660 cat >>confdefs.h <<_ACEOF
9e03e02d 42661#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42662_ACEOF
42663
42664 fi
42665 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42666echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42667if test "${wx_cv_type_getsockopt5+set}" = set; then
42668 echo $ECHO_N "(cached) $ECHO_C" >&6
42669else
42670
42671 cat >conftest.$ac_ext <<_ACEOF
42672/* confdefs.h. */
42673_ACEOF
42674cat confdefs.h >>conftest.$ac_ext
42675cat >>conftest.$ac_ext <<_ACEOF
42676/* end confdefs.h. */
42677
42678 #include <sys/types.h>
42679 #include <sys/socket.h>
42680
42681int
42682main ()
42683{
42684
42685 socklen_t len;
42686 getsockopt(0, 0, 0, 0, &len);
42687
42688 ;
42689 return 0;
42690}
42691_ACEOF
42692rm -f conftest.$ac_objext
42693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42694 (eval $ac_compile) 2>conftest.er1
42695 ac_status=$?
42696 grep -v '^ *+' conftest.er1 >conftest.err
42697 rm -f conftest.er1
42698 cat conftest.err >&5
42699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700 (exit $ac_status); } &&
6954625c 42701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703 (eval $ac_try) 2>&5
42704 ac_status=$?
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); }; } &&
42707 { ac_try='test -s conftest.$ac_objext'
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42710 ac_status=$?
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; }; then
42713 wx_cv_type_getsockopt5=socklen_t
42714else
42715 echo "$as_me: failed program was:" >&5
42716sed 's/^/| /' conftest.$ac_ext >&5
42717
42718
6459a506 42719 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42720 if test "$GCC" = yes ; then
c92ad099 42721 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42722 fi
42723
42724 cat >conftest.$ac_ext <<_ACEOF
42725/* confdefs.h. */
42726_ACEOF
42727cat confdefs.h >>conftest.$ac_ext
42728cat >>conftest.$ac_ext <<_ACEOF
42729/* end confdefs.h. */
42730
42731 #include <sys/types.h>
42732 #include <sys/socket.h>
42733
42734int
42735main ()
42736{
42737
42738 size_t len;
42739 getsockopt(0, 0, 0, 0, &len);
42740
42741 ;
42742 return 0;
42743}
42744_ACEOF
42745rm -f conftest.$ac_objext
42746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42747 (eval $ac_compile) 2>conftest.er1
42748 ac_status=$?
42749 grep -v '^ *+' conftest.er1 >conftest.err
42750 rm -f conftest.er1
42751 cat conftest.err >&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); } &&
6954625c 42754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42756 (eval $ac_try) 2>&5
42757 ac_status=$?
42758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759 (exit $ac_status); }; } &&
42760 { ac_try='test -s conftest.$ac_objext'
42761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42762 (eval $ac_try) 2>&5
42763 ac_status=$?
42764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765 (exit $ac_status); }; }; then
42766 wx_cv_type_getsockopt5=size_t
42767else
42768 echo "$as_me: failed program was:" >&5
42769sed 's/^/| /' conftest.$ac_ext >&5
42770
42771cat >conftest.$ac_ext <<_ACEOF
42772/* confdefs.h. */
42773_ACEOF
42774cat confdefs.h >>conftest.$ac_ext
42775cat >>conftest.$ac_ext <<_ACEOF
42776/* end confdefs.h. */
42777
42778 #include <sys/types.h>
42779 #include <sys/socket.h>
42780
42781int
42782main ()
42783{
42784
42785 int len;
42786 getsockopt(0, 0, 0, 0, &len);
42787
42788 ;
42789 return 0;
42790}
42791_ACEOF
42792rm -f conftest.$ac_objext
42793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42794 (eval $ac_compile) 2>conftest.er1
42795 ac_status=$?
42796 grep -v '^ *+' conftest.er1 >conftest.err
42797 rm -f conftest.er1
42798 cat conftest.err >&5
42799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42800 (exit $ac_status); } &&
6954625c 42801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42803 (eval $ac_try) 2>&5
42804 ac_status=$?
42805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42806 (exit $ac_status); }; } &&
42807 { ac_try='test -s conftest.$ac_objext'
42808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42809 (eval $ac_try) 2>&5
42810 ac_status=$?
42811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812 (exit $ac_status); }; }; then
42813 wx_cv_type_getsockopt5=int
42814else
42815 echo "$as_me: failed program was:" >&5
42816sed 's/^/| /' conftest.$ac_ext >&5
42817
42818wx_cv_type_getsockopt5=unknown
42819
42820fi
42821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42822
42823fi
42824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42825
6459a506 42826 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42827
42828
42829fi
42830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42831
42832fi
42833echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42834echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42835
42836 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42837 wxUSE_SOCKETS=no
42838 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42839echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42840 else
42841 cat >>confdefs.h <<_ACEOF
42842#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42843_ACEOF
42844
42845 fi
42846 fi
42847fi
42848
42849if test "$wxUSE_SOCKETS" = "yes" ; then
42850 cat >>confdefs.h <<\_ACEOF
42851#define wxUSE_SOCKETS 1
42852_ACEOF
42853
42854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42855fi
42856
42857if test "$wxUSE_PROTOCOL" = "yes"; then
42858 if test "$wxUSE_SOCKETS" != "yes"; then
42859 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42860echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42861 wxUSE_PROTOCOL=no
42862 fi
42863fi
42864
42865if test "$wxUSE_PROTOCOL" = "yes"; then
42866 cat >>confdefs.h <<\_ACEOF
42867#define wxUSE_PROTOCOL 1
42868_ACEOF
42869
42870
42871 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42872 cat >>confdefs.h <<\_ACEOF
42873#define wxUSE_PROTOCOL_HTTP 1
42874_ACEOF
42875
42876 fi
42877 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42878 cat >>confdefs.h <<\_ACEOF
42879#define wxUSE_PROTOCOL_FTP 1
42880_ACEOF
42881
42882 fi
42883 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42884 cat >>confdefs.h <<\_ACEOF
42885#define wxUSE_PROTOCOL_FILE 1
42886_ACEOF
42887
42888 fi
42889else
42890 if test "$wxUSE_FS_INET" = "yes"; then
42891 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42892echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42893 wxUSE_FS_INET="no"
42894 fi
42895fi
42896
42897if test "$wxUSE_URL" = "yes"; then
42898 if test "$wxUSE_PROTOCOL" != "yes"; then
42899 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42900echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42901 wxUSE_URL=no
42902 fi
42903 if test "$wxUSE_URL" = "yes"; then
42904 cat >>confdefs.h <<\_ACEOF
42905#define wxUSE_URL 1
42906_ACEOF
42907
42908 fi
42909fi
42910
42911if test "$wxUSE_FS_INET" = "yes"; then
42912 cat >>confdefs.h <<\_ACEOF
42913#define wxUSE_FS_INET 1
42914_ACEOF
42915
42916fi
42917
42918
ee45c548
MW
42919if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42920 wxUSE_JOYSTICK=no
42921
42922 if test "$TOOLKIT" = "MSW"; then
42923 wxUSE_JOYSTICK=yes
42924
42925 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42926 if test "$USE_DARWIN" = 1; then
42927 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42928echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
42929 cat >conftest.$ac_ext <<_ACEOF
42930/* confdefs.h. */
42931_ACEOF
42932cat confdefs.h >>conftest.$ac_ext
42933cat >>conftest.$ac_ext <<_ACEOF
42934/* end confdefs.h. */
42935 #include <IOKit/hid/IOHIDLib.h>
42936int
42937main ()
42938{
42939 IOHIDQueueInterface *qi = NULL;
42940 IOHIDCallbackFunction cb = NULL;
42941 qi->setEventCallout(NULL, cb, NULL, NULL);
42942 ;
42943 return 0;
42944}
42945_ACEOF
42946rm -f conftest.$ac_objext
42947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42948 (eval $ac_compile) 2>conftest.er1
42949 ac_status=$?
42950 grep -v '^ *+' conftest.er1 >conftest.err
42951 rm -f conftest.er1
42952 cat conftest.err >&5
42953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954 (exit $ac_status); } &&
6954625c 42955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
42956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42957 (eval $ac_try) 2>&5
42958 ac_status=$?
42959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960 (exit $ac_status); }; } &&
42961 { ac_try='test -s conftest.$ac_objext'
42962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42963 (eval $ac_try) 2>&5
42964 ac_status=$?
42965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42966 (exit $ac_status); }; }; then
42967 wxUSE_JOYSTICK=yes
a848cd7e 42968
ee45c548
MW
42969else
42970 echo "$as_me: failed program was:" >&5
42971sed 's/^/| /' conftest.$ac_ext >&5
42972
42973fi
42974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
42975 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42976echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42977 fi
42978
42979 else
a848cd7e
SC
42980
42981for ac_header in linux/joystick.h
42982do
42983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42984if eval "test \"\${$as_ac_Header+set}\" = set"; then
42985 echo "$as_me:$LINENO: checking for $ac_header" >&5
42986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42987if eval "test \"\${$as_ac_Header+set}\" = set"; then
42988 echo $ECHO_N "(cached) $ECHO_C" >&6
42989fi
42990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42992else
42993 # Is the header compilable?
42994echo "$as_me:$LINENO: checking $ac_header usability" >&5
42995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42996cat >conftest.$ac_ext <<_ACEOF
42997/* confdefs.h. */
42998_ACEOF
42999cat confdefs.h >>conftest.$ac_ext
43000cat >>conftest.$ac_ext <<_ACEOF
43001/* end confdefs.h. */
43002$ac_includes_default
43003#include <$ac_header>
43004_ACEOF
43005rm -f conftest.$ac_objext
43006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43007 (eval $ac_compile) 2>conftest.er1
a848cd7e 43008 ac_status=$?
ac1cb8d3
VS
43009 grep -v '^ *+' conftest.er1 >conftest.err
43010 rm -f conftest.er1
43011 cat conftest.err >&5
a848cd7e
SC
43012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013 (exit $ac_status); } &&
6954625c 43014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43016 (eval $ac_try) 2>&5
43017 ac_status=$?
43018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43019 (exit $ac_status); }; } &&
43020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43022 (eval $ac_try) 2>&5
43023 ac_status=$?
43024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43025 (exit $ac_status); }; }; then
43026 ac_header_compiler=yes
43027else
43028 echo "$as_me: failed program was:" >&5
43029sed 's/^/| /' conftest.$ac_ext >&5
43030
43031ac_header_compiler=no
43032fi
ac1cb8d3 43033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43035echo "${ECHO_T}$ac_header_compiler" >&6
43036
43037# Is the header present?
43038echo "$as_me:$LINENO: checking $ac_header presence" >&5
43039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43040cat >conftest.$ac_ext <<_ACEOF
43041/* confdefs.h. */
43042_ACEOF
43043cat confdefs.h >>conftest.$ac_ext
43044cat >>conftest.$ac_ext <<_ACEOF
43045/* end confdefs.h. */
43046#include <$ac_header>
43047_ACEOF
43048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43050 ac_status=$?
43051 grep -v '^ *+' conftest.er1 >conftest.err
43052 rm -f conftest.er1
43053 cat conftest.err >&5
43054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43055 (exit $ac_status); } >/dev/null; then
43056 if test -s conftest.err; then
5d7b7554
VZ
43057 ac_cpp_err=$ac_cxx_preproc_warn_flag
43058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43059 else
43060 ac_cpp_err=
43061 fi
43062else
43063 ac_cpp_err=yes
43064fi
43065if test -z "$ac_cpp_err"; then
43066 ac_header_preproc=yes
43067else
43068 echo "$as_me: failed program was:" >&5
43069sed 's/^/| /' conftest.$ac_ext >&5
43070
43071 ac_header_preproc=no
43072fi
43073rm -f conftest.err conftest.$ac_ext
43074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43075echo "${ECHO_T}$ac_header_preproc" >&6
43076
43077# So? What about this header?
5d7b7554 43078case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43079 yes:no: )
a848cd7e
SC
43080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43084 ac_header_preproc=yes
a848cd7e 43085 ;;
ac1cb8d3 43086 no:yes:* )
a848cd7e
SC
43087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43099 (
43100 cat <<\_ASBOX
ac1cb8d3
VS
43101## ----------------------------------------- ##
43102## Report this to wx-dev@lists.wxwidgets.org ##
43103## ----------------------------------------- ##
a848cd7e
SC
43104_ASBOX
43105 ) |
43106 sed "s/^/$as_me: WARNING: /" >&2
43107 ;;
43108esac
43109echo "$as_me:$LINENO: checking for $ac_header" >&5
43110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43111if eval "test \"\${$as_ac_Header+set}\" = set"; then
43112 echo $ECHO_N "(cached) $ECHO_C" >&6
43113else
ac1cb8d3 43114 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43115fi
43116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43118
43119fi
43120if test `eval echo '${'$as_ac_Header'}'` = yes; then
43121 cat >>confdefs.h <<_ACEOF
43122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43123_ACEOF
ee45c548 43124 wxUSE_JOYSTICK=yes
a848cd7e
SC
43125fi
43126
43127done
43128
ee45c548 43129 fi
4cb1d3da 43130
ee45c548
MW
43131 if test "$wxUSE_JOYSTICK" = "yes"; then
43132 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43133#define wxUSE_JOYSTICK 1
43134_ACEOF
43135
ee45c548
MW
43136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43137 else
43138 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43139echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43140 fi
43141fi
43142
43143
43144
43145if test "$wxUSE_FONTMAP" = "yes" ; then
43146 cat >>confdefs.h <<\_ACEOF
43147#define wxUSE_FONTMAP 1
43148_ACEOF
43149
43150fi
43151
43152if test "$wxUSE_UNICODE" = "yes" ; then
43153 cat >>confdefs.h <<\_ACEOF
43154#define wxUSE_UNICODE 1
43155_ACEOF
43156
43157
43158 if test "$USE_WIN32" != 1; then
43159 wxUSE_UNICODE_MSLU=no
43160 fi
43161
43162 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43163 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43164echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43165if test "${ac_cv_lib_unicows_main+set}" = set; then
43166 echo $ECHO_N "(cached) $ECHO_C" >&6
43167else
43168 ac_check_lib_save_LIBS=$LIBS
43169LIBS="-lunicows $LIBS"
43170cat >conftest.$ac_ext <<_ACEOF
43171/* confdefs.h. */
43172_ACEOF
43173cat confdefs.h >>conftest.$ac_ext
43174cat >>conftest.$ac_ext <<_ACEOF
43175/* end confdefs.h. */
43176
43177
43178int
43179main ()
43180{
43181main ();
43182 ;
43183 return 0;
43184}
43185_ACEOF
43186rm -f conftest.$ac_objext conftest$ac_exeext
43187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43188 (eval $ac_link) 2>conftest.er1
a848cd7e 43189 ac_status=$?
ac1cb8d3
VS
43190 grep -v '^ *+' conftest.er1 >conftest.err
43191 rm -f conftest.er1
43192 cat conftest.err >&5
a848cd7e
SC
43193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194 (exit $ac_status); } &&
6954625c 43195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197 (eval $ac_try) 2>&5
43198 ac_status=$?
43199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200 (exit $ac_status); }; } &&
43201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43203 (eval $ac_try) 2>&5
43204 ac_status=$?
43205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43206 (exit $ac_status); }; }; then
43207 ac_cv_lib_unicows_main=yes
43208else
43209 echo "$as_me: failed program was:" >&5
43210sed 's/^/| /' conftest.$ac_ext >&5
43211
43212ac_cv_lib_unicows_main=no
43213fi
ac1cb8d3
VS
43214rm -f conftest.err conftest.$ac_objext \
43215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43216LIBS=$ac_check_lib_save_LIBS
43217fi
43218echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43219echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43220if test $ac_cv_lib_unicows_main = yes; then
43221
43222 cat >>confdefs.h <<\_ACEOF
43223#define wxUSE_UNICODE_MSLU 1
43224_ACEOF
43225
43226
43227else
43228
43229 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43230 Applications will only run on Windows NT/2000/XP!" >&5
43231echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43232 Applications will only run on Windows NT/2000/XP!" >&2;}
43233 wxUSE_UNICODE_MSLU=no
43234
43235fi
43236
43237 fi
43238fi
43239
43240if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43241 cat >>confdefs.h <<\_ACEOF
43242#define wxUSE_EXPERIMENTAL_PRINTF 1
43243_ACEOF
43244
43245fi
43246
43247
43248if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43249 cat >>confdefs.h <<\_ACEOF
43250#define wxUSE_POSTSCRIPT 1
43251_ACEOF
43252
43253fi
43254
43255cat >>confdefs.h <<\_ACEOF
43256#define wxUSE_AFM_FOR_POSTSCRIPT 1
43257_ACEOF
43258
43259
43260cat >>confdefs.h <<\_ACEOF
43261#define wxUSE_NORMALIZED_PS_FONTS 1
43262_ACEOF
43263
43264
43265
43266if test "$wxUSE_CONSTRAINTS" = "yes"; then
43267 cat >>confdefs.h <<\_ACEOF
43268#define wxUSE_CONSTRAINTS 1
43269_ACEOF
43270
43271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43272fi
43273
8a7b1113
VZ
43274if test "$wxUSE_MDI" = "yes"; then
43275 cat >>confdefs.h <<\_ACEOF
43276#define wxUSE_MDI 1
43277_ACEOF
43278
43279
43280 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43281 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43282#define wxUSE_MDI_ARCHITECTURE 1
43283_ACEOF
43284
8a7b1113
VZ
43285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43286 fi
a848cd7e
SC
43287fi
43288
43289if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43290 cat >>confdefs.h <<\_ACEOF
43291#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43292_ACEOF
43293
43294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43295 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43297 fi
43298fi
43299
43300if test "$wxUSE_HELP" = "yes"; then
43301 cat >>confdefs.h <<\_ACEOF
43302#define wxUSE_HELP 1
43303_ACEOF
43304
43305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43306
43307 if test "$wxUSE_MSW" = 1; then
43308 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43309 cat >>confdefs.h <<\_ACEOF
43310#define wxUSE_MS_HTML_HELP 1
43311_ACEOF
43312
43313 fi
43314 fi
43315
43316 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43317 if test "$wxUSE_HTML" = "yes"; then
43318 cat >>confdefs.h <<\_ACEOF
43319#define wxUSE_WXHTML_HELP 1
43320_ACEOF
43321
43322 else
43323 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43324echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43325 wxUSE_WXHTML_HELP=no
43326 fi
43327 fi
43328fi
43329
43330if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43331 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43332 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43333echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43334 else
43335 cat >>confdefs.h <<\_ACEOF
43336#define wxUSE_PRINTING_ARCHITECTURE 1
43337_ACEOF
43338
43339 fi
43340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43341fi
43342
43343if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43344 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43345echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43346 { (exit 1); exit 1; }; }
43347fi
43348
43349
efdf6afe
VZ
43350if test "$wxUSE_METAFILE" = "yes"; then
43351 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43352 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43353echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43354 wxUSE_METAFILE=no
43355 fi
43356fi
43357
43358
a848cd7e
SC
43359if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43360 -o "$wxUSE_CLIPBOARD" = "yes" \
43361 -o "$wxUSE_OLE" = "yes" \
43362 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43363
43364for ac_header in ole2.h
43365do
43366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43367if eval "test \"\${$as_ac_Header+set}\" = set"; then
43368 echo "$as_me:$LINENO: checking for $ac_header" >&5
43369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43370if eval "test \"\${$as_ac_Header+set}\" = set"; then
43371 echo $ECHO_N "(cached) $ECHO_C" >&6
43372fi
43373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43375else
43376 # Is the header compilable?
43377echo "$as_me:$LINENO: checking $ac_header usability" >&5
43378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43379cat >conftest.$ac_ext <<_ACEOF
43380/* confdefs.h. */
43381_ACEOF
43382cat confdefs.h >>conftest.$ac_ext
43383cat >>conftest.$ac_ext <<_ACEOF
43384/* end confdefs.h. */
43385$ac_includes_default
43386#include <$ac_header>
43387_ACEOF
43388rm -f conftest.$ac_objext
43389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43390 (eval $ac_compile) 2>conftest.er1
a848cd7e 43391 ac_status=$?
ac1cb8d3
VS
43392 grep -v '^ *+' conftest.er1 >conftest.err
43393 rm -f conftest.er1
43394 cat conftest.err >&5
a848cd7e
SC
43395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43396 (exit $ac_status); } &&
6954625c 43397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43399 (eval $ac_try) 2>&5
43400 ac_status=$?
43401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402 (exit $ac_status); }; } &&
43403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43405 (eval $ac_try) 2>&5
43406 ac_status=$?
43407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43408 (exit $ac_status); }; }; then
43409 ac_header_compiler=yes
43410else
43411 echo "$as_me: failed program was:" >&5
43412sed 's/^/| /' conftest.$ac_ext >&5
43413
43414ac_header_compiler=no
43415fi
ac1cb8d3 43416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43418echo "${ECHO_T}$ac_header_compiler" >&6
43419
43420# Is the header present?
43421echo "$as_me:$LINENO: checking $ac_header presence" >&5
43422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43423cat >conftest.$ac_ext <<_ACEOF
43424/* confdefs.h. */
43425_ACEOF
43426cat confdefs.h >>conftest.$ac_ext
43427cat >>conftest.$ac_ext <<_ACEOF
43428/* end confdefs.h. */
43429#include <$ac_header>
43430_ACEOF
43431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43433 ac_status=$?
43434 grep -v '^ *+' conftest.er1 >conftest.err
43435 rm -f conftest.er1
43436 cat conftest.err >&5
43437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438 (exit $ac_status); } >/dev/null; then
43439 if test -s conftest.err; then
5d7b7554
VZ
43440 ac_cpp_err=$ac_cxx_preproc_warn_flag
43441 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43442 else
43443 ac_cpp_err=
43444 fi
43445else
43446 ac_cpp_err=yes
43447fi
43448if test -z "$ac_cpp_err"; then
43449 ac_header_preproc=yes
43450else
43451 echo "$as_me: failed program was:" >&5
43452sed 's/^/| /' conftest.$ac_ext >&5
43453
43454 ac_header_preproc=no
43455fi
43456rm -f conftest.err conftest.$ac_ext
43457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43458echo "${ECHO_T}$ac_header_preproc" >&6
43459
43460# So? What about this header?
5d7b7554 43461case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43462 yes:no: )
a848cd7e
SC
43463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43467 ac_header_preproc=yes
a848cd7e 43468 ;;
ac1cb8d3 43469 no:yes:* )
a848cd7e
SC
43470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43482 (
43483 cat <<\_ASBOX
ac1cb8d3
VS
43484## ----------------------------------------- ##
43485## Report this to wx-dev@lists.wxwidgets.org ##
43486## ----------------------------------------- ##
a848cd7e
SC
43487_ASBOX
43488 ) |
43489 sed "s/^/$as_me: WARNING: /" >&2
43490 ;;
43491esac
43492echo "$as_me:$LINENO: checking for $ac_header" >&5
43493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43494if eval "test \"\${$as_ac_Header+set}\" = set"; then
43495 echo $ECHO_N "(cached) $ECHO_C" >&6
43496else
ac1cb8d3 43497 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43498fi
43499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43501
43502fi
43503if test `eval echo '${'$as_ac_Header'}'` = yes; then
43504 cat >>confdefs.h <<_ACEOF
43505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43506_ACEOF
43507
43508fi
43509
43510done
43511
43512
43513 if test "$ac_cv_header_ole2_h" = "yes" ; then
43514 if test "$GCC" = yes ; then
a848cd7e
SC
43515 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43516echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43517 cat >conftest.$ac_ext <<_ACEOF
43518/* confdefs.h. */
43519_ACEOF
43520cat confdefs.h >>conftest.$ac_ext
43521cat >>conftest.$ac_ext <<_ACEOF
43522/* end confdefs.h. */
43523#include <windows.h>
43524 #include <ole2.h>
43525int
43526main ()
43527{
43528
43529 ;
43530 return 0;
43531}
43532_ACEOF
43533rm -f conftest.$ac_objext
43534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43535 (eval $ac_compile) 2>conftest.er1
a848cd7e 43536 ac_status=$?
ac1cb8d3
VS
43537 grep -v '^ *+' conftest.er1 >conftest.err
43538 rm -f conftest.er1
43539 cat conftest.err >&5
a848cd7e
SC
43540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43541 (exit $ac_status); } &&
6954625c 43542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43544 (eval $ac_try) 2>&5
43545 ac_status=$?
43546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43547 (exit $ac_status); }; } &&
43548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43550 (eval $ac_try) 2>&5
43551 ac_status=$?
43552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553 (exit $ac_status); }; }; then
43554 echo "$as_me:$LINENO: result: no" >&5
43555echo "${ECHO_T}no" >&6
43556else
43557 echo "$as_me: failed program was:" >&5
43558sed 's/^/| /' conftest.$ac_ext >&5
43559
43560echo "$as_me:$LINENO: result: yes" >&5
43561echo "${ECHO_T}yes" >&6
5ff751d6 43562 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43563fi
ac1cb8d3 43564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43565 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43566 if test "$wxUSE_OLE" = "yes" ; then
43567 cat >>confdefs.h <<\_ACEOF
43568#define wxUSE_OLE 1
43569_ACEOF
43570
0b78747f 43571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43572 fi
43573 fi
43574
43575 if test "$wxUSE_DATAOBJ" = "yes" ; then
43576 cat >>confdefs.h <<\_ACEOF
43577#define wxUSE_DATAOBJ 1
43578_ACEOF
43579
43580 fi
43581 else
43582 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43583echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43584
43585 wxUSE_CLIPBOARD=no
43586 wxUSE_DRAG_AND_DROP=no
43587 wxUSE_DATAOBJ=no
43588 wxUSE_OLE=no
43589 fi
43590
43591 if test "$wxUSE_METAFILE" = "yes"; then
43592 cat >>confdefs.h <<\_ACEOF
43593#define wxUSE_METAFILE 1
43594_ACEOF
43595
43596
43597 cat >>confdefs.h <<\_ACEOF
43598#define wxUSE_ENH_METAFILE 1
43599_ACEOF
43600
43601 fi
43602fi
43603
43604if test "$wxUSE_IPC" = "yes"; then
0b78747f 43605 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43606 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43607echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43608 wxUSE_IPC=no
a848cd7e
SC
43609 fi
43610
0b78747f
MW
43611 if test "$wxUSE_IPC" = "yes"; then
43612 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43613#define wxUSE_IPC 1
43614_ACEOF
43615
0b78747f
MW
43616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43617 fi
a848cd7e
SC
43618fi
43619
eb730a0c 43620if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43621 if test "$wxUSE_MGL" = 1; then
43622 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43623echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43624 wxUSE_DATAOBJ=no
43625 else
43626 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43627#define wxUSE_DATAOBJ 1
43628_ACEOF
43629
2113bc77 43630 fi
eb730a0c
JS
43631else
43632 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43633echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43634 wxUSE_CLIPBOARD=no
43635 wxUSE_DRAG_AND_DROP=no
43636fi
43637
a848cd7e
SC
43638if test "$wxUSE_CLIPBOARD" = "yes"; then
43639 if test "$wxUSE_MGL" = 1; then
43640 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43641echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43642 wxUSE_CLIPBOARD=no
43643 fi
43644
43645 if test "$wxUSE_CLIPBOARD" = "yes"; then
43646 cat >>confdefs.h <<\_ACEOF
43647#define wxUSE_CLIPBOARD 1
43648_ACEOF
43649
a848cd7e
SC
43650 fi
43651fi
43652
43653if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43654 if test "$wxUSE_GTK" = 1; then
43655 if test "$WXGTK12" != 1; then
43656 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43657echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43658 wxUSE_DRAG_AND_DROP=no
43659 fi
43660 fi
43661
43662 if test "$wxUSE_MOTIF" = 1; then
43663 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43664echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43665 wxUSE_DRAG_AND_DROP=no
43666 fi
43667
43668 if test "$wxUSE_X11" = 1; then
43669 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43670echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43671 wxUSE_DRAG_AND_DROP=no
43672 fi
43673
43674 if test "$wxUSE_MGL" = 1; then
43675 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43676echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43677 wxUSE_DRAG_AND_DROP=no
43678 fi
43679
43680 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43681 cat >>confdefs.h <<\_ACEOF
43682#define wxUSE_DRAG_AND_DROP 1
43683_ACEOF
43684
43685 fi
43686
43687fi
43688
43689if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43691fi
43692
43693if test "$wxUSE_SPLINES" = "yes" ; then
43694 cat >>confdefs.h <<\_ACEOF
43695#define wxUSE_SPLINES 1
43696_ACEOF
43697
43698fi
43699
fbe2ca43
SN
43700if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43701 cat >>confdefs.h <<\_ACEOF
43702#define wxUSE_MOUSEWHEEL 1
43703_ACEOF
43704
43705fi
43706
a848cd7e
SC
43707
43708USES_CONTROLS=0
43709if test "$wxUSE_CONTROLS" = "yes"; then
43710 USES_CONTROLS=1
43711fi
43712
43713if test "$wxUSE_ACCEL" = "yes"; then
43714 cat >>confdefs.h <<\_ACEOF
43715#define wxUSE_ACCEL 1
43716_ACEOF
43717
43718 USES_CONTROLS=1
43719fi
43720
43721if test "$wxUSE_BUTTON" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723#define wxUSE_BUTTON 1
43724_ACEOF
43725
43726 USES_CONTROLS=1
43727fi
43728
43729if test "$wxUSE_BMPBUTTON" = "yes"; then
43730 cat >>confdefs.h <<\_ACEOF
43731#define wxUSE_BMPBUTTON 1
43732_ACEOF
43733
43734 USES_CONTROLS=1
43735fi
43736
43737if test "$wxUSE_CALCTRL" = "yes"; then
43738 cat >>confdefs.h <<\_ACEOF
43739#define wxUSE_CALENDARCTRL 1
43740_ACEOF
43741
43742 USES_CONTROLS=1
43743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43744fi
43745
43746if test "$wxUSE_CARET" = "yes"; then
43747 cat >>confdefs.h <<\_ACEOF
43748#define wxUSE_CARET 1
43749_ACEOF
43750
43751 USES_CONTROLS=1
43752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43753fi
43754
43755if test "$wxUSE_COMBOBOX" = "yes"; then
43756 cat >>confdefs.h <<\_ACEOF
43757#define wxUSE_COMBOBOX 1
43758_ACEOF
43759
43760 USES_CONTROLS=1
43761fi
43762
a57d600f 43763if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 43764 cat >>confdefs.h <<\_ACEOF
a57d600f 43765#define wxUSE_COMBOCTRL 1
642bcba9
VZ
43766_ACEOF
43767
43768 USES_CONTROLS=1
43769fi
43770
a848cd7e
SC
43771if test "$wxUSE_CHOICE" = "yes"; then
43772 cat >>confdefs.h <<\_ACEOF
43773#define wxUSE_CHOICE 1
43774_ACEOF
43775
43776 USES_CONTROLS=1
43777fi
43778
92bbdbcd
WS
43779if test "$wxUSE_CHOICEBOOK" = "yes"; then
43780 cat >>confdefs.h <<\_ACEOF
43781#define wxUSE_CHOICEBOOK 1
43782_ACEOF
43783
43784 USES_CONTROLS=1
43785fi
43786
a848cd7e
SC
43787if test "$wxUSE_CHECKBOX" = "yes"; then
43788 cat >>confdefs.h <<\_ACEOF
43789#define wxUSE_CHECKBOX 1
43790_ACEOF
43791
43792 USES_CONTROLS=1
43793fi
43794
43795if test "$wxUSE_CHECKLST" = "yes"; then
43796 cat >>confdefs.h <<\_ACEOF
43797#define wxUSE_CHECKLISTBOX 1
43798_ACEOF
43799
43800 USES_CONTROLS=1
43801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43802fi
43803
da98e9be
VZ
43804if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43805 cat >>confdefs.h <<\_ACEOF
43806#define wxUSE_DATEPICKCTRL 1
43807_ACEOF
43808
43809 USES_CONTROLS=1
43810fi
43811
a848cd7e
SC
43812if test "$wxUSE_DISPLAY" = "yes"; then
43813 cat >>confdefs.h <<\_ACEOF
43814#define wxUSE_DISPLAY 1
43815_ACEOF
43816
0b78747f 43817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43818fi
43819
43820if test "$wxUSE_GAUGE" = "yes"; then
43821 cat >>confdefs.h <<\_ACEOF
43822#define wxUSE_GAUGE 1
43823_ACEOF
43824
43825 USES_CONTROLS=1
43826fi
43827
43828if test "$wxUSE_GRID" = "yes"; then
43829 cat >>confdefs.h <<\_ACEOF
43830#define wxUSE_GRID 1
43831_ACEOF
43832
43833 USES_CONTROLS=1
43834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43835fi
43836
6954625c
VZ
43837if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
43838 cat >>confdefs.h <<\_ACEOF
43839#define wxUSE_HYPERLINKCTRL 1
43840_ACEOF
43841
43842 USES_CONTROLS=1
43843fi
43844
20e34ecc
RR
43845if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43846 cat >>confdefs.h <<\_ACEOF
43847#define wxUSE_DATAVIEWCTRL 1
43848_ACEOF
43849
43850 USES_CONTROLS=1
43851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43852fi
43853
a848cd7e
SC
43854if test "$wxUSE_IMAGLIST" = "yes"; then
43855 cat >>confdefs.h <<\_ACEOF
43856#define wxUSE_IMAGLIST 1
43857_ACEOF
43858
43859fi
43860
43861if test "$wxUSE_LISTBOOK" = "yes"; then
43862 cat >>confdefs.h <<\_ACEOF
43863#define wxUSE_LISTBOOK 1
43864_ACEOF
43865
43866 USES_CONTROLS=1
43867fi
43868
43869if test "$wxUSE_LISTBOX" = "yes"; then
43870 cat >>confdefs.h <<\_ACEOF
43871#define wxUSE_LISTBOX 1
43872_ACEOF
43873
43874 USES_CONTROLS=1
0b78747f 43875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43876fi
43877
43878if test "$wxUSE_LISTCTRL" = "yes"; then
43879 if test "$wxUSE_IMAGLIST" = "yes"; then
43880 cat >>confdefs.h <<\_ACEOF
43881#define wxUSE_LISTCTRL 1
43882_ACEOF
43883
43884 USES_CONTROLS=1
43885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43886 else
43887 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43888echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43889 fi
43890fi
43891
43892if test "$wxUSE_NOTEBOOK" = "yes"; then
43893 cat >>confdefs.h <<\_ACEOF
43894#define wxUSE_NOTEBOOK 1
43895_ACEOF
43896
43897 USES_CONTROLS=1
43898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43899fi
43900
a57d600f 43901if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 43902 cat >>confdefs.h <<\_ACEOF
a57d600f 43903#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
43904_ACEOF
43905
43906 USES_CONTROLS=1
43907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
43908fi
43909
a848cd7e
SC
43910
43911if test "$wxUSE_RADIOBOX" = "yes"; then
43912 cat >>confdefs.h <<\_ACEOF
43913#define wxUSE_RADIOBOX 1
43914_ACEOF
43915
43916 USES_CONTROLS=1
43917fi
43918
43919if test "$wxUSE_RADIOBTN" = "yes"; then
43920 cat >>confdefs.h <<\_ACEOF
43921#define wxUSE_RADIOBTN 1
43922_ACEOF
43923
43924 USES_CONTROLS=1
43925fi
43926
43927if test "$wxUSE_SASH" = "yes"; then
43928 cat >>confdefs.h <<\_ACEOF
43929#define wxUSE_SASH 1
43930_ACEOF
43931
43932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43933fi
43934
43935if test "$wxUSE_SCROLLBAR" = "yes"; then
43936 cat >>confdefs.h <<\_ACEOF
43937#define wxUSE_SCROLLBAR 1
43938_ACEOF
43939
43940 USES_CONTROLS=1
43941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43942fi
43943
43944if test "$wxUSE_SLIDER" = "yes"; then
43945 cat >>confdefs.h <<\_ACEOF
43946#define wxUSE_SLIDER 1
43947_ACEOF
43948
43949 USES_CONTROLS=1
43950fi
43951
43952if test "$wxUSE_SPINBTN" = "yes"; then
43953 cat >>confdefs.h <<\_ACEOF
43954#define wxUSE_SPINBTN 1
43955_ACEOF
43956
43957 USES_CONTROLS=1
43958fi
43959
43960if test "$wxUSE_SPINCTRL" = "yes"; then
43961 cat >>confdefs.h <<\_ACEOF
43962#define wxUSE_SPINCTRL 1
43963_ACEOF
43964
43965 USES_CONTROLS=1
43966fi
43967
43968if test "$wxUSE_SPLITTER" = "yes"; then
43969 cat >>confdefs.h <<\_ACEOF
43970#define wxUSE_SPLITTER 1
43971_ACEOF
43972
43973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43974fi
43975
43976if test "$wxUSE_STATBMP" = "yes"; then
43977 cat >>confdefs.h <<\_ACEOF
43978#define wxUSE_STATBMP 1
43979_ACEOF
43980
43981 USES_CONTROLS=1
43982fi
43983
43984if test "$wxUSE_STATBOX" = "yes"; then
43985 cat >>confdefs.h <<\_ACEOF
43986#define wxUSE_STATBOX 1
43987_ACEOF
43988
43989 USES_CONTROLS=1
43990fi
43991
43992if test "$wxUSE_STATTEXT" = "yes"; then
43993 cat >>confdefs.h <<\_ACEOF
43994#define wxUSE_STATTEXT 1
43995_ACEOF
43996
43997 USES_CONTROLS=1
43998fi
43999
44000if test "$wxUSE_STATLINE" = "yes"; then
44001 cat >>confdefs.h <<\_ACEOF
44002#define wxUSE_STATLINE 1
44003_ACEOF
44004
44005 USES_CONTROLS=1
44006fi
44007
44008if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44009 cat >>confdefs.h <<\_ACEOF
44010#define wxUSE_NATIVE_STATUSBAR 1
44011_ACEOF
44012
a848cd7e
SC
44013 cat >>confdefs.h <<\_ACEOF
44014#define wxUSE_STATUSBAR 1
44015_ACEOF
44016
44017 USES_CONTROLS=1
44018
44019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44020fi
44021
f10e38c4 44022if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44023 cat >>confdefs.h <<\_ACEOF
44024#define wxUSE_TAB_DIALOG 1
44025_ACEOF
44026
a848cd7e
SC
44027fi
44028
44029if test "$wxUSE_TEXTCTRL" = "yes"; then
44030 cat >>confdefs.h <<\_ACEOF
44031#define wxUSE_TEXTCTRL 1
44032_ACEOF
44033
44034 USES_CONTROLS=1
44035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44036fi
44037
44038if test "$wxUSE_TOGGLEBTN" = "yes"; then
44039 if test "$wxUSE_COCOA" = 1 ; then
44040 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44041echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44042 wxUSE_TOGGLEBTN=no
44043 fi
a848cd7e
SC
44044
44045 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44046 cat >>confdefs.h <<\_ACEOF
44047#define wxUSE_TOGGLEBTN 1
44048_ACEOF
44049
44050 USES_CONTROLS=1
44051 fi
44052fi
44053
44054if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44055 cat >>confdefs.h <<\_ACEOF
44056#define wxUSE_TOOLBAR_SIMPLE 1
44057_ACEOF
44058
44059 wxUSE_TOOLBAR="yes"
44060 USES_CONTROLS=1
44061fi
44062
44063if test "$wxUSE_TOOLBAR" = "yes"; then
44064 cat >>confdefs.h <<\_ACEOF
44065#define wxUSE_TOOLBAR 1
44066_ACEOF
44067
44068 USES_CONTROLS=1
44069
44070 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44071 wxUSE_TOOLBAR_NATIVE="yes"
44072 fi
44073
44074 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44075 cat >>confdefs.h <<\_ACEOF
44076#define wxUSE_TOOLBAR_NATIVE 1
44077_ACEOF
44078
44079 USES_CONTROLS=1
44080 fi
44081
44082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44083fi
44084
44085if test "$wxUSE_TOOLTIPS" = "yes"; then
44086 if test "$wxUSE_MOTIF" = 1; then
44087 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44088echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44089 else
44090 if test "$wxUSE_UNIVERSAL" = "yes"; then
44091 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44092echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44093 else
44094 cat >>confdefs.h <<\_ACEOF
44095#define wxUSE_TOOLTIPS 1
44096_ACEOF
44097
44098 fi
44099 fi
44100fi
44101
0093c2fc
VZ
44102if test "$wxUSE_TREEBOOK" = "yes"; then
44103 cat >>confdefs.h <<\_ACEOF
44104#define wxUSE_TREEBOOK 1
44105_ACEOF
44106
44107 USES_CONTROLS=1
44108fi
44109
5ec3bc43
JS
44110if test "$wxUSE_TOOLBOOK" = "yes"; then
44111 cat >>confdefs.h <<\_ACEOF
44112#define wxUSE_TOOLBOOK 1
44113_ACEOF
44114
44115 USES_CONTROLS=1
44116fi
44117
a848cd7e
SC
44118if test "$wxUSE_TREECTRL" = "yes"; then
44119 if test "$wxUSE_IMAGLIST" = "yes"; then
44120 cat >>confdefs.h <<\_ACEOF
44121#define wxUSE_TREECTRL 1
44122_ACEOF
44123
44124 USES_CONTROLS=1
44125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44126 else
44127 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44128echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44129 fi
44130fi
44131
44132if test "$wxUSE_POPUPWIN" = "yes"; then
44133 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44134 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44135echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44136 else
44137 if test "$wxUSE_PM" = 1; then
44138 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44139echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44140 else
44141 cat >>confdefs.h <<\_ACEOF
44142#define wxUSE_POPUPWIN 1
44143_ACEOF
44144
0b78747f 44145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44146
44147 USES_CONTROLS=1
44148 fi
44149 fi
44150fi
44151
0dcd06dd 44152if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44153 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44154 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44155echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44156 else
44157 cat >>confdefs.h <<\_ACEOF
44158#define wxUSE_DIALUP_MANAGER 1
44159_ACEOF
44160
44161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44162 fi
44163fi
44164
a848cd7e
SC
44165if test "$wxUSE_TIPWINDOW" = "yes"; then
44166 if test "$wxUSE_PM" = 1; then
44167 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44168echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44169 else
44170 cat >>confdefs.h <<\_ACEOF
44171#define wxUSE_TIPWINDOW 1
44172_ACEOF
44173
44174 fi
44175fi
44176
44177if test "$USES_CONTROLS" = 1; then
44178 cat >>confdefs.h <<\_ACEOF
44179#define wxUSE_CONTROLS 1
44180_ACEOF
44181
44182fi
44183
44184
44185if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44186 cat >>confdefs.h <<\_ACEOF
44187#define wxUSE_ACCESSIBILITY 1
44188_ACEOF
44189
44190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44191fi
44192
38b4a946
VZ
44193if test "$wxUSE_DC_CACHEING" = "yes"; then
44194 cat >>confdefs.h <<\_ACEOF
44195#define wxUSE_DC_CACHEING 1
44196_ACEOF
44197
44198fi
44199
a848cd7e
SC
44200if test "$wxUSE_DRAGIMAGE" = "yes"; then
44201 cat >>confdefs.h <<\_ACEOF
44202#define wxUSE_DRAGIMAGE 1
44203_ACEOF
44204
44205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44206fi
44207
44208if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44209 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44210 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44211echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44212 else
44213 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44214#define wxUSE_EXCEPTIONS 1
44215_ACEOF
44216
07bea8f0
VS
44217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44218 fi
a848cd7e
SC
44219fi
44220
44221USE_HTML=0
44222if test "$wxUSE_HTML" = "yes"; then
44223 cat >>confdefs.h <<\_ACEOF
44224#define wxUSE_HTML 1
44225_ACEOF
44226
44227 USE_HTML=1
44228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44229 if test "$wxUSE_MAC" = 1; then
44230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44231 fi
a848cd7e 44232fi
646b6ec1 44233if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44234 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44235 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44236 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44237 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44238echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44239if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44240 echo $ECHO_N "(cached) $ECHO_C" >&6
44241else
44242 cat >conftest.$ac_ext <<_ACEOF
44243/* confdefs.h. */
44244_ACEOF
44245cat confdefs.h >>conftest.$ac_ext
44246cat >>conftest.$ac_ext <<_ACEOF
44247/* end confdefs.h. */
44248#include <Carbon/Carbon.h>
44249
44250#include <WebKit/HIWebView.h>
44251_ACEOF
44252rm -f conftest.$ac_objext
44253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44254 (eval $ac_compile) 2>conftest.er1
44255 ac_status=$?
44256 grep -v '^ *+' conftest.er1 >conftest.err
44257 rm -f conftest.er1
44258 cat conftest.err >&5
44259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44260 (exit $ac_status); } &&
6954625c 44261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44263 (eval $ac_try) 2>&5
44264 ac_status=$?
44265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44266 (exit $ac_status); }; } &&
44267 { ac_try='test -s conftest.$ac_objext'
44268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44269 (eval $ac_try) 2>&5
44270 ac_status=$?
44271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44272 (exit $ac_status); }; }; then
44273 ac_cv_header_WebKit_HIWebView_h=yes
44274else
44275 echo "$as_me: failed program was:" >&5
44276sed 's/^/| /' conftest.$ac_ext >&5
44277
44278ac_cv_header_WebKit_HIWebView_h=no
44279fi
44280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44281fi
44282echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44283echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44284if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44285
44286 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44287#define wxUSE_WEBKIT 1
44288_ACEOF
44289
07bea8f0
VS
44290 WEBKIT_LINK="-framework WebKit"
44291
44292else
44293
44294 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44295echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44296 wxUSE_WEBKIT=no
44297
646b6ec1
VS
44298fi
44299
07bea8f0
VS
44300
44301 CPPFLAGS="$old_CPPFLAGS"
44302 elif test "$wxUSE_COCOA" = 1; then
44303 cat >>confdefs.h <<\_ACEOF
44304#define wxUSE_WEBKIT 1
44305_ACEOF
44306
44307 else
44308 wxUSE_WEBKIT=no
44309 fi
44310fi
44311
9a8f0513
VS
44312USE_XRC=0
44313if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44314 if test "$wxUSE_XML" != "yes"; then
44315 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44316echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44317 wxUSE_XRC=no
44318 else
44319 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44320#define wxUSE_XRC 1
44321_ACEOF
44322
d2ebf0b7
VS
44323 USE_XRC=1
44324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44325 fi
9a8f0513 44326fi
07bea8f0 44327
a848cd7e
SC
44328if test "$wxUSE_MENUS" = "yes"; then
44329 cat >>confdefs.h <<\_ACEOF
44330#define wxUSE_MENUS 1
44331_ACEOF
44332
44333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44334fi
44335
44336if test "$wxUSE_METAFILE" = "yes"; then
44337 cat >>confdefs.h <<\_ACEOF
44338#define wxUSE_METAFILE 1
44339_ACEOF
44340
44341fi
44342
44343if test "$wxUSE_MIMETYPE" = "yes"; then
44344 cat >>confdefs.h <<\_ACEOF
44345#define wxUSE_MIMETYPE 1
44346_ACEOF
44347
44348fi
44349
44350if test "$wxUSE_MINIFRAME" = "yes"; then
44351 cat >>confdefs.h <<\_ACEOF
44352#define wxUSE_MINIFRAME 1
44353_ACEOF
44354
44355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44356fi
44357
44358if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44359 cat >>confdefs.h <<\_ACEOF
44360#define wxUSE_SYSTEM_OPTIONS 1
44361_ACEOF
44362
44363 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44364 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44366 fi
44367fi
44368
44369
44370if test "$wxUSE_VALIDATORS" = "yes"; then
44371 cat >>confdefs.h <<\_ACEOF
44372#define wxUSE_VALIDATORS 1
44373_ACEOF
44374
44375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44376fi
44377
44378if test "$wxUSE_PALETTE" = "yes" ; then
44379 cat >>confdefs.h <<\_ACEOF
44380#define wxUSE_PALETTE 1
44381_ACEOF
44382
44383fi
44384
44385if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44386 LIBS=" -lunicows $LIBS"
44387fi
44388
91dea314
MW
44389USE_RICHTEXT=0
44390if test "$wxUSE_RICHTEXT" = "yes"; then
44391 cat >>confdefs.h <<\_ACEOF
44392#define wxUSE_RICHTEXT 1
44393_ACEOF
44394
44395 USE_RICHTEXT=1
44396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44397fi
44398
a848cd7e
SC
44399
44400if test "$wxUSE_IMAGE" = "yes" ; then
44401 cat >>confdefs.h <<\_ACEOF
44402#define wxUSE_IMAGE 1
44403_ACEOF
44404
44405
44406 if test "$wxUSE_GIF" = "yes" ; then
44407 cat >>confdefs.h <<\_ACEOF
44408#define wxUSE_GIF 1
44409_ACEOF
44410
44411 fi
44412
44413 if test "$wxUSE_PCX" = "yes" ; then
44414 cat >>confdefs.h <<\_ACEOF
44415#define wxUSE_PCX 1
44416_ACEOF
44417
44418 fi
44419
44420 if test "$wxUSE_IFF" = "yes" ; then
44421 cat >>confdefs.h <<\_ACEOF
44422#define wxUSE_IFF 1
44423_ACEOF
44424
44425 fi
44426
44427 if test "$wxUSE_PNM" = "yes" ; then
44428 cat >>confdefs.h <<\_ACEOF
44429#define wxUSE_PNM 1
44430_ACEOF
44431
44432 fi
44433
44434 if test "$wxUSE_XPM" = "yes" ; then
44435 cat >>confdefs.h <<\_ACEOF
44436#define wxUSE_XPM 1
44437_ACEOF
44438
44439 fi
44440
44441 if test "$wxUSE_ICO_CUR" = "yes" ; then
44442 cat >>confdefs.h <<\_ACEOF
44443#define wxUSE_ICO_CUR 1
44444_ACEOF
44445
44446 fi
44447fi
44448
44449
44450if test "$wxUSE_CHOICEDLG" = "yes"; then
44451 cat >>confdefs.h <<\_ACEOF
44452#define wxUSE_CHOICEDLG 1
44453_ACEOF
44454
44455fi
44456
44457if test "$wxUSE_COLOURDLG" = "yes"; then
44458 cat >>confdefs.h <<\_ACEOF
44459#define wxUSE_COLOURDLG 1
44460_ACEOF
44461
44462fi
44463
44464if test "$wxUSE_FILEDLG" = "yes"; then
44465 cat >>confdefs.h <<\_ACEOF
44466#define wxUSE_FILEDLG 1
44467_ACEOF
44468
44469fi
44470
44471if test "$wxUSE_FINDREPLDLG" = "yes"; then
44472 cat >>confdefs.h <<\_ACEOF
44473#define wxUSE_FINDREPLDLG 1
44474_ACEOF
44475
44476fi
44477
44478if test "$wxUSE_FONTDLG" = "yes"; then
44479 cat >>confdefs.h <<\_ACEOF
44480#define wxUSE_FONTDLG 1
44481_ACEOF
44482
44483fi
44484
44485if test "$wxUSE_DIRDLG" = "yes"; then
44486 if test "$wxUSE_TREECTRL" != "yes"; then
44487 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44488echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44489 else
44490 cat >>confdefs.h <<\_ACEOF
44491#define wxUSE_DIRDLG 1
44492_ACEOF
44493
44494 fi
44495fi
44496
44497if test "$wxUSE_MSGDLG" = "yes"; then
44498 cat >>confdefs.h <<\_ACEOF
44499#define wxUSE_MSGDLG 1
44500_ACEOF
44501
44502fi
44503
44504if test "$wxUSE_NUMBERDLG" = "yes"; then
44505 cat >>confdefs.h <<\_ACEOF
44506#define wxUSE_NUMBERDLG 1
44507_ACEOF
44508
44509fi
44510
44511if test "$wxUSE_PROGRESSDLG" = "yes"; then
44512 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44513 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44514echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44515 else
44516 cat >>confdefs.h <<\_ACEOF
44517#define wxUSE_PROGRESSDLG 1
44518_ACEOF
44519
44520 fi
44521fi
44522
44523if test "$wxUSE_SPLASH" = "yes"; then
44524 cat >>confdefs.h <<\_ACEOF
44525#define wxUSE_SPLASH 1
44526_ACEOF
44527
2057db16 44528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44529fi
44530
44531if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44532 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44533 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44534echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44535 else
44536 cat >>confdefs.h <<\_ACEOF
44537#define wxUSE_STARTUP_TIPS 1
44538_ACEOF
44539
44540 fi
44541fi
44542
44543if test "$wxUSE_TEXTDLG" = "yes"; then
44544 cat >>confdefs.h <<\_ACEOF
44545#define wxUSE_TEXTDLG 1
44546_ACEOF
44547
44548fi
44549
44550if test "$wxUSE_WIZARDDLG" = "yes"; then
44551 cat >>confdefs.h <<\_ACEOF
44552#define wxUSE_WIZARDDLG 1
44553_ACEOF
44554
44555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44556fi
44557
44558
f10e38c4
VZ
44559USE_MEDIA=0
44560
ce756cb0 44561if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44562 if test "$wxUSE_GTK" = 1; then
44563 wxUSE_GSTREAMER="yes"
44564
f10e38c4
VZ
44565 GST_VERSION_MAJOR=0
44566 GST_VERSION_MINOR=10
44567 GST_VERSION_RELEASE=0
44568 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44569 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44570
44571 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44572
dae87f93 44573 succeeded=no
ce756cb0 44574
dae87f93
RN
44575 if test -z "$PKG_CONFIG"; then
44576 # Extract the first word of "pkg-config", so it can be a program name with args.
44577set dummy pkg-config; ac_word=$2
44578echo "$as_me:$LINENO: checking for $ac_word" >&5
44579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44580if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44581 echo $ECHO_N "(cached) $ECHO_C" >&6
44582else
44583 case $PKG_CONFIG in
44584 [\\/]* | ?:[\\/]*)
44585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44586 ;;
44587 *)
44588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44589for as_dir in $PATH
44590do
44591 IFS=$as_save_IFS
44592 test -z "$as_dir" && as_dir=.
44593 for ac_exec_ext in '' $ac_executable_extensions; do
44594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44597 break 2
44598 fi
44599done
44600done
44601
44602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44603 ;;
44604esac
44605fi
44606PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44607
44608if test -n "$PKG_CONFIG"; then
44609 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44610echo "${ECHO_T}$PKG_CONFIG" >&6
44611else
44612 echo "$as_me:$LINENO: result: no" >&5
44613echo "${ECHO_T}no" >&6
44614fi
44615
44616 fi
44617
44618 if test "$PKG_CONFIG" = "no" ; then
44619 echo "*** The pkg-config script could not be found. Make sure it is"
44620 echo "*** in your path, or set the PKG_CONFIG environment variable"
44621 echo "*** to the full path to pkg-config."
44622 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44623 else
44624 PKG_CONFIG_MIN_VERSION=0.9.0
44625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44626 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44627 gstreamer-plugins-base-$GST_MAJORMINOR
44628 gconf-2.0" >&5
44629echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44630 gstreamer-plugins-base-$GST_MAJORMINOR
44631 gconf-2.0... $ECHO_C" >&6
44632
44633 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44634 gstreamer-plugins-base-$GST_MAJORMINOR
44635 gconf-2.0" ; then
dae87f93 44636 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44637echo "${ECHO_T}yes" >&6
dae87f93 44638 succeeded=yes
ce756cb0 44639
f10e38c4
VZ
44640 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44641echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44642 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44643 gstreamer-plugins-base-$GST_MAJORMINOR
44644 gconf-2.0"`
44645 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44646echo "${ECHO_T}$GST_CFLAGS" >&6
44647
44648 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44649echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44650 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44651 gstreamer-plugins-base-$GST_MAJORMINOR
44652 gconf-2.0"`
44653 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44654echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44655 else
f10e38c4
VZ
44656 GST_CFLAGS=""
44657 GST_LIBS=""
dae87f93
RN
44658 ## If we have a custom action on failure, don't print errors, but
44659 ## do set a variable so people can do so.
f10e38c4
VZ
44660 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44661 gstreamer-plugins-base-$GST_MAJORMINOR
44662 gconf-2.0"`
ce756cb0 44663
dae87f93
RN
44664 fi
44665
44666
44667
44668 else
44669 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44670 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44671 fi
44672 fi
44673
44674 if test $succeeded = yes; then
44675
f10e38c4
VZ
44676 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44677 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44678
ce756cb0 44679 else
dae87f93 44680
f10e38c4 44681 GST_VERSION_MINOR=8
dae87f93
RN
44682
44683 fi
44684
f10e38c4
VZ
44685 else
44686 GST_VERSION_MINOR=8
44687 fi
dae87f93 44688
f10e38c4
VZ
44689 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44690 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44691
f10e38c4 44692 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44693
f10e38c4 44694 succeeded=no
dae87f93 44695
f10e38c4
VZ
44696 if test -z "$PKG_CONFIG"; then
44697 # Extract the first word of "pkg-config", so it can be a program name with args.
44698set dummy pkg-config; ac_word=$2
dae87f93
RN
44699echo "$as_me:$LINENO: checking for $ac_word" >&5
44700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44701if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44702 echo $ECHO_N "(cached) $ECHO_C" >&6
44703else
f10e38c4
VZ
44704 case $PKG_CONFIG in
44705 [\\/]* | ?:[\\/]*)
44706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44707 ;;
44708 *)
44709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
44710for as_dir in $PATH
44711do
44712 IFS=$as_save_IFS
44713 test -z "$as_dir" && as_dir=.
44714 for ac_exec_ext in '' $ac_executable_extensions; do
44715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 44716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
44717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44718 break 2
ce756cb0 44719 fi
dae87f93
RN
44720done
44721done
44722
f10e38c4
VZ
44723 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44724 ;;
44725esac
dae87f93 44726fi
f10e38c4
VZ
44727PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44728
44729if test -n "$PKG_CONFIG"; then
44730 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44731echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
44732else
44733 echo "$as_me:$LINENO: result: no" >&5
44734echo "${ECHO_T}no" >&6
44735fi
44736
f10e38c4 44737 fi
ce756cb0 44738
f10e38c4
VZ
44739 if test "$PKG_CONFIG" = "no" ; then
44740 echo "*** The pkg-config script could not be found. Make sure it is"
44741 echo "*** in your path, or set the PKG_CONFIG environment variable"
44742 echo "*** to the full path to pkg-config."
44743 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44744 else
44745 PKG_CONFIG_MIN_VERSION=0.9.0
44746 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44747 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44748 gstreamer-interfaces-$GST_MAJORMINOR
44749 gstreamer-gconf-$GST_MAJORMINOR" >&5
44750echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44751 gstreamer-interfaces-$GST_MAJORMINOR
44752 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
44753
44754 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44755 gstreamer-interfaces-$GST_MAJORMINOR
44756 gstreamer-gconf-$GST_MAJORMINOR" ; then
44757 echo "$as_me:$LINENO: result: yes" >&5
44758echo "${ECHO_T}yes" >&6
44759 succeeded=yes
dae87f93 44760
f10e38c4
VZ
44761 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44762echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44763 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44764 gstreamer-interfaces-$GST_MAJORMINOR
44765 gstreamer-gconf-$GST_MAJORMINOR"`
44766 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44767echo "${ECHO_T}$GST_CFLAGS" >&6
44768
44769 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44770echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44771 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44772 gstreamer-interfaces-$GST_MAJORMINOR
44773 gstreamer-gconf-$GST_MAJORMINOR"`
44774 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44775echo "${ECHO_T}$GST_LIBS" >&6
44776 else
44777 GST_CFLAGS=""
44778 GST_LIBS=""
44779 ## If we have a custom action on failure, don't print errors, but
44780 ## do set a variable so people can do so.
44781 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44782 gstreamer-interfaces-$GST_MAJORMINOR
44783 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 44784
dae87f93
RN
44785 fi
44786
44787
ce756cb0 44788
f10e38c4
VZ
44789 else
44790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44792 fi
44793 fi
ce756cb0 44794
f10e38c4 44795 if test $succeeded = yes; then
dae87f93 44796
f10e38c4
VZ
44797 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44798 LIBS="$LIBS $GST_LIBS"
dae87f93 44799
f10e38c4 44800 else
ce756cb0 44801
f10e38c4
VZ
44802 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
44803echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
44804 wxUSE_GSTREAMER="no"
ce756cb0 44805
f10e38c4 44806 fi
ce756cb0 44807
dae87f93 44808 fi
ce756cb0 44809
f10e38c4 44810
dae87f93
RN
44811 if test "$wxUSE_GSTREAMER" = "yes"; then
44812 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44813#define wxUSE_GSTREAMER 1
44814_ACEOF
44815
dae87f93
RN
44816 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44817echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44818 fi
44819 fi
f10e38c4 44820 USE_MEDIA=1
ce756cb0
RN
44821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44822 cat >>confdefs.h <<\_ACEOF
44823#define wxUSE_MEDIACTRL 1
44824_ACEOF
44825
44826fi
44827
44828
a848cd7e
SC
44829if test "$cross_compiling" = "yes"; then
44830 OSINFO="\"$host\""
44831else
44832 OSINFO=`uname -s -r -m`
44833 OSINFO="\"$OSINFO\""
44834fi
44835
44836cat >>confdefs.h <<_ACEOF
44837#define WXWIN_OS_DESCRIPTION $OSINFO
44838_ACEOF
44839
44840
44841
44842if test "x$prefix" != "xNONE"; then
44843 wxPREFIX=$prefix
44844else
44845 wxPREFIX=$ac_default_prefix
44846fi
44847
44848cat >>confdefs.h <<_ACEOF
44849#define wxINSTALL_PREFIX "$wxPREFIX"
44850_ACEOF
44851
44852
a848cd7e
SC
44853
44854
44855CORE_BASE_LIBS="net base"
44856CORE_GUI_LIBS="adv core"
44857
44858if test "$wxUSE_XML" = "yes" ; then
44859 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44860fi
44861if test "$wxUSE_ODBC" != "no" ; then
44862 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44863 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44864fi
44865if test "$wxUSE_HTML" = "yes" ; then
44866 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44867fi
61639efb
VZ
44868if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44869 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44870fi
9a8f0513
VS
44871if test "$wxUSE_XRC" = "yes" ; then
44872 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44873fi
a848cd7e
SC
44874
44875if test "$wxUSE_GUI" != "yes"; then
44876 CORE_GUI_LIBS=""
44877fi
44878
44879
44880
44881
44882
5d7b7554
VZ
44883ac_ext=c
44884ac_cpp='$CPP $CPPFLAGS'
44885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44887ac_compiler_gnu=$ac_cv_c_compiler_gnu
44888
a848cd7e
SC
44889
44890
a848cd7e 44891if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44892 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44893 if test "$USE_DARWIN" = 1; then
44894 LDFLAGS="$LDFLAGS -framework QuickTime"
44895 else
44896 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44897 fi
07bea8f0 44898 fi
5dcf30a0 44899 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44900 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44901 else
44902 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44903 fi
a848cd7e
SC
44904fi
44905if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44906 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44907 if test "$wxUSE_MEDIACTRL" = "yes"; then
44908 LDFLAGS="$LDFLAGS -framework QuickTime"
44909 fi
a848cd7e 44910fi
19b27e78
MW
44911if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44912 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44913fi
a848cd7e 44914
a848cd7e
SC
44915LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44916
a848cd7e
SC
44917if test "$wxUSE_GUI" = "yes"; then
44918
44919
8bce5cda
MW
44920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
44921 dynamic erase event exec font image minimal mobile \
44922 mobile/wxedit mobile/styles propsize render \
9e39d889 44923 rotate shaped vscroll widgets"
a848cd7e
SC
44924
44925 if test "$wxUSE_MONOLITHIC" != "yes"; then
44926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
44927 fi
0b78747f 44928 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
44929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
44930 if test "$wxUSE_UNIVERSAL" != "yes"; then
44931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
44932 fi
44933 fi
44934 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
44935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 44936 fi
a848cd7e
SC
44937else
44938 SAMPLES_SUBDIRS="console"
44939fi
44940
44941
48f625bc 44942if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
44943 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
44944elif test "$GCC" = yes ; then
44945 CWARNINGS="-Wall -Wundef"
44946fi
44947
48f625bc 44948if test "x$INTELCXX" = "xyes" ; then
7f47faf4 44949 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
44950elif test "$GXX" = yes ; then
44951 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 44952fi
a848cd7e 44953
a848cd7e 44954
5ff751d6
VZ
44955WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
44956WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
44957
44958
c92ad099 44959CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 44960 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
44961 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
44962 $CPPFLAGS `
5ff751d6 44963
8aeeb05c 44964C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 44965CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 44966CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
44967
44968WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
44969
a848cd7e 44970
95986553
DE
44971if test "x$MWCC" = "xyes"; then
44972
44973 CC="$CC -cwd source -I-"
44974 CXX="$CXX -cwd source -I-"
44975fi
44976
a848cd7e 44977
0c3c69fc 44978LIBS=`echo $LIBS`
a848cd7e
SC
44979EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
44980EXTRALIBS_XML="$EXPAT_LINK"
44981EXTRALIBS_HTML="$MSPACK_LINK"
44982EXTRALIBS_ODBC="$ODBC_LINK"
44983if test "$wxUSE_GUI" = "yes"; then
2b850ae1 44984 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
44985fi
44986if test "$wxUSE_OPENGL" = "yes"; then
44987 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
44988fi
44989
8aeeb05c 44990LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 44991
5ff751d6 44992WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
44993
44994if test "$wxUSE_REGEX" = "builtin" ; then
74802184 44995 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
44996fi
44997if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 44998 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
44999fi
45000if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45001 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45002fi
45003if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45004 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45005fi
45006if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45007 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45008fi
45009if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45010 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45011fi
45012if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45013 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45014fi
45015
45016for i in $wxconfig_3rdparty ; do
5ff751d6 45017 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45018done
45019
45020
45021if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45022 WXUNIV=1
45023else
45024 WXUNIV=0
45025fi
45026
45027
45028
45029
45030
45031
45032
45033
45034
45035if test $wxUSE_MONOLITHIC = "yes" ; then
45036 MONOLITHIC=1
45037else
45038 MONOLITHIC=0
45039fi
45040
45041if test $wxUSE_PLUGINS = "yes" ; then
45042 USE_PLUGINS=1
45043else
45044 USE_PLUGINS=0
45045fi
45046
45047if test $wxUSE_ODBC != "no" ; then
45048 USE_ODBC=1
45049else
45050 USE_ODBC=0
45051fi
45052
16358932
VZ
45053if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45054 USE_QA=1
45055else
45056 USE_QA=0
45057fi
45058
a848cd7e
SC
45059if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45060 OFFICIAL_BUILD=1
45061else
45062 OFFICIAL_BUILD=0
45063fi
45064
45065
45066
45067
45068
45069
45070
45071
45072
45073
45074
45075
45076
45077
45078
45079
45080
45081
45082
ceec2216 45083
d1c38808 45084
3565d135 45085
2b850ae1 45086
a848cd7e
SC
45087
45088
45089TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45090
45091
45092
45093
45094
45095
45096
45097
4d4ff94c
VZ
45098case "$TOOLKIT" in
45099 GTK)
45100 TOOLKIT_USER="GTK+"
45101 if test "$WXGTK20" = 1; then
45102 TOOLKIT_USER="$TOOLKIT_USER 2"
45103 fi
9a8f0513 45104 ;;
4d4ff94c
VZ
45105
45106 *)
45107 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45108 ;;
4d4ff94c 45109esac
a848cd7e 45110
fb00f58d
JS
45111if test "$wxUSE_WINE" = "yes"; then
45112 BAKEFILE_FORCE_PLATFORM=win32
45113fi
45114
7afc46ab
KO
45115if test "$wxUSE_MAC" = 1 ; then
45116 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45117 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45118 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45119 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45120 bk_use_pch=no
45121 fi
45122 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45123 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45124 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45125fi
45126
9a8f0513 45127
1e9e8aba
DE
45128
45129
a848cd7e 45130 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45131 if test "x${host}" = "x" ; then
45132 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45133echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45134 { (exit 1); exit 1; }; }
45135 fi
45136
a848cd7e
SC
45137 BAKEFILE_HOST="${host}"
45138 fi
45139
45140 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45141
45142 if test -n "$ac_tool_prefix"; then
45143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45144set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45145echo "$as_me:$LINENO: checking for $ac_word" >&5
45146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45147if test "${ac_cv_prog_RANLIB+set}" = set; then
45148 echo $ECHO_N "(cached) $ECHO_C" >&6
45149else
45150 if test -n "$RANLIB"; then
45151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45152else
45153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45154for as_dir in $PATH
45155do
45156 IFS=$as_save_IFS
45157 test -z "$as_dir" && as_dir=.
45158 for ac_exec_ext in '' $ac_executable_extensions; do
45159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45162 break 2
45163 fi
45164done
45165done
45166
45167fi
45168fi
45169RANLIB=$ac_cv_prog_RANLIB
45170if test -n "$RANLIB"; then
45171 echo "$as_me:$LINENO: result: $RANLIB" >&5
45172echo "${ECHO_T}$RANLIB" >&6
45173else
45174 echo "$as_me:$LINENO: result: no" >&5
45175echo "${ECHO_T}no" >&6
45176fi
45177
45178fi
45179if test -z "$ac_cv_prog_RANLIB"; then
45180 ac_ct_RANLIB=$RANLIB
45181 # Extract the first word of "ranlib", so it can be a program name with args.
45182set dummy ranlib; ac_word=$2
45183echo "$as_me:$LINENO: checking for $ac_word" >&5
45184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45185if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45186 echo $ECHO_N "(cached) $ECHO_C" >&6
45187else
45188 if test -n "$ac_ct_RANLIB"; then
45189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45190else
45191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45192for as_dir in $PATH
45193do
45194 IFS=$as_save_IFS
45195 test -z "$as_dir" && as_dir=.
45196 for ac_exec_ext in '' $ac_executable_extensions; do
45197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45198 ac_cv_prog_ac_ct_RANLIB="ranlib"
45199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45200 break 2
45201 fi
45202done
45203done
45204
45205 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45206fi
45207fi
45208ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45209if test -n "$ac_ct_RANLIB"; then
45210 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45211echo "${ECHO_T}$ac_ct_RANLIB" >&6
45212else
45213 echo "$as_me:$LINENO: result: no" >&5
45214echo "${ECHO_T}no" >&6
45215fi
45216
45217 RANLIB=$ac_ct_RANLIB
45218else
45219 RANLIB="$ac_cv_prog_RANLIB"
45220fi
45221
45222 # Find a good install program. We prefer a C program (faster),
45223# so one script is as good as another. But avoid the broken or
45224# incompatible versions:
45225# SysV /etc/install, /usr/sbin/install
45226# SunOS /usr/etc/install
45227# IRIX /sbin/install
45228# AIX /bin/install
45229# AmigaOS /C/install, which installs bootblocks on floppy discs
45230# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45231# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45232# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45233# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45234# ./install, which can be erroneously created by make from ./install.sh.
45235echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45236echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45237if test -z "$INSTALL"; then
45238if test "${ac_cv_path_install+set}" = set; then
45239 echo $ECHO_N "(cached) $ECHO_C" >&6
45240else
45241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45242for as_dir in $PATH
45243do
45244 IFS=$as_save_IFS
45245 test -z "$as_dir" && as_dir=.
45246 # Account for people who put trailing slashes in PATH elements.
45247case $as_dir/ in
45248 ./ | .// | /cC/* | \
45249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45251 /usr/ucb/* ) ;;
45252 *)
45253 # OSF1 and SCO ODT 3.0 have their own names for install.
45254 # Don't use installbsd from OSF since it installs stuff as root
45255 # by default.
45256 for ac_prog in ginstall scoinst install; do
45257 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45259 if test $ac_prog = install &&
45260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45261 # AIX install. It has an incompatible calling convention.
45262 :
45263 elif test $ac_prog = install &&
45264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45265 # program-specific install script used by HP pwplus--don't use.
45266 :
45267 else
45268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45269 break 3
45270 fi
45271 fi
a848cd7e
SC
45272 done
45273 done
45274 ;;
45275esac
45276done
45277
45278
45279fi
45280 if test "${ac_cv_path_install+set}" = set; then
45281 INSTALL=$ac_cv_path_install
45282 else
45283 # As a last resort, use the slow shell script. We don't cache a
45284 # path for INSTALL within a source directory, because that will
45285 # break other packages using the cache if that directory is
45286 # removed, or if the path is relative.
45287 INSTALL=$ac_install_sh
45288 fi
45289fi
45290echo "$as_me:$LINENO: result: $INSTALL" >&5
45291echo "${ECHO_T}$INSTALL" >&6
45292
45293# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45294# It thinks the first close brace ends the variable substitution.
45295test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45296
45297test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45298
45299test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45300
45301 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45302echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45303LN_S=$as_ln_s
45304if test "$LN_S" = "ln -s"; then
45305 echo "$as_me:$LINENO: result: yes" >&5
45306echo "${ECHO_T}yes" >&6
45307else
45308 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45309echo "${ECHO_T}no, using $LN_S" >&6
45310fi
45311
45312
45313 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45314echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45315set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45316if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45317 echo $ECHO_N "(cached) $ECHO_C" >&6
45318else
45319 cat >conftest.make <<\_ACEOF
45320all:
45321 @echo 'ac_maketemp="$(MAKE)"'
45322_ACEOF
45323# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45324eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45325if test -n "$ac_maketemp"; then
45326 eval ac_cv_prog_make_${ac_make}_set=yes
45327else
45328 eval ac_cv_prog_make_${ac_make}_set=no
45329fi
45330rm -f conftest.make
45331fi
45332if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45333 echo "$as_me:$LINENO: result: yes" >&5
45334echo "${ECHO_T}yes" >&6
45335 SET_MAKE=
45336else
45337 echo "$as_me:$LINENO: result: no" >&5
45338echo "${ECHO_T}no" >&6
45339 SET_MAKE="MAKE=${MAKE-make}"
45340fi
45341
45342
45343
45344 if test -n "$ac_tool_prefix"; then
45345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45346set dummy ${ac_tool_prefix}ar; ac_word=$2
45347echo "$as_me:$LINENO: checking for $ac_word" >&5
45348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45349if test "${ac_cv_prog_AR+set}" = set; then
45350 echo $ECHO_N "(cached) $ECHO_C" >&6
45351else
45352 if test -n "$AR"; then
45353 ac_cv_prog_AR="$AR" # Let the user override the test.
45354else
45355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45356for as_dir in $PATH
45357do
45358 IFS=$as_save_IFS
45359 test -z "$as_dir" && as_dir=.
45360 for ac_exec_ext in '' $ac_executable_extensions; do
45361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45362 ac_cv_prog_AR="${ac_tool_prefix}ar"
45363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45364 break 2
45365 fi
45366done
45367done
45368
45369fi
45370fi
45371AR=$ac_cv_prog_AR
45372if test -n "$AR"; then
45373 echo "$as_me:$LINENO: result: $AR" >&5
45374echo "${ECHO_T}$AR" >&6
45375else
45376 echo "$as_me:$LINENO: result: no" >&5
45377echo "${ECHO_T}no" >&6
45378fi
45379
45380fi
45381if test -z "$ac_cv_prog_AR"; then
45382 ac_ct_AR=$AR
45383 # Extract the first word of "ar", so it can be a program name with args.
45384set dummy ar; ac_word=$2
45385echo "$as_me:$LINENO: checking for $ac_word" >&5
45386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45387if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45388 echo $ECHO_N "(cached) $ECHO_C" >&6
45389else
45390 if test -n "$ac_ct_AR"; then
45391 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45392else
45393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45394for as_dir in $PATH
45395do
45396 IFS=$as_save_IFS
45397 test -z "$as_dir" && as_dir=.
45398 for ac_exec_ext in '' $ac_executable_extensions; do
45399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45400 ac_cv_prog_ac_ct_AR="ar"
45401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45402 break 2
45403 fi
45404done
45405done
45406
45407 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45408fi
45409fi
45410ac_ct_AR=$ac_cv_prog_ac_ct_AR
45411if test -n "$ac_ct_AR"; then
45412 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45413echo "${ECHO_T}$ac_ct_AR" >&6
45414else
45415 echo "$as_me:$LINENO: result: no" >&5
45416echo "${ECHO_T}no" >&6
45417fi
45418
45419 AR=$ac_ct_AR
45420else
45421 AR="$ac_cv_prog_AR"
45422fi
45423
45424 if test -n "$ac_tool_prefix"; then
45425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45426set dummy ${ac_tool_prefix}strip; ac_word=$2
45427echo "$as_me:$LINENO: checking for $ac_word" >&5
45428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45429if test "${ac_cv_prog_STRIP+set}" = set; then
45430 echo $ECHO_N "(cached) $ECHO_C" >&6
45431else
45432 if test -n "$STRIP"; then
45433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45434else
45435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45436for as_dir in $PATH
45437do
45438 IFS=$as_save_IFS
45439 test -z "$as_dir" && as_dir=.
45440 for ac_exec_ext in '' $ac_executable_extensions; do
45441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45444 break 2
45445 fi
45446done
45447done
45448
45449fi
45450fi
45451STRIP=$ac_cv_prog_STRIP
45452if test -n "$STRIP"; then
45453 echo "$as_me:$LINENO: result: $STRIP" >&5
45454echo "${ECHO_T}$STRIP" >&6
45455else
45456 echo "$as_me:$LINENO: result: no" >&5
45457echo "${ECHO_T}no" >&6
45458fi
45459
45460fi
45461if test -z "$ac_cv_prog_STRIP"; then
45462 ac_ct_STRIP=$STRIP
45463 # Extract the first word of "strip", so it can be a program name with args.
45464set dummy strip; ac_word=$2
45465echo "$as_me:$LINENO: checking for $ac_word" >&5
45466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45467if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45468 echo $ECHO_N "(cached) $ECHO_C" >&6
45469else
45470 if test -n "$ac_ct_STRIP"; then
45471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45472else
45473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45474for as_dir in $PATH
45475do
45476 IFS=$as_save_IFS
45477 test -z "$as_dir" && as_dir=.
45478 for ac_exec_ext in '' $ac_executable_extensions; do
45479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45480 ac_cv_prog_ac_ct_STRIP="strip"
45481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45482 break 2
45483 fi
45484done
45485done
45486
45487 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45488fi
45489fi
45490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45491if test -n "$ac_ct_STRIP"; then
45492 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45493echo "${ECHO_T}$ac_ct_STRIP" >&6
45494else
45495 echo "$as_me:$LINENO: result: no" >&5
45496echo "${ECHO_T}no" >&6
45497fi
45498
45499 STRIP=$ac_ct_STRIP
45500else
45501 STRIP="$ac_cv_prog_STRIP"
45502fi
45503
45504 if test -n "$ac_tool_prefix"; then
45505 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45506set dummy ${ac_tool_prefix}nm; ac_word=$2
45507echo "$as_me:$LINENO: checking for $ac_word" >&5
45508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45509if test "${ac_cv_prog_NM+set}" = set; then
45510 echo $ECHO_N "(cached) $ECHO_C" >&6
45511else
45512 if test -n "$NM"; then
45513 ac_cv_prog_NM="$NM" # Let the user override the test.
45514else
45515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45516for as_dir in $PATH
45517do
45518 IFS=$as_save_IFS
45519 test -z "$as_dir" && as_dir=.
45520 for ac_exec_ext in '' $ac_executable_extensions; do
45521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45522 ac_cv_prog_NM="${ac_tool_prefix}nm"
45523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45524 break 2
45525 fi
45526done
45527done
45528
45529fi
45530fi
45531NM=$ac_cv_prog_NM
45532if test -n "$NM"; then
45533 echo "$as_me:$LINENO: result: $NM" >&5
45534echo "${ECHO_T}$NM" >&6
45535else
45536 echo "$as_me:$LINENO: result: no" >&5
45537echo "${ECHO_T}no" >&6
45538fi
45539
45540fi
45541if test -z "$ac_cv_prog_NM"; then
45542 ac_ct_NM=$NM
45543 # Extract the first word of "nm", so it can be a program name with args.
45544set dummy nm; ac_word=$2
45545echo "$as_me:$LINENO: checking for $ac_word" >&5
45546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45547if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45548 echo $ECHO_N "(cached) $ECHO_C" >&6
45549else
45550 if test -n "$ac_ct_NM"; then
45551 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45552else
45553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45554for as_dir in $PATH
45555do
45556 IFS=$as_save_IFS
45557 test -z "$as_dir" && as_dir=.
45558 for ac_exec_ext in '' $ac_executable_extensions; do
45559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45560 ac_cv_prog_ac_ct_NM="nm"
45561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45562 break 2
45563 fi
45564done
45565done
45566
45567 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45568fi
45569fi
45570ac_ct_NM=$ac_cv_prog_ac_ct_NM
45571if test -n "$ac_ct_NM"; then
45572 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45573echo "${ECHO_T}$ac_ct_NM" >&6
45574else
45575 echo "$as_me:$LINENO: result: no" >&5
45576echo "${ECHO_T}no" >&6
45577fi
45578
45579 NM=$ac_ct_NM
45580else
45581 NM="$ac_cv_prog_NM"
45582fi
45583
45584
45585 case ${BAKEFILE_HOST} in
45586 *-hp-hpux* )
1e9e8aba 45587 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45588 ;;
45589 *) INSTALL_DIR="$INSTALL -d"
45590 ;;
45591 esac
45592
45593
45594 LDFLAGS_GUI=
45595 case ${BAKEFILE_HOST} in
45596 *-*-cygwin* | *-*-mingw32* )
45597 LDFLAGS_GUI="-mwindows"
45598 esac
45599
45600
45601 fi
45602
45603 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45604echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45605if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45606 echo $ECHO_N "(cached) $ECHO_C" >&6
45607else
45608
45609 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45610 egrep -s GNU > /dev/null); then
45611 bakefile_cv_prog_makeisgnu="yes"
45612 else
45613 bakefile_cv_prog_makeisgnu="no"
45614 fi
45615
45616fi
45617echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45618echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45619
45620 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45621 IF_GNU_MAKE=""
45622 else
45623 IF_GNU_MAKE="#"
45624 fi
45625
45626
45627
45628 PLATFORM_UNIX=0
45629 PLATFORM_WIN32=0
45630 PLATFORM_MSDOS=0
45631 PLATFORM_MAC=0
1e9e8aba 45632 PLATFORM_MACOS=0
a848cd7e
SC
45633 PLATFORM_MACOSX=0
45634 PLATFORM_OS2=0
1e9e8aba 45635 PLATFORM_BEOS=0
a848cd7e
SC
45636
45637 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45638 case "${BAKEFILE_HOST}" in
810b94f0 45639 *-*-mingw32* )
a848cd7e
SC
45640 PLATFORM_WIN32=1
45641 ;;
45642 *-pc-msdosdjgpp )
45643 PLATFORM_MSDOS=1
45644 ;;
45645 *-pc-os2_emx | *-pc-os2-emx )
45646 PLATFORM_OS2=1
45647 ;;
47bd5406 45648 *-*-darwin* )
a848cd7e
SC
45649 PLATFORM_MAC=1
45650 PLATFORM_MACOSX=1
45651 ;;
1e9e8aba
DE
45652 *-*-beos* )
45653 PLATFORM_BEOS=1
45654 ;;
45655 powerpc-apple-macos* )
45656 PLATFORM_MAC=1
45657 PLATFORM_MACOS=1
45658 ;;
a848cd7e
SC
45659 * )
45660 PLATFORM_UNIX=1
45661 ;;
45662 esac
45663 else
45664 case "$BAKEFILE_FORCE_PLATFORM" in
45665 win32 )
45666 PLATFORM_WIN32=1
45667 ;;
45668 msdos )
45669 PLATFORM_MSDOS=1
45670 ;;
45671 os2 )
45672 PLATFORM_OS2=1
45673 ;;
45674 darwin )
45675 PLATFORM_MAC=1
45676 PLATFORM_MACOSX=1
45677 ;;
45678 unix )
45679 PLATFORM_UNIX=1
45680 ;;
1e9e8aba
DE
45681 beos )
45682 PLATFORM_BEOS=1
45683 ;;
a848cd7e
SC
45684 * )
45685 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45686echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45687 { (exit 1); exit 1; }; }
45688 ;;
45689 esac
45690 fi
45691
45692
45693
45694
45695
45696
45697
45698
45699
1e9e8aba
DE
45700
45701
a848cd7e
SC
45702 # Check whether --enable-omf or --disable-omf was given.
45703if test "${enable_omf+set}" = set; then
45704 enableval="$enable_omf"
45705 bk_os2_use_omf="$enableval"
45706fi;
45707
45708 case "${BAKEFILE_HOST}" in
45709 *-*-darwin* )
47bd5406
VZ
45710 if test "x$GCC" = "xyes"; then
45711 CFLAGS="$CFLAGS -fno-common"
45712 CXXFLAGS="$CXXFLAGS -fno-common"
45713 fi
45714 if test "x$XLCC" = "xyes"; then
45715 CFLAGS="$CFLAGS -qnocommon"
45716 CXXFLAGS="$CXXFLAGS -qnocommon"
45717 fi
a848cd7e
SC
45718 ;;
45719
45720 *-pc-os2_emx | *-pc-os2-emx )
45721 if test "x$bk_os2_use_omf" = "xyes" ; then
45722 AR=emxomfar
45723 RANLIB=:
45724 LDFLAGS="-Zomf $LDFLAGS"
45725 CFLAGS="-Zomf $CFLAGS"
45726 CXXFLAGS="-Zomf $CXXFLAGS"
45727 OS2_LIBEXT="lib"
45728 else
45729 OS2_LIBEXT="a"
45730 fi
45731 ;;
1e9e8aba
DE
45732
45733 i*86-*-beos* )
45734 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45735 ;;
a848cd7e
SC
45736 esac
45737
45738
45739 SO_SUFFIX="so"
45740 SO_SUFFIX_MODULE="so"
45741 EXEEXT=""
45742 LIBPREFIX="lib"
45743 LIBEXT=".a"
45744 DLLPREFIX="lib"
45745 DLLPREFIX_MODULE=""
45746 DLLIMP_SUFFIX=""
810b94f0 45747 dlldir="$libdir"
a848cd7e
SC
45748
45749 case "${BAKEFILE_HOST}" in
45750 *-hp-hpux* )
45751 SO_SUFFIX="sl"
45752 SO_SUFFIX_MODULE="sl"
45753 ;;
45754 *-*-aix* )
45755 SO_SUFFIX="a"
45756 SO_SUFFIX_MODULE="a"
45757 ;;
810b94f0
MW
45758 *-*-cygwin* )
45759 SO_SUFFIX="dll"
45760 SO_SUFFIX_MODULE="dll"
45761 DLLIMP_SUFFIX="dll.a"
45762 EXEEXT=".exe"
45763 DLLPREFIX="cyg"
45764 dlldir="$bindir"
45765 ;;
45766 *-*-mingw32* )
a848cd7e
SC
45767 SO_SUFFIX="dll"
45768 SO_SUFFIX_MODULE="dll"
45769 DLLIMP_SUFFIX="dll.a"
45770 EXEEXT=".exe"
45771 DLLPREFIX=""
810b94f0 45772 dlldir="$bindir"
a848cd7e
SC
45773 ;;
45774 *-pc-msdosdjgpp )
45775 EXEEXT=".exe"
45776 DLLPREFIX=""
810b94f0 45777 dlldir="$bindir"
a848cd7e
SC
45778 ;;
45779 *-pc-os2_emx | *-pc-os2-emx )
45780 SO_SUFFIX="dll"
45781 SO_SUFFIX_MODULE="dll"
45782 DLLIMP_SUFFIX=$OS2_LIBEXT
45783 EXEEXT=".exe"
45784 DLLPREFIX=""
45785 LIBPREFIX=""
45786 LIBEXT=".$OS2_LIBEXT"
810b94f0 45787 dlldir="$bindir"
a848cd7e 45788 ;;
47bd5406 45789 *-*-darwin* )
a848cd7e
SC
45790 SO_SUFFIX="dylib"
45791 SO_SUFFIX_MODULE="bundle"
45792 ;;
45793 esac
45794
45795 if test "x$DLLIMP_SUFFIX" = "x" ; then
45796 DLLIMP_SUFFIX="$SO_SUFFIX"
45797 fi
45798
45799
45800
45801
45802
45803
45804
45805
45806
45807
45808
810b94f0 45809
1e9e8aba
DE
45810 PIC_FLAG=""
45811 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45812 PIC_FLAG="-fPIC"
45813 fi
45814
1e9e8aba
DE
45815 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45816 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45817 WINDOWS_IMPLIB=0
1e9e8aba 45818
a848cd7e
SC
45819 case "${BAKEFILE_HOST}" in
45820 *-hp-hpux* )
1e9e8aba 45821 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45822 LDFLAGS="$LDFLAGS -L/usr/lib"
45823
45824 SHARED_LD_CC="${CC} -b -o"
45825 SHARED_LD_CXX="${CXX} -b -o"
45826 PIC_FLAG="+Z"
45827 fi
45828 ;;
45829
45830 *-*-linux* )
45831 if test "x$GCC" != "xyes"; then
45832 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45833echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45834if test "${bakefile_cv_prog_icc+set}" = set; then
45835 echo $ECHO_N "(cached) $ECHO_C" >&6
45836else
45837
45838 cat >conftest.$ac_ext <<_ACEOF
45839/* confdefs.h. */
45840_ACEOF
45841cat confdefs.h >>conftest.$ac_ext
45842cat >>conftest.$ac_ext <<_ACEOF
45843/* end confdefs.h. */
45844
45845int
45846main ()
45847{
45848
45849 #ifndef __INTEL_COMPILER
e5efa97e 45850 This is not ICC
a848cd7e
SC
45851 #endif
45852
45853 ;
45854 return 0;
45855}
45856_ACEOF
45857rm -f conftest.$ac_objext
45858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45859 (eval $ac_compile) 2>conftest.er1
a848cd7e 45860 ac_status=$?
ac1cb8d3
VS
45861 grep -v '^ *+' conftest.er1 >conftest.err
45862 rm -f conftest.er1
45863 cat conftest.err >&5
a848cd7e
SC
45864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45865 (exit $ac_status); } &&
6954625c 45866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45868 (eval $ac_try) 2>&5
45869 ac_status=$?
45870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45871 (exit $ac_status); }; } &&
45872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45874 (eval $ac_try) 2>&5
45875 ac_status=$?
45876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45877 (exit $ac_status); }; }; then
45878 bakefile_cv_prog_icc=yes
45879else
45880 echo "$as_me: failed program was:" >&5
45881sed 's/^/| /' conftest.$ac_ext >&5
45882
45883bakefile_cv_prog_icc=no
45884
45885fi
ac1cb8d3 45886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45887
45888fi
45889echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
45890echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
45891 if test "$bakefile_cv_prog_icc" = "yes"; then
45892 PIC_FLAG="-KPIC"
45893 fi
45894 fi
45895 ;;
45896
45897 *-*-solaris2* )
45898 if test "x$GCC" != xyes ; then
45899 SHARED_LD_CC="${CC} -G -o"
45900 SHARED_LD_CXX="${CXX} -G -o"
45901 PIC_FLAG="-KPIC"
45902 fi
45903 ;;
45904
45905 *-*-darwin* )
45906
473276a9
VS
45907D='$'
45908cat <<EOF >shared-ld-sh
a848cd7e
SC
45909#!/bin/sh
45910#-----------------------------------------------------------------------------
45911#-- Name: distrib/mac/shared-ld-sh
45912#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
45913#-- Author: Gilles Depeyrot
45914#-- Copyright: (c) 2002 Gilles Depeyrot
45915#-- Licence: any use permitted
45916#-----------------------------------------------------------------------------
45917
45918verbose=0
45919args=""
45920objects=""
45921linking_flag="-dynamiclib"
810b94f0 45922ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 45923
473276a9
VS
45924while test ${D}# -gt 0; do
45925 case ${D}1 in
a848cd7e
SC
45926
45927 -v)
45928 verbose=1
45929 ;;
45930
45931 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
45932 # collect these options and values
473276a9 45933 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
45934 shift
45935 ;;
45936
810b94f0
MW
45937 -s|-Wl,*)
45938 # collect these load args
45939 ldargs="${D}{ldargs} ${D}1"
2113bc77 45940 ;;
810b94f0
MW
45941
45942 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 45943 # collect these options
473276a9 45944 args="${D}{args} ${D}1"
a848cd7e
SC
45945 ;;
45946
45947 -dynamiclib|-bundle)
473276a9 45948 linking_flag="${D}1"
a848cd7e
SC
45949 ;;
45950
45951 -*)
473276a9 45952 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
45953 exit 1
45954 ;;
45955
45956 *.o | *.a | *.dylib)
45957 # collect object files
473276a9 45958 objects="${D}{objects} ${D}1"
a848cd7e
SC
45959 ;;
45960
45961 *)
473276a9 45962 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
45963 exit 1
45964 ;;
45965
45966 esac
45967 shift
45968done
45969
810b94f0
MW
45970status=0
45971
a848cd7e
SC
45972#
45973# Link one module containing all the others
45974#
473276a9 45975if test ${D}{verbose} = 1; then
810b94f0 45976 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 45977fi
810b94f0 45978c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 45979status=${D}?
a848cd7e
SC
45980
45981#
810b94f0
MW
45982# Link the shared library from the single module created, but only if the
45983# previous command didn't fail:
a848cd7e 45984#
810b94f0
MW
45985if test ${D}{status} = 0; then
45986 if test ${D}{verbose} = 1; then
45987 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
45988 fi
45989 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
45990 status=${D}?
a848cd7e
SC
45991fi
45992
45993#
45994# Remove intermediate module
45995#
473276a9 45996rm -f master.${D}${D}.o
a848cd7e 45997
810b94f0 45998exit ${D}status
a848cd7e 45999EOF
473276a9 46000
583d6b4b
VZ
46001 chmod +x shared-ld-sh
46002
46003 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46004 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46005
46006
46007 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46008echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46009if test "${bakefile_cv_gcc31+set}" = set; then
46010 echo $ECHO_N "(cached) $ECHO_C" >&6
46011else
46012
46013 cat >conftest.$ac_ext <<_ACEOF
46014/* confdefs.h. */
46015_ACEOF
46016cat confdefs.h >>conftest.$ac_ext
46017cat >>conftest.$ac_ext <<_ACEOF
46018/* end confdefs.h. */
46019
46020int
46021main ()
46022{
46023
46024 #if (__GNUC__ < 3) || \
46025 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46026 This is old gcc
583d6b4b 46027 #endif
a848cd7e 46028
583d6b4b
VZ
46029 ;
46030 return 0;
46031}
46032_ACEOF
46033rm -f conftest.$ac_objext
46034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46035 (eval $ac_compile) 2>conftest.er1
46036 ac_status=$?
46037 grep -v '^ *+' conftest.er1 >conftest.err
46038 rm -f conftest.er1
46039 cat conftest.err >&5
46040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46041 (exit $ac_status); } &&
6954625c 46042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46044 (eval $ac_try) 2>&5
46045 ac_status=$?
46046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047 (exit $ac_status); }; } &&
46048 { ac_try='test -s conftest.$ac_objext'
46049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46050 (eval $ac_try) 2>&5
46051 ac_status=$?
46052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46053 (exit $ac_status); }; }; then
46054
46055 bakefile_cv_gcc31=yes
46056
46057else
46058 echo "$as_me: failed program was:" >&5
46059sed 's/^/| /' conftest.$ac_ext >&5
46060
46061
46062 bakefile_cv_gcc31=no
46063
46064
46065fi
46066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46067
46068fi
46069echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46070echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46071 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46072 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46073 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46074 else
46075 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46076 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46077 fi
46078
47bd5406
VZ
46079 if test "x$GCC" == "xyes"; then
46080 PIC_FLAG="-dynamic -fPIC"
46081 fi
46082 if test "x$XLCC" = "xyes"; then
46083 PIC_FLAG="-dynamic -DPIC"
46084 fi
a848cd7e
SC
46085 ;;
46086
46087 *-*-aix* )
f6b50c59 46088 if test "x$GCC" = "xyes"; then
583d6b4b 46089 PIC_FLAG=""
f6b50c59 46090
583d6b4b
VZ
46091 case "${BAKEFILE_HOST}" in
46092 *-*-aix5* )
46093 LD_EXPFULL="-Wl,-bexpfull"
46094 ;;
46095 esac
f6b50c59 46096
583d6b4b
VZ
46097 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46098 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46099 else
46100 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46101set dummy makeC++SharedLib; ac_word=$2
46102echo "$as_me:$LINENO: checking for $ac_word" >&5
46103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46104if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46105 echo $ECHO_N "(cached) $ECHO_C" >&6
46106else
46107 if test -n "$AIX_CXX_LD"; then
46108 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46109else
46110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46111for as_dir in $PATH
46112do
46113 IFS=$as_save_IFS
46114 test -z "$as_dir" && as_dir=.
46115 for ac_exec_ext in '' $ac_executable_extensions; do
46116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46117 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46119 break 2
46120 fi
46121done
46122done
46123
46124 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46125fi
46126fi
46127AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46128if test -n "$AIX_CXX_LD"; then
46129 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46130echo "${ECHO_T}$AIX_CXX_LD" >&6
46131else
46132 echo "$as_me:$LINENO: result: no" >&5
46133echo "${ECHO_T}no" >&6
46134fi
46135
f6b50c59 46136 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46137 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46138 fi
46139 ;;
46140
46141 *-*-beos* )
1e9e8aba
DE
46142 SHARED_LD_CC="${LD} -nostart -o"
46143 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46144 ;;
46145
46146 *-*-irix* )
46147 if test "x$GCC" != "xyes"; then
46148 PIC_FLAG="-KPIC"
46149 fi
46150 ;;
46151
46152 *-*-cygwin* | *-*-mingw32* )
46153 PIC_FLAG=""
1e9e8aba
DE
46154 SHARED_LD_CC="\$(CC) -shared -o"
46155 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46156 WINDOWS_IMPLIB=1
a848cd7e
SC
46157 ;;
46158
46159 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46160 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46161 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46162 PIC_FLAG=""
473276a9
VS
46163
46164D='$'
46165cat <<EOF >dllar.sh
46166#!/bin/sh
46167#
46168# dllar - a tool to build both a .dll and an .a file
46169# from a set of object (.o) files for EMX/OS2.
46170#
46171# Written by Andrew Zabolotny, bit@freya.etu.ru
46172# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46173#
46174# This script will accept a set of files on the command line.
46175# All the public symbols from the .o files will be exported into
46176# a .DEF file, then linker will be run (through gcc) against them to
46177# build a shared library consisting of all given .o files. All libraries
46178# (.a) will be first decompressed into component .o files then act as
46179# described above. You can optionally give a description (-d "description")
46180# which will be put into .DLL. To see the list of accepted options (as well
46181# as command-line format) simply run this program without options. The .DLL
46182# is built to be imported by name (there is no guarantee that new versions
46183# of the library you build will have same ordinals for same symbols).
46184#
46185# dllar is free software; you can redistribute it and/or modify
46186# it under the terms of the GNU General Public License as published by
46187# the Free Software Foundation; either version 2, or (at your option)
46188# any later version.
46189#
46190# dllar is distributed in the hope that it will be useful,
46191# but WITHOUT ANY WARRANTY; without even the implied warranty of
46192# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46193# GNU General Public License for more details.
46194#
46195# You should have received a copy of the GNU General Public License
46196# along with dllar; see the file COPYING. If not, write to the Free
46197# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46198# 02111-1307, USA.
46199
46200# To successfuly run this program you will need:
46201# - Current drive should have LFN support (HPFS, ext2, network, etc)
46202# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46203# - gcc
46204# (used to build the .dll)
46205# - emxexp
46206# (used to create .def file from .o files)
46207# - emximp
46208# (used to create .a file from .def file)
46209# - GNU text utilites (cat, sort, uniq)
46210# used to process emxexp output
46211# - GNU file utilities (mv, rm)
46212# - GNU sed
46213# - lxlite (optional, see flag below)
46214# (used for general .dll cleanup)
46215#
46216
46217flag_USE_LXLITE=1;
46218
46219#
46220# helper functions
46221# basnam, variant of basename, which does _not_ remove the path, _iff_
46222# second argument (suffix to remove) is given
46223basnam(){
46224 case ${D}# in
46225 1)
1e9e8aba 46226 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46227 ;;
46228 2)
46229 echo ${D}1 | sed 's/'${D}2'${D}//'
46230 ;;
46231 *)
46232 echo "error in basnam ${D}*"
46233 exit 8
46234 ;;
46235 esac
46236}
46237
46238# Cleanup temporary files and output
46239CleanUp() {
46240 cd ${D}curDir
46241 for i in ${D}inputFiles ; do
46242 case ${D}i in
46243 *!)
46244 rm -rf \`basnam ${D}i !\`
46245 ;;
46246 *)
46247 ;;
46248 esac
46249 done
46250
46251 # Kill result in case of failure as there is just to many stupid make/nmake
46252 # things out there which doesn't do this.
1e9e8aba 46253 if [ ${D}# -eq 0 ]; then
473276a9
VS
46254 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46255 fi
46256}
46257
46258# Print usage and exit script with rc=1.
46259PrintHelp() {
b1d22ded
DE
46260 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46261 echo ' [-name-mangler-script script.sh]'
46262 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46263 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46264 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46265 echo ' [*.o] [*.a]'
473276a9
VS
46266 echo '*> "output_file" should have no extension.'
46267 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46268 echo ' The import library name is derived from this and is set to "name".a,'
46269 echo ' unless overridden by -import'
46270 echo '*> "importlib_name" should have no extension.'
46271 echo ' If it has the .o, or .a extension, it is automatically removed.'
46272 echo ' This name is used as the import library name and may be longer and'
46273 echo ' more descriptive than the DLL name which has to follow the old '
46274 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46275 echo '*> "script.sh may be given to override the output_file name by a'
46276 echo ' different name. It is mainly useful if the regular make process'
46277 echo ' of some package does not take into account OS/2 restriction of'
46278 echo ' DLL name lengths. It takes the importlib name as input and is'
46279 echo ' supposed to procude a shorter name as output. The script should'
46280 echo ' expect to get importlib_name without extension and should produce'
46281 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46282 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46283 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46284 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46285 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46286 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46287 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46288 echo ' If the last character of a symbol is "*", all symbols beginning'
46289 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46290 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46291 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46292 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46293 echo ' C runtime DLLs.'
b1d22ded 46294 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46295 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46296 echo ' unchanged to GCC at the end of command line.'
46297 echo '*> If you create a DLL from a library and you do not specify -o,'
46298 echo ' the basename for DLL and import library will be set to library name,'
46299 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46300 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46301 echo ' library will be renamed into gcc_s.a.'
46302 echo '--------'
46303 echo 'Example:'
46304 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46305 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46306 CleanUp
46307 exit 1
46308}
46309
46310# Execute a command.
46311# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46312# @Uses Whatever CleanUp() uses.
46313doCommand() {
46314 echo "${D}*"
46315 eval ${D}*
46316 rcCmd=${D}?
46317
1e9e8aba 46318 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46319 echo "command failed, exit code="${D}rcCmd
46320 CleanUp
46321 exit ${D}rcCmd
46322 fi
46323}
46324
46325# main routine
46326# setup globals
46327cmdLine=${D}*
46328outFile=""
46329outimpFile=""
46330inputFiles=""
b1d22ded 46331renameScript=""
473276a9
VS
46332description=""
46333CC=gcc.exe
46334CFLAGS="-s -Zcrtdll"
46335EXTRA_CFLAGS=""
46336EXPORT_BY_ORDINALS=0
46337exclude_symbols=""
46338library_flags=""
46339curDir=\`pwd\`
46340curDirS=curDir
46341case ${D}curDirS in
46342*/)
46343 ;;
46344*)
46345 curDirS=${D}{curDirS}"/"
46346 ;;
46347esac
46348# Parse commandline
46349libsToLink=0
b1d22ded 46350omfLinking=0
1e9e8aba 46351while [ ${D}1 ]; do
473276a9
VS
46352 case ${D}1 in
46353 -ord*)
46354 EXPORT_BY_ORDINALS=1;
46355 ;;
46356 -o*)
46357 shift
46358 outFile=${D}1
46359 ;;
46360 -i*)
46361 shift
46362 outimpFile=${D}1
46363 ;;
b1d22ded
DE
46364 -name-mangler-script)
46365 shift
46366 renameScript=${D}1
46367 ;;
473276a9
VS
46368 -d*)
46369 shift
46370 description=${D}1
46371 ;;
46372 -f*)
46373 shift
46374 CFLAGS=${D}1
46375 ;;
46376 -c*)
46377 shift
46378 CC=${D}1
46379 ;;
46380 -h*)
46381 PrintHelp
46382 ;;
46383 -ex*)
46384 shift
46385 exclude_symbols=${D}{exclude_symbols}${D}1" "
46386 ;;
46387 -libf*)
46388 shift
46389 library_flags=${D}{library_flags}${D}1" "
46390 ;;
46391 -nocrt*)
46392 CFLAGS="-s"
46393 ;;
46394 -nolxl*)
46395 flag_USE_LXLITE=0
46396 ;;
46397 -* | /*)
46398 case ${D}1 in
46399 -L* | -l*)
46400 libsToLink=1
46401 ;;
b1d22ded
DE
46402 -Zomf)
46403 omfLinking=1
46404 ;;
473276a9
VS
46405 *)
46406 ;;
46407 esac
46408 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46409 ;;
b1d22ded
DE
46410 *.dll)
46411 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46412 if [ ${D}omfLinking -eq 1 ]; then
46413 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46414 else
46415 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46416 fi
46417 ;;
473276a9
VS
46418 *)
46419 found=0;
1e9e8aba 46420 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46421 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46422 else
46423 for file in ${D}1 ; do
1e9e8aba 46424 if [ -f ${D}file ]; then
473276a9
VS
46425 inputFiles="${D}{inputFiles} ${D}file"
46426 found=1
46427 fi
46428 done
1e9e8aba 46429 if [ ${D}found -eq 0 ]; then
473276a9
VS
46430 echo "ERROR: No file(s) found: "${D}1
46431 exit 8
46432 fi
46433 fi
46434 ;;
46435 esac
46436 shift
46437done # iterate cmdline words
46438
46439#
1e9e8aba 46440if [ -z "${D}inputFiles" ]; then
473276a9
VS
46441 echo "dllar: no input files"
46442 PrintHelp
46443fi
46444
46445# Now extract all .o files from .a files
46446newInputFiles=""
46447for file in ${D}inputFiles ; do
46448 case ${D}file in
46449 *.a | *.lib)
46450 case ${D}file in
46451 *.a)
46452 suffix=".a"
46453 AR="ar"
46454 ;;
46455 *.lib)
46456 suffix=".lib"
46457 AR="emxomfar"
46458 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46459 ;;
46460 *)
46461 ;;
46462 esac
46463 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46464 mkdir ${D}dirname
1e9e8aba 46465 if [ ${D}? -ne 0 ]; then
473276a9
VS
46466 echo "Failed to create subdirectory ./${D}dirname"
46467 CleanUp
46468 exit 8;
46469 fi
46470 # Append '!' to indicate archive
46471 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46472 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46473 cd ${D}curDir
46474 found=0;
46475 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46476 if [ -f ${D}subfile ]; then
473276a9 46477 found=1
1e9e8aba 46478 if [ -s ${D}subfile ]; then
473276a9
VS
46479 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46480 newInputFiles="${D}newInputFiles ${D}subfile"
46481 fi
46482 fi
46483 done
1e9e8aba
DE
46484 if [ ${D}found -eq 0 ]; then
46485 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46486 fi
46487 ;;
46488 *)
46489 newInputFiles="${D}{newInputFiles} ${D}file"
46490 ;;
46491 esac
46492done
46493inputFiles="${D}newInputFiles"
46494
46495# Output filename(s).
46496do_backup=0;
1e9e8aba 46497if [ -z ${D}outFile ]; then
473276a9
VS
46498 do_backup=1;
46499 set outFile ${D}inputFiles; outFile=${D}2
46500fi
46501
46502# If it is an archive, remove the '!' and the '_%' suffixes
46503case ${D}outFile in
46504*_%!)
46505 outFile=\`basnam ${D}outFile _%!\`
46506 ;;
46507*)
46508 ;;
46509esac
46510case ${D}outFile in
46511*.dll)
46512 outFile=\`basnam ${D}outFile .dll\`
46513 ;;
46514*.DLL)
46515 outFile=\`basnam ${D}outFile .DLL\`
46516 ;;
46517*.o)
46518 outFile=\`basnam ${D}outFile .o\`
46519 ;;
46520*.obj)
46521 outFile=\`basnam ${D}outFile .obj\`
46522 ;;
46523*.a)
46524 outFile=\`basnam ${D}outFile .a\`
46525 ;;
46526*.lib)
46527 outFile=\`basnam ${D}outFile .lib\`
46528 ;;
46529*)
46530 ;;
46531esac
46532case ${D}outimpFile in
46533*.a)
46534 outimpFile=\`basnam ${D}outimpFile .a\`
46535 ;;
46536*.lib)
46537 outimpFile=\`basnam ${D}outimpFile .lib\`
46538 ;;
46539*)
46540 ;;
46541esac
1e9e8aba 46542if [ -z ${D}outimpFile ]; then
473276a9
VS
46543 outimpFile=${D}outFile
46544fi
46545defFile="${D}{outFile}.def"
46546arcFile="${D}{outimpFile}.a"
46547arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46548
46549#create ${D}dllFile as something matching 8.3 restrictions,
46550if [ -z ${D}renameScript ] ; then
46551 dllFile="${D}outFile"
46552else
46553 dllFile=\`${D}renameScript ${D}outimpFile\`
46554fi
473276a9 46555
1e9e8aba
DE
46556if [ ${D}do_backup -ne 0 ] ; then
46557 if [ -f ${D}arcFile ] ; then
473276a9
VS
46558 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46559 fi
1e9e8aba 46560 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46561 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46562 fi
46563fi
46564
46565# Extract public symbols from all the object files.
46566tmpdefFile=${D}{defFile}_%
46567rm -f ${D}tmpdefFile
46568for file in ${D}inputFiles ; do
46569 case ${D}file in
46570 *!)
46571 ;;
46572 *)
46573 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46574 ;;
46575 esac
46576done
46577
46578# Create the def file.
46579rm -f ${D}defFile
46580echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46581dllFile="${D}{dllFile}.dll"
46582if [ ! -z ${D}description ]; then
1e9e8aba 46583 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46584fi
46585echo "EXPORTS" >> ${D}defFile
46586
46587doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46588grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46589
46590# Checks if the export is ok or not.
46591for word in ${D}exclude_symbols; do
46592 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46593 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46594done
46595
46596
1e9e8aba
DE
46597if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46598 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46599 sed '
46600 N
46601 : loop
1e9e8aba 46602 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46603 t loop
46604 ' > ${D}{tmpdefFile}%
46605 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46606else
46607 rm -f ${D}{tmpdefFile}%
46608fi
46609cat ${D}tmpdefFile >> ${D}defFile
46610rm -f ${D}tmpdefFile
46611
46612# Do linking, create implib, and apply lxlite.
46613gccCmdl="";
46614for file in ${D}inputFiles ; do
46615 case ${D}file in
46616 *!)
46617 ;;
46618 *)
46619 gccCmdl="${D}gccCmdl ${D}file"
46620 ;;
46621 esac
46622done
46623doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46624touch "${D}{outFile}.dll"
46625
46626doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46627if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46628 add_flags="";
1e9e8aba 46629 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46630 add_flags="-ynd"
46631 fi
46632 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46633fi
46634doCommand "emxomf -s -l ${D}arcFile"
46635
46636# Successful exit.
46637CleanUp 1
46638exit 0
46639EOF
46640
46641 chmod +x dllar.sh
a848cd7e
SC
46642 ;;
46643
1e9e8aba 46644 powerpc-apple-macos* | \
0ad5d837 46645 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46646 *-*-sunos4* | \
46647 *-*-osf* | \
46648 *-*-dgux5* | \
47a7e797
MW
46649 *-*-sysv5* | \
46650 *-pc-msdosdjgpp )
a848cd7e
SC
46651 ;;
46652
46653 *)
46654 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46655echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46656 { (exit 1); exit 1; }; }
46657 esac
46658
2057db16
VS
46659 if test "x$PIC_FLAG" != "x" ; then
46660 PIC_FLAG="$PIC_FLAG -DPIC"
46661 fi
46662
a848cd7e
SC
46663 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46664 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46665 fi
46666 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46667 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46668 fi
46669
46670
46671
46672
46673
46674
46675
46676
810b94f0 46677
a848cd7e
SC
46678 USE_SOVERSION=0
46679 USE_SOVERLINUX=0
46680 USE_SOVERSOLARIS=0
810b94f0 46681 USE_SOVERCYGWIN=0
a848cd7e
SC
46682 USE_SOSYMLINKS=0
46683 USE_MACVERSION=0
46684 SONAME_FLAG=
46685
46686 case "${BAKEFILE_HOST}" in
0ad5d837 46687 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46688 SONAME_FLAG="-Wl,-soname,"
46689 USE_SOVERSION=1
46690 USE_SOVERLINUX=1
46691 USE_SOSYMLINKS=1
46692 ;;
46693
a848cd7e
SC
46694 *-*-solaris2* )
46695 SONAME_FLAG="-h "
46696 USE_SOVERSION=1
46697 USE_SOVERSOLARIS=1
46698 USE_SOSYMLINKS=1
46699 ;;
46700
46701 *-*-darwin* )
46702 USE_MACVERSION=1
46703 USE_SOVERSION=1
46704 USE_SOSYMLINKS=1
46705 ;;
810b94f0
MW
46706
46707 *-*-cygwin* )
46708 USE_SOVERSION=1
46709 USE_SOVERCYGWIN=1
46710 ;;
a848cd7e
SC
46711 esac
46712
46713
46714
46715
46716
46717
46718
46719
46720
810b94f0 46721
f10e38c4
VZ
46722 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
46723if test "${enable_dependency_tracking+set}" = set; then
46724 enableval="$enable_dependency_tracking"
46725 bk_use_trackdeps="$enableval"
46726fi;
46727
a848cd7e
SC
46728 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46729echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 46730
f10e38c4
VZ
46731 if test "x$bk_use_trackdeps" = "xno" ; then
46732 DEPS_TRACKING=0
46733 echo "$as_me:$LINENO: result: disabled" >&5
46734echo "${ECHO_T}disabled" >&6
46735 else
46736 DEPS_TRACKING=1
46737
46738 if test "x$GCC" = "xyes"; then
46739 DEPSMODE=gcc
46740 case "${BAKEFILE_HOST}" in
46741 *-*-darwin* )
46742 DEPSFLAG="-no-cpp-precomp -MMD"
46743 ;;
46744 * )
46745 DEPSFLAG="-MMD"
46746 ;;
46747 esac
46748 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 46749echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
46750 elif test "x$MWCC" = "xyes"; then
46751 DEPSMODE=mwcc
46752 DEPSFLAG="-MM"
46753 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 46754echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
46755 elif test "x$SUNCC" = "xyes"; then
46756 DEPSMODE=unixcc
46757 DEPSFLAG="-xM1"
46758 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 46759echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
46760 elif test "x$SGICC" = "xyes"; then
46761 DEPSMODE=unixcc
46762 DEPSFLAG="-M"
46763 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 46764echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
46765 elif test "x$HPCC" = "xyes"; then
46766 DEPSMODE=unixcc
46767 DEPSFLAG="+make"
46768 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 46769echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
46770 elif test "x$COMPAQCC" = "xyes"; then
46771 DEPSMODE=gcc
46772 DEPSFLAG="-MD"
46773 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 46774echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
46775 else
46776 DEPS_TRACKING=0
46777 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 46778echo "${ECHO_T}none" >&6
f10e38c4 46779 fi
a848cd7e 46780
f10e38c4 46781 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46782
46783D='$'
46784cat <<EOF >bk-deps
a848cd7e
SC
46785#!/bin/sh
46786
46787# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46788# script. It is used to track C/C++ files dependencies in portable way.
46789#
46790# Permission is given to use this file in any way.
46791
473276a9 46792DEPSMODE=${DEPSMODE}
a848cd7e 46793DEPSDIR=.deps
0ad5d837 46794DEPSFLAG="${DEPSFLAG}"
a848cd7e 46795
473276a9 46796mkdir -p ${D}DEPSDIR
a848cd7e 46797
473276a9 46798if test ${D}DEPSMODE = gcc ; then
0ad5d837 46799 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46800 status=${D}?
46801 if test ${D}{status} != 0 ; then
46802 exit ${D}{status}
a848cd7e
SC
46803 fi
46804 # move created file to the location we want it in:
473276a9
VS
46805 while test ${D}# -gt 0; do
46806 case "${D}1" in
a848cd7e
SC
46807 -o )
46808 shift
473276a9 46809 objfile=${D}1
a848cd7e
SC
46810 ;;
46811 -* )
46812 ;;
46813 * )
473276a9 46814 srcfile=${D}1
a848cd7e
SC
46815 ;;
46816 esac
46817 shift
46818 done
1e9e8aba
DE
46819 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46820 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46821 if test -f ${D}depfile ; then
46822 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46823 rm -f ${D}depfile
a848cd7e 46824 else
a1aa0349 46825 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46826 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46827 if test ! -f ${D}depfile ; then
46828 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46829 depfile="${D}objfile.d"
46830 fi
473276a9
VS
46831 if test -f ${D}depfile ; then
46832 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46833 rm -f ${D}depfile
a848cd7e
SC
46834 fi
46835 fi
46836 exit 0
81f90336 46837elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46838 ${D}* || exit ${D}?
81f90336
MW
46839 # Run mwcc again with -MM and redirect into the dep file we want
46840 # NOTE: We can't use shift here because we need ${D}* to be valid
46841 prevarg=
46842 for arg in ${D}* ; do
46843 if test "${D}prevarg" = "-o"; then
46844 objfile=${D}arg
46845 else
46846 case "${D}arg" in
46847 -* )
46848 ;;
46849 * )
46850 srcfile=${D}arg
46851 ;;
46852 esac
46853 fi
46854 prevarg="${D}arg"
46855 done
0ad5d837 46856 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46857 exit 0
0ad5d837 46858elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46859 ${D}* || exit ${D}?
a9e5b1f0
MW
46860 # Run compiler again with deps flag and redirect into the dep file.
46861 # It doesn't work if the '-o FILE' option is used, but without it the
46862 # dependency file will contain the wrong name for the object. So it is
46863 # removed from the command line, and the dep file is fixed with sed.
46864 cmd=""
46865 while test ${D}# -gt 0; do
46866 case "${D}1" in
46867 -o )
46868 shift
46869 objfile=${D}1
46870 ;;
46871 * )
46872 eval arg${D}#=\\${D}1
46873 cmd="${D}cmd \\${D}arg${D}#"
46874 ;;
46875 esac
46876 shift
46877 done
0ad5d837 46878 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 46879 exit 0
a848cd7e 46880else
473276a9
VS
46881 ${D}*
46882 exit ${D}?
a848cd7e
SC
46883fi
46884EOF
473276a9 46885
f10e38c4
VZ
46886 chmod +x bk-deps
46887 fi
a848cd7e
SC
46888 fi
46889
46890
46891
46892
a848cd7e
SC
46893 case ${BAKEFILE_HOST} in
46894 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
46895 if test -n "$ac_tool_prefix"; then
46896 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
46897set dummy ${ac_tool_prefix}windres; ac_word=$2
46898echo "$as_me:$LINENO: checking for $ac_word" >&5
46899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46900if test "${ac_cv_prog_WINDRES+set}" = set; then
46901 echo $ECHO_N "(cached) $ECHO_C" >&6
46902else
46903 if test -n "$WINDRES"; then
46904 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
46905else
46906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46907for as_dir in $PATH
46908do
46909 IFS=$as_save_IFS
46910 test -z "$as_dir" && as_dir=.
46911 for ac_exec_ext in '' $ac_executable_extensions; do
46912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46913 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
46914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46915 break 2
46916 fi
46917done
46918done
46919
46920fi
46921fi
46922WINDRES=$ac_cv_prog_WINDRES
46923if test -n "$WINDRES"; then
46924 echo "$as_me:$LINENO: result: $WINDRES" >&5
46925echo "${ECHO_T}$WINDRES" >&6
46926else
46927 echo "$as_me:$LINENO: result: no" >&5
46928echo "${ECHO_T}no" >&6
46929fi
46930
46931fi
46932if test -z "$ac_cv_prog_WINDRES"; then
46933 ac_ct_WINDRES=$WINDRES
46934 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
46935set dummy windres; ac_word=$2
46936echo "$as_me:$LINENO: checking for $ac_word" >&5
46937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46938if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
46939 echo $ECHO_N "(cached) $ECHO_C" >&6
46940else
8ced02f6
DE
46941 if test -n "$ac_ct_WINDRES"; then
46942 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
46943else
46944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46945for as_dir in $PATH
46946do
46947 IFS=$as_save_IFS
46948 test -z "$as_dir" && as_dir=.
46949 for ac_exec_ext in '' $ac_executable_extensions; do
46950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46951 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
46952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46953 break 2
46954 fi
46955done
46956done
46957
a848cd7e
SC
46958fi
46959fi
8ced02f6
DE
46960ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
46961if test -n "$ac_ct_WINDRES"; then
46962 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
46963echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
46964else
46965 echo "$as_me:$LINENO: result: no" >&5
46966echo "${ECHO_T}no" >&6
46967fi
46968
8ced02f6
DE
46969 WINDRES=$ac_ct_WINDRES
46970else
46971 WINDRES="$ac_cv_prog_WINDRES"
46972fi
46973
a848cd7e
SC
46974 ;;
46975
1e9e8aba 46976 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
46977 # Extract the first word of "Rez", so it can be a program name with args.
46978set dummy Rez; ac_word=$2
46979echo "$as_me:$LINENO: checking for $ac_word" >&5
46980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46981if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
46982 echo $ECHO_N "(cached) $ECHO_C" >&6
46983else
8ced02f6
DE
46984 if test -n "$REZ"; then
46985 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
46986else
46987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46988for as_dir in $PATH
46989do
46990 IFS=$as_save_IFS
46991 test -z "$as_dir" && as_dir=.
46992 for ac_exec_ext in '' $ac_executable_extensions; do
46993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46994 ac_cv_prog_REZ="Rez"
a848cd7e
SC
46995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46996 break 2
46997 fi
46998done
46999done
47000
8ced02f6 47001 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47002fi
47003fi
8ced02f6
DE
47004REZ=$ac_cv_prog_REZ
47005if test -n "$REZ"; then
47006 echo "$as_me:$LINENO: result: $REZ" >&5
47007echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47008else
47009 echo "$as_me:$LINENO: result: no" >&5
47010echo "${ECHO_T}no" >&6
47011fi
47012
47013 # Extract the first word of "SetFile", so it can be a program name with args.
47014set dummy SetFile; ac_word=$2
47015echo "$as_me:$LINENO: checking for $ac_word" >&5
47016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47017if test "${ac_cv_prog_SETFILE+set}" = set; then
47018 echo $ECHO_N "(cached) $ECHO_C" >&6
47019else
47020 if test -n "$SETFILE"; then
47021 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47022else
47023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47024for as_dir in $PATH
47025do
47026 IFS=$as_save_IFS
47027 test -z "$as_dir" && as_dir=.
47028 for ac_exec_ext in '' $ac_executable_extensions; do
47029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47030 ac_cv_prog_SETFILE="SetFile"
47031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47032 break 2
47033 fi
47034done
47035done
47036
47037 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47038fi
47039fi
47040SETFILE=$ac_cv_prog_SETFILE
47041if test -n "$SETFILE"; then
47042 echo "$as_me:$LINENO: result: $SETFILE" >&5
47043echo "${ECHO_T}$SETFILE" >&6
47044else
47045 echo "$as_me:$LINENO: result: no" >&5
47046echo "${ECHO_T}no" >&6
47047fi
47048
47049 ;;
47050 esac
47051
47052
47053
47054
47055
8ced02f6 47056
f10e38c4 47057 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47058
dcc1b6ad 47059
f10e38c4 47060BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47061
646b6ec1 47062
74b84332 47063
a848cd7e
SC
47064 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47065if test "${enable_precomp_headers+set}" = set; then
47066 enableval="$enable_precomp_headers"
47067 bk_use_pch="$enableval"
47068fi;
47069
47070 GCC_PCH=0
f10e38c4
VZ
47071 ICC_PCH=0
47072 USE_PCH=0
a848cd7e 47073
5c60e845
MW
47074 case ${BAKEFILE_HOST} in
47075 *-*-cygwin* )
47076 bk_use_pch="no"
47077 ;;
47078 esac
47079
a848cd7e
SC
47080 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47081 if test "x$GCC" = "xyes"; then
47082 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47083echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47084 cat >conftest.$ac_ext <<_ACEOF
47085/* confdefs.h. */
47086_ACEOF
47087cat confdefs.h >>conftest.$ac_ext
47088cat >>conftest.$ac_ext <<_ACEOF
47089/* end confdefs.h. */
47090
47091int
47092main ()
47093{
47094
47095 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47096 There is no PCH support
a848cd7e
SC
47097 #endif
47098 #if (__GNUC__ < 3)
e5efa97e 47099 There is no PCH support
a848cd7e
SC
47100 #endif
47101 #if (__GNUC__ == 3) && \
47102 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47103 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47104 ( defined(__INTEL_COMPILER) )
e5efa97e 47105 There is no PCH support
a848cd7e
SC
47106 #endif
47107
47108 ;
47109 return 0;
47110}
47111_ACEOF
47112rm -f conftest.$ac_objext
47113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47114 (eval $ac_compile) 2>conftest.er1
a848cd7e 47115 ac_status=$?
ac1cb8d3
VS
47116 grep -v '^ *+' conftest.er1 >conftest.err
47117 rm -f conftest.er1
47118 cat conftest.err >&5
a848cd7e
SC
47119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47120 (exit $ac_status); } &&
6954625c 47121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47123 (eval $ac_try) 2>&5
47124 ac_status=$?
47125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47126 (exit $ac_status); }; } &&
47127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47129 (eval $ac_try) 2>&5
47130 ac_status=$?
47131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47132 (exit $ac_status); }; }; then
47133
47134 echo "$as_me:$LINENO: result: yes" >&5
47135echo "${ECHO_T}yes" >&6
a848cd7e
SC
47136 GCC_PCH=1
47137
47138else
47139 echo "$as_me: failed program was:" >&5
47140sed 's/^/| /' conftest.$ac_ext >&5
47141
47142
f10e38c4
VZ
47143 cat >conftest.$ac_ext <<_ACEOF
47144/* confdefs.h. */
47145_ACEOF
47146cat confdefs.h >>conftest.$ac_ext
47147cat >>conftest.$ac_ext <<_ACEOF
47148/* end confdefs.h. */
47149
47150int
47151main ()
47152{
47153
47154 #if !defined(__INTEL_COMPILER) || \
47155 (__INTEL_COMPILER < 800)
e5efa97e 47156 There is no PCH support
f10e38c4
VZ
47157 #endif
47158
47159 ;
47160 return 0;
47161}
47162_ACEOF
47163rm -f conftest.$ac_objext
47164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47165 (eval $ac_compile) 2>conftest.er1
47166 ac_status=$?
47167 grep -v '^ *+' conftest.er1 >conftest.err
47168 rm -f conftest.er1
47169 cat conftest.err >&5
47170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47171 (exit $ac_status); } &&
6954625c 47172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47174 (eval $ac_try) 2>&5
47175 ac_status=$?
47176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47177 (exit $ac_status); }; } &&
47178 { ac_try='test -s conftest.$ac_objext'
47179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47180 (eval $ac_try) 2>&5
47181 ac_status=$?
47182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47183 (exit $ac_status); }; }; then
47184
47185 echo "$as_me:$LINENO: result: yes" >&5
47186echo "${ECHO_T}yes" >&6
47187 ICC_PCH=1
47188
47189else
47190 echo "$as_me: failed program was:" >&5
47191sed 's/^/| /' conftest.$ac_ext >&5
47192
47193
47194 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47195echo "${ECHO_T}no" >&6
47196
47197fi
ac1cb8d3 47198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47199
47200fi
47201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47202 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47203 USE_PCH=1
1e9e8aba
DE
47204
47205D='$'
47206cat <<EOF >bk-make-pch
a848cd7e
SC
47207#!/bin/sh
47208
47209# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47210# script. It is used to generated precompiled headers.
47211#
47212# Permission is given to use this file in any way.
47213
1e9e8aba
DE
47214outfile="${D}{1}"
47215header="${D}{2}"
a848cd7e
SC
47216shift
47217shift
47218
f10e38c4
VZ
47219compiler=""
47220headerfile=""
47221
1e9e8aba 47222while test ${D}{#} -gt 0; do
f10e38c4 47223 add_to_cmdline=1
1e9e8aba 47224 case "${D}{1}" in
a848cd7e 47225 -I* )
1e9e8aba
DE
47226 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47227 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47228 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47229 fi
47230 ;;
f10e38c4
VZ
47231 -use-pch|-use_pch )
47232 shift
47233 add_to_cmdline=0
47234 ;;
a848cd7e 47235 esac
f10e38c4
VZ
47236 if test ${D}add_to_cmdline = 1 ; then
47237 compiler="${D}{compiler} ${D}{1}"
47238 fi
a848cd7e
SC
47239 shift
47240done
47241
1e9e8aba 47242if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47243 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47244else
1e9e8aba
DE
47245 if test -f ${D}{outfile} ; then
47246 rm -f ${D}{outfile}
a848cd7e 47247 else
1e9e8aba 47248 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47249 fi
1e9e8aba 47250 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47251 mkdir -p .deps
f10e38c4
VZ
47252 if test "x${GCC_PCH}" = "x1" ; then
47253 # can do this because gcc is >= 3.4:
47254 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47255 elif test "x${ICC_PCH}" = "x1" ; then
47256 filename=pch_gen-${D}${D}
47257 file=${D}{filename}.c
47258 dfile=${D}{filename}.d
47259 cat > ${D}file <<EOT
47260#include "${D}header"
47261EOT
47262 # using -MF icc complains about differing command lines in creation/use
47263 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47264 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47265 rm -f ${D}file ${D}dfile ${D}{filename}.o
47266 fi
1e9e8aba 47267 exit ${D}{?}
a848cd7e
SC
47268fi
47269EOF
1e9e8aba 47270
a848cd7e
SC
47271 chmod +x bk-make-pch
47272 fi
47273 fi
47274 fi
47275
47276
47277
f10e38c4 47278
a848cd7e
SC
47279 COND_BUILD_DEBUG="#"
47280 if test "x$BUILD" = "xdebug" ; then
47281 COND_BUILD_DEBUG=""
47282 fi
47283
47284 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47285 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47286 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47287 fi
47288
47289 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47290 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47291 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47292 fi
47293
47294 COND_BUILD_DEBUG_UNICODE_0="#"
47295 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47296 COND_BUILD_DEBUG_UNICODE_0=""
47297 fi
47298
47299 COND_BUILD_DEBUG_UNICODE_1="#"
47300 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47301 COND_BUILD_DEBUG_UNICODE_1=""
47302 fi
47303
47304 COND_BUILD_RELEASE="#"
47305 if test "x$BUILD" = "xrelease" ; then
47306 COND_BUILD_RELEASE=""
47307 fi
47308
47309 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47310 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47311 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47312 fi
47313
47314 COND_BUILD_RELEASE_UNICODE_0="#"
47315 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47316 COND_BUILD_RELEASE_UNICODE_0=""
47317 fi
47318
47319 COND_BUILD_RELEASE_UNICODE_1="#"
47320 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47321 COND_BUILD_RELEASE_UNICODE_1=""
47322 fi
47323
47324 COND_DEBUG_FLAG_1="#"
47325 if test "x$DEBUG_FLAG" = "x1" ; then
47326 COND_DEBUG_FLAG_1=""
47327 fi
47328
47329 COND_DEBUG_INFO_0="#"
47330 if test "x$DEBUG_INFO" = "x0" ; then
47331 COND_DEBUG_INFO_0=""
47332 fi
47333
47334 COND_DEBUG_INFO_1="#"
47335 if test "x$DEBUG_INFO" = "x1" ; then
47336 COND_DEBUG_INFO_1=""
47337 fi
47338
47339 COND_DEPS_TRACKING_0="#"
47340 if test "x$DEPS_TRACKING" = "x0" ; then
47341 COND_DEPS_TRACKING_0=""
47342 fi
47343
47344 COND_DEPS_TRACKING_1="#"
47345 if test "x$DEPS_TRACKING" = "x1" ; then
47346 COND_DEPS_TRACKING_1=""
47347 fi
47348
47349 COND_GCC_PCH_1="#"
47350 if test "x$GCC_PCH" = "x1" ; then
47351 COND_GCC_PCH_1=""
47352 fi
47353
f10e38c4
VZ
47354 COND_ICC_PCH_1="#"
47355 if test "x$ICC_PCH" = "x1" ; then
47356 COND_ICC_PCH_1=""
47357 fi
47358
a848cd7e
SC
47359 COND_MONOLITHIC_0="#"
47360 if test "x$MONOLITHIC" = "x0" ; then
47361 COND_MONOLITHIC_0=""
47362 fi
47363
47364 COND_MONOLITHIC_0_SHARED_0="#"
47365 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47366 COND_MONOLITHIC_0_SHARED_0=""
47367 fi
47368
47369 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47370 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47371 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47372 fi
47373
90970d69
DE
47374 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47375 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47376 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47377 fi
47378
f10e38c4
VZ
47379 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47380 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47381 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47382 fi
47383
a848cd7e
SC
47384 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47385 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47386 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47387 fi
47388
6671c68b
VZ
47389 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47390 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47391 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47392 fi
47393
a848cd7e
SC
47394 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47395 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47396 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47397 fi
47398
ceec2216
RL
47399 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47400 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47401 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47402 fi
47403
a848cd7e
SC
47404 COND_MONOLITHIC_0_SHARED_1="#"
47405 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47406 COND_MONOLITHIC_0_SHARED_1=""
47407 fi
47408
47409 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47410 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47411 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47412 fi
47413
90970d69
DE
47414 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47415 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47416 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47417 fi
47418
f10e38c4
VZ
47419 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47420 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47421 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47422 fi
47423
a848cd7e
SC
47424 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47425 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47426 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47427 fi
47428
6671c68b
VZ
47429 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47430 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47431 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47432 fi
47433
a848cd7e
SC
47434 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47435 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47436 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47437 fi
47438
ceec2216
RL
47439 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47440 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47441 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47442 fi
47443
e5efa97e
VZ
47444 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47445 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47446 COND_MONOLITHIC_0_USE_MEDIA_1=""
47447 fi
47448
a848cd7e
SC
47449 COND_MONOLITHIC_0_USE_ODBC_1="#"
47450 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47451 COND_MONOLITHIC_0_USE_ODBC_1=""
47452 fi
47453
47454 COND_MONOLITHIC_1="#"
47455 if test "x$MONOLITHIC" = "x1" ; then
47456 COND_MONOLITHIC_1=""
47457 fi
47458
47459 COND_MONOLITHIC_1_SHARED_0="#"
47460 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47461 COND_MONOLITHIC_1_SHARED_0=""
47462 fi
47463
47464 COND_MONOLITHIC_1_SHARED_1="#"
47465 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47466 COND_MONOLITHIC_1_SHARED_1=""
47467 fi
47468
47469 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47470 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47471 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47472 fi
47473
47474 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47475 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47476 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47477 fi
47478
eb730a0c
JS
47479 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47480 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47481 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47482 fi
47483
a848cd7e
SC
47484 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47485 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47486 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47487 fi
47488
47489 COND_PLATFORM_MACOSX_1="#"
47490 if test "x$PLATFORM_MACOSX" = "x1" ; then
47491 COND_PLATFORM_MACOSX_1=""
47492 fi
47493
a30f955f
VS
47494 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47495 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47496 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47497 fi
47498
a848cd7e
SC
47499 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47500 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47501 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47502 fi
47503
47504 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47505 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47506 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47507 fi
47508
47509 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47510 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47511 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47512 fi
47513
fc480dc1
DE
47514 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47515 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47516 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47517 fi
47518
1e9e8aba
DE
47519 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47520 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47521 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47522 fi
47523
ebee3cd0
VS
47524 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47525 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47526 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47527 fi
47528
47529 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47530 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47531 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47532 fi
47533
a848cd7e
SC
47534 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47535 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47536 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47537 fi
47538
47539 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47540 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47541 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47542 fi
47543
b48a2016
DE
47544 COND_PLATFORM_MACOS_1="#"
47545 if test "x$PLATFORM_MACOS" = "x1" ; then
47546 COND_PLATFORM_MACOS_1=""
47547 fi
47548
083508af
MW
47549 COND_PLATFORM_MAC_1="#"
47550 if test "x$PLATFORM_MAC" = "x1" ; then
47551 COND_PLATFORM_MAC_1=""
47552 fi
47553
e5efa97e
VZ
47554 COND_PLATFORM_MSDOS_0="#"
47555 if test "x$PLATFORM_MSDOS" = "x0" ; then
47556 COND_PLATFORM_MSDOS_0=""
47557 fi
47558
83d8eb47
MW
47559 COND_PLATFORM_MSDOS_1="#"
47560 if test "x$PLATFORM_MSDOS" = "x1" ; then
47561 COND_PLATFORM_MSDOS_1=""
47562 fi
47563
a848cd7e
SC
47564 COND_PLATFORM_OS2_1="#"
47565 if test "x$PLATFORM_OS2" = "x1" ; then
47566 COND_PLATFORM_OS2_1=""
47567 fi
47568
47569 COND_PLATFORM_UNIX_0="#"
47570 if test "x$PLATFORM_UNIX" = "x0" ; then
47571 COND_PLATFORM_UNIX_0=""
47572 fi
47573
47574 COND_PLATFORM_UNIX_1="#"
47575 if test "x$PLATFORM_UNIX" = "x1" ; then
47576 COND_PLATFORM_UNIX_1=""
47577 fi
47578
47579 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47580 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47581 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47582 fi
47583
47584 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47585 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47586 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47587 fi
47588
47589 COND_PLATFORM_WIN32_0="#"
47590 if test "x$PLATFORM_WIN32" = "x0" ; then
47591 COND_PLATFORM_WIN32_0=""
47592 fi
47593
47594 COND_PLATFORM_WIN32_1="#"
47595 if test "x$PLATFORM_WIN32" = "x1" ; then
47596 COND_PLATFORM_WIN32_1=""
47597 fi
47598
47599 COND_SHARED_0="#"
47600 if test "x$SHARED" = "x0" ; then
47601 COND_SHARED_0=""
47602 fi
47603
083508af
MW
47604 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47605 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47606 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47607 fi
47608
47609 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47610 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47611 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47612 fi
47613
47614 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47615 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47616 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47617 fi
47618
a848cd7e
SC
47619 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47620 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47621 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47622 fi
47623
47624 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47625 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47626 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47627 fi
47628
47629 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47630 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47631 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47632 fi
47633
47634 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47635 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47636 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47637 fi
47638
083508af
MW
47639 COND_SHARED_0_USE_XRC_1="#"
47640 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47641 COND_SHARED_0_USE_XRC_1=""
47642 fi
47643
a848cd7e
SC
47644 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47645 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47646 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47647 fi
47648
47649 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47650 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47651 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47652 fi
47653
47654 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47655 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47656 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47657 fi
47658
47659 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47660 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47661 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47662 fi
47663
47664 COND_SHARED_1="#"
47665 if test "x$SHARED" = "x1" ; then
47666 COND_SHARED_1=""
47667 fi
47668
47669 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47670 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47671 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47672 fi
47673
083508af
MW
47674 COND_SHARED_1_USE_XRC_1="#"
47675 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47676 COND_SHARED_1_USE_XRC_1=""
47677 fi
47678
a30f955f
VS
47679 COND_TOOLKIT_="#"
47680 if test "x$TOOLKIT" = "x" ; then
47681 COND_TOOLKIT_=""
47682 fi
47683
a848cd7e
SC
47684 COND_TOOLKIT_COCOA="#"
47685 if test "x$TOOLKIT" = "xCOCOA" ; then
47686 COND_TOOLKIT_COCOA=""
47687 fi
47688
a49baeab
DE
47689 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47690 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47691 COND_TOOLKIT_COCOA_USE_GUI_1=""
47692 fi
47693
a848cd7e
SC
47694 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47695 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47696 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47697 fi
47698
47699 COND_TOOLKIT_GTK="#"
47700 if test "x$TOOLKIT" = "xGTK" ; then
47701 COND_TOOLKIT_GTK=""
47702 fi
47703
d044deea
MW
47704 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47705 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47706 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47707 fi
47708
47709 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47710 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47711 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47712 fi
47713
47714 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47715 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47716 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47717 fi
47718
47719 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47720 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47721 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47722 fi
47723
47724 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47725 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47726 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47727 fi
47728
47729 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47730 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47731 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47732 fi
47733
a848cd7e
SC
47734 COND_TOOLKIT_GTK_USE_GUI_1="#"
47735 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47736 COND_TOOLKIT_GTK_USE_GUI_1=""
47737 fi
47738
a848cd7e
SC
47739 COND_TOOLKIT_MAC="#"
47740 if test "x$TOOLKIT" = "xMAC" ; then
47741 COND_TOOLKIT_MAC=""
47742 fi
47743
47744 COND_TOOLKIT_MAC_USE_GUI_1="#"
47745 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47746 COND_TOOLKIT_MAC_USE_GUI_1=""
47747 fi
47748
47749 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47750 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47751 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47752 fi
47753
47754 COND_TOOLKIT_MGL="#"
47755 if test "x$TOOLKIT" = "xMGL" ; then
47756 COND_TOOLKIT_MGL=""
47757 fi
47758
47759 COND_TOOLKIT_MGL_USE_GUI_1="#"
47760 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47761 COND_TOOLKIT_MGL_USE_GUI_1=""
47762 fi
47763
47764 COND_TOOLKIT_MOTIF="#"
47765 if test "x$TOOLKIT" = "xMOTIF" ; then
47766 COND_TOOLKIT_MOTIF=""
47767 fi
47768
47769 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47770 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47771 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47772 fi
47773
47774 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47775 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47776 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47777 fi
47778
47779 COND_TOOLKIT_MSW="#"
47780 if test "x$TOOLKIT" = "xMSW" ; then
47781 COND_TOOLKIT_MSW=""
47782 fi
47783
47784 COND_TOOLKIT_MSW_USE_GUI_1="#"
47785 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47786 COND_TOOLKIT_MSW_USE_GUI_1=""
47787 fi
47788
47789 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47790 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47791 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47792 fi
47793
0ee4059d
DE
47794 COND_TOOLKIT_MSW_WXUNIV_0="#"
47795 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47796 COND_TOOLKIT_MSW_WXUNIV_0=""
47797 fi
47798
a848cd7e
SC
47799 COND_TOOLKIT_PM="#"
47800 if test "x$TOOLKIT" = "xPM" ; then
47801 COND_TOOLKIT_PM=""
47802 fi
47803
47804 COND_TOOLKIT_PM_USE_GUI_1="#"
47805 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47806 COND_TOOLKIT_PM_USE_GUI_1=""
47807 fi
47808
47809 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47810 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47811 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47812 fi
47813
3fd9c298
DE
47814 COND_TOOLKIT_WINCE="#"
47815 if test "x$TOOLKIT" = "xWINCE" ; then
47816 COND_TOOLKIT_WINCE=""
47817 fi
47818
47819 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47820 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47821 COND_TOOLKIT_WINCE_USE_GUI_1=""
47822 fi
47823
47824 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47825 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47826 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47827 fi
47828
0ee4059d
DE
47829 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47830 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47831 COND_TOOLKIT_WINCE_WXUNIV_0=""
47832 fi
47833
a848cd7e
SC
47834 COND_TOOLKIT_X11="#"
47835 if test "x$TOOLKIT" = "xX11" ; then
47836 COND_TOOLKIT_X11=""
47837 fi
47838
47839 COND_TOOLKIT_X11_USE_GUI_1="#"
47840 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47841 COND_TOOLKIT_X11_USE_GUI_1=""
47842 fi
47843
47844 COND_UNICODE_1="#"
47845 if test "x$UNICODE" = "x1" ; then
47846 COND_UNICODE_1=""
47847 fi
47848
47849 COND_USE_EXCEPTIONS_0="#"
47850 if test "x$USE_EXCEPTIONS" = "x0" ; then
47851 COND_USE_EXCEPTIONS_0=""
47852 fi
47853
47854 COND_USE_EXCEPTIONS_1="#"
47855 if test "x$USE_EXCEPTIONS" = "x1" ; then
47856 COND_USE_EXCEPTIONS_1=""
47857 fi
47858
47859 COND_USE_GUI_0="#"
47860 if test "x$USE_GUI" = "x0" ; then
47861 COND_USE_GUI_0=""
47862 fi
47863
47864 COND_USE_GUI_1="#"
47865 if test "x$USE_GUI" = "x1" ; then
47866 COND_USE_GUI_1=""
47867 fi
47868
47869 COND_USE_GUI_1_WXUNIV_0="#"
47870 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47871 COND_USE_GUI_1_WXUNIV_0=""
47872 fi
47873
47874 COND_USE_GUI_1_WXUNIV_1="#"
47875 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47876 COND_USE_GUI_1_WXUNIV_1=""
47877 fi
47878
47879 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47880 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47881 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47882 fi
47883
47884 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47885 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47886 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47887 fi
47888
47889 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47890 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47891 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47892 fi
47893
083508af
MW
47894 COND_USE_ODBC_1="#"
47895 if test "x$USE_ODBC" = "x1" ; then
47896 COND_USE_ODBC_1=""
47897 fi
47898
47899 COND_USE_OPENGL_1="#"
47900 if test "x$USE_OPENGL" = "x1" ; then
47901 COND_USE_OPENGL_1=""
47902 fi
47903
f10e38c4
VZ
47904 COND_USE_PCH_1="#"
47905 if test "x$USE_PCH" = "x1" ; then
47906 COND_USE_PCH_1=""
47907 fi
47908
a848cd7e
SC
47909 COND_USE_PLUGINS_0="#"
47910 if test "x$USE_PLUGINS" = "x0" ; then
47911 COND_USE_PLUGINS_0=""
47912 fi
47913
0b78747f
MW
47914 COND_USE_RTTI_0="#"
47915 if test "x$USE_RTTI" = "x0" ; then
47916 COND_USE_RTTI_0=""
47917 fi
47918
47919 COND_USE_RTTI_1="#"
47920 if test "x$USE_RTTI" = "x1" ; then
47921 COND_USE_RTTI_1=""
47922 fi
47923
a848cd7e
SC
47924 COND_USE_SOSYMLINKS_1="#"
47925 if test "x$USE_SOSYMLINKS" = "x1" ; then
47926 COND_USE_SOSYMLINKS_1=""
47927 fi
47928
eb730a0c
JS
47929 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47930 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47931 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47932 fi
47933
a848cd7e
SC
47934 COND_USE_SOVERLINUX_1="#"
47935 if test "x$USE_SOVERLINUX" = "x1" ; then
47936 COND_USE_SOVERLINUX_1=""
47937 fi
47938
47939 COND_USE_SOVERSION_0="#"
47940 if test "x$USE_SOVERSION" = "x0" ; then
47941 COND_USE_SOVERSION_0=""
47942 fi
47943
47944 COND_USE_SOVERSOLARIS_1="#"
47945 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47946 COND_USE_SOVERSOLARIS_1=""
47947 fi
47948
0b78747f
MW
47949 COND_USE_THREADS_0="#"
47950 if test "x$USE_THREADS" = "x0" ; then
47951 COND_USE_THREADS_0=""
47952 fi
47953
47954 COND_USE_THREADS_1="#"
47955 if test "x$USE_THREADS" = "x1" ; then
47956 COND_USE_THREADS_1=""
47957 fi
47958
a13a7f89
RL
47959 COND_USE_XRC_1="#"
47960 if test "x$USE_XRC" = "x1" ; then
47961 COND_USE_XRC_1=""
47962 fi
47963
eb730a0c
JS
47964 COND_WINDOWS_IMPLIB_1="#"
47965 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47966 COND_WINDOWS_IMPLIB_1=""
47967 fi
47968
a848cd7e
SC
47969 COND_WITH_PLUGIN_SDL_1="#"
47970 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47971 COND_WITH_PLUGIN_SDL_1=""
47972 fi
47973
1e6eb025
VZ
47974 COND_WXUNIV_0="#"
47975 if test "x$WXUNIV" = "x0" ; then
47976 COND_WXUNIV_0=""
47977 fi
47978
a848cd7e
SC
47979 COND_WXUNIV_1="#"
47980 if test "x$WXUNIV" = "x1" ; then
47981 COND_WXUNIV_1=""
47982 fi
47983
47984 COND_WXUSE_EXPAT_BUILTIN="#"
47985 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
47986 COND_WXUSE_EXPAT_BUILTIN=""
47987 fi
47988
47989 COND_WXUSE_LIBJPEG_BUILTIN="#"
47990 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47991 COND_WXUSE_LIBJPEG_BUILTIN=""
47992 fi
47993
47994 COND_WXUSE_LIBPNG_BUILTIN="#"
47995 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47996 COND_WXUSE_LIBPNG_BUILTIN=""
47997 fi
47998
47999 COND_WXUSE_LIBTIFF_BUILTIN="#"
48000 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48001 COND_WXUSE_LIBTIFF_BUILTIN=""
48002 fi
48003
48004 COND_WXUSE_ODBC_BUILTIN="#"
48005 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48006 COND_WXUSE_ODBC_BUILTIN=""
48007 fi
48008
48009 COND_WXUSE_REGEX_BUILTIN="#"
48010 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48011 COND_WXUSE_REGEX_BUILTIN=""
48012 fi
48013
48014 COND_WXUSE_ZLIB_BUILTIN="#"
48015 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48016 COND_WXUSE_ZLIB_BUILTIN=""
48017 fi
48018
48019
48020
810b94f0
MW
48021 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48022 { { 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
48023echo "$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;}
48024 { (exit 1); exit 1; }; }
48025 fi
48026
2057db16
VS
48027 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48028 { { 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
48029echo "$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;}
48030 { (exit 1); exit 1; }; }
48031 fi
48032
a848cd7e 48033
7afc46ab
KO
48034
48035if test "$wxUSE_MAC" = 1 ; then
48036 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48037 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48038 mv temp bk-deps
48039 chmod +x bk-deps
48040 fi
48041fi
48042
ceec2216
RL
48043if test "$wxUSE_SHARED" = "yes"; then
48044
48045 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48046 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48047
5b674b9d
DE
48048 case "${host}" in
48049 *-pc-os2_emx | *-pc-os2-emx )
48050 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48051 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48052 cp -p ${srcdir}/src/os2/dllnames.sh .
48053 cp -p ${srcdir}/src/os2/dllar.sh .
48054 ;;
48055 esac
ceec2216
RL
48056else
48057
48058 EXE_LINKER="$CXX -o"
48059
48060fi
69120ee4
VZ
48061if test "$wxUSE_OMF" = "yes"; then
48062 case "${host}" in
48063 *-pc-os2_emx | *-pc-os2-emx )
48064 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48065 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48066 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48067 ;;
48068 esac
48069fi
a848cd7e 48070
c08ebc62 48071if test $GCC_PCH = 1 ; then
254e8e29 48072 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48073fi
a848cd7e 48074
5ff751d6 48075WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48076
48077SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48078
48079
48080
48081
48082
48083
48084
48085
48086
48087
48088
48089
48090
48091
48092
48093
48094
48095
48096
48097
48098
48099
48100
48101
48102
48103
48104
48105
48106
48107
48108
48109
48110
48111
48112
48113
48114
48115
48116
48117
48118
48119
a848cd7e
SC
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
a848cd7e
SC
48132
48133
ddd14b14 48134
370d2fd7 48135
8ced02f6 48136
a848cd7e
SC
48137
48138
48139echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48140echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48141set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48142if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48143 echo $ECHO_N "(cached) $ECHO_C" >&6
48144else
48145 cat >conftest.make <<\_ACEOF
48146all:
48147 @echo 'ac_maketemp="$(MAKE)"'
48148_ACEOF
48149# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48150eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48151if test -n "$ac_maketemp"; then
48152 eval ac_cv_prog_make_${ac_make}_set=yes
48153else
48154 eval ac_cv_prog_make_${ac_make}_set=no
48155fi
48156rm -f conftest.make
48157fi
48158if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48159 echo "$as_me:$LINENO: result: yes" >&5
48160echo "${ECHO_T}yes" >&6
48161 SET_MAKE=
48162else
48163 echo "$as_me:$LINENO: result: no" >&5
48164echo "${ECHO_T}no" >&6
48165 SET_MAKE="MAKE=${MAKE-make}"
48166fi
48167
48168
a848cd7e 48169
ceec2216
RL
48170 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48171
a848cd7e 48172
5c60e845
MW
48173if test "$USE_WIN32" = 1; then
48174 ac_config_commands="$ac_config_commands
48175 rcdefs.h
48176 "
48177
48178fi
48179
ceec2216 48180 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48181
a848cd7e 48182
ceec2216 48183 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48184
ceec2216
RL
48185
48186 ac_config_files="$ac_config_files version-script Makefile"
48187
48188
5c60e845 48189 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48190
48191
9103d280 48192
1c14217d 48193if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48194if test "$wxUSE_GUI" = "yes"; then
48195 SUBDIRS="samples demos utils contrib"
48196else SUBDIRS="samples utils"
48197fi
48198
48199
48200
48201# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48202if test "${with_cppunit_prefix+set}" = set; then
48203 withval="$with_cppunit_prefix"
48204 cppunit_config_prefix="$withval"
48205else
48206 cppunit_config_prefix=""
48207fi;
48208
48209# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48210if test "${with_cppunit_exec_prefix+set}" = set; then
48211 withval="$with_cppunit_exec_prefix"
48212 cppunit_config_exec_prefix="$withval"
48213else
48214 cppunit_config_exec_prefix=""
48215fi;
48216
48217 if test x$cppunit_config_exec_prefix != x ; then
48218 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48219 if test x${CPPUNIT_CONFIG+set} != xset ; then
48220 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48221 fi
48222 fi
48223 if test x$cppunit_config_prefix != x ; then
48224 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48225 if test x${CPPUNIT_CONFIG+set} != xset ; then
48226 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48227 fi
48228 fi
48229
48230 # Extract the first word of "cppunit-config", so it can be a program name with args.
48231set dummy cppunit-config; ac_word=$2
48232echo "$as_me:$LINENO: checking for $ac_word" >&5
48233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48234if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48235 echo $ECHO_N "(cached) $ECHO_C" >&6
48236else
48237 case $CPPUNIT_CONFIG in
48238 [\\/]* | ?:[\\/]*)
48239 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48240 ;;
48241 *)
48242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48243for as_dir in $PATH
48244do
48245 IFS=$as_save_IFS
48246 test -z "$as_dir" && as_dir=.
48247 for ac_exec_ext in '' $ac_executable_extensions; do
48248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48249 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48251 break 2
48252 fi
48253done
48254done
48255
48256 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48257 ;;
48258esac
48259fi
48260CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48261
48262if test -n "$CPPUNIT_CONFIG"; then
48263 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48264echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48265else
48266 echo "$as_me:$LINENO: result: no" >&5
48267echo "${ECHO_T}no" >&6
48268fi
48269
48270 cppunit_version_min=1.8.0
48271
48272 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48273echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48274 no_cppunit=""
48275 if test "$CPPUNIT_CONFIG" = "no" ; then
48276 no_cppunit=yes
48277 else
48278 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48279 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48280 cppunit_version=`$CPPUNIT_CONFIG --version`
48281
48282 cppunit_major_version=`echo $cppunit_version | \
48283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48284 cppunit_minor_version=`echo $cppunit_version | \
48285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48286 cppunit_micro_version=`echo $cppunit_version | \
48287 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48288
48289 cppunit_major_min=`echo $cppunit_version_min | \
48290 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48291 cppunit_minor_min=`echo $cppunit_version_min | \
48292 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48293 cppunit_micro_min=`echo $cppunit_version_min | \
48294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48295
48296 cppunit_version_proper=`expr \
48297 $cppunit_major_version \> $cppunit_major_min \| \
48298 $cppunit_major_version \= $cppunit_major_min \& \
48299 $cppunit_minor_version \> $cppunit_minor_min \| \
48300 $cppunit_major_version \= $cppunit_major_min \& \
48301 $cppunit_minor_version \= $cppunit_minor_min \& \
48302 $cppunit_micro_version \>= $cppunit_micro_min `
48303
48304 if test "$cppunit_version_proper" = "1" ; then
48305 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48306echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48307 else
48308 echo "$as_me:$LINENO: result: no" >&5
48309echo "${ECHO_T}no" >&6
48310 no_cppunit=yes
48311 fi
48312 fi
48313
48314 if test "x$no_cppunit" = x ; then
c2218763 48315 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48316 else
48317 CPPUNIT_CFLAGS=""
48318 CPPUNIT_LIBS=""
c2218763 48319 :
a848cd7e
SC
48320 fi
48321
48322
48323
48324
48325
48326for subdir in `echo $SUBDIRS`; do
48327 if test -d ${srcdir}/${subdir} ; then
48328 if test "$wxUSE_GUI" = "yes"; then
48329 if test ${subdir} = "samples"; then
48330 makefiles="samples/Makefile.in $makefiles"
48331 for sample in `echo $SAMPLES_SUBDIRS`; do
48332 if test -d $srcdir/samples/$sample; then
48333 makefiles="samples/$sample/Makefile.in $makefiles"
48334 fi
48335 done
9c112555
MW
48336 else
48337 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48338 eval "disabled=\$$disabled_var"
48339 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48340 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48341 fi
48342 else if test ${subdir} = "samples"; then
48343 makefiles="samples/Makefile.in samples/console/Makefile.in"
48344 elif test ${subdir} = "utils"; then
6537ccf8
VS
48345 makefiles=""
48346 for util in HelpGen tex2rtf ; do
48347 if test -d $srcdir/utils/$util ; then
48348 makefiles="utils/$util/Makefile.in \
48349 utils/$util/src/Makefile.in \
48350 $makefiles"
48351 fi
48352 done
a848cd7e
SC
48353 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48354 fi
48355 fi
48356
48357 for mkin in $makefiles ; do
48358 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48359 ac_config_files="$ac_config_files $mk"
48360
48361 done
48362 fi
48363done
1c14217d 48364fi
a848cd7e
SC
48365cat >confcache <<\_ACEOF
48366# This file is a shell script that caches the results of configure
48367# tests run on this system so they can be shared between configure
48368# scripts and configure runs, see configure's option --config-cache.
48369# It is not useful on other systems. If it contains results you don't
48370# want to keep, you may remove or edit it.
48371#
48372# config.status only pays attention to the cache file if you give it
48373# the --recheck option to rerun configure.
48374#
48375# `ac_cv_env_foo' variables (set or unset) will be overridden when
48376# loading this file, other *unset* `ac_cv_foo' will be assigned the
48377# following values.
48378
48379_ACEOF
48380
48381# The following way of writing the cache mishandles newlines in values,
48382# but we know of no workaround that is simple, portable, and efficient.
48383# So, don't put newlines in cache variables' values.
48384# Ultrix sh set writes to stderr and can't be redirected directly,
48385# and sets the high bit in the cache file unless we assign to the vars.
48386{
48387 (set) 2>&1 |
48388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48389 *ac_space=\ *)
48390 # `set' does not quote correctly, so add quotes (double-quote
48391 # substitution turns \\\\ into \\, and sed turns \\ into \).
48392 sed -n \
ac1cb8d3
VS
48393 "s/'/'\\\\''/g;
48394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48395 ;;
48396 *)
48397 # `set' quotes correctly as required by POSIX, so do not add quotes.
48398 sed -n \
ac1cb8d3 48399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48400 ;;
48401 esac;
48402} |
48403 sed '
48404 t clear
48405 : clear
48406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48407 t end
48408 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48409 : end' >>confcache
48410if diff $cache_file confcache >/dev/null 2>&1; then :; else
48411 if test -w $cache_file; then
48412 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48413 cat confcache >$cache_file
48414 else
48415 echo "not updating unwritable cache $cache_file"
48416 fi
48417fi
48418rm -f confcache
48419
48420test "x$prefix" = xNONE && prefix=$ac_default_prefix
48421# Let make expand exec_prefix.
48422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48423
48424# VPATH may cause trouble with some makes, so we remove $(srcdir),
48425# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48426# trailing colons and then remove the whole line if VPATH becomes empty
48427# (actually we leave an empty line to preserve line numbers).
48428if test "x$srcdir" = x.; then
ac1cb8d3 48429 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48430s/:*\$(srcdir):*/:/;
48431s/:*\${srcdir}:*/:/;
48432s/:*@srcdir@:*/:/;
ac1cb8d3 48433s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48434s/:*$//;
ac1cb8d3 48435s/^[^=]*=[ ]*$//;
a848cd7e
SC
48436}'
48437fi
48438
48439DEFS=-DHAVE_CONFIG_H
48440
48441ac_libobjs=
48442ac_ltlibobjs=
48443for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48444 # 1. Remove the extension, and $U if already installed.
48445 ac_i=`echo "$ac_i" |
ac1cb8d3 48446 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48447 # 2. Add them.
48448 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48449 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48450done
48451LIBOBJS=$ac_libobjs
48452
48453LTLIBOBJS=$ac_ltlibobjs
48454
48455
48456
48457: ${CONFIG_STATUS=./config.status}
48458ac_clean_files_save=$ac_clean_files
48459ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48460{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48461echo "$as_me: creating $CONFIG_STATUS" >&6;}
48462cat >$CONFIG_STATUS <<_ACEOF
48463#! $SHELL
48464# Generated by $as_me.
48465# Run this file to recreate the current configuration.
48466# Compiler output produced by configure, useful for debugging
48467# configure, is in config.log if it exists.
48468
48469debug=false
48470ac_cs_recheck=false
48471ac_cs_silent=false
48472SHELL=\${CONFIG_SHELL-$SHELL}
48473_ACEOF
48474
48475cat >>$CONFIG_STATUS <<\_ACEOF
48476## --------------------- ##
48477## M4sh Initialization. ##
48478## --------------------- ##
48479
48480# Be Bourne compatible
48481if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48482 emulate sh
48483 NULLCMD=:
48484 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48485 # is contrary to our usage. Disable this feature.
48486 alias -g '${1+"$@"}'='"$@"'
48487elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48488 set -o posix
48489fi
ac1cb8d3 48490DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48491
48492# Support unset when possible.
ac1cb8d3 48493if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48494 as_unset=unset
48495else
48496 as_unset=false
48497fi
48498
48499
48500# Work around bugs in pre-3.0 UWIN ksh.
48501$as_unset ENV MAIL MAILPATH
48502PS1='$ '
48503PS2='> '
48504PS4='+ '
48505
48506# NLS nuisances.
48507for as_var in \
48508 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48509 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48510 LC_TELEPHONE LC_TIME
48511do
ac1cb8d3 48512 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48513 eval $as_var=C; export $as_var
48514 else
48515 $as_unset $as_var
48516 fi
48517done
48518
48519# Required to use basename.
48520if expr a : '\(a\)' >/dev/null 2>&1; then
48521 as_expr=expr
48522else
48523 as_expr=false
48524fi
48525
48526if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48527 as_basename=basename
48528else
48529 as_basename=false
48530fi
48531
48532
48533# Name of the executable.
48534as_me=`$as_basename "$0" ||
48535$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48536 X"$0" : 'X\(//\)$' \| \
48537 X"$0" : 'X\(/\)$' \| \
48538 . : '\(.\)' 2>/dev/null ||
48539echo X/"$0" |
48540 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48541 /^X\/\(\/\/\)$/{ s//\1/; q; }
48542 /^X\/\(\/\).*/{ s//\1/; q; }
48543 s/.*/./; q'`
48544
48545
48546# PATH needs CR, and LINENO needs CR and PATH.
48547# Avoid depending upon Character Ranges.
48548as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48549as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48550as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48551as_cr_digits='0123456789'
48552as_cr_alnum=$as_cr_Letters$as_cr_digits
48553
48554# The user is always right.
48555if test "${PATH_SEPARATOR+set}" != set; then
48556 echo "#! /bin/sh" >conf$$.sh
48557 echo "exit 0" >>conf$$.sh
48558 chmod +x conf$$.sh
48559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48560 PATH_SEPARATOR=';'
48561 else
48562 PATH_SEPARATOR=:
48563 fi
48564 rm -f conf$$.sh
48565fi
48566
48567
48568 as_lineno_1=$LINENO
48569 as_lineno_2=$LINENO
48570 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48571 test "x$as_lineno_1" != "x$as_lineno_2" &&
48572 test "x$as_lineno_3" = "x$as_lineno_2" || {
48573 # Find who we are. Look in the path if we contain no path at all
48574 # relative or not.
48575 case $0 in
48576 *[\\/]* ) as_myself=$0 ;;
48577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48578for as_dir in $PATH
48579do
48580 IFS=$as_save_IFS
48581 test -z "$as_dir" && as_dir=.
48582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48583done
48584
48585 ;;
48586 esac
48587 # We did not find ourselves, most probably we were run as `sh COMMAND'
48588 # in which case we are not to be found in the path.
48589 if test "x$as_myself" = x; then
48590 as_myself=$0
48591 fi
48592 if test ! -f "$as_myself"; then
48593 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48594echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48595 { (exit 1); exit 1; }; }
48596 fi
48597 case $CONFIG_SHELL in
48598 '')
48599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48600for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48601do
48602 IFS=$as_save_IFS
48603 test -z "$as_dir" && as_dir=.
48604 for as_base in sh bash ksh sh5; do
48605 case $as_dir in
48606 /*)
48607 if ("$as_dir/$as_base" -c '
48608 as_lineno_1=$LINENO
48609 as_lineno_2=$LINENO
48610 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48611 test "x$as_lineno_1" != "x$as_lineno_2" &&
48612 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48613 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48614 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48615 CONFIG_SHELL=$as_dir/$as_base
48616 export CONFIG_SHELL
48617 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48618 fi;;
48619 esac
48620 done
48621done
48622;;
48623 esac
48624
48625 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48626 # uniformly replaced by the line number. The first 'sed' inserts a
48627 # line-number line before each line; the second 'sed' does the real
48628 # work. The second script uses 'N' to pair each line-number line
48629 # with the numbered line, and appends trailing '-' during
48630 # substitution so that $LINENO is not a special case at line end.
48631 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48632 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48633 sed '=' <$as_myself |
48634 sed '
48635 N
48636 s,$,-,
48637 : loop
48638 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48639 t loop
48640 s,-$,,
48641 s,^['$as_cr_digits']*\n,,
48642 ' >$as_me.lineno &&
48643 chmod +x $as_me.lineno ||
48644 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48645echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48646 { (exit 1); exit 1; }; }
48647
48648 # Don't try to exec as it changes $[0], causing all sort of problems
48649 # (the dirname of $[0] is not the place where we might find the
48650 # original and so on. Autoconf is especially sensible to this).
48651 . ./$as_me.lineno
48652 # Exit status is that of the last command.
48653 exit
48654}
48655
48656
48657case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48658 *c*,-n*) ECHO_N= ECHO_C='
48659' ECHO_T=' ' ;;
48660 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48661 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48662esac
48663
48664if expr a : '\(a\)' >/dev/null 2>&1; then
48665 as_expr=expr
48666else
48667 as_expr=false
48668fi
48669
48670rm -f conf$$ conf$$.exe conf$$.file
48671echo >conf$$.file
48672if ln -s conf$$.file conf$$ 2>/dev/null; then
48673 # We could just check for DJGPP; but this test a) works b) is more generic
48674 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48675 if test -f conf$$.exe; then
48676 # Don't use ln at all; we don't have any links
48677 as_ln_s='cp -p'
48678 else
48679 as_ln_s='ln -s'
48680 fi
48681elif ln conf$$.file conf$$ 2>/dev/null; then
48682 as_ln_s=ln
48683else
48684 as_ln_s='cp -p'
48685fi
48686rm -f conf$$ conf$$.exe conf$$.file
48687
48688if mkdir -p . 2>/dev/null; then
48689 as_mkdir_p=:
48690else
ac1cb8d3 48691 test -d ./-p && rmdir ./-p
a848cd7e
SC
48692 as_mkdir_p=false
48693fi
48694
48695as_executable_p="test -f"
48696
48697# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48698as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48699
48700# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48701as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48702
48703
48704# IFS
48705# We need space, tab and new line, in precisely that order.
48706as_nl='
48707'
48708IFS=" $as_nl"
48709
48710# CDPATH.
48711$as_unset CDPATH
48712
48713exec 6>&1
48714
48715# Open the log real soon, to keep \$[0] and so on meaningful, and to
48716# report actual input values of CONFIG_FILES etc. instead of their
48717# values after options handling. Logging --version etc. is OK.
48718exec 5>>config.log
48719{
48720 echo
48721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48722## Running $as_me. ##
48723_ASBOX
48724} >&5
48725cat >&5 <<_CSEOF
48726
dd8df4fc 48727This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48728generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48729
48730 CONFIG_FILES = $CONFIG_FILES
48731 CONFIG_HEADERS = $CONFIG_HEADERS
48732 CONFIG_LINKS = $CONFIG_LINKS
48733 CONFIG_COMMANDS = $CONFIG_COMMANDS
48734 $ $0 $@
48735
48736_CSEOF
48737echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48738echo >&5
48739_ACEOF
48740
48741# Files that config.status was made for.
48742if test -n "$ac_config_files"; then
48743 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48744fi
48745
48746if test -n "$ac_config_headers"; then
48747 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48748fi
48749
48750if test -n "$ac_config_links"; then
48751 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48752fi
48753
48754if test -n "$ac_config_commands"; then
48755 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48756fi
48757
48758cat >>$CONFIG_STATUS <<\_ACEOF
48759
48760ac_cs_usage="\
48761\`$as_me' instantiates files from templates according to the
48762current configuration.
48763
48764Usage: $0 [OPTIONS] [FILE]...
48765
48766 -h, --help print this help, then exit
48767 -V, --version print version number, then exit
48768 -q, --quiet do not print progress messages
48769 -d, --debug don't remove temporary files
48770 --recheck update $as_me by reconfiguring in the same conditions
48771 --file=FILE[:TEMPLATE]
ac1cb8d3 48772 instantiate the configuration file FILE
a848cd7e 48773 --header=FILE[:TEMPLATE]
ac1cb8d3 48774 instantiate the configuration header FILE
a848cd7e
SC
48775
48776Configuration files:
48777$config_files
48778
48779Configuration headers:
48780$config_headers
48781
48782Configuration commands:
48783$config_commands
48784
48785Report bugs to <bug-autoconf@gnu.org>."
48786_ACEOF
48787
48788cat >>$CONFIG_STATUS <<_ACEOF
48789ac_cs_version="\\
dd8df4fc 48790wxWidgets config.status 2.7.0
ac1cb8d3 48791configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48792 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48793
ac1cb8d3 48794Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48795This config.status script is free software; the Free Software Foundation
48796gives unlimited permission to copy, distribute and modify it."
48797srcdir=$srcdir
48798INSTALL="$INSTALL"
48799_ACEOF
48800
48801cat >>$CONFIG_STATUS <<\_ACEOF
48802# If no file are specified by the user, then we need to provide default
48803# value. By we need to know if files were specified by the user.
48804ac_need_defaults=:
48805while test $# != 0
48806do
48807 case $1 in
48808 --*=*)
48809 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48810 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48811 ac_shift=:
48812 ;;
48813 -*)
48814 ac_option=$1
48815 ac_optarg=$2
48816 ac_shift=shift
48817 ;;
48818 *) # This is not an option, so the user has probably given explicit
48819 # arguments.
48820 ac_option=$1
48821 ac_need_defaults=false;;
48822 esac
48823
48824 case $ac_option in
48825 # Handling of the options.
48826_ACEOF
48827cat >>$CONFIG_STATUS <<\_ACEOF
48828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48829 ac_cs_recheck=: ;;
48830 --version | --vers* | -V )
48831 echo "$ac_cs_version"; exit 0 ;;
48832 --he | --h)
48833 # Conflict between --help and --header
48834 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48835Try \`$0 --help' for more information." >&5
48836echo "$as_me: error: ambiguous option: $1
48837Try \`$0 --help' for more information." >&2;}
48838 { (exit 1); exit 1; }; };;
48839 --help | --hel | -h )
48840 echo "$ac_cs_usage"; exit 0 ;;
48841 --debug | --d* | -d )
48842 debug=: ;;
48843 --file | --fil | --fi | --f )
48844 $ac_shift
48845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48846 ac_need_defaults=false;;
48847 --header | --heade | --head | --hea )
48848 $ac_shift
48849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48850 ac_need_defaults=false;;
48851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48853 ac_cs_silent=: ;;
48854
48855 # This is an error.
48856 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48857Try \`$0 --help' for more information." >&5
48858echo "$as_me: error: unrecognized option: $1
48859Try \`$0 --help' for more information." >&2;}
48860 { (exit 1); exit 1; }; } ;;
48861
48862 *) ac_config_targets="$ac_config_targets $1" ;;
48863
48864 esac
48865 shift
48866done
48867
48868ac_configure_extra_args=
48869
48870if $ac_cs_silent; then
48871 exec 6>/dev/null
48872 ac_configure_extra_args="$ac_configure_extra_args --silent"
48873fi
48874
48875_ACEOF
48876cat >>$CONFIG_STATUS <<_ACEOF
48877if \$ac_cs_recheck; then
48878 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48879 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48880fi
48881
48882_ACEOF
48883
48884cat >>$CONFIG_STATUS <<_ACEOF
48885#
48886# INIT-COMMANDS section.
48887#
48888
5c60e845
MW
48889
48890 CPP="$CPP"
48891 infile="$srcdir/include/wx/msw/genrcdefs.h"
48892 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48893
48894
ceec2216
RL
48895 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48896 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48897 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48898 LN_S="${LN_S}"
a848cd7e
SC
48899
48900
48901_ACEOF
48902
48903
48904
48905cat >>$CONFIG_STATUS <<\_ACEOF
48906for ac_config_target in $ac_config_targets
48907do
48908 case "$ac_config_target" in
48909 # Handling of arguments.
ceec2216
RL
48910 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48911 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48912 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48913 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48914 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48915 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48916 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48917 "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
48918 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48919echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48920 { (exit 1); exit 1; }; };;
48921 esac
48922done
48923
48924# If the user did not use the arguments to specify the items to instantiate,
48925# then the envvar interface is used. Set only those that are not.
48926# We use the long form for the default assignment because of an extremely
48927# bizarre bug on SunOS 4.1.3.
48928if $ac_need_defaults; then
48929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48932fi
48933
48934# Have a temporary directory for convenience. Make it in the build tree
48935# simply because there is no reason to put it here, and in addition,
48936# creating and moving files from /tmp can sometimes cause problems.
48937# Create a temporary directory, and hook for its removal unless debugging.
48938$debug ||
48939{
48940 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48941 trap '{ (exit 1); exit 1; }' 1 2 13 15
48942}
48943
48944# Create a (secure) tmp directory for tmp files.
48945
48946{
48947 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48948 test -n "$tmp" && test -d "$tmp"
48949} ||
48950{
48951 tmp=./confstat$$-$RANDOM
48952 (umask 077 && mkdir $tmp)
48953} ||
48954{
48955 echo "$me: cannot create a temporary directory in ." >&2
48956 { (exit 1); exit 1; }
48957}
48958
48959_ACEOF
48960
48961cat >>$CONFIG_STATUS <<_ACEOF
48962
48963#
48964# CONFIG_FILES section.
48965#
48966
48967# No need to generate the scripts if there are no CONFIG_FILES.
48968# This happens for instance when ./config.status config.h
48969if test -n "\$CONFIG_FILES"; then
48970 # Protect against being on the right side of a sed subst in config.status.
48971 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48972 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48973s,@SHELL@,$SHELL,;t t
48974s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48975s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48976s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48977s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48978s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48979s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48980s,@exec_prefix@,$exec_prefix,;t t
48981s,@prefix@,$prefix,;t t
48982s,@program_transform_name@,$program_transform_name,;t t
48983s,@bindir@,$bindir,;t t
48984s,@sbindir@,$sbindir,;t t
48985s,@libexecdir@,$libexecdir,;t t
48986s,@datadir@,$datadir,;t t
48987s,@sysconfdir@,$sysconfdir,;t t
48988s,@sharedstatedir@,$sharedstatedir,;t t
48989s,@localstatedir@,$localstatedir,;t t
48990s,@libdir@,$libdir,;t t
48991s,@includedir@,$includedir,;t t
48992s,@oldincludedir@,$oldincludedir,;t t
48993s,@infodir@,$infodir,;t t
48994s,@mandir@,$mandir,;t t
48995s,@build_alias@,$build_alias,;t t
48996s,@host_alias@,$host_alias,;t t
48997s,@target_alias@,$target_alias,;t t
48998s,@DEFS@,$DEFS,;t t
48999s,@ECHO_C@,$ECHO_C,;t t
49000s,@ECHO_N@,$ECHO_N,;t t
49001s,@ECHO_T@,$ECHO_T,;t t
49002s,@LIBS@,$LIBS,;t t
49003s,@build@,$build,;t t
49004s,@build_cpu@,$build_cpu,;t t
49005s,@build_vendor@,$build_vendor,;t t
49006s,@build_os@,$build_os,;t t
49007s,@host@,$host,;t t
49008s,@host_cpu@,$host_cpu,;t t
49009s,@host_vendor@,$host_vendor,;t t
49010s,@host_os@,$host_os,;t t
49011s,@target@,$target,;t t
49012s,@target_cpu@,$target_cpu,;t t
49013s,@target_vendor@,$target_vendor,;t t
49014s,@target_os@,$target_os,;t t
49015s,@CC@,$CC,;t t
49016s,@CFLAGS@,$CFLAGS,;t t
49017s,@LDFLAGS@,$LDFLAGS,;t t
49018s,@CPPFLAGS@,$CPPFLAGS,;t t
49019s,@ac_ct_CC@,$ac_ct_CC,;t t
49020s,@EXEEXT@,$EXEEXT,;t t
49021s,@OBJEXT@,$OBJEXT,;t t
49022s,@CPP@,$CPP,;t t
49023s,@EGREP@,$EGREP,;t t
49024s,@CXX@,$CXX,;t t
49025s,@CXXFLAGS@,$CXXFLAGS,;t t
49026s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49027s,@RANLIB@,$RANLIB,;t t
49028s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49029s,@AR@,$AR,;t t
8c80d384 49030s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49031s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49032s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49033s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49034s,@STRIP@,$STRIP,;t t
8c80d384 49035s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49036s,@WINDRES@,$WINDRES,;t t
49037s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49038s,@DLLTOOL@,$DLLTOOL,;t t
49039s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49040s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49041s,@LN_S@,$LN_S,;t t
49042s,@CXXCPP@,$CXXCPP,;t t
49043s,@subdirs@,$subdirs,;t t
49044s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49045s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49046s,@GTK_LIBS@,$GTK_LIBS,;t t
49047s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49048s,@X_CFLAGS@,$X_CFLAGS,;t t
49049s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49050s,@X_LIBS@,$X_LIBS,;t t
49051s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49052s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49053s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49054s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49055s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49056s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49057s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49058s,@REZ@,$REZ,;t t
a848cd7e
SC
49059s,@DEREZ@,$DEREZ,;t t
49060s,@SETFILE@,$SETFILE,;t t
49061s,@LIBICONV@,$LIBICONV,;t t
49062s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49063s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49064s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49065s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49066s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49067s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49068s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49069s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49070s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49071s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49072s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49073s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49074s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49075s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49076s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49077s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49078s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49079s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49080s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49081s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49082s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49083s,@VENDOR@,$VENDOR,;t t
49084s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49085s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49086s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49087s,@WXUNIV@,$WXUNIV,;t t
49088s,@MONOLITHIC@,$MONOLITHIC,;t t
49089s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49090s,@EXTRALIBS@,$EXTRALIBS,;t t
49091s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49092s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49093s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49094s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49095s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49096s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49097s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49098s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49099s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49100s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49101s,@UNICODE@,$UNICODE,;t t
49102s,@BUILD@,$BUILD,;t t
49103s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49104s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49105s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49106s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49107s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49108s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49109s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49110s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49111s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49112s,@SET_MAKE@,$SET_MAKE,;t t
49113s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49114s,@NM@,$NM,;t t
49115s,@ac_ct_NM@,$ac_ct_NM,;t t
49116s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49117s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49118s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49119s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49120s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49121s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49122s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49123s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49124s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49125s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49126s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49127s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49128s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49129s,@LIBPREFIX@,$LIBPREFIX,;t t
49130s,@LIBEXT@,$LIBEXT,;t t
49131s,@DLLPREFIX@,$DLLPREFIX,;t t
49132s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49133s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49134s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49135s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49136s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49137s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49138s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49139s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49140s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49141s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49142s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49143s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49144s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49145s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49146s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49147s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49148s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49149s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49150s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49151s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49152s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49153s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49154s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49155s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49156s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49157s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49158s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49159s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49160s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49161s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49162s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49163s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49164s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49165s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49166s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49167s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49168s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49169s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49170s,@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 49171s,@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 49172s,@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 49173s,@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 49174s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49175s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49176s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49177s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49178s,@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 49179s,@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 49180s,@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 49181s,@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 49182s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49183s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49184s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49185s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49186s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49187s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49188s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49189s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49190s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49191s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49192s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49193s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49194s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49195s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49196s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49197s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49198s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49199s,@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
49200s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49201s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49202s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49203s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49204s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49205s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49206s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49207s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49208s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49209s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49210s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49211s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49212s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49213s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49214s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49215s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49216s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49217s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49218s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49219s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49220s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49221s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49222s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49223s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49224s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49225s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49226s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49227s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49228s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49229s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49230s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49231s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49232s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49233s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49234s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49235s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49236s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49237s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49238s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49239s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49240s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49241s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49242s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49243s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49244s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49245s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49246s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49247s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49248s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49249s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49250s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49251s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49252s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49253s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49254s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49255s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49256s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49257s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49258s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49259s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49260s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49261s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49262s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49263s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49264s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49265s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49266s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49267s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49268s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49269s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49270s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49271s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49272s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49273s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49274s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49275s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49276s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49277s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49278s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49279s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49280s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49281s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49282s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49283s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49284s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49285s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49286s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49287s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49288s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49289s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49290s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49291s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49292s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49293s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49294s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49295s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49296s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49297s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49298s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49299s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49300s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49301s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49302s,@USE_GUI@,$USE_GUI,;t t
49303s,@AFMINSTALL@,$AFMINSTALL,;t t
49304s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49305s,@TOOLKIT@,$TOOLKIT,;t t
49306s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49307s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49308s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49309s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49310s,@WIDGET_SET@,$WIDGET_SET,;t t
49311s,@WX_RELEASE@,$WX_RELEASE,;t t
49312s,@WX_VERSION@,$WX_VERSION,;t t
49313s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49314s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49315s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49316s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49317s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49318s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49319s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49320s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49321s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49322s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49323s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49324s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49325s,@DISTDIR@,$DISTDIR,;t t
49326s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49327s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49328s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49329s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49330s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49331s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49332s,@RESFLAGS@,$RESFLAGS,;t t
49333s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49334s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49335s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49336s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49337s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49338s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49339s,@GCC@,$GCC,;t t
a848cd7e
SC
49340s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49341s,@LIBOBJS@,$LIBOBJS,;t t
49342s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49343CEOF
49344
49345_ACEOF
49346
49347 cat >>$CONFIG_STATUS <<\_ACEOF
49348 # Split the substitutions into bite-sized pieces for seds with
49349 # small command number limits, like on Digital OSF/1 and HP-UX.
49350 ac_max_sed_lines=48
49351 ac_sed_frag=1 # Number of current file.
49352 ac_beg=1 # First line for current file.
49353 ac_end=$ac_max_sed_lines # Line after last line for current file.
49354 ac_more_lines=:
49355 ac_sed_cmds=
49356 while $ac_more_lines; do
49357 if test $ac_beg -gt 1; then
49358 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49359 else
49360 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49361 fi
49362 if test ! -s $tmp/subs.frag; then
49363 ac_more_lines=false
49364 else
49365 # The purpose of the label and of the branching condition is to
49366 # speed up the sed processing (if there are no `@' at all, there
49367 # is no need to browse any of the substitutions).
49368 # These are the two extra sed commands mentioned above.
49369 (echo ':t
49370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49371 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49372 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49373 else
ac1cb8d3 49374 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49375 fi
49376 ac_sed_frag=`expr $ac_sed_frag + 1`
49377 ac_beg=$ac_end
49378 ac_end=`expr $ac_end + $ac_max_sed_lines`
49379 fi
49380 done
49381 if test -z "$ac_sed_cmds"; then
49382 ac_sed_cmds=cat
49383 fi
49384fi # test -n "$CONFIG_FILES"
49385
49386_ACEOF
49387cat >>$CONFIG_STATUS <<\_ACEOF
49388for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49390 case $ac_file in
49391 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49392 cat >$tmp/stdin
49393 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49395 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49397 * ) ac_file_in=$ac_file.in ;;
49398 esac
49399
49400 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49403 X"$ac_file" : 'X\(//\)[^/]' \| \
49404 X"$ac_file" : 'X\(//\)$' \| \
49405 X"$ac_file" : 'X\(/\)' \| \
49406 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49407echo X"$ac_file" |
49408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49410 /^X\(\/\/\)$/{ s//\1/; q; }
49411 /^X\(\/\).*/{ s//\1/; q; }
49412 s/.*/./; q'`
49413 { if $as_mkdir_p; then
49414 mkdir -p "$ac_dir"
49415 else
49416 as_dir="$ac_dir"
49417 as_dirs=
49418 while test ! -d "$as_dir"; do
49419 as_dirs="$as_dir $as_dirs"
49420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49422 X"$as_dir" : 'X\(//\)[^/]' \| \
49423 X"$as_dir" : 'X\(//\)$' \| \
49424 X"$as_dir" : 'X\(/\)' \| \
49425 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49426echo X"$as_dir" |
49427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49429 /^X\(\/\/\)$/{ s//\1/; q; }
49430 /^X\(\/\).*/{ s//\1/; q; }
49431 s/.*/./; q'`
49432 done
49433 test ! -n "$as_dirs" || mkdir $as_dirs
49434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49435echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49436 { (exit 1); exit 1; }; }; }
49437
49438 ac_builddir=.
49439
49440if test "$ac_dir" != .; then
49441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49442 # A "../" for each directory in $ac_dir_suffix.
49443 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49444else
49445 ac_dir_suffix= ac_top_builddir=
49446fi
49447
49448case $srcdir in
49449 .) # No --srcdir option. We are building in place.
49450 ac_srcdir=.
49451 if test -z "$ac_top_builddir"; then
49452 ac_top_srcdir=.
49453 else
49454 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49455 fi ;;
49456 [\\/]* | ?:[\\/]* ) # Absolute path.
49457 ac_srcdir=$srcdir$ac_dir_suffix;
49458 ac_top_srcdir=$srcdir ;;
49459 *) # Relative path.
49460 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49461 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49462esac
ac1cb8d3
VS
49463
49464# Do not use `cd foo && pwd` to compute absolute paths, because
49465# the directories may not exist.
49466case `pwd` in
49467.) ac_abs_builddir="$ac_dir";;
49468*)
49469 case "$ac_dir" in
49470 .) ac_abs_builddir=`pwd`;;
49471 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49472 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49473 esac;;
49474esac
49475case $ac_abs_builddir in
49476.) ac_abs_top_builddir=${ac_top_builddir}.;;
49477*)
49478 case ${ac_top_builddir}. in
49479 .) ac_abs_top_builddir=$ac_abs_builddir;;
49480 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49481 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49482 esac;;
49483esac
49484case $ac_abs_builddir in
49485.) ac_abs_srcdir=$ac_srcdir;;
49486*)
49487 case $ac_srcdir in
49488 .) ac_abs_srcdir=$ac_abs_builddir;;
49489 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49490 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49491 esac;;
49492esac
49493case $ac_abs_builddir in
49494.) ac_abs_top_srcdir=$ac_top_srcdir;;
49495*)
49496 case $ac_top_srcdir in
49497 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49498 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49499 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49500 esac;;
49501esac
a848cd7e
SC
49502
49503
49504 case $INSTALL in
49505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49506 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49507 esac
49508
a848cd7e
SC
49509 # Let's still pretend it is `configure' which instantiates (i.e., don't
49510 # use $as_me), people would be surprised to read:
49511 # /* config.h. Generated by config.status. */
49512 if test x"$ac_file" = x-; then
49513 configure_input=
49514 else
49515 configure_input="$ac_file. "
49516 fi
49517 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49518 sed 's,.*/,,'` by configure."
a848cd7e
SC
49519
49520 # First look for the input files in the build tree, otherwise in the
49521 # src tree.
49522 ac_file_inputs=`IFS=:
49523 for f in $ac_file_in; do
49524 case $f in
49525 -) echo $tmp/stdin ;;
49526 [\\/$]*)
ac1cb8d3
VS
49527 # Absolute (can't be DOS-style, as IFS=:)
49528 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49529echo "$as_me: error: cannot find input file: $f" >&2;}
49530 { (exit 1); exit 1; }; }
ac1cb8d3 49531 echo "$f";;
a848cd7e 49532 *) # Relative
ac1cb8d3
VS
49533 if test -f "$f"; then
49534 # Build tree
49535 echo "$f"
49536 elif test -f "$srcdir/$f"; then
49537 # Source tree
49538 echo "$srcdir/$f"
49539 else
49540 # /dev/null tree
49541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49542echo "$as_me: error: cannot find input file: $f" >&2;}
49543 { (exit 1); exit 1; }; }
ac1cb8d3 49544 fi;;
a848cd7e
SC
49545 esac
49546 done` || { (exit 1); exit 1; }
6954625c
VZ
49547
49548 if test x"$ac_file" != x-; then
49549 { echo "$as_me:$LINENO: creating $ac_file" >&5
49550echo "$as_me: creating $ac_file" >&6;}
49551 rm -f "$ac_file"
49552 fi
a848cd7e
SC
49553_ACEOF
49554cat >>$CONFIG_STATUS <<_ACEOF
49555 sed "$ac_vpsub
49556$extrasub
49557_ACEOF
49558cat >>$CONFIG_STATUS <<\_ACEOF
49559:t
49560/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49561s,@configure_input@,$configure_input,;t t
49562s,@srcdir@,$ac_srcdir,;t t
49563s,@abs_srcdir@,$ac_abs_srcdir,;t t
49564s,@top_srcdir@,$ac_top_srcdir,;t t
49565s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49566s,@builddir@,$ac_builddir,;t t
49567s,@abs_builddir@,$ac_abs_builddir,;t t
49568s,@top_builddir@,$ac_top_builddir,;t t
49569s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49570s,@INSTALL@,$ac_INSTALL,;t t
49571" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49572 rm -f $tmp/stdin
49573 if test x"$ac_file" != x-; then
49574 mv $tmp/out $ac_file
49575 else
49576 cat $tmp/out
49577 rm -f $tmp/out
49578 fi
49579
ceec2216
RL
49580 # Run the commands associated with the file.
49581 case $ac_file in
49582 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49583 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49584 esac
a848cd7e
SC
49585done
49586_ACEOF
49587cat >>$CONFIG_STATUS <<\_ACEOF
49588
49589#
49590# CONFIG_HEADER section.
49591#
49592
49593# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49594# NAME is the cpp macro being defined and VALUE is the value it is being given.
49595#
49596# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49597ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49598ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49599ac_dC=' '
49600ac_dD=',;t'
49601# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49602ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49603ac_uB='$,\1#\2define\3'
49604ac_uC=' '
49605ac_uD=',;t'
49606
49607for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49608 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49609 case $ac_file in
49610 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49611 cat >$tmp/stdin
49612 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49614 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49616 * ) ac_file_in=$ac_file.in ;;
49617 esac
49618
49619 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49620echo "$as_me: creating $ac_file" >&6;}
49621
49622 # First look for the input files in the build tree, otherwise in the
49623 # src tree.
49624 ac_file_inputs=`IFS=:
49625 for f in $ac_file_in; do
49626 case $f in
49627 -) echo $tmp/stdin ;;
49628 [\\/$]*)
ac1cb8d3
VS
49629 # Absolute (can't be DOS-style, as IFS=:)
49630 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49631echo "$as_me: error: cannot find input file: $f" >&2;}
49632 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49633 # Do quote $f, to prevent DOS paths from being IFS'd.
49634 echo "$f";;
a848cd7e 49635 *) # Relative
ac1cb8d3
VS
49636 if test -f "$f"; then
49637 # Build tree
49638 echo "$f"
49639 elif test -f "$srcdir/$f"; then
49640 # Source tree
49641 echo "$srcdir/$f"
49642 else
49643 # /dev/null tree
49644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49645echo "$as_me: error: cannot find input file: $f" >&2;}
49646 { (exit 1); exit 1; }; }
ac1cb8d3 49647 fi;;
a848cd7e
SC
49648 esac
49649 done` || { (exit 1); exit 1; }
49650 # Remove the trailing spaces.
ac1cb8d3 49651 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49652
49653_ACEOF
49654
49655# Transform confdefs.h into two sed scripts, `conftest.defines' and
49656# `conftest.undefs', that substitutes the proper values into
49657# config.h.in to produce config.h. The first handles `#define'
49658# templates, and the second `#undef' templates.
49659# And first: Protect against being on the right side of a sed subst in
49660# config.status. Protect against being in an unquoted here document
49661# in config.status.
49662rm -f conftest.defines conftest.undefs
49663# Using a here document instead of a string reduces the quoting nightmare.
49664# Putting comments in sed scripts is not portable.
49665#
49666# `end' is used to avoid that the second main sed command (meant for
49667# 0-ary CPP macros) applies to n-ary macro definitions.
49668# See the Autoconf documentation for `clear'.
49669cat >confdef2sed.sed <<\_ACEOF
49670s/[\\&,]/\\&/g
49671s,[\\$`],\\&,g
49672t clear
49673: clear
ac1cb8d3 49674s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49675t end
ac1cb8d3 49676s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49677: end
49678_ACEOF
49679# If some macros were called several times there might be several times
49680# the same #defines, which is useless. Nevertheless, we may not want to
49681# sort them, since we want the *last* AC-DEFINE to be honored.
49682uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49683sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49684rm -f confdef2sed.sed
49685
49686# This sed command replaces #undef with comments. This is necessary, for
49687# example, in the case of _POSIX_SOURCE, which is predefined and required
49688# on some systems where configure will not decide to define it.
49689cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49690s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49691_ACEOF
49692
49693# Break up conftest.defines because some shells have a limit on the size
49694# of here documents, and old seds have small limits too (100 cmds).
49695echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49696echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49697echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49698echo ' :' >>$CONFIG_STATUS
49699rm -f conftest.tail
49700while grep . conftest.defines >/dev/null
49701do
49702 # Write a limited-size here document to $tmp/defines.sed.
49703 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49704 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49705 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49706 # Work around the forget-to-reset-the-flag bug.
49707 echo 't clr' >>$CONFIG_STATUS
49708 echo ': clr' >>$CONFIG_STATUS
49709 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49710 echo 'CEOF
49711 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49712 rm -f $tmp/in
49713 mv $tmp/out $tmp/in
49714' >>$CONFIG_STATUS
49715 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49716 rm -f conftest.defines
49717 mv conftest.tail conftest.defines
49718done
49719rm -f conftest.defines
49720echo ' fi # grep' >>$CONFIG_STATUS
49721echo >>$CONFIG_STATUS
49722
49723# Break up conftest.undefs because some shells have a limit on the size
49724# of here documents, and old seds have small limits too (100 cmds).
49725echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49726rm -f conftest.tail
49727while grep . conftest.undefs >/dev/null
49728do
49729 # Write a limited-size here document to $tmp/undefs.sed.
49730 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49731 # Speed up: don't consider the non `#undef'
ac1cb8d3 49732 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49733 # Work around the forget-to-reset-the-flag bug.
49734 echo 't clr' >>$CONFIG_STATUS
49735 echo ': clr' >>$CONFIG_STATUS
49736 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49737 echo 'CEOF
49738 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49739 rm -f $tmp/in
49740 mv $tmp/out $tmp/in
49741' >>$CONFIG_STATUS
49742 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49743 rm -f conftest.undefs
49744 mv conftest.tail conftest.undefs
49745done
49746rm -f conftest.undefs
49747
49748cat >>$CONFIG_STATUS <<\_ACEOF
49749 # Let's still pretend it is `configure' which instantiates (i.e., don't
49750 # use $as_me), people would be surprised to read:
49751 # /* config.h. Generated by config.status. */
49752 if test x"$ac_file" = x-; then
49753 echo "/* Generated by configure. */" >$tmp/config.h
49754 else
49755 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49756 fi
49757 cat $tmp/in >>$tmp/config.h
49758 rm -f $tmp/in
49759 if test x"$ac_file" != x-; then
49760 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49761 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49762echo "$as_me: $ac_file is unchanged" >&6;}
49763 else
49764 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49765$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49766 X"$ac_file" : 'X\(//\)[^/]' \| \
49767 X"$ac_file" : 'X\(//\)$' \| \
49768 X"$ac_file" : 'X\(/\)' \| \
49769 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49770echo X"$ac_file" |
49771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49773 /^X\(\/\/\)$/{ s//\1/; q; }
49774 /^X\(\/\).*/{ s//\1/; q; }
49775 s/.*/./; q'`
49776 { if $as_mkdir_p; then
49777 mkdir -p "$ac_dir"
49778 else
49779 as_dir="$ac_dir"
49780 as_dirs=
49781 while test ! -d "$as_dir"; do
49782 as_dirs="$as_dir $as_dirs"
49783 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49784$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49785 X"$as_dir" : 'X\(//\)[^/]' \| \
49786 X"$as_dir" : 'X\(//\)$' \| \
49787 X"$as_dir" : 'X\(/\)' \| \
49788 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49789echo X"$as_dir" |
49790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49792 /^X\(\/\/\)$/{ s//\1/; q; }
49793 /^X\(\/\).*/{ s//\1/; q; }
49794 s/.*/./; q'`
49795 done
49796 test ! -n "$as_dirs" || mkdir $as_dirs
49797 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49798echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49799 { (exit 1); exit 1; }; }; }
49800
49801 rm -f $ac_file
49802 mv $tmp/config.h $ac_file
49803 fi
49804 else
49805 cat $tmp/config.h
49806 rm -f $tmp/config.h
49807 fi
49808done
49809_ACEOF
49810cat >>$CONFIG_STATUS <<\_ACEOF
49811
49812#
49813# CONFIG_COMMANDS section.
49814#
49815for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49818 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49819$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49820 X"$ac_dest" : 'X\(//\)[^/]' \| \
49821 X"$ac_dest" : 'X\(//\)$' \| \
49822 X"$ac_dest" : 'X\(/\)' \| \
49823 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49824echo X"$ac_dest" |
49825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49827 /^X\(\/\/\)$/{ s//\1/; q; }
49828 /^X\(\/\).*/{ s//\1/; q; }
49829 s/.*/./; q'`
ac1cb8d3
VS
49830 { if $as_mkdir_p; then
49831 mkdir -p "$ac_dir"
49832 else
49833 as_dir="$ac_dir"
49834 as_dirs=
49835 while test ! -d "$as_dir"; do
49836 as_dirs="$as_dir $as_dirs"
49837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49839 X"$as_dir" : 'X\(//\)[^/]' \| \
49840 X"$as_dir" : 'X\(//\)$' \| \
49841 X"$as_dir" : 'X\(/\)' \| \
49842 . : '\(.\)' 2>/dev/null ||
49843echo X"$as_dir" |
49844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49846 /^X\(\/\/\)$/{ s//\1/; q; }
49847 /^X\(\/\).*/{ s//\1/; q; }
49848 s/.*/./; q'`
49849 done
49850 test ! -n "$as_dirs" || mkdir $as_dirs
49851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49853 { (exit 1); exit 1; }; }; }
49854
a848cd7e
SC
49855 ac_builddir=.
49856
49857if test "$ac_dir" != .; then
49858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49859 # A "../" for each directory in $ac_dir_suffix.
49860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49861else
49862 ac_dir_suffix= ac_top_builddir=
49863fi
49864
49865case $srcdir in
49866 .) # No --srcdir option. We are building in place.
49867 ac_srcdir=.
49868 if test -z "$ac_top_builddir"; then
49869 ac_top_srcdir=.
49870 else
49871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49872 fi ;;
49873 [\\/]* | ?:[\\/]* ) # Absolute path.
49874 ac_srcdir=$srcdir$ac_dir_suffix;
49875 ac_top_srcdir=$srcdir ;;
49876 *) # Relative path.
49877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49879esac
ac1cb8d3
VS
49880
49881# Do not use `cd foo && pwd` to compute absolute paths, because
49882# the directories may not exist.
49883case `pwd` in
49884.) ac_abs_builddir="$ac_dir";;
49885*)
49886 case "$ac_dir" in
49887 .) ac_abs_builddir=`pwd`;;
49888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49890 esac;;
49891esac
49892case $ac_abs_builddir in
49893.) ac_abs_top_builddir=${ac_top_builddir}.;;
49894*)
49895 case ${ac_top_builddir}. in
49896 .) ac_abs_top_builddir=$ac_abs_builddir;;
49897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49899 esac;;
49900esac
49901case $ac_abs_builddir in
49902.) ac_abs_srcdir=$ac_srcdir;;
49903*)
49904 case $ac_srcdir in
49905 .) ac_abs_srcdir=$ac_abs_builddir;;
49906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49908 esac;;
49909esac
49910case $ac_abs_builddir in
49911.) ac_abs_top_srcdir=$ac_top_srcdir;;
49912*)
49913 case $ac_top_srcdir in
49914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49917 esac;;
49918esac
a848cd7e
SC
49919
49920
49921 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49922echo "$as_me: executing $ac_dest commands" >&6;}
49923 case $ac_dest in
5c60e845
MW
49924 rcdefs.h )
49925 mkdir -p $outdir &&
49926 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49927 ;;
ceec2216
RL
49928 wx-config ) rm -f wx-config
49929 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49930 ;;
a848cd7e
SC
49931 esac
49932done
49933_ACEOF
49934
49935cat >>$CONFIG_STATUS <<\_ACEOF
49936
49937{ (exit 0); exit 0; }
49938_ACEOF
49939chmod +x $CONFIG_STATUS
49940ac_clean_files=$ac_clean_files_save
49941
49942
49943# configure is writing to config.log, and then calls config.status.
49944# config.status does its own redirection, appending to config.log.
49945# Unfortunately, on DOS this fails, as config.log is still kept open
49946# by configure, so config.status won't be able to write to it; its
49947# output is simply discarded. So we exec the FD to /dev/null,
49948# effectively closing config.log, so it can be properly (re)opened and
49949# appended to by config.status. When coming back to configure, we
49950# need to make the FD available again.
49951if test "$no_create" != yes; then
49952 ac_cs_success=:
49953 ac_config_status_args=
49954 test "$silent" = yes &&
49955 ac_config_status_args="$ac_config_status_args --quiet"
49956 exec 5>/dev/null
49957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49958 exec 5>>config.log
49959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49960 # would make configure fail if this is the last instruction.
49961 $ac_cs_success || { (exit 1); exit 1; }
49962fi
49963
49964#
49965# CONFIG_SUBDIRS section.
49966#
49967if test "$no_recursion" != yes; then
49968
49969 # Remove --cache-file and --srcdir arguments so they do not pile up.
49970 ac_sub_configure_args=
49971 ac_prev=
49972 for ac_arg in $ac_configure_args; do
49973 if test -n "$ac_prev"; then
49974 ac_prev=
49975 continue
49976 fi
49977 case $ac_arg in
49978 -cache-file | --cache-file | --cache-fil | --cache-fi \
49979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49980 ac_prev=cache_file ;;
49981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49983 | --c=*)
49984 ;;
49985 --config-cache | -C)
49986 ;;
49987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49988 ac_prev=srcdir ;;
49989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49990 ;;
49991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49992 ac_prev=prefix ;;
49993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
49994 ;;
49995 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
49996 esac
49997 done
49998
49999 # Always prepend --prefix to ensure using the same prefix
50000 # in subdir configurations.
50001 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50002
50003 ac_popdir=`pwd`
50004 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50005
50006 # Do not complain, so a configure script can configure whichever
50007 # parts of a large source tree are present.
50008 test -d $srcdir/$ac_dir || continue
50009
50010 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50011echo "$as_me: configuring in $ac_dir" >&6;}
50012 { if $as_mkdir_p; then
50013 mkdir -p "$ac_dir"
50014 else
50015 as_dir="$ac_dir"
50016 as_dirs=
50017 while test ! -d "$as_dir"; do
50018 as_dirs="$as_dir $as_dirs"
50019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50020$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50021 X"$as_dir" : 'X\(//\)[^/]' \| \
50022 X"$as_dir" : 'X\(//\)$' \| \
50023 X"$as_dir" : 'X\(/\)' \| \
50024 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50025echo X"$as_dir" |
50026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50028 /^X\(\/\/\)$/{ s//\1/; q; }
50029 /^X\(\/\).*/{ s//\1/; q; }
50030 s/.*/./; q'`
50031 done
50032 test ! -n "$as_dirs" || mkdir $as_dirs
50033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50034echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50035 { (exit 1); exit 1; }; }; }
50036
50037 ac_builddir=.
50038
50039if test "$ac_dir" != .; then
50040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50041 # A "../" for each directory in $ac_dir_suffix.
50042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50043else
50044 ac_dir_suffix= ac_top_builddir=
50045fi
50046
50047case $srcdir in
50048 .) # No --srcdir option. We are building in place.
50049 ac_srcdir=.
50050 if test -z "$ac_top_builddir"; then
50051 ac_top_srcdir=.
50052 else
50053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50054 fi ;;
50055 [\\/]* | ?:[\\/]* ) # Absolute path.
50056 ac_srcdir=$srcdir$ac_dir_suffix;
50057 ac_top_srcdir=$srcdir ;;
50058 *) # Relative path.
50059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50061esac
ac1cb8d3
VS
50062
50063# Do not use `cd foo && pwd` to compute absolute paths, because
50064# the directories may not exist.
50065case `pwd` in
50066.) ac_abs_builddir="$ac_dir";;
50067*)
50068 case "$ac_dir" in
50069 .) ac_abs_builddir=`pwd`;;
50070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50072 esac;;
50073esac
50074case $ac_abs_builddir in
50075.) ac_abs_top_builddir=${ac_top_builddir}.;;
50076*)
50077 case ${ac_top_builddir}. in
50078 .) ac_abs_top_builddir=$ac_abs_builddir;;
50079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50081 esac;;
50082esac
50083case $ac_abs_builddir in
50084.) ac_abs_srcdir=$ac_srcdir;;
50085*)
50086 case $ac_srcdir in
50087 .) ac_abs_srcdir=$ac_abs_builddir;;
50088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50090 esac;;
50091esac
50092case $ac_abs_builddir in
50093.) ac_abs_top_srcdir=$ac_top_srcdir;;
50094*)
50095 case $ac_top_srcdir in
50096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50099 esac;;
50100esac
a848cd7e
SC
50101
50102
50103 cd $ac_dir
50104
50105 # Check for guested configure; otherwise get Cygnus style configure.
50106 if test -f $ac_srcdir/configure.gnu; then
50107 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50108 elif test -f $ac_srcdir/configure; then
50109 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50110 elif test -f $ac_srcdir/configure.in; then
50111 ac_sub_configure=$ac_configure
50112 else
50113 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50114echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50115 ac_sub_configure=
50116 fi
50117
50118 # The recursion is here.
50119 if test -n "$ac_sub_configure"; then
50120 # Make the cache file name correct relative to the subdirectory.
50121 case $cache_file in
50122 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50123 *) # Relative path.
ac1cb8d3 50124 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50125 esac
50126
50127 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50128echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50129 # The eval makes quoting arguments work.
50130 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50131 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50132 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50133echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50134 { (exit 1); exit 1; }; }
50135 fi
50136
6954625c 50137 cd "$ac_popdir"
a848cd7e
SC
50138 done
50139fi
50140
50141
50142echo
77ffb593 50143echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50144echo ""
4d4ff94c 50145echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50146echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50147
77ffb593
JS
50148echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50149echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50150echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50151
77ffb593 50152echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50153echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50154echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50155
77ffb593 50156echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50157echo " jpeg ${wxUSE_LIBJPEG-none}"
50158echo " png ${wxUSE_LIBPNG-none}"
50159echo " regex ${wxUSE_REGEX}"
50160echo " tiff ${wxUSE_LIBTIFF-none}"
50161if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50162echo " xpm ${wxUSE_LIBXPM-none}"
50163fi
50164echo " zlib ${wxUSE_ZLIB}"
50165echo " odbc ${wxUSE_ODBC}"
50166echo " expat ${wxUSE_EXPAT}"
50167echo " libmspack ${wxUSE_LIBMSPACK}"
50168echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50169echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50170echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50171echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50172
50173echo ""
50174