]> git.saurik.com Git - wxWidgets.git/blame - configure
disown wxPyXmlResourceHandler
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
b3c86150 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850ac_env_GST_CFLAGS_value=$GST_CFLAGS
851ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853ac_env_GST_LIBS_set=${GST_LIBS+set}
854ac_env_GST_LIBS_value=$GST_LIBS
855ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
857
858#
859# Report the --help message.
860#
861if test "$ac_init_help" = "long"; then
862 # Omit some internal or obsolete options to make the list less imposing.
863 # This message is too long to be a string in the A/UX 3.1 sh.
864 cat <<_ACEOF
dd8df4fc 865\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
866
867Usage: $0 [OPTION]... [VAR=VALUE]...
868
869To assign environment variables (e.g., CC, CFLAGS...), specify them as
870VAR=VALUE. See below for descriptions of some of the useful variables.
871
872Defaults for the options are specified in brackets.
873
874Configuration:
875 -h, --help display this help and exit
876 --help=short display options specific to this package
877 --help=recursive display the short help of all the included packages
878 -V, --version display version information and exit
879 -q, --quiet, --silent do not print \`checking...' messages
880 --cache-file=FILE cache test results in FILE [disabled]
881 -C, --config-cache alias for \`--cache-file=config.cache'
882 -n, --no-create do not create output files
883 --srcdir=DIR find the sources in DIR [configure dir or \`..']
884
885_ACEOF
886
887 cat <<_ACEOF
888Installation directories:
889 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 890 [$ac_default_prefix]
a848cd7e 891 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 892 [PREFIX]
a848cd7e
SC
893
894By default, \`make install' will install all the files in
895\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
896an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897for instance \`--prefix=\$HOME'.
898
899For better control, use the options below.
900
901Fine tuning of the installation directories:
902 --bindir=DIR user executables [EPREFIX/bin]
903 --sbindir=DIR system admin executables [EPREFIX/sbin]
904 --libexecdir=DIR program executables [EPREFIX/libexec]
905 --datadir=DIR read-only architecture-independent data [PREFIX/share]
906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
909 --libdir=DIR object code libraries [EPREFIX/lib]
910 --includedir=DIR C header files [PREFIX/include]
911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
912 --infodir=DIR info documentation [PREFIX/info]
913 --mandir=DIR man documentation [PREFIX/man]
914_ACEOF
915
916 cat <<\_ACEOF
917
918X features:
919 --x-includes=DIR X include files are in DIR
920 --x-libraries=DIR X library files are in DIR
921
922System types:
923 --build=BUILD configure for building on BUILD [guessed]
924 --host=HOST cross-compile to build programs to run on HOST [BUILD]
925 --target=TARGET configure for building compilers for TARGET [HOST]
926_ACEOF
927fi
928
929if test -n "$ac_init_help"; then
930 case $ac_init_help in
dd8df4fc 931 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
932 esac
933 cat <<\_ACEOF
934
935Optional Features:
936 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
937 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
938 --enable-gui use GUI classes
77ffb593
JS
939 --enable-monolithic build wxWidgets as single library
940 --enable-plugins build parts of wxWidgets as loadable components
941 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 942 --enable-nanox use NanoX
f34ca037 943 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
944 --enable-gpe use GNOME PDA Environment features if possible
945 --enable-shared create shared library code
946 --enable-optimise create optimised code
947 --enable-debug same as debug_flag and debug_info
948 --enable-stl use STL for containers
949 --enable-omf use OMF object format
950 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
951 --enable-debug_info create code with debugging information
952 --enable-debug_gdb create code with extra GDB debugging information
953 --enable-debug_cntxt use wxDebugContext
954 --enable-mem_tracing create code with memory tracing
955 --enable-profile create code with profiling information
956 --enable-no_rtti create code without RTTI information
957 --enable-no_exceptions create code without C++ exceptions handling
958 --enable-permissive compile code disregarding strict ANSI
959 --enable-no_deps create code without dependency information
95768535 960 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
961 --enable-compat24 enable wxWidgets 2.4 compatibility
962 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 963 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
964 --enable-intl use internationalization system
965 --enable-config use wxConfig (and derived) classes
966 --enable-protocols use wxProtocol and derived classes
967 --enable-ftp use wxFTP (requires wxProtocol
968 --enable-http use wxHTTP (requires wxProtocol
969 --enable-fileproto use wxFileProto class (requires wxProtocol
970 --enable-sockets use socket/network classes
971 --enable-ole use OLE classes (Win32 only)
972 --enable-dataobj use data object classes
973 --enable-ipc use interprocess communication (wxSocket etc.)
974 --enable-apple_ieee use the Apple IEEE codec
81f90336 975 --enable-arcstream use wxArchive streams
eaff0f0d 976 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 977 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
978 --enable-cmdline use wxCmdLineParser class
979 --enable-datetime use wxDateTime class
36b6448c 980 --enable-debugreport use wxDebugReport class
a848cd7e
SC
981 --enable-dialupman use dialup network classes
982 --enable-dynlib use wxLibrary class for DLL loading
983 --enable-dynamicloader use (new) wxDynamicLibrary class
984 --enable-exceptions build exception-safe library
985 --enable-ffile use wxFFile class
986 --enable-file use wxFile class
987 --enable-filesystem use virtual file systems classes
988 --enable-fontmap use font encodings conversion classes
989 --enable-fs_inet use virtual HTTP/FTP filesystems
990 --enable-fs_zip use virtual ZIP filesystems
991 --enable-geometry use geometry class
992 --enable-log use logging system
993 --enable-longlong use wxLongLong class
994 --enable-mimetype use wxMimeTypesManager
995 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
996 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 997 --enable-std_iostreams use standard C++ stream classes
59746b65 998 --enable-std_string use standard C++ string classes
07158944 999 --enable-stdpaths use wxStandardPaths class
a848cd7e 1000 --enable-stopwatch use wxStopWatch class
07158944 1001 --enable-streams use wxStream etc classes
a848cd7e
SC
1002 --enable-sysoptions use wxSystemOptions
1003 --enable-textbuf use wxTextBuffer class
1004 --enable-textfile use wxTextFile class
1005 --enable-timer use wxTimer class
1006 --enable-unicode compile wxString with Unicode support
1007 --enable-sound use wxSound class
3b57de8b 1008 --enable-mediactrl use wxMediaCtrl class
15291213 1009 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1010 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1011 --enable-zipstream use wxZip streams
a848cd7e
SC
1012 --enable-url use wxURL class
1013 --enable-protocol use wxProtocol class
1014 --enable-protocol-http HTTP support in wxProtocol
1015 --enable-protocol-ftp FTP support in wxProtocol
1016 --enable-protocol-file FILE support in wxProtocol
1017 --enable-threads use threads
1018 --enable-docview use document view architecture
1019 --enable-help use help subsystem
1020 --enable-mshtmlhelp use MS HTML Help (win32)
1021 --enable-html use wxHTML sub-library
1022 --enable-htmlhelp use wxHTML-based help
9a8f0513 1023 --enable-xrc use XRC resources sub-library
3f60522a 1024 --enable-aui use AUI docking library
a848cd7e
SC
1025 --enable-constraints use layout-constraints system
1026 --enable-printarch use printing architecture
1027 --enable-mdi use multiple document interface architecture
8a7b1113 1028 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1029 --enable-loggui use standard GUI logger
1030 --enable-logwin use wxLogWindow
1031 --enable-logdialog use wxLogDialog
646b6ec1 1032 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1033 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
1034 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1035 --enable-prologio not available; see contrib
1036 --enable-resources not available; see contrib
1037 --enable-clipboard use wxClipboard class
1038 --enable-dnd use Drag'n'Drop classes
1039 --enable-metafile use win32 metafiles
1040 --enable-controls use all usual controls
1041 --enable-accel use accelerators
1042 --enable-button use wxButton class
1043 --enable-bmpbutton use wxBitmapButton class
1044 --enable-calendar use wxCalendarCtrl class
1045 --enable-caret use wxCaret class
1046 --enable-checkbox use wxCheckBox class
1047 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1048 --enable-choice use wxChoice class
92bbdbcd 1049 --enable-choicebook use wxChoicebook class
e9263684 1050 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1051 --enable-combobox use wxComboBox class
a57d600f 1052 --enable-comboctrl use wxComboCtrl class
da98e9be 1053 --enable-datepick use wxDatePickerCtrl class
e9263684 1054 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1055 --enable-display use wxDisplay class
e9263684
VZ
1056 --enable-filepicker use wxFilePickerCtrl class
1057 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1058 --enable-gauge use wxGauge class
1059 --enable-grid use wxGrid class
20e34ecc 1060 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1061 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1062 --enable-imaglist use wxImageList class
1063 --enable-listbook use wxListbook class
1064 --enable-listbox use wxListBox class
1065 --enable-listctrl use wxListCtrl class
1066 --enable-notebook use wxNotebook class
a57d600f 1067 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1068 --enable-radiobox use wxRadioBox class
1069 --enable-radiobtn use wxRadioButton class
1070 --enable-sash use wxSashWindow class
1071 --enable-scrollbar use wxScrollBar class and scrollable windows
1072 --enable-slider use wxSlider class
1073 --enable-spinbtn use wxSpinButton class
1074 --enable-spinctrl use wxSpinCtrl class
1075 --enable-splitter use wxSplitterWindow class
1076 --enable-statbmp use wxStaticBitmap class
1077 --enable-statbox use wxStaticBox class
1078 --enable-statline use wxStaticLine class
1079 --enable-stattext use wxStaticText class
1080 --enable-statusbar use wxStatusBar class
1081 --enable-tabdialog use wxTabControl class
1082 --enable-textctrl use wxTextCtrl class
1083 --enable-togglebtn use wxToggleButton class
1084 --enable-toolbar use wxToolBar class
1085 --enable-tbarnative use native wxToolBar class
0093c2fc 1086 --enable-treebook use wxTreebook class
5ec3bc43 1087 --enable-toolbook use wxToolbook class
a848cd7e
SC
1088 --enable-treectrl use wxTreeCtrl class
1089 --enable-tipwindow use wxTipWindow class
1090 --enable-popupwin use wxPopUpWindow class
1091 --enable-commondlg use all common dialogs
1092 --enable-choicedlg use wxChoiceDialog
1093 --enable-coldlg use wxColourDialog
1094 --enable-filedlg use wxFileDialog
1095 --enable-finddlg use wxFindReplaceDialog
1096 --enable-fontdlg use wxFontDialog
1097 --enable-dirdlg use wxDirDialog
1098 --enable-msgdlg use wxMessageDialog
1099 --enable-numberdlg use wxNumberEntryDialog
1100 --enable-splash use wxSplashScreen
1101 --enable-textdlg use wxTextDialog
1102 --enable-tipdlg use startup tips
1103 --enable-progressdlg use wxProgressDialog
1104 --enable-wizarddlg use wxWizard
1105 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1106 --enable-miniframe use wxMiniFrame class
1107 --enable-tooltips use wxToolTip class
1108 --enable-splines use spline drawing code
fbe2ca43 1109 --enable-mousewheel use mousewheel
a848cd7e
SC
1110 --enable-validators use wxValidator and derived classes
1111 --enable-busyinfo use wxBusyInfo
4cb1d3da 1112 --enable-joystick use wxJoystick
38b4a946 1113 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1114 --enable-dragimage use wxDragImage
1115 --enable-accessibility enable accessibility support
38b4a946 1116 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1117 --enable-palette use wxPalette class
1118 --enable-image use wxImage class
1119 --enable-gif use gif images (GIF file format)
1120 --enable-pcx use pcx images (PCX file format)
1121 --enable-iff use iff images (IFF file format)
1122 --enable-pnm use pnm images (PNM file format)
1123 --enable-xpm use xpm images (XPM file format)
1124 --enable-icocur use Windows ICO and CUR formats
77ffb593 1125 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1126 --enable-vendor=VENDOR vendor name (win32 DLL only)
1127 --disable-largefile omit support for large files
1128 --disable-gtktest do not try to compile and run a test GTK+ program
1129 --disable-gtktest Do not try to compile and run a test GTK program
1130 --disable-sdltest Do not try to compile and run a test SDL program
1131 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1132 --disable-dependency-tracking
1133 don't use dependency tracking even if the compiler
1134 can
ebee3cd0
VS
1135 --disable-precomp-headers
1136 don't use precompiled headers even if compiler can
a848cd7e
SC
1137
1138Optional Packages:
1139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1141 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1142 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1143 --with-motif use Motif/Lesstif
1144 --with-mac use Mac OS X
1145 --with-cocoa use Cocoa
1146 --with-wine use Wine
1147 --with-msw use MS-Windows
1148 --with-pm use OS/2 Presentation Manager
1149 --with-mgl use SciTech MGL
b3c86150 1150 --with-directfb use DirectFB
a848cd7e
SC
1151 --with-microwin use MicroWindows
1152 --with-x11 use X11
1153 --with-libpng use libpng (PNG image format)
1154 --with-libjpeg use libjpeg (JPEG file format)
1155 --with-libtiff use libtiff (TIFF file format)
1156 --with-libxpm use libxpm (XPM file format)
1157 --with-libmspack use libmspack (CHM help files loading)
1158 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1159 --with-gnomeprint use GNOME print for printing under GNOME
1160 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1161 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1162 --with-opengl use OpenGL (or Mesa)
1163 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1164 --with-regex enable support for wxRegEx class
1165 --with-zlib use zlib for LZW compression
1166 --with-odbc use the IODBC and wxODBC classes
1167 --with-expat enable XML support using expat parser
ceec2216 1168 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1169 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1170 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1171 --with-x use the X Window System
1172 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1173 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1174 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1175 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1176 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1177
1178Some influential environment variables:
dcc1b6ad
VS
1179 CC C compiler command
1180 CFLAGS C compiler flags
1181 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1182 nonstandard directory <lib dir>
1183 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1184 headers in a nonstandard directory <include dir>
1185 CPP C preprocessor
1186 CXX C++ compiler command
1187 CXXFLAGS C++ compiler flags
1188 CXXCPP C++ preprocessor
3ecd9f92 1189 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1190 DIRECTFB_CFLAGS
1191 C compiler flags for DIRECTFB, overriding pkg-config
1192 DIRECTFB_LIBS
1193 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1194 PANGOX_CFLAGS
1195 C compiler flags for PANGOX, overriding pkg-config
1196 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1197 PANGOFT2_CFLAGS
1198 C compiler flags for PANGOFT2, overriding pkg-config
1199 PANGOFT2_LIBS
1200 linker flags for PANGOFT2, overriding pkg-config
1201 PANGOXFT_CFLAGS
1202 C compiler flags for PANGOXFT, overriding pkg-config
1203 PANGOXFT_LIBS
1204 linker flags for PANGOXFT, overriding pkg-config
1205 LIBGNOMEPRINTUI_CFLAGS
1206 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1207 LIBGNOMEPRINTUI_LIBS
1208 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1209 GNOMEVFS_CFLAGS
1210 C compiler flags for GNOMEVFS, overriding pkg-config
1211 GNOMEVFS_LIBS
1212 linker flags for GNOMEVFS, overriding pkg-config
1213 HILDON_CFLAGS
1214 C compiler flags for HILDON, overriding pkg-config
1215 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1216 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1217 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1218
1219Use these variables to override the choices made by `configure' or to help
1220it to find libraries and programs with nonstandard names/locations.
1221
77ffb593 1222Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1223_ACEOF
1224fi
1225
1226if test "$ac_init_help" = "recursive"; then
1227 # If there are subdirs, report their specific --help.
1228 ac_popdir=`pwd`
1229 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1230 test -d $ac_dir || continue
1231 ac_builddir=.
1232
1233if test "$ac_dir" != .; then
1234 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1235 # A "../" for each directory in $ac_dir_suffix.
1236 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1237else
1238 ac_dir_suffix= ac_top_builddir=
1239fi
1240
1241case $srcdir in
1242 .) # No --srcdir option. We are building in place.
1243 ac_srcdir=.
1244 if test -z "$ac_top_builddir"; then
1245 ac_top_srcdir=.
1246 else
1247 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1248 fi ;;
1249 [\\/]* | ?:[\\/]* ) # Absolute path.
1250 ac_srcdir=$srcdir$ac_dir_suffix;
1251 ac_top_srcdir=$srcdir ;;
1252 *) # Relative path.
1253 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1254 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1255esac
ac1cb8d3
VS
1256
1257# Do not use `cd foo && pwd` to compute absolute paths, because
1258# the directories may not exist.
1259case `pwd` in
1260.) ac_abs_builddir="$ac_dir";;
1261*)
1262 case "$ac_dir" in
1263 .) ac_abs_builddir=`pwd`;;
1264 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1265 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1266 esac;;
1267esac
1268case $ac_abs_builddir in
1269.) ac_abs_top_builddir=${ac_top_builddir}.;;
1270*)
1271 case ${ac_top_builddir}. in
1272 .) ac_abs_top_builddir=$ac_abs_builddir;;
1273 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1274 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1275 esac;;
1276esac
1277case $ac_abs_builddir in
1278.) ac_abs_srcdir=$ac_srcdir;;
1279*)
1280 case $ac_srcdir in
1281 .) ac_abs_srcdir=$ac_abs_builddir;;
1282 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1283 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1284 esac;;
1285esac
1286case $ac_abs_builddir in
1287.) ac_abs_top_srcdir=$ac_top_srcdir;;
1288*)
1289 case $ac_top_srcdir in
1290 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1291 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1292 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1293 esac;;
1294esac
a848cd7e
SC
1295
1296 cd $ac_dir
1297 # Check for guested configure; otherwise get Cygnus style configure.
1298 if test -f $ac_srcdir/configure.gnu; then
1299 echo
1300 $SHELL $ac_srcdir/configure.gnu --help=recursive
1301 elif test -f $ac_srcdir/configure; then
1302 echo
1303 $SHELL $ac_srcdir/configure --help=recursive
1304 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1305 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1306 echo
1307 $ac_configure --help
1308 else
1309 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1310 fi
6a5c9b3f 1311 cd $ac_popdir
a848cd7e
SC
1312 done
1313fi
1314
1315test -n "$ac_init_help" && exit 0
1316if $ac_init_version; then
1317 cat <<\_ACEOF
dd8df4fc 1318wxWidgets configure 2.7.0
ac1cb8d3 1319generated by GNU Autoconf 2.59
a848cd7e 1320
ac1cb8d3 1321Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1322This configure script is free software; the Free Software Foundation
1323gives unlimited permission to copy, distribute and modify it.
1324_ACEOF
1325 exit 0
1326fi
1327exec 5>config.log
1328cat >&5 <<_ACEOF
1329This file contains any messages produced by compilers while
1330running configure, to aid debugging if configure makes a mistake.
1331
dd8df4fc 1332It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1333generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1334
1335 $ $0 $@
1336
1337_ACEOF
1338{
1339cat <<_ASUNAME
1340## --------- ##
1341## Platform. ##
1342## --------- ##
1343
1344hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1345uname -m = `(uname -m) 2>/dev/null || echo unknown`
1346uname -r = `(uname -r) 2>/dev/null || echo unknown`
1347uname -s = `(uname -s) 2>/dev/null || echo unknown`
1348uname -v = `(uname -v) 2>/dev/null || echo unknown`
1349
1350/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1351/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1352
1353/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1354/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1355/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1356hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1357/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1358/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1359/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1360
1361_ASUNAME
1362
1363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364for as_dir in $PATH
1365do
1366 IFS=$as_save_IFS
1367 test -z "$as_dir" && as_dir=.
1368 echo "PATH: $as_dir"
1369done
1370
1371} >&5
1372
1373cat >&5 <<_ACEOF
1374
1375
1376## ----------- ##
1377## Core tests. ##
1378## ----------- ##
1379
1380_ACEOF
1381
1382
1383# Keep a trace of the command line.
1384# Strip out --no-create and --no-recursion so they do not pile up.
1385# Strip out --silent because we don't want to record it for future runs.
1386# Also quote any args containing shell meta-characters.
1387# Make two passes to allow for proper duplicate-argument suppression.
1388ac_configure_args=
1389ac_configure_args0=
1390ac_configure_args1=
1391ac_sep=
1392ac_must_keep_next=false
1393for ac_pass in 1 2
1394do
1395 for ac_arg
1396 do
1397 case $ac_arg in
1398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1400 | -silent | --silent | --silen | --sile | --sil)
1401 continue ;;
1402 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1403 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1404 esac
1405 case $ac_pass in
1406 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1407 2)
1408 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1409 if test $ac_must_keep_next = true; then
ac1cb8d3 1410 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1411 else
ac1cb8d3
VS
1412 case $ac_arg in
1413 *=* | --config-cache | -C | -disable-* | --disable-* \
1414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1416 | -with-* | --with-* | -without-* | --without-* | --x)
1417 case "$ac_configure_args0 " in
1418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1419 esac
1420 ;;
1421 -* ) ac_must_keep_next=true ;;
1422 esac
a848cd7e
SC
1423 fi
1424 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1425 # Get rid of the leading space.
1426 ac_sep=" "
1427 ;;
1428 esac
1429 done
1430done
1431$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1432$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1433
1434# When interrupted or exit'd, cleanup temporary files, and complete
1435# config.log. We remove comments because anyway the quotes in there
1436# would cause problems or look ugly.
1437# WARNING: Be sure not to use single quotes in there, as some shells,
1438# such as our DU 5.0 friend, will then `close' the trap.
1439trap 'exit_status=$?
1440 # Save into config.log some information that might help in debugging.
1441 {
1442 echo
1443
1444 cat <<\_ASBOX
1445## ---------------- ##
1446## Cache variables. ##
1447## ---------------- ##
1448_ASBOX
1449 echo
1450 # The following way of writing the cache mishandles newlines in values,
1451{
1452 (set) 2>&1 |
1453 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1454 *ac_space=\ *)
1455 sed -n \
ac1cb8d3
VS
1456 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1458 ;;
1459 *)
1460 sed -n \
ac1cb8d3 1461 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1462 ;;
1463 esac;
1464}
1465 echo
1466
1467 cat <<\_ASBOX
1468## ----------------- ##
1469## Output variables. ##
1470## ----------------- ##
1471_ASBOX
1472 echo
1473 for ac_var in $ac_subst_vars
1474 do
1475 eval ac_val=$`echo $ac_var`
1476 echo "$ac_var='"'"'$ac_val'"'"'"
1477 done | sort
1478 echo
1479
1480 if test -n "$ac_subst_files"; then
1481 cat <<\_ASBOX
1482## ------------- ##
1483## Output files. ##
1484## ------------- ##
1485_ASBOX
1486 echo
1487 for ac_var in $ac_subst_files
1488 do
1489 eval ac_val=$`echo $ac_var`
ac1cb8d3 1490 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1491 done | sort
1492 echo
1493 fi
1494
1495 if test -s confdefs.h; then
1496 cat <<\_ASBOX
1497## ----------- ##
1498## confdefs.h. ##
1499## ----------- ##
1500_ASBOX
1501 echo
1502 sed "/^$/d" confdefs.h | sort
1503 echo
1504 fi
1505 test "$ac_signal" != 0 &&
1506 echo "$as_me: caught signal $ac_signal"
1507 echo "$as_me: exit $exit_status"
1508 } >&5
ac1cb8d3 1509 rm -f core *.core &&
a848cd7e
SC
1510 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1511 exit $exit_status
1512 ' 0
1513for ac_signal in 1 2 13 15; do
1514 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1515done
1516ac_signal=0
1517
1518# confdefs.h avoids OS command line length limits that DEFS can exceed.
1519rm -rf conftest* confdefs.h
1520# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1521echo >confdefs.h
1522
1523# Predefined preprocessor variables.
1524
1525cat >>confdefs.h <<_ACEOF
1526#define PACKAGE_NAME "$PACKAGE_NAME"
1527_ACEOF
1528
1529
1530cat >>confdefs.h <<_ACEOF
1531#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1532_ACEOF
1533
1534
1535cat >>confdefs.h <<_ACEOF
1536#define PACKAGE_VERSION "$PACKAGE_VERSION"
1537_ACEOF
1538
1539
1540cat >>confdefs.h <<_ACEOF
1541#define PACKAGE_STRING "$PACKAGE_STRING"
1542_ACEOF
1543
1544
1545cat >>confdefs.h <<_ACEOF
1546#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1547_ACEOF
1548
1549
1550# Let the site file select an alternate cache file if it wants to.
1551# Prefer explicitly selected file to automatically selected ones.
1552if test -z "$CONFIG_SITE"; then
1553 if test "x$prefix" != xNONE; then
1554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1555 else
1556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1557 fi
1558fi
1559for ac_site_file in $CONFIG_SITE; do
1560 if test -r "$ac_site_file"; then
1561 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1562echo "$as_me: loading site script $ac_site_file" >&6;}
1563 sed 's/^/| /' "$ac_site_file" >&5
1564 . "$ac_site_file"
1565 fi
1566done
1567
1568if test -r "$cache_file"; then
1569 # Some versions of bash will fail to source /dev/null (special
1570 # files actually), so we avoid doing that.
1571 if test -f "$cache_file"; then
1572 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1573echo "$as_me: loading cache $cache_file" >&6;}
1574 case $cache_file in
1575 [\\/]* | ?:[\\/]* ) . $cache_file;;
1576 *) . ./$cache_file;;
1577 esac
1578 fi
1579else
1580 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1581echo "$as_me: creating cache $cache_file" >&6;}
1582 >$cache_file
1583fi
1584
1585# Check that the precious variables saved in the cache have kept the same
1586# value.
1587ac_cache_corrupted=false
1588for ac_var in `(set) 2>&1 |
ac1cb8d3 1589 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1590 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1591 eval ac_new_set=\$ac_env_${ac_var}_set
1592 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1593 eval ac_new_val="\$ac_env_${ac_var}_value"
1594 case $ac_old_set,$ac_new_set in
1595 set,)
1596 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1598 ac_cache_corrupted=: ;;
1599 ,set)
1600 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1601echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1602 ac_cache_corrupted=: ;;
1603 ,);;
1604 *)
1605 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1606 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1607echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1608 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1609echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1610 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1611echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1612 ac_cache_corrupted=:
a848cd7e
SC
1613 fi;;
1614 esac
1615 # Pass precious variables to config.status.
1616 if test "$ac_new_set" = set; then
1617 case $ac_new_val in
1618 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1619 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1620 *) ac_arg=$ac_var=$ac_new_val ;;
1621 esac
1622 case " $ac_configure_args " in
1623 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1624 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1625 esac
1626 fi
1627done
1628if $ac_cache_corrupted; then
1629 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1630echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1631 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1632echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1633 { (exit 1); exit 1; }; }
1634fi
1635
1636ac_ext=c
1637ac_cpp='$CPP $CPPFLAGS'
1638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1640ac_compiler_gnu=$ac_cv_c_compiler_gnu
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671ac_aux_dir=
1672for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1673 if test -f $ac_dir/install-sh; then
1674 ac_aux_dir=$ac_dir
1675 ac_install_sh="$ac_aux_dir/install-sh -c"
1676 break
1677 elif test -f $ac_dir/install.sh; then
1678 ac_aux_dir=$ac_dir
1679 ac_install_sh="$ac_aux_dir/install.sh -c"
1680 break
1681 elif test -f $ac_dir/shtool; then
1682 ac_aux_dir=$ac_dir
1683 ac_install_sh="$ac_aux_dir/shtool install -c"
1684 break
1685 fi
1686done
1687if test -z "$ac_aux_dir"; then
1688 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1689echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1690 { (exit 1); exit 1; }; }
1691fi
1692ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1693ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1694ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1695
1696# Make sure we can run config.sub.
1697$ac_config_sub sun4 >/dev/null 2>&1 ||
1698 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1699echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1700 { (exit 1); exit 1; }; }
1701
1702echo "$as_me:$LINENO: checking build system type" >&5
1703echo $ECHO_N "checking build system type... $ECHO_C" >&6
1704if test "${ac_cv_build+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 ac_cv_build_alias=$build_alias
1708test -z "$ac_cv_build_alias" &&
1709 ac_cv_build_alias=`$ac_config_guess`
1710test -z "$ac_cv_build_alias" &&
1711 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1712echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1713 { (exit 1); exit 1; }; }
1714ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1715 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1716echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1717 { (exit 1); exit 1; }; }
1718
1719fi
1720echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1721echo "${ECHO_T}$ac_cv_build" >&6
1722build=$ac_cv_build
1723build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1724build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1725build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1726
1727
1728echo "$as_me:$LINENO: checking host system type" >&5
1729echo $ECHO_N "checking host system type... $ECHO_C" >&6
1730if test "${ac_cv_host+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732else
1733 ac_cv_host_alias=$host_alias
1734test -z "$ac_cv_host_alias" &&
1735 ac_cv_host_alias=$ac_cv_build_alias
1736ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1737 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1738echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1739 { (exit 1); exit 1; }; }
1740
1741fi
1742echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1743echo "${ECHO_T}$ac_cv_host" >&6
1744host=$ac_cv_host
1745host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748
1749
1750echo "$as_me:$LINENO: checking target system type" >&5
1751echo $ECHO_N "checking target system type... $ECHO_C" >&6
1752if test "${ac_cv_target+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 ac_cv_target_alias=$target_alias
1756test "x$ac_cv_target_alias" = "x" &&
1757 ac_cv_target_alias=$ac_cv_host_alias
1758ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1759 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1760echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1762
1763fi
1764echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1765echo "${ECHO_T}$ac_cv_target" >&6
1766target=$ac_cv_target
1767target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772# The aliases save the names the user supplied, while $host etc.
1773# will get canonicalized.
1774test -n "$target_alias" &&
1775 test "$program_prefix$program_suffix$program_transform_name" = \
1776 NONENONEs,x,x, &&
1777 program_prefix=${target_alias}-
1778
1779
1780
ceec2216 1781wx_major_version_number=2
dd8df4fc
VZ
1782wx_minor_version_number=7
1783wx_release_number=0
5b5d4ef2 1784wx_subrelease_number=1
a848cd7e 1785
ceec2216
RL
1786WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1787WX_VERSION=$WX_RELEASE.$wx_release_number
1788WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1789
ceec2216 1790WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1791
a848cd7e
SC
1792
1793
1794
1795USE_UNIX=1
1796USE_OS2=0
1797USE_WIN32=0
1798USE_DOS=0
1799USE_BEOS=0
1800USE_MAC=0
1801
1802USE_AIX=
1803USE_BSD= USE_DARWIN= USE_FREEBSD=
1804USE_GNU= USE_HPUX=
1805USE_LINUX=
1806USE_NETBSD=
1807USE_OPENBSD=
1808USE_OSF= USE_SGI=
1809USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1810USE_ULTRIX=
1811USE_UNIXWARE=
1812
1813USE_ALPHA=
1814
1815NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1816
b3c86150 1817ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1818
1819DEFAULT_wxUSE_COCOA=0
1820DEFAULT_wxUSE_GTK=0
1821DEFAULT_wxUSE_MAC=0
1822DEFAULT_wxUSE_MGL=0
1823DEFAULT_wxUSE_MICROWIN=0
1824DEFAULT_wxUSE_MOTIF=0
1825DEFAULT_wxUSE_MSW=0
1826DEFAULT_wxUSE_PM=0
1827DEFAULT_wxUSE_X11=0
b3c86150 1828DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1829
1830DEFAULT_DEFAULT_wxUSE_COCOA=0
1831DEFAULT_DEFAULT_wxUSE_GTK=0
1832DEFAULT_DEFAULT_wxUSE_MAC=0
1833DEFAULT_DEFAULT_wxUSE_MGL=0
1834DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1835DEFAULT_DEFAULT_wxUSE_MOTIF=0
1836DEFAULT_DEFAULT_wxUSE_MSW=0
1837DEFAULT_DEFAULT_wxUSE_PM=0
1838DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1839DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1840
1841PROGRAM_EXT=
1842SO_SUFFIX=so
1843SAMPLES_RPATH_FLAG=
1844SAMPLES_RPATH_POSTLINK=
1845
a03b8b04
RD
1846DEFAULT_STD_FLAG=yes
1847
a848cd7e
SC
1848case "${host}" in
1849 *-hp-hpux* )
1850 USE_HPUX=1
1851 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1853 SO_SUFFIX=sl
1854 cat >>confdefs.h <<\_ACEOF
1855#define __HPUX__ 1
1856_ACEOF
1857
2eef8513 1858
c92ad099 1859 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1860 ;;
1861 *-*-linux* )
1862 USE_LINUX=1
1863 cat >>confdefs.h <<\_ACEOF
1864#define __LINUX__ 1
1865_ACEOF
1866
1867 TMP=`uname -m`
1868 if test "x$TMP" = "xalpha"; then
1869 USE_ALPHA=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __ALPHA__ 1
1872_ACEOF
1873
1874 fi
1875 DEFAULT_DEFAULT_wxUSE_GTK=1
1876 ;;
1877 *-*-gnu* | *-*-k*bsd*-gnu )
1878 USE_GNU=1
1879 TMP=`uname -m`
1880 if test "x$TMP" = "xalpha"; then
1881 USE_ALPHA=1
1882 cat >>confdefs.h <<\_ACEOF
1883#define __ALPHA__ 1
1884_ACEOF
1885
1886 fi
1887 DEFAULT_DEFAULT_wxUSE_GTK=1
1888 ;;
1889 *-*-irix5* | *-*-irix6* )
1890 USE_SGI=1
1891 USE_SVR4=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SGI__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902 *-*-solaris2* )
1903 USE_SUN=1
1904 USE_SOLARIS=1
1905 USE_SVR4=1
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SUN__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SOLARIS__ 1
1912_ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SVR4__ 1
1916_ACEOF
1917
1918 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1920 ;;
1921 *-*-sunos4* )
1922 USE_SUN=1
1923 USE_SUNOS=1
1924 USE_BSD=1
1925 cat >>confdefs.h <<\_ACEOF
1926#define __SUN__ 1
1927_ACEOF
1928
1929 cat >>confdefs.h <<\_ACEOF
1930#define __SUNOS__ 1
1931_ACEOF
1932
1933 cat >>confdefs.h <<\_ACEOF
1934#define __BSD__ 1
1935_ACEOF
1936
1937 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1938 ;;
1939 *-*-freebsd*)
1940 USE_BSD=1
1941 USE_FREEBSD=1
1942 cat >>confdefs.h <<\_ACEOF
1943#define __FREEBSD__ 1
1944_ACEOF
1945
1946 cat >>confdefs.h <<\_ACEOF
1947#define __BSD__ 1
1948_ACEOF
1949
1950 DEFAULT_DEFAULT_wxUSE_GTK=1
1951 ;;
c9a66001 1952 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1953 USE_BSD=1
1954 USE_OPENBSD=1
1955 cat >>confdefs.h <<\_ACEOF
1956#define __OPENBSD__ 1
1957_ACEOF
1958
1959 cat >>confdefs.h <<\_ACEOF
1960#define __BSD__ 1
1961_ACEOF
1962
1963 DEFAULT_DEFAULT_wxUSE_GTK=1
1964 ;;
1965 *-*-netbsd*)
1966 USE_BSD=1
1967 USE_NETBSD=1
1968 cat >>confdefs.h <<\_ACEOF
1969#define __NETBSD__ 1
1970_ACEOF
1971
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1977 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1978
def7c04a 1979 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1980 ;;
1981 *-*-osf* )
1982 USE_ALPHA=1
1983 USE_OSF=1
1984 cat >>confdefs.h <<\_ACEOF
1985#define __ALPHA__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __OSF__ 1
1990_ACEOF
1991
1992 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1993 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1994 ;;
1995 *-*-dgux5* )
1996 USE_ALPHA=1
1997 USE_SVR4=1
1998 cat >>confdefs.h <<\_ACEOF
1999#define __ALPHA__ 1
2000_ACEOF
2001
2002 cat >>confdefs.h <<\_ACEOF
2003#define __SVR4__ 1
2004_ACEOF
2005
2006 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2007 ;;
2008 *-*-sysv5* )
2009 USE_SYSV=1
2010 USE_SVR4=1
2011 cat >>confdefs.h <<\_ACEOF
2012#define __SYSV__ 1
2013_ACEOF
2014
2015 cat >>confdefs.h <<\_ACEOF
2016#define __SVR4__ 1
2017_ACEOF
2018
2019 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2020 ;;
2021 *-*-aix* )
2022 USE_AIX=1
2023 USE_SYSV=1
2024 USE_SVR4=1
2025 SO_SUFFIX=a
2026 cat >>confdefs.h <<\_ACEOF
2027#define __AIX__ 1
2028_ACEOF
2029
2030 cat >>confdefs.h <<\_ACEOF
2031#define __SYSV__ 1
2032_ACEOF
2033
2034 cat >>confdefs.h <<\_ACEOF
2035#define __SVR4__ 1
2036_ACEOF
2037
2038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2039 ;;
2040
2041 *-*-*UnixWare*)
2042 USE_SYSV=1
2043 USE_SVR4=1
2044 USE_UNIXWARE=1
2045 cat >>confdefs.h <<\_ACEOF
2046#define __UNIXWARE__ 1
2047_ACEOF
2048
2049 ;;
2050
2051 *-*-cygwin* | *-*-mingw32* )
2052 SO_SUFFIX=dll
2053 PROGRAM_EXT=".exe"
a848cd7e 2054 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2055 DEFAULT_STD_FLAG=no
a848cd7e
SC
2056 ;;
2057
2058 *-pc-msdosdjgpp )
2059 USE_UNIX=0
2060 USE_DOS=1
2061 cat >>confdefs.h <<\_ACEOF
2062#define __DOS__ 1
2063_ACEOF
2064
2065 PROGRAM_EXT=".exe"
2066 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2067 ;;
2068
2069 *-pc-os2_emx | *-pc-os2-emx )
2070 cat >>confdefs.h <<\_ACEOF
2071#define __EMX__ 1
2072_ACEOF
2073
2074 USE_OS2=1
2075 cat >>confdefs.h <<\_ACEOF
2076#define __OS2__ 1
2077_ACEOF
2078
2079 PROGRAM_EXT=".exe"
2080 DEFAULT_DEFAULT_wxUSE_PM=1
2081 CXX=gcc
2082 LDFLAGS="$LDFLAGS -Zcrtdll"
2083 ac_executable_extensions=".exe"
2084 export ac_executable_extensions
2085 ac_save_IFS="$IFS"
2086 IFS='\\'
2087 ac_TEMP_PATH=
2088 for ac_dir in $PATH; do
2089 IFS=$ac_save_IFS
2090 if test -z "$ac_TEMP_PATH"; then
2091 ac_TEMP_PATH="$ac_dir"
2092 else
2093 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2094 fi
2095 done
2096 export PATH="$ac_TEMP_PATH"
2097 unset ac_TEMP_PATH
a03b8b04 2098 DEFAULT_STD_FLAG=no
a848cd7e
SC
2099 ;;
2100
cfda0ea8 2101 *-*-darwin* )
a848cd7e
SC
2102 USE_BSD=1
2103 USE_DARWIN=1
2104 SO_SUFFIX=dylib
2105 cat >>confdefs.h <<\_ACEOF
2106#define __BSD__ 1
2107_ACEOF
2108
2109 cat >>confdefs.h <<\_ACEOF
2110#define __DARWIN__ 1
a848cd7e
SC
2111_ACEOF
2112
2113 cat >>confdefs.h <<\_ACEOF
2114#define TARGET_CARBON 1
2115_ACEOF
2116
2117 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2118 DEFAULT_STD_FLAG=no
a848cd7e 2119 ;;
1e9e8aba
DE
2120 powerpc-apple-macos* )
2121 USE_UNIX=0
2122 ac_cv_c_bigendian=yes
2123 SO_SUFFIX=shlib
2124 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2125 DEFAULT_STD_FLAG=no
1e9e8aba 2126 ;;
a848cd7e
SC
2127
2128 *-*-beos* )
2129 USE_BEOS=1
2130 cat >>confdefs.h <<\_ACEOF
2131#define __BEOS__ 1
2132_ACEOF
2133
2134 ;;
2135
2136 *)
c9a66001
VZ
2137 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2138echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2139 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2140echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2141
2142 DEFAULT_DEFAULT_wxUSE_X11=1
2143 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2144esac
2145
2146
2147
2148
2149 wx_arg_cache_file="configarg.cache"
2150 echo "loading argument cache $wx_arg_cache_file"
2151 rm -f ${wx_arg_cache_file}.tmp
2152 touch ${wx_arg_cache_file}.tmp
2153 touch ${wx_arg_cache_file}
2154
2155
2156DEBUG_CONFIGURE=0
2157if test $DEBUG_CONFIGURE = 1; then
2158 DEFAULT_wxUSE_UNIVERSAL=no
2159 DEFAULT_wxUSE_STL=no
2160
2161 DEFAULT_wxUSE_NANOX=no
2162
2163 DEFAULT_wxUSE_THREADS=yes
2164
5acfd58d 2165 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2166 DEFAULT_wxUSE_OPTIMISE=no
2167 DEFAULT_wxUSE_PROFILE=no
2168 DEFAULT_wxUSE_NO_DEPS=no
2169 DEFAULT_wxUSE_NO_RTTI=no
2170 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2171 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2172 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2173 DEFAULT_wxUSE_PERMISSIVE=no
2174 DEFAULT_wxUSE_DEBUG_FLAG=yes
2175 DEFAULT_wxUSE_DEBUG_INFO=yes
2176 DEFAULT_wxUSE_DEBUG_GDB=yes
2177 DEFAULT_wxUSE_MEM_TRACING=no
2178 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2179 DEFAULT_wxUSE_DMALLOC=no
2180 DEFAULT_wxUSE_APPLE_IEEE=no
2181
2182 DEFAULT_wxUSE_EXCEPTIONS=no
2183 DEFAULT_wxUSE_LOG=yes
2184 DEFAULT_wxUSE_LOGWINDOW=no
2185 DEFAULT_wxUSE_LOGGUI=no
2186 DEFAULT_wxUSE_LOGDIALOG=no
2187
2188 DEFAULT_wxUSE_GUI=yes
2189 DEFAULT_wxUSE_CONTROLS=no
2190
2191 DEFAULT_wxUSE_REGEX=no
2192 DEFAULT_wxUSE_XML=no
2193 DEFAULT_wxUSE_EXPAT=no
2194 DEFAULT_wxUSE_ZLIB=no
2195 DEFAULT_wxUSE_LIBPNG=no
2196 DEFAULT_wxUSE_LIBJPEG=no
2197 DEFAULT_wxUSE_LIBTIFF=no
2198 DEFAULT_wxUSE_LIBXPM=no
2199 DEFAULT_wxUSE_LIBMSPACK=no
2200 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2201 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2202 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2203 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2204 DEFAULT_wxUSE_ODBC=no
2205 DEFAULT_wxUSE_OPENGL=no
2206
2207 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2208 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2209 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2210 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2211 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2212 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2213 DEFAULT_wxUSE_CMDLINE_PARSER=no
2214 DEFAULT_wxUSE_DATETIME=no
2215 DEFAULT_wxUSE_TIMER=no
2216 DEFAULT_wxUSE_STOPWATCH=no
2217 DEFAULT_wxUSE_FILE=no
2218 DEFAULT_wxUSE_FFILE=no
07158944 2219 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2220 DEFAULT_wxUSE_TEXTBUFFER=no
2221 DEFAULT_wxUSE_TEXTFILE=no
2222 DEFAULT_wxUSE_SOUND=no
3b57de8b 2223 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2224 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2225 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2226 DEFAULT_wxUSE_INTL=no
2227 DEFAULT_wxUSE_CONFIG=no
2228 DEFAULT_wxUSE_FONTMAP=no
2229 DEFAULT_wxUSE_STREAMS=no
2230 DEFAULT_wxUSE_SOCKETS=no
2231 DEFAULT_wxUSE_OLE=no
2232 DEFAULT_wxUSE_DATAOBJ=no
2233 DEFAULT_wxUSE_DIALUP_MANAGER=no
2234 DEFAULT_wxUSE_JOYSTICK=no
2235 DEFAULT_wxUSE_DYNLIB_CLASS=no
2236 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2237 DEFAULT_wxUSE_LONGLONG=no
2238 DEFAULT_wxUSE_GEOMETRY=no
2239
2240 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2241 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2242 DEFAULT_wxUSE_POSTSCRIPT=no
2243
2244 DEFAULT_wxUSE_CLIPBOARD=no
2245 DEFAULT_wxUSE_TOOLTIPS=no
2246 DEFAULT_wxUSE_DRAG_AND_DROP=no
2247 DEFAULT_wxUSE_DRAGIMAGE=no
2248 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2249 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2250
8a7b1113 2251 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2252 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2253 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2254 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2255
2256 DEFAULT_wxUSE_RESOURCES=no
2257 DEFAULT_wxUSE_CONSTRAINTS=no
2258 DEFAULT_wxUSE_IPC=no
2259 DEFAULT_wxUSE_HELP=no
2260 DEFAULT_wxUSE_MS_HTML_HELP=no
2261 DEFAULT_wxUSE_WXHTML_HELP=no
2262 DEFAULT_wxUSE_TREELAYOUT=no
2263 DEFAULT_wxUSE_METAFILE=no
2264 DEFAULT_wxUSE_MIMETYPE=no
2265 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2266 DEFAULT_wxUSE_PROTOCOL=no
2267 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2268 DEFAULT_wxUSE_PROTOCOL_FTP=no
2269 DEFAULT_wxUSE_PROTOCOL_FILE=no
2270 DEFAULT_wxUSE_URL=no
2271
2272 DEFAULT_wxUSE_COMMONDLGS=no
2273 DEFAULT_wxUSE_CHOICEDLG=no
2274 DEFAULT_wxUSE_COLOURDLG=no
2275 DEFAULT_wxUSE_DIRDLG=no
2276 DEFAULT_wxUSE_FILEDLG=no
2277 DEFAULT_wxUSE_FINDREPLDLG=no
2278 DEFAULT_wxUSE_FONTDLG=no
2279 DEFAULT_wxUSE_MSGDLG=no
2280 DEFAULT_wxUSE_NUMBERDLG=no
2281 DEFAULT_wxUSE_TEXTDLG=no
2282 DEFAULT_wxUSE_SPLASH=no
2283 DEFAULT_wxUSE_STARTUP_TIPS=no
2284 DEFAULT_wxUSE_PROGRESSDLG=no
2285 DEFAULT_wxUSE_WIZARDDLG=no
2286
2287 DEFAULT_wxUSE_MENUS=no
2288 DEFAULT_wxUSE_MINIFRAME=no
2289 DEFAULT_wxUSE_HTML=no
91dea314 2290 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2291 DEFAULT_wxUSE_XRC=no
3f60522a 2292 DEFAULT_wxUSE_AUI=no
646b6ec1 2293 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2294 DEFAULT_wxUSE_FILESYSTEM=no
2295 DEFAULT_wxUSE_FS_INET=no
2296 DEFAULT_wxUSE_FS_ZIP=no
2297 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2298 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2299 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2300 DEFAULT_wxUSE_VALIDATORS=no
2301
2302 DEFAULT_wxUSE_ACCEL=no
2303 DEFAULT_wxUSE_BUTTON=no
2304 DEFAULT_wxUSE_BMPBUTTON=no
2305 DEFAULT_wxUSE_CALCTRL=no
2306 DEFAULT_wxUSE_CARET=no
2307 DEFAULT_wxUSE_CHECKBOX=no
2308 DEFAULT_wxUSE_CHECKLST=no
2309 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2310 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2311 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2312 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2313 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2314 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2315 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2316 DEFAULT_wxUSE_DIRPICKERCTRL=no
2317 DEFAULT_wxUSE_FILEPICKERCTRL=no
2318 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2319 DEFAULT_wxUSE_GAUGE=no
2320 DEFAULT_wxUSE_GRID=no
6954625c 2321 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2322 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2323 DEFAULT_wxUSE_IMAGLIST=no
2324 DEFAULT_wxUSE_LISTBOOK=no
2325 DEFAULT_wxUSE_LISTBOX=no
2326 DEFAULT_wxUSE_LISTCTRL=no
2327 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2328 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2329 DEFAULT_wxUSE_RADIOBOX=no
2330 DEFAULT_wxUSE_RADIOBTN=no
2331 DEFAULT_wxUSE_SASH=no
2332 DEFAULT_wxUSE_SCROLLBAR=no
2333 DEFAULT_wxUSE_SLIDER=no
2334 DEFAULT_wxUSE_SPINBTN=no
2335 DEFAULT_wxUSE_SPINCTRL=no
2336 DEFAULT_wxUSE_SPLITTER=no
2337 DEFAULT_wxUSE_STATBMP=no
2338 DEFAULT_wxUSE_STATBOX=no
2339 DEFAULT_wxUSE_STATLINE=no
2340 DEFAULT_wxUSE_STATTEXT=no
2341 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2342 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2343 DEFAULT_wxUSE_TEXTCTRL=no
2344 DEFAULT_wxUSE_TOGGLEBTN=no
2345 DEFAULT_wxUSE_TOOLBAR=no
2346 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2347 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2348 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2349 DEFAULT_wxUSE_TREECTRL=no
2350 DEFAULT_wxUSE_POPUPWIN=no
2351 DEFAULT_wxUSE_TIPWINDOW=no
2352
2353 DEFAULT_wxUSE_UNICODE=no
2354 DEFAULT_wxUSE_UNICODE_MSLU=no
2355 DEFAULT_wxUSE_WCSRTOMBS=no
2356
2357 DEFAULT_wxUSE_PALETTE=no
2358 DEFAULT_wxUSE_IMAGE=no
2359 DEFAULT_wxUSE_GIF=no
2360 DEFAULT_wxUSE_PCX=no
2361 DEFAULT_wxUSE_PNM=no
2362 DEFAULT_wxUSE_IFF=no
2363 DEFAULT_wxUSE_XPM=no
2364 DEFAULT_wxUSE_ICO_CUR=no
2365 DEFAULT_wxUSE_ACCESSIBILITY=no
2366
2367 DEFAULT_wxUSE_MONOLITHIC=no
2368 DEFAULT_wxUSE_PLUGINS=no
2369 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2370else
2371 DEFAULT_wxUSE_UNIVERSAL=no
2372 DEFAULT_wxUSE_STL=no
2373
2374 DEFAULT_wxUSE_NANOX=no
2375
2376 DEFAULT_wxUSE_THREADS=yes
2377
5acfd58d 2378 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2379 DEFAULT_wxUSE_OPTIMISE=yes
2380 DEFAULT_wxUSE_PROFILE=no
2381 DEFAULT_wxUSE_NO_DEPS=no
2382 DEFAULT_wxUSE_NO_RTTI=no
2383 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2384 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2385 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2386 DEFAULT_wxUSE_PERMISSIVE=no
2387 DEFAULT_wxUSE_DEBUG_FLAG=no
2388 DEFAULT_wxUSE_DEBUG_INFO=no
2389 DEFAULT_wxUSE_DEBUG_GDB=no
2390 DEFAULT_wxUSE_MEM_TRACING=no
2391 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2392 DEFAULT_wxUSE_DMALLOC=no
2393 DEFAULT_wxUSE_APPLE_IEEE=yes
2394
2395 DEFAULT_wxUSE_EXCEPTIONS=yes
2396 DEFAULT_wxUSE_LOG=yes
2397 DEFAULT_wxUSE_LOGWINDOW=yes
2398 DEFAULT_wxUSE_LOGGUI=yes
2399 DEFAULT_wxUSE_LOGDIALOG=yes
2400
2401 DEFAULT_wxUSE_GUI=yes
2402
2403 DEFAULT_wxUSE_REGEX=yes
2404 DEFAULT_wxUSE_XML=yes
2405 DEFAULT_wxUSE_EXPAT=yes
2406 DEFAULT_wxUSE_ZLIB=yes
2407 DEFAULT_wxUSE_LIBPNG=yes
2408 DEFAULT_wxUSE_LIBJPEG=yes
2409 DEFAULT_wxUSE_LIBTIFF=yes
2410 DEFAULT_wxUSE_LIBXPM=yes
2411 DEFAULT_wxUSE_LIBMSPACK=yes
2412 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2413 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2414 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2415 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2416 DEFAULT_wxUSE_ODBC=no
52cb607e 2417 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2418
2419 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2420 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2421 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2422 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2423 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2424 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2425 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2426 DEFAULT_wxUSE_DATETIME=yes
2427 DEFAULT_wxUSE_TIMER=yes
2428 DEFAULT_wxUSE_STOPWATCH=yes
2429 DEFAULT_wxUSE_FILE=yes
2430 DEFAULT_wxUSE_FFILE=yes
07158944 2431 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2432 DEFAULT_wxUSE_TEXTBUFFER=yes
2433 DEFAULT_wxUSE_TEXTFILE=yes
2434 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2435 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2436 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2437 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2438 DEFAULT_wxUSE_INTL=yes
2439 DEFAULT_wxUSE_CONFIG=yes
2440 DEFAULT_wxUSE_FONTMAP=yes
2441 DEFAULT_wxUSE_STREAMS=yes
2442 DEFAULT_wxUSE_SOCKETS=yes
2443 DEFAULT_wxUSE_OLE=yes
2444 DEFAULT_wxUSE_DATAOBJ=yes
2445 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2446 DEFAULT_wxUSE_JOYSTICK=yes
2447 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2448 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2449 DEFAULT_wxUSE_LONGLONG=yes
2450 DEFAULT_wxUSE_GEOMETRY=yes
2451
2452 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2453 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2454 DEFAULT_wxUSE_POSTSCRIPT=yes
2455
2456 DEFAULT_wxUSE_CLIPBOARD=yes
2457 DEFAULT_wxUSE_TOOLTIPS=yes
2458 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2459 DEFAULT_wxUSE_DRAGIMAGE=yes
2460 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2461 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2462
8a7b1113 2463 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2464 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2465 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2466 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2467
2468 DEFAULT_wxUSE_RESOURCES=no
2469 DEFAULT_wxUSE_CONSTRAINTS=yes
2470 DEFAULT_wxUSE_IPC=yes
2471 DEFAULT_wxUSE_HELP=yes
2472 DEFAULT_wxUSE_MS_HTML_HELP=yes
2473 DEFAULT_wxUSE_WXHTML_HELP=yes
2474 DEFAULT_wxUSE_TREELAYOUT=yes
2475 DEFAULT_wxUSE_METAFILE=yes
2476 DEFAULT_wxUSE_MIMETYPE=yes
2477 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2478 DEFAULT_wxUSE_PROTOCOL=yes
2479 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2480 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2481 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2482 DEFAULT_wxUSE_URL=yes
2483
2484 DEFAULT_wxUSE_COMMONDLGS=yes
2485 DEFAULT_wxUSE_CHOICEDLG=yes
2486 DEFAULT_wxUSE_COLOURDLG=yes
2487 DEFAULT_wxUSE_DIRDLG=yes
2488 DEFAULT_wxUSE_FILEDLG=yes
2489 DEFAULT_wxUSE_FINDREPLDLG=yes
2490 DEFAULT_wxUSE_FONTDLG=yes
2491 DEFAULT_wxUSE_MSGDLG=yes
2492 DEFAULT_wxUSE_NUMBERDLG=yes
2493 DEFAULT_wxUSE_TEXTDLG=yes
2494 DEFAULT_wxUSE_SPLASH=yes
2495 DEFAULT_wxUSE_STARTUP_TIPS=yes
2496 DEFAULT_wxUSE_PROGRESSDLG=yes
2497 DEFAULT_wxUSE_WIZARDDLG=yes
2498
2499 DEFAULT_wxUSE_MENUS=yes
2500 DEFAULT_wxUSE_MINIFRAME=yes
2501 DEFAULT_wxUSE_HTML=yes
91dea314 2502 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2503 DEFAULT_wxUSE_XRC=yes
3f60522a 2504 DEFAULT_wxUSE_AUI=yes
646b6ec1 2505 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2506 DEFAULT_wxUSE_FILESYSTEM=yes
2507 DEFAULT_wxUSE_FS_INET=yes
2508 DEFAULT_wxUSE_FS_ZIP=yes
2509 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2510 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2511 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2512 DEFAULT_wxUSE_VALIDATORS=yes
2513
2514 DEFAULT_wxUSE_ACCEL=yes
2515 DEFAULT_wxUSE_BUTTON=yes
2516 DEFAULT_wxUSE_BMPBUTTON=yes
2517 DEFAULT_wxUSE_CALCTRL=yes
2518 DEFAULT_wxUSE_CARET=yes
2519 DEFAULT_wxUSE_CHECKBOX=yes
2520 DEFAULT_wxUSE_CHECKLST=yes
2521 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2522 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2523 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2524 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2525 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2526 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2527 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2528 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2529 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2530 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2531 DEFAULT_wxUSE_GAUGE=yes
2532 DEFAULT_wxUSE_GRID=yes
6954625c 2533 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2534 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2535 DEFAULT_wxUSE_IMAGLIST=yes
2536 DEFAULT_wxUSE_LISTBOOK=yes
2537 DEFAULT_wxUSE_LISTBOX=yes
2538 DEFAULT_wxUSE_LISTCTRL=yes
2539 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2540 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2541 DEFAULT_wxUSE_RADIOBOX=yes
2542 DEFAULT_wxUSE_RADIOBTN=yes
2543 DEFAULT_wxUSE_SASH=yes
2544 DEFAULT_wxUSE_SCROLLBAR=yes
2545 DEFAULT_wxUSE_SLIDER=yes
2546 DEFAULT_wxUSE_SPINBTN=yes
2547 DEFAULT_wxUSE_SPINCTRL=yes
2548 DEFAULT_wxUSE_SPLITTER=yes
2549 DEFAULT_wxUSE_STATBMP=yes
2550 DEFAULT_wxUSE_STATBOX=yes
2551 DEFAULT_wxUSE_STATLINE=yes
2552 DEFAULT_wxUSE_STATTEXT=yes
2553 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2554 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2555 DEFAULT_wxUSE_TEXTCTRL=yes
2556 DEFAULT_wxUSE_TOGGLEBTN=yes
2557 DEFAULT_wxUSE_TOOLBAR=yes
2558 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2559 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2560 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2561 DEFAULT_wxUSE_TREECTRL=yes
2562 DEFAULT_wxUSE_POPUPWIN=yes
2563 DEFAULT_wxUSE_TIPWINDOW=yes
2564
78de529b 2565 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2566 DEFAULT_wxUSE_UNICODE_MSLU=yes
2567 DEFAULT_wxUSE_WCSRTOMBS=no
2568
2569 DEFAULT_wxUSE_PALETTE=yes
2570 DEFAULT_wxUSE_IMAGE=yes
2571 DEFAULT_wxUSE_GIF=yes
2572 DEFAULT_wxUSE_PCX=yes
2573 DEFAULT_wxUSE_IFF=no
2574 DEFAULT_wxUSE_PNM=yes
2575 DEFAULT_wxUSE_XPM=yes
2576 DEFAULT_wxUSE_ICO_CUR=yes
2577 DEFAULT_wxUSE_ACCESSIBILITY=no
2578
2579 DEFAULT_wxUSE_MONOLITHIC=no
2580 DEFAULT_wxUSE_PLUGINS=no
2581 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2582
f34ca037 2583 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2584fi
2585
2586
2587
f34ca037 2588
a848cd7e
SC
2589for toolkit in `echo $ALL_TOOLKITS`; do
2590 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2591 if test "x$LINE" != "x" ; then
2592 has_toolkit_in_cache=1
2593 eval "DEFAULT_$LINE"
2594 eval "CACHE_$toolkit=1"
f34ca037
MW
2595
2596 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2597 if test "x$LINE" != "x" ; then
2598 eval "DEFAULT_$LINE"
2599 fi
a848cd7e
SC
2600 fi
2601done
2602
2603
2604
2605 enablestring=
2606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2607echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2608 no_cache=0
2609 # Check whether --enable-gui or --disable-gui was given.
2610if test "${enable_gui+set}" = set; then
2611 enableval="$enable_gui"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_gui='wxUSE_GUI=yes'
2615 else
2616 ac_cv_use_gui='wxUSE_GUI=no'
2617 fi
2618
2619else
2620
2621 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2629
2630fi;
2631
2632 eval "$ac_cv_use_gui"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_GUI" = yes; then
2638 echo "$as_me:$LINENO: result: yes" >&5
2639echo "${ECHO_T}yes" >&6
2640 else
2641 echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6
2643 fi
2644
2645
2646 enablestring=
2647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2648echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2649 no_cache=0
2650 # Check whether --enable-monolithic or --disable-monolithic was given.
2651if test "${enable_monolithic+set}" = set; then
2652 enableval="$enable_monolithic"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2656 else
2657 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2658 fi
2659
2660else
2661
2662 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2670
2671fi;
2672
2673 eval "$ac_cv_use_monolithic"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_MONOLITHIC" = yes; then
2679 echo "$as_me:$LINENO: result: yes" >&5
2680echo "${ECHO_T}yes" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6
2684 fi
2685
2686
2687 enablestring=
2688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2689echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2690 no_cache=0
2691 # Check whether --enable-plugins or --disable-plugins was given.
2692if test "${enable_plugins+set}" = set; then
2693 enableval="$enable_plugins"
2694
2695 if test "$enableval" = yes; then
2696 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2697 else
2698 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2699 fi
2700
2701else
2702
2703 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2704 if test "x$LINE" != x ; then
2705 eval "DEFAULT_$LINE"
2706 else
2707 no_cache=1
2708 fi
2709
2710 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2711
2712fi;
2713
2714 eval "$ac_cv_use_plugins"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_PLUGINS" = yes; then
2720 echo "$as_me:$LINENO: result: yes" >&5
2721echo "${ECHO_T}yes" >&6
2722 else
2723 echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6
2725 fi
2726
2727
1c14217d
VZ
2728 withstring=without
2729 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2730echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2731 no_cache=0
2732
2733# Check whether --with-subdirs or --without-subdirs was given.
2734if test "${with_subdirs+set}" = set; then
2735 withval="$with_subdirs"
2736
2737 if test "$withval" = yes; then
2738 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2739 else
2740 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2741 fi
2742
2743else
2744
2745 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2753
2754fi;
2755
2756 eval "$ac_cv_use_subdirs"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxWITH_SUBDIRS" = yes; then
2762 echo "$as_me:$LINENO: result: yes" >&5
2763echo "${ECHO_T}yes" >&6
2764 else
2765 echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6
2767 fi
2768
2769
a848cd7e
SC
2770if test "$wxUSE_GUI" = "yes"; then
2771
2772
2773 enablestring=
2774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2775echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2776 no_cache=0
2777 # Check whether --enable-universal or --disable-universal was given.
2778if test "${enable_universal+set}" = set; then
2779 enableval="$enable_universal"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2783 else
2784 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2785 fi
2786
2787else
2788
2789 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2797
2798fi;
2799
2800 eval "$ac_cv_use_universal"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_UNIVERSAL" = yes; then
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808 else
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811 fi
2812
2813
2814# Check whether --with-gtk or --without-gtk was given.
2815if test "${with_gtk+set}" = set; then
2816 withval="$with_gtk"
2817 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2818fi;
2819
2820# Check whether --with-motif or --without-motif was given.
2821if test "${with_motif+set}" = set; then
2822 withval="$with_motif"
2823 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2824fi;
2825
2826# Check whether --with-mac or --without-mac was given.
2827if test "${with_mac+set}" = set; then
2828 withval="$with_mac"
c228d3a4 2829 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2830fi;
2831
2832# Check whether --with-cocoa or --without-cocoa was given.
2833if test "${with_cocoa+set}" = set; then
2834 withval="$with_cocoa"
c228d3a4 2835 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2836fi;
2837
2838# Check whether --with-wine or --without-wine was given.
2839if test "${with_wine+set}" = set; then
2840 withval="$with_wine"
2841 wxUSE_WINE="$withval" CACHE_WINE=1
2842fi;
2843
2844# Check whether --with-msw or --without-msw was given.
2845if test "${with_msw+set}" = set; then
2846 withval="$with_msw"
2847 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2848fi;
2849
2850# Check whether --with-pm or --without-pm was given.
2851if test "${with_pm+set}" = set; then
2852 withval="$with_pm"
2853 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2854fi;
2855
2856# Check whether --with-mgl or --without-mgl was given.
2857if test "${with_mgl+set}" = set; then
2858 withval="$with_mgl"
2859 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2860fi;
2861
b3c86150
VS
2862# Check whether --with-directfb or --without-directfb was given.
2863if test "${with_directfb+set}" = set; then
2864 withval="$with_directfb"
2865 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2866fi;
2867
a848cd7e
SC
2868# Check whether --with-microwin or --without-microwin was given.
2869if test "${with_microwin+set}" = set; then
2870 withval="$with_microwin"
2871 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2872fi;
2873
2874# Check whether --with-x11 or --without-x11 was given.
2875if test "${with_x11+set}" = set; then
2876 withval="$with_x11"
2877 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2878fi;
2879
2880 enablestring=
2881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2882echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2883 no_cache=0
2884 # Check whether --enable-nanox or --disable-nanox was given.
2885if test "${enable_nanox+set}" = set; then
2886 enableval="$enable_nanox"
2887
2888 if test "$enableval" = yes; then
2889 ac_cv_use_nanox='wxUSE_NANOX=yes'
2890 else
2891 ac_cv_use_nanox='wxUSE_NANOX=no'
2892 fi
2893
2894else
2895
2896 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2904
2905fi;
2906
2907 eval "$ac_cv_use_nanox"
2908 if test "$no_cache" != 1; then
2909 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2910 fi
2911
2912 if test "$wxUSE_NANOX" = yes; then
2913 echo "$as_me:$LINENO: result: yes" >&5
2914echo "${ECHO_T}yes" >&6
2915 else
2916 echo "$as_me:$LINENO: result: no" >&5
2917echo "${ECHO_T}no" >&6
2918 fi
2919
2920
f34ca037
MW
2921# Check whether --enable-gtk2 or --disable-gtk2 was given.
2922if test "${enable_gtk2+set}" = set; then
2923 enableval="$enable_gtk2"
2924 wxUSE_GTK2="$enableval"
2925fi;
a848cd7e 2926
a848cd7e
SC
2927 enablestring=
2928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2929echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2930 no_cache=0
2931 # Check whether --enable-gpe or --disable-gpe was given.
2932if test "${enable_gpe+set}" = set; then
2933 enableval="$enable_gpe"
2934
2935 if test "$enableval" = yes; then
2936 ac_cv_use_gpe='wxUSE_GPE=yes'
2937 else
2938 ac_cv_use_gpe='wxUSE_GPE=no'
2939 fi
2940
2941else
2942
2943 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
2950 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2951
2952fi;
2953
2954 eval "$ac_cv_use_gpe"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_GPE" = yes; then
2960 echo "$as_me:$LINENO: result: yes" >&5
2961echo "${ECHO_T}yes" >&6
2962 else
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
2965 fi
2966
2967
2968
2969 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2970echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2971 no_cache=0
2972
2973# Check whether --with-libpng or --without-libpng was given.
2974if test "${with_libpng+set}" = set; then
2975 withval="$with_libpng"
2976
2977 if test "$withval" = yes; then
2978 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2979 elif test "$withval" = no; then
2980 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2981 elif test "$withval" = sys; then
2982 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2983 elif test "$withval" = builtin; then
2984 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2985 else
2986 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2987echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2988 { (exit 1); exit 1; }; }
2989 fi
2990
2991else
2992
2993 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2994 if test "x$LINE" != x ; then
2995 eval "DEFAULT_$LINE"
2996 else
2997 no_cache=1
2998 fi
2999
3000 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3001
3002fi;
3003
3004 eval "$ac_cv_use_libpng"
3005 if test "$no_cache" != 1; then
3006 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3007 fi
3008
3009 if test "$wxUSE_LIBPNG" = yes; then
3010 echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6
3012 elif test "$wxUSE_LIBPNG" = no; then
3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
3015 elif test "$wxUSE_LIBPNG" = sys; then
3016 echo "$as_me:$LINENO: result: system version" >&5
3017echo "${ECHO_T}system version" >&6
3018 elif test "$wxUSE_LIBPNG" = builtin; then
3019 echo "$as_me:$LINENO: result: builtin version" >&5
3020echo "${ECHO_T}builtin version" >&6
3021 else
3022 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3023echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3024 { (exit 1); exit 1; }; }
3025 fi
3026
3027
3028 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3029echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3030 no_cache=0
3031
3032# Check whether --with-libjpeg or --without-libjpeg was given.
3033if test "${with_libjpeg+set}" = set; then
3034 withval="$with_libjpeg"
3035
3036 if test "$withval" = yes; then
3037 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3038 elif test "$withval" = no; then
3039 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3040 elif test "$withval" = sys; then
3041 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3042 elif test "$withval" = builtin; then
3043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3044 else
3045 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3046echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3047 { (exit 1); exit 1; }; }
3048 fi
3049
3050else
3051
3052 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3053 if test "x$LINE" != x ; then
3054 eval "DEFAULT_$LINE"
3055 else
3056 no_cache=1
3057 fi
3058
3059 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3060
3061fi;
3062
3063 eval "$ac_cv_use_libjpeg"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_LIBJPEG" = yes; then
3069 echo "$as_me:$LINENO: result: yes" >&5
3070echo "${ECHO_T}yes" >&6
3071 elif test "$wxUSE_LIBJPEG" = no; then
3072 echo "$as_me:$LINENO: result: no" >&5
3073echo "${ECHO_T}no" >&6
3074 elif test "$wxUSE_LIBJPEG" = sys; then
3075 echo "$as_me:$LINENO: result: system version" >&5
3076echo "${ECHO_T}system version" >&6
3077 elif test "$wxUSE_LIBJPEG" = builtin; then
3078 echo "$as_me:$LINENO: result: builtin version" >&5
3079echo "${ECHO_T}builtin version" >&6
3080 else
3081 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3082echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3083 { (exit 1); exit 1; }; }
3084 fi
3085
3086
3087 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3088echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3089 no_cache=0
3090
3091# Check whether --with-libtiff or --without-libtiff was given.
3092if test "${with_libtiff+set}" = set; then
3093 withval="$with_libtiff"
3094
3095 if test "$withval" = yes; then
3096 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3097 elif test "$withval" = no; then
3098 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3099 elif test "$withval" = sys; then
3100 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3101 elif test "$withval" = builtin; then
3102 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3103 else
3104 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3105echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3106 { (exit 1); exit 1; }; }
3107 fi
3108
3109else
3110
3111 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3112 if test "x$LINE" != x ; then
3113 eval "DEFAULT_$LINE"
3114 else
3115 no_cache=1
3116 fi
3117
3118 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3119
3120fi;
3121
3122 eval "$ac_cv_use_libtiff"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_LIBTIFF" = yes; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129echo "${ECHO_T}yes" >&6
3130 elif test "$wxUSE_LIBTIFF" = no; then
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
3133 elif test "$wxUSE_LIBTIFF" = sys; then
3134 echo "$as_me:$LINENO: result: system version" >&5
3135echo "${ECHO_T}system version" >&6
3136 elif test "$wxUSE_LIBTIFF" = builtin; then
3137 echo "$as_me:$LINENO: result: builtin version" >&5
3138echo "${ECHO_T}builtin version" >&6
3139 else
3140 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3141echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3142 { (exit 1); exit 1; }; }
3143 fi
3144
3145
3146 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3147echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3148 no_cache=0
3149
3150# Check whether --with-libxpm or --without-libxpm was given.
3151if test "${with_libxpm+set}" = set; then
3152 withval="$with_libxpm"
3153
3154 if test "$withval" = yes; then
3155 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3156 elif test "$withval" = no; then
3157 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3158 elif test "$withval" = sys; then
3159 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3160 elif test "$withval" = builtin; then
3161 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3162 else
3163 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3164echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168else
3169
3170 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3178
3179fi;
3180
3181 eval "$ac_cv_use_libxpm"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_LIBXPM" = yes; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188echo "${ECHO_T}yes" >&6
3189 elif test "$wxUSE_LIBXPM" = no; then
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192 elif test "$wxUSE_LIBXPM" = sys; then
3193 echo "$as_me:$LINENO: result: system version" >&5
3194echo "${ECHO_T}system version" >&6
3195 elif test "$wxUSE_LIBXPM" = builtin; then
3196 echo "$as_me:$LINENO: result: builtin version" >&5
3197echo "${ECHO_T}builtin version" >&6
3198 else
3199 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3200echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3201 { (exit 1); exit 1; }; }
3202 fi
3203
3204
1c14217d
VZ
3205 withstring=
3206 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3207echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3208 no_cache=0
3209
3210# Check whether --with-libmspack or --without-libmspack was given.
3211if test "${with_libmspack+set}" = set; then
3212 withval="$with_libmspack"
3213
3214 if test "$withval" = yes; then
3215 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3216 else
3217 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3218 fi
3219
3220else
3221
3222 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3223 if test "x$LINE" != x ; then
3224 eval "DEFAULT_$LINE"
3225 else
3226 no_cache=1
3227 fi
3228
3229 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3230
3231fi;
3232
3233 eval "$ac_cv_use_libmspack"
3234 if test "$no_cache" != 1; then
3235 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3236 fi
3237
3238 if test "$wxUSE_LIBMSPACK" = yes; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240echo "${ECHO_T}yes" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no" >&5
3243echo "${ECHO_T}no" >&6
3244 fi
3245
3246
1c14217d
VZ
3247 withstring=
3248 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3249echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3250 no_cache=0
3251
3252# Check whether --with-sdl or --without-sdl was given.
3253if test "${with_sdl+set}" = set; then
3254 withval="$with_sdl"
3255
3256 if test "$withval" = yes; then
3257 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3258 else
3259 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3260 fi
3261
3262else
3263
3264 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3265 if test "x$LINE" != x ; then
3266 eval "DEFAULT_$LINE"
3267 else
3268 no_cache=1
3269 fi
3270
3271 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3272
3273fi;
3274
3275 eval "$ac_cv_use_sdl"
3276 if test "$no_cache" != 1; then
3277 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3278 fi
3279
3280 if test "$wxUSE_LIBSDL" = yes; then
3281 echo "$as_me:$LINENO: result: yes" >&5
3282echo "${ECHO_T}yes" >&6
3283 else
3284 echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286 fi
3287
3288
1c14217d
VZ
3289 withstring=
3290 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3291echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3292 no_cache=0
3293
3294# Check whether --with-gnomeprint or --without-gnomeprint was given.
3295if test "${with_gnomeprint+set}" = set; then
3296 withval="$with_gnomeprint"
3297
3298 if test "$withval" = yes; then
3299 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3300 else
3301 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3302 fi
3303
3304else
3305
3306 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
3313 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3314
3315fi;
3316
3317 eval "$ac_cv_use_gnomeprint"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3323 echo "$as_me:$LINENO: result: yes" >&5
3324echo "${ECHO_T}yes" >&6
3325 else
3326 echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
3328 fi
3329
3330
2b850ae1
RR
3331 withstring=
3332 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3333echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3334 no_cache=0
3335
3336# Check whether --with-gnomevfs or --without-gnomevfs was given.
3337if test "${with_gnomevfs+set}" = set; then
3338 withval="$with_gnomevfs"
3339
3340 if test "$withval" = yes; then
3341 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3342 else
3343 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3356
3357fi;
3358
3359 eval "$ac_cv_use_gnomevfs"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 fi
3371
3372
3565d135
RR
3373 withstring=
3374 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3375echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3376 no_cache=0
3377
3378# Check whether --with-hildon or --without-hildon was given.
3379if test "${with_hildon+set}" = set; then
3380 withval="$with_hildon"
3381
3382 if test "$withval" = yes; then
3383 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3384 else
3385 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3386 fi
3387
3388else
3389
3390 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3391 if test "x$LINE" != x ; then
3392 eval "DEFAULT_$LINE"
3393 else
3394 no_cache=1
3395 fi
3396
3397 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3398
3399fi;
3400
3401 eval "$ac_cv_use_hildon"
3402 if test "$no_cache" != 1; then
3403 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3404 fi
3405
3406 if test "$wxUSE_LIBHILDON" = yes; then
3407 echo "$as_me:$LINENO: result: yes" >&5
3408echo "${ECHO_T}yes" >&6
3409 else
3410 echo "$as_me:$LINENO: result: no" >&5
3411echo "${ECHO_T}no" >&6
3412 fi
3413
3414
1c14217d
VZ
3415 withstring=
3416 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3417echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3418 no_cache=0
3419
3420# Check whether --with-opengl or --without-opengl was given.
3421if test "${with_opengl+set}" = set; then
3422 withval="$with_opengl"
3423
3424 if test "$withval" = yes; then
3425 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3426 else
3427 ac_cv_use_opengl='wxUSE_OPENGL=no'
3428 fi
3429
3430else
3431
3432 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3433 if test "x$LINE" != x ; then
3434 eval "DEFAULT_$LINE"
3435 else
3436 no_cache=1
3437 fi
3438
3439 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3440
3441fi;
3442
3443 eval "$ac_cv_use_opengl"
3444 if test "$no_cache" != 1; then
3445 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3446 fi
3447
3448 if test "$wxUSE_OPENGL" = yes; then
3449 echo "$as_me:$LINENO: result: yes" >&5
3450echo "${ECHO_T}yes" >&6
3451 else
3452 echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454 fi
3455
3456
3457fi
3458
3459
1c14217d
VZ
3460 withstring=
3461 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3462echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3463 no_cache=0
3464
3465# Check whether --with-dmalloc or --without-dmalloc was given.
3466if test "${with_dmalloc+set}" = set; then
3467 withval="$with_dmalloc"
3468
3469 if test "$withval" = yes; then
3470 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3471 else
3472 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3473 fi
3474
3475else
3476
3477 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3478 if test "x$LINE" != x ; then
3479 eval "DEFAULT_$LINE"
3480 else
3481 no_cache=1
3482 fi
3483
3484 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3485
3486fi;
3487
3488 eval "$ac_cv_use_dmalloc"
3489 if test "$no_cache" != 1; then
3490 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3491 fi
3492
3493 if test "$wxUSE_DMALLOC" = yes; then
3494 echo "$as_me:$LINENO: result: yes" >&5
3495echo "${ECHO_T}yes" >&6
3496 else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499 fi
3500
3501
3502 echo "$as_me:$LINENO: checking for --with-regex" >&5
3503echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3504 no_cache=0
3505
3506# Check whether --with-regex or --without-regex was given.
3507if test "${with_regex+set}" = set; then
3508 withval="$with_regex"
3509
3510 if test "$withval" = yes; then
3511 ac_cv_use_regex='wxUSE_REGEX=yes'
3512 elif test "$withval" = no; then
3513 ac_cv_use_regex='wxUSE_REGEX=no'
3514 elif test "$withval" = sys; then
3515 ac_cv_use_regex='wxUSE_REGEX=sys'
3516 elif test "$withval" = builtin; then
3517 ac_cv_use_regex='wxUSE_REGEX=builtin'
3518 else
3519 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3520echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3521 { (exit 1); exit 1; }; }
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3534
3535fi;
3536
3537 eval "$ac_cv_use_regex"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_REGEX" = yes; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 elif test "$wxUSE_REGEX" = no; then
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548 elif test "$wxUSE_REGEX" = sys; then
3549 echo "$as_me:$LINENO: result: system version" >&5
3550echo "${ECHO_T}system version" >&6
3551 elif test "$wxUSE_REGEX" = builtin; then
3552 echo "$as_me:$LINENO: result: builtin version" >&5
3553echo "${ECHO_T}builtin version" >&6
3554 else
3555 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3556echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3557 { (exit 1); exit 1; }; }
3558 fi
3559
3560
3561 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3562echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3563 no_cache=0
3564
3565# Check whether --with-zlib or --without-zlib was given.
3566if test "${with_zlib+set}" = set; then
3567 withval="$with_zlib"
3568
3569 if test "$withval" = yes; then
3570 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3571 elif test "$withval" = no; then
3572 ac_cv_use_zlib='wxUSE_ZLIB=no'
3573 elif test "$withval" = sys; then
3574 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3575 elif test "$withval" = builtin; then
3576 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3577 else
3578 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3579echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3580 { (exit 1); exit 1; }; }
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3593
3594fi;
3595
3596 eval "$ac_cv_use_zlib"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_ZLIB" = yes; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604 elif test "$wxUSE_ZLIB" = no; then
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607 elif test "$wxUSE_ZLIB" = sys; then
3608 echo "$as_me:$LINENO: result: system version" >&5
3609echo "${ECHO_T}system version" >&6
3610 elif test "$wxUSE_ZLIB" = builtin; then
3611 echo "$as_me:$LINENO: result: builtin version" >&5
3612echo "${ECHO_T}builtin version" >&6
3613 else
3614 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3615echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3616 { (exit 1); exit 1; }; }
3617 fi
3618
3619
3620 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3621echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3622 no_cache=0
3623
3624# Check whether --with-odbc or --without-odbc was given.
3625if test "${with_odbc+set}" = set; then
3626 withval="$with_odbc"
3627
3628 if test "$withval" = yes; then
3629 ac_cv_use_odbc='wxUSE_ODBC=yes'
3630 elif test "$withval" = no; then
3631 ac_cv_use_odbc='wxUSE_ODBC=no'
3632 elif test "$withval" = sys; then
3633 ac_cv_use_odbc='wxUSE_ODBC=sys'
3634 elif test "$withval" = builtin; then
3635 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3636 else
3637 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3638echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3639 { (exit 1); exit 1; }; }
3640 fi
3641
3642else
3643
3644 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3652
3653fi;
3654
3655 eval "$ac_cv_use_odbc"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_ODBC" = yes; then
3661 echo "$as_me:$LINENO: result: yes" >&5
3662echo "${ECHO_T}yes" >&6
3663 elif test "$wxUSE_ODBC" = no; then
3664 echo "$as_me:$LINENO: result: no" >&5
3665echo "${ECHO_T}no" >&6
3666 elif test "$wxUSE_ODBC" = sys; then
3667 echo "$as_me:$LINENO: result: system version" >&5
3668echo "${ECHO_T}system version" >&6
3669 elif test "$wxUSE_ODBC" = builtin; then
3670 echo "$as_me:$LINENO: result: builtin version" >&5
3671echo "${ECHO_T}builtin version" >&6
3672 else
3673 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3674echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3675 { (exit 1); exit 1; }; }
3676 fi
3677
3678
3679 echo "$as_me:$LINENO: checking for --with-expat" >&5
3680echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3681 no_cache=0
3682
3683# Check whether --with-expat or --without-expat was given.
3684if test "${with_expat+set}" = set; then
3685 withval="$with_expat"
3686
3687 if test "$withval" = yes; then
3688 ac_cv_use_expat='wxUSE_EXPAT=yes'
3689 elif test "$withval" = no; then
3690 ac_cv_use_expat='wxUSE_EXPAT=no'
3691 elif test "$withval" = sys; then
3692 ac_cv_use_expat='wxUSE_EXPAT=sys'
3693 elif test "$withval" = builtin; then
3694 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3695 else
3696 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3697echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3698 { (exit 1); exit 1; }; }
3699 fi
3700
3701else
3702
3703 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3711
3712fi;
3713
3714 eval "$ac_cv_use_expat"
3715 if test "$no_cache" != 1; then
3716 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3717 fi
3718
3719 if test "$wxUSE_EXPAT" = yes; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6
3722 elif test "$wxUSE_EXPAT" = no; then
3723 echo "$as_me:$LINENO: result: no" >&5
3724echo "${ECHO_T}no" >&6
3725 elif test "$wxUSE_EXPAT" = sys; then
3726 echo "$as_me:$LINENO: result: system version" >&5
3727echo "${ECHO_T}system version" >&6
3728 elif test "$wxUSE_EXPAT" = builtin; then
3729 echo "$as_me:$LINENO: result: builtin version" >&5
3730echo "${ECHO_T}builtin version" >&6
3731 else
3732 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3733echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3734 { (exit 1); exit 1; }; }
3735 fi
3736
3737
3738
3739
3740 enablestring=
3741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3742echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3743 no_cache=0
3744 # Check whether --enable-shared or --disable-shared was given.
3745if test "${enable_shared+set}" = set; then
3746 enableval="$enable_shared"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_shared='wxUSE_SHARED=yes'
3750 else
3751 ac_cv_use_shared='wxUSE_SHARED=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3764
3765fi;
3766
3767 eval "$ac_cv_use_shared"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_SHARED" = yes; then
3773 echo "$as_me:$LINENO: result: yes" >&5
3774echo "${ECHO_T}yes" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778 fi
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-optimise or --disable-optimise was given.
3786if test "${enable_optimise+set}" = set; then
3787 enableval="$enable_optimise"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3791 else
3792 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3805
3806fi;
3807
3808 eval "$ac_cv_use_optimise"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_OPTIMISE" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-debug or --disable-debug was given.
3827if test "${enable_debug+set}" = set; then
3828 enableval="$enable_debug"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_debug='wxUSE_DEBUG=yes'
3832 else
3833 ac_cv_use_debug='wxUSE_DEBUG=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3846
3847fi;
3848
3849 eval "$ac_cv_use_debug"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_DEBUG" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-stl or --disable-stl was given.
3868if test "${enable_stl+set}" = set; then
3869 enableval="$enable_stl"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_stl='wxUSE_STL=yes'
3873 else
3874 ac_cv_use_stl='wxUSE_STL=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3887
3888fi;
3889
3890 eval "$ac_cv_use_stl"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_STL" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903if test "$USE_OS2" = "1"; then
69120ee4 3904 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3905
3906 enablestring=
3907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3908echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3909 no_cache=0
3910 # Check whether --enable-omf or --disable-omf was given.
3911if test "${enable_omf+set}" = set; then
3912 enableval="$enable_omf"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_omf='wxUSE_OMF=yes'
3916 else
3917 ac_cv_use_omf='wxUSE_OMF=no'
3918 fi
3919
3920else
3921
3922 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3930
3931fi;
3932
3933 eval "$ac_cv_use_omf"
3934 if test "$no_cache" != 1; then
3935 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3936 fi
3937
3938 if test "$wxUSE_OMF" = yes; then
3939 echo "$as_me:$LINENO: result: yes" >&5
3940echo "${ECHO_T}yes" >&6
3941 else
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944 fi
3945
3946fi
3947
3948if test "$wxUSE_DEBUG" = "yes"; then
3949 DEFAULT_wxUSE_DEBUG_FLAG=yes
3950 DEFAULT_wxUSE_DEBUG_INFO=yes
3951 BUILD=debug
3952elif test "$wxUSE_DEBUG" = "no"; then
3953 DEFAULT_wxUSE_DEBUG_FLAG=no
3954 DEFAULT_wxUSE_DEBUG_INFO=no
3955 BUILD=release
3956fi
3957
3958
3959 enablestring=
3960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3961echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3962 no_cache=0
3963 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3964if test "${enable_debug_flag+set}" = set; then
3965 enableval="$enable_debug_flag"
3966
3967 if test "$enableval" = yes; then
3968 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3969 else
3970 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3971 fi
3972
3973else
3974
3975 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3976 if test "x$LINE" != x ; then
3977 eval "DEFAULT_$LINE"
3978 else
3979 no_cache=1
3980 fi
3981
3982 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3983
3984fi;
3985
3986 eval "$ac_cv_use_debug_flag"
3987 if test "$no_cache" != 1; then
3988 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3989 fi
3990
3991 if test "$wxUSE_DEBUG_FLAG" = yes; then
3992 echo "$as_me:$LINENO: result: yes" >&5
3993echo "${ECHO_T}yes" >&6
3994 else
3995 echo "$as_me:$LINENO: result: no" >&5
3996echo "${ECHO_T}no" >&6
3997 fi
3998
3999
4000 enablestring=
4001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4002echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4003 no_cache=0
4004 # Check whether --enable-debug_info or --disable-debug_info was given.
4005if test "${enable_debug_info+set}" = set; then
4006 enableval="$enable_debug_info"
4007
4008 if test "$enableval" = yes; then
4009 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4010 else
4011 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4012 fi
4013
4014else
4015
4016 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4017 if test "x$LINE" != x ; then
4018 eval "DEFAULT_$LINE"
4019 else
4020 no_cache=1
4021 fi
4022
4023 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4024
4025fi;
4026
4027 eval "$ac_cv_use_debug_info"
4028 if test "$no_cache" != 1; then
4029 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4030 fi
4031
4032 if test "$wxUSE_DEBUG_INFO" = yes; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034echo "${ECHO_T}yes" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037echo "${ECHO_T}no" >&6
4038 fi
4039
4040
4041 enablestring=
4042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4043echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4044 no_cache=0
4045 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4046if test "${enable_debug_gdb+set}" = set; then
4047 enableval="$enable_debug_gdb"
4048
4049 if test "$enableval" = yes; then
4050 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4051 else
4052 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4053 fi
4054
4055else
4056
4057 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4058 if test "x$LINE" != x ; then
4059 eval "DEFAULT_$LINE"
4060 else
4061 no_cache=1
4062 fi
4063
4064 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4065
4066fi;
4067
4068 eval "$ac_cv_use_debug_gdb"
4069 if test "$no_cache" != 1; then
4070 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4071 fi
4072
4073 if test "$wxUSE_DEBUG_GDB" = yes; then
4074 echo "$as_me:$LINENO: result: yes" >&5
4075echo "${ECHO_T}yes" >&6
4076 else
4077 echo "$as_me:$LINENO: result: no" >&5
4078echo "${ECHO_T}no" >&6
4079 fi
4080
4081
4082 enablestring=
4083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4084echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4085 no_cache=0
4086 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4087if test "${enable_debug_cntxt+set}" = set; then
4088 enableval="$enable_debug_cntxt"
4089
4090 if test "$enableval" = yes; then
4091 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4092 else
4093 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4094 fi
4095
4096else
4097
4098 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4099 if test "x$LINE" != x ; then
4100 eval "DEFAULT_$LINE"
4101 else
4102 no_cache=1
4103 fi
4104
4105 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4106
4107fi;
4108
4109 eval "$ac_cv_use_debug_cntxt"
4110 if test "$no_cache" != 1; then
4111 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4112 fi
4113
4114 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4115 echo "$as_me:$LINENO: result: yes" >&5
4116echo "${ECHO_T}yes" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
4120 fi
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4128if test "${enable_mem_tracing+set}" = set; then
4129 enableval="$enable_mem_tracing"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4133 else
4134 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4147
4148fi;
4149
4150 eval "$ac_cv_use_mem_tracing"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_MEM_TRACING" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-profile or --disable-profile was given.
4169if test "${enable_profile+set}" = set; then
4170 enableval="$enable_profile"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_profile='wxUSE_PROFILE=yes'
4174 else
4175 ac_cv_use_profile='wxUSE_PROFILE=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4188
4189fi;
4190
4191 eval "$ac_cv_use_profile"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_PROFILE" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
4205 enablestring=
4206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4207echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4208 no_cache=0
4209 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4210if test "${enable_no_rtti+set}" = set; then
4211 enableval="$enable_no_rtti"
4212
4213 if test "$enableval" = yes; then
4214 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4215 else
4216 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4217 fi
4218
4219else
4220
4221 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4222 if test "x$LINE" != x ; then
4223 eval "DEFAULT_$LINE"
4224 else
4225 no_cache=1
4226 fi
4227
4228 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4229
4230fi;
4231
4232 eval "$ac_cv_use_no_rtti"
4233 if test "$no_cache" != 1; then
4234 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4235 fi
4236
4237 if test "$wxUSE_NO_RTTI" = yes; then
4238 echo "$as_me:$LINENO: result: yes" >&5
4239echo "${ECHO_T}yes" >&6
4240 else
4241 echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243 fi
4244
4245
4246 enablestring=
4247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4248echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4249 no_cache=0
4250 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4251if test "${enable_no_exceptions+set}" = set; then
4252 enableval="$enable_no_exceptions"
4253
4254 if test "$enableval" = yes; then
4255 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4256 else
4257 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4258 fi
4259
4260else
4261
4262 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4263 if test "x$LINE" != x ; then
4264 eval "DEFAULT_$LINE"
4265 else
4266 no_cache=1
4267 fi
4268
4269 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4270
4271fi;
4272
4273 eval "$ac_cv_use_no_exceptions"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4279 echo "$as_me:$LINENO: result: yes" >&5
4280echo "${ECHO_T}yes" >&6
4281 else
4282 echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284 fi
4285
4286
4287 enablestring=
4288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4289echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4290 no_cache=0
4291 # Check whether --enable-permissive or --disable-permissive was given.
4292if test "${enable_permissive+set}" = set; then
4293 enableval="$enable_permissive"
4294
4295 if test "$enableval" = yes; then
4296 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4297 else
4298 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4299 fi
4300
4301else
4302
4303 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4304 if test "x$LINE" != x ; then
4305 eval "DEFAULT_$LINE"
4306 else
4307 no_cache=1
4308 fi
4309
4310 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4311
4312fi;
4313
4314 eval "$ac_cv_use_permissive"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_PERMISSIVE" = yes; then
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=
4329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4330echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4331 no_cache=0
4332 # Check whether --enable-no_deps or --disable-no_deps was given.
4333if test "${enable_no_deps+set}" = set; then
4334 enableval="$enable_no_deps"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4338 else
4339 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4340 fi
4341
4342else
4343
4344 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4352
4353fi;
4354
4355 eval "$ac_cv_use_no_deps"
4356 if test "$no_cache" != 1; then
4357 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4358 fi
4359
4360 if test "$wxUSE_NO_DEPS" = yes; then
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
95768535 4369 enablestring=
7afc46ab
KO
4370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4371echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4372 no_cache=0
4373 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4374if test "${enable_universal_binary+set}" = set; then
4375 enableval="$enable_universal_binary"
4376
95768535 4377 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4378
4379else
4380
4381 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
95768535 4384 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4385 else
4386 no_cache=1
95768535 4387 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4388 fi
4389
7afc46ab
KO
4390fi;
4391
95768535 4392 eval "$wx_cv_use_universal_binary"
7afc46ab 4393 if test "$no_cache" != 1; then
95768535 4394 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4395 fi
4396
95768535
MW
4397 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4398echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4399
4400
a848cd7e 4401
dee1a63f
MB
4402 enablestring=enable
4403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4404echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4405 no_cache=0
dee1a63f
MB
4406 # Check whether --enable-compat24 or --disable-compat24 was given.
4407if test "${enable_compat24+set}" = set; then
4408 enableval="$enable_compat24"
a848cd7e
SC
4409
4410 if test "$enableval" = yes; then
dee1a63f 4411 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4412 else
dee1a63f 4413 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4414 fi
4415
4416else
4417
dee1a63f 4418 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4419 if test "x$LINE" != x ; then
4420 eval "DEFAULT_$LINE"
4421 else
4422 no_cache=1
4423 fi
4424
dee1a63f 4425 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4426
4427fi;
4428
dee1a63f 4429 eval "$ac_cv_use_compat24"
a848cd7e 4430 if test "$no_cache" != 1; then
dee1a63f 4431 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4432 fi
4433
dee1a63f 4434 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4435 echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6
4437 else
4438 echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440 fi
4441
4442
4443 enablestring=disable
dee1a63f
MB
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4445echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4446 no_cache=0
dee1a63f
MB
4447 # Check whether --enable-compat26 or --disable-compat26 was given.
4448if test "${enable_compat26+set}" = set; then
4449 enableval="$enable_compat26"
a848cd7e
SC
4450
4451 if test "$enableval" = yes; then
dee1a63f 4452 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4453 else
dee1a63f 4454 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4455 fi
4456
4457else
4458
dee1a63f 4459 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
dee1a63f 4466 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4467
4468fi;
4469
dee1a63f 4470 eval "$ac_cv_use_compat26"
a848cd7e 4471 if test "$no_cache" != 1; then
dee1a63f 4472 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4473 fi
4474
dee1a63f 4475 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4476 echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481 fi
4482
4483
ffa0583f
RL
4484
4485 enablestring=
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4488 no_cache=0
4489 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4490if test "${enable_rpath+set}" = set; then
4491 enableval="$enable_rpath"
ffa0583f
RL
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_rpath='wxUSE_RPATH=yes'
4495 else
4496 ac_cv_use_rpath='wxUSE_RPATH=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4509
a848cd7e
SC
4510fi;
4511
ffa0583f
RL
4512 eval "$ac_cv_use_rpath"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_RPATH" = yes; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
4520 else
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
4523 fi
4524
a848cd7e
SC
4525
4526
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-intl or --disable-intl was given.
4534if test "${enable_intl+set}" = set; then
4535 enableval="$enable_intl"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_intl='wxUSE_INTL=yes'
4539 else
4540 ac_cv_use_intl='wxUSE_INTL=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4553
4554fi;
4555
4556 eval "$ac_cv_use_intl"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_INTL" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-config or --disable-config was given.
4575if test "${enable_config+set}" = set; then
4576 enableval="$enable_config"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_config='wxUSE_CONFIG=yes'
4580 else
4581 ac_cv_use_config='wxUSE_CONFIG=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4594
4595fi;
4596
4597 eval "$ac_cv_use_config"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_CONFIG" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611
4612 enablestring=
4613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4614echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4615 no_cache=0
4616 # Check whether --enable-protocols or --disable-protocols was given.
4617if test "${enable_protocols+set}" = set; then
4618 enableval="$enable_protocols"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4622 else
4623 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4624 fi
4625
4626else
4627
4628 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4636
4637fi;
4638
4639 eval "$ac_cv_use_protocols"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_PROTOCOL" = yes; then
4645 echo "$as_me:$LINENO: result: yes" >&5
4646echo "${ECHO_T}yes" >&6
4647 else
4648 echo "$as_me:$LINENO: result: no" >&5
4649echo "${ECHO_T}no" >&6
4650 fi
4651
4652
4653 enablestring=
4654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4655echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4656 no_cache=0
4657 # Check whether --enable-ftp or --disable-ftp was given.
4658if test "${enable_ftp+set}" = set; then
4659 enableval="$enable_ftp"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4663 else
4664 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4665 fi
4666
4667else
4668
4669 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4677
4678fi;
4679
4680 eval "$ac_cv_use_ftp"
4681 if test "$no_cache" != 1; then
4682 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4683 fi
4684
4685 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4686 echo "$as_me:$LINENO: result: yes" >&5
4687echo "${ECHO_T}yes" >&6
4688 else
4689 echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6
4691 fi
4692
4693
4694 enablestring=
4695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4696echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4697 no_cache=0
4698 # Check whether --enable-http or --disable-http was given.
4699if test "${enable_http+set}" = set; then
4700 enableval="$enable_http"
4701
4702 if test "$enableval" = yes; then
4703 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4704 else
4705 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4706 fi
4707
4708else
4709
4710 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4711 if test "x$LINE" != x ; then
4712 eval "DEFAULT_$LINE"
4713 else
4714 no_cache=1
4715 fi
4716
4717 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4718
4719fi;
4720
4721 eval "$ac_cv_use_http"
4722 if test "$no_cache" != 1; then
4723 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4724 fi
4725
4726 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4727 echo "$as_me:$LINENO: result: yes" >&5
4728echo "${ECHO_T}yes" >&6
4729 else
4730 echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732 fi
4733
4734
4735 enablestring=
4736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4737echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4738 no_cache=0
4739 # Check whether --enable-fileproto or --disable-fileproto was given.
4740if test "${enable_fileproto+set}" = set; then
4741 enableval="$enable_fileproto"
4742
4743 if test "$enableval" = yes; then
4744 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4745 else
4746 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4747 fi
4748
4749else
4750
4751 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4752 if test "x$LINE" != x ; then
4753 eval "DEFAULT_$LINE"
4754 else
4755 no_cache=1
4756 fi
4757
4758 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4759
4760fi;
4761
4762 eval "$ac_cv_use_fileproto"
4763 if test "$no_cache" != 1; then
4764 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4765 fi
4766
4767 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4768 echo "$as_me:$LINENO: result: yes" >&5
4769echo "${ECHO_T}yes" >&6
4770 else
4771 echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773 fi
4774
4775
4776 enablestring=
4777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4778echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4779 no_cache=0
4780 # Check whether --enable-sockets or --disable-sockets was given.
4781if test "${enable_sockets+set}" = set; then
4782 enableval="$enable_sockets"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4786 else
4787 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4788 fi
4789
4790else
4791
4792 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4800
4801fi;
4802
4803 eval "$ac_cv_use_sockets"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_SOCKETS" = yes; then
4809 echo "$as_me:$LINENO: result: yes" >&5
4810echo "${ECHO_T}yes" >&6
4811 else
4812 echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814 fi
4815
4816
4817 enablestring=
4818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4819echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4820 no_cache=0
4821 # Check whether --enable-ole or --disable-ole was given.
4822if test "${enable_ole+set}" = set; then
4823 enableval="$enable_ole"
4824
4825 if test "$enableval" = yes; then
4826 ac_cv_use_ole='wxUSE_OLE=yes'
4827 else
4828 ac_cv_use_ole='wxUSE_OLE=no'
4829 fi
4830
4831else
4832
4833 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4834 if test "x$LINE" != x ; then
4835 eval "DEFAULT_$LINE"
4836 else
4837 no_cache=1
4838 fi
4839
4840 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4841
4842fi;
4843
4844 eval "$ac_cv_use_ole"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_OLE" = yes; then
4850 echo "$as_me:$LINENO: result: yes" >&5
4851echo "${ECHO_T}yes" >&6
4852 else
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855 fi
4856
4857
4858 enablestring=
4859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4860echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4861 no_cache=0
4862 # Check whether --enable-dataobj or --disable-dataobj was given.
4863if test "${enable_dataobj+set}" = set; then
4864 enableval="$enable_dataobj"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4868 else
4869 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4870 fi
4871
4872else
4873
4874 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4882
4883fi;
4884
4885 eval "$ac_cv_use_dataobj"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_DATAOBJ" = yes; then
4891 echo "$as_me:$LINENO: result: yes" >&5
4892echo "${ECHO_T}yes" >&6
4893 else
4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
4896 fi
4897
4898
4899
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-ipc or --disable-ipc was given.
4905if test "${enable_ipc+set}" = set; then
4906 enableval="$enable_ipc"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_ipc='wxUSE_IPC=yes'
4910 else
4911 ac_cv_use_ipc='wxUSE_IPC=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4924
4925fi;
4926
4927 eval "$ac_cv_use_ipc"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_IPC" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4947if test "${enable_apple_ieee+set}" = set; then
4948 enableval="$enable_apple_ieee"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4952 else
4953 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4966
4967fi;
4968
4969 eval "$ac_cv_use_apple_ieee"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_APPLE_IEEE" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
81f90336
MW
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-arcstream or --disable-arcstream was given.
4988if test "${enable_arcstream+set}" = set; then
4989 enableval="$enable_arcstream"
4990
4991 if test "$enableval" = yes; then
9e8e867f 4992 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4993 else
9e8e867f 4994 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4995 fi
4996
4997else
4998
9e8e867f 4999 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
9e8e867f 5006 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5007
5008fi;
5009
5010 eval "$ac_cv_use_arcstream"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5013 fi
5014
9e8e867f 5015 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
a848cd7e 5024 enablestring=
36b6448c
VZ
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5027 no_cache=0
36b6448c
VZ
5028 # Check whether --enable-backtrace or --disable-backtrace was given.
5029if test "${enable_backtrace+set}" = set; then
5030 enableval="$enable_backtrace"
a848cd7e
SC
5031
5032 if test "$enableval" = yes; then
36b6448c 5033 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5034 else
36b6448c 5035 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5036 fi
5037
5038else
5039
36b6448c 5040 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
36b6448c 5047 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5048
5049fi;
5050
36b6448c 5051 eval "$ac_cv_use_backtrace"
a848cd7e 5052 if test "$no_cache" != 1; then
36b6448c 5053 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5054 fi
5055
36b6448c 5056 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
eaff0f0d 5065 enablestring=
36b6448c
VZ
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5068 no_cache=0
36b6448c
VZ
5069 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5070if test "${enable_catch_segvs+set}" = set; then
5071 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5072
5073 if test "$enableval" = yes; then
36b6448c 5074 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5075 else
36b6448c 5076 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5077 fi
5078
5079else
5080
36b6448c 5081 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
36b6448c 5088 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5089
5090fi;
5091
36b6448c 5092 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5093 if test "$no_cache" != 1; then
36b6448c 5094 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5095 fi
5096
36b6448c 5097 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
a848cd7e
SC
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-cmdline or --disable-cmdline was given.
5111if test "${enable_cmdline+set}" = set; then
5112 enableval="$enable_cmdline"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5116 else
5117 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5130
5131fi;
5132
5133 eval "$ac_cv_use_cmdline"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-datetime or --disable-datetime was given.
5152if test "${enable_datetime+set}" = set; then
5153 enableval="$enable_datetime"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5157 else
5158 ac_cv_use_datetime='wxUSE_DATETIME=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5171
5172fi;
5173
5174 eval "$ac_cv_use_datetime"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_DATETIME" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
36b6448c
VZ
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-debugreport or --disable-debugreport was given.
5193if test "${enable_debugreport+set}" = set; then
5194 enableval="$enable_debugreport"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5198 else
5199 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5212
5213fi;
5214
5215 eval "$ac_cv_use_debugreport"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_DEBUGREPORT" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
a848cd7e
SC
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-dialupman or --disable-dialupman was given.
5234if test "${enable_dialupman+set}" = set; then
5235 enableval="$enable_dialupman"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5239 else
5240 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5253
5254fi;
5255
5256 eval "$ac_cv_use_dialupman"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-dynlib or --disable-dynlib was given.
5275if test "${enable_dynlib+set}" = set; then
5276 enableval="$enable_dynlib"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5280 else
5281 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5294
5295fi;
5296
5297 eval "$ac_cv_use_dynlib"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5316if test "${enable_dynamicloader+set}" = set; then
5317 enableval="$enable_dynamicloader"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5321 else
5322 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5335
5336fi;
5337
5338 eval "$ac_cv_use_dynamicloader"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-exceptions or --disable-exceptions was given.
5357if test "${enable_exceptions+set}" = set; then
5358 enableval="$enable_exceptions"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5362 else
5363 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5376
5377fi;
5378
5379 eval "$ac_cv_use_exceptions"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_EXCEPTIONS" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-ffile or --disable-ffile was given.
5398if test "${enable_ffile+set}" = set; then
5399 enableval="$enable_ffile"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_ffile='wxUSE_FFILE=yes'
5403 else
5404 ac_cv_use_ffile='wxUSE_FFILE=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5417
5418fi;
5419
5420 eval "$ac_cv_use_ffile"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_FFILE" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-file or --disable-file was given.
5439if test "${enable_file+set}" = set; then
5440 enableval="$enable_file"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_file='wxUSE_FILE=yes'
5444 else
5445 ac_cv_use_file='wxUSE_FILE=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5458
5459fi;
5460
5461 eval "$ac_cv_use_file"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_FILE" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-filesystem or --disable-filesystem was given.
5480if test "${enable_filesystem+set}" = set; then
5481 enableval="$enable_filesystem"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5485 else
5486 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5499
5500fi;
5501
5502 eval "$ac_cv_use_filesystem"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_FILESYSTEM" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-fontmap or --disable-fontmap was given.
5521if test "${enable_fontmap+set}" = set; then
5522 enableval="$enable_fontmap"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5526 else
5527 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5540
5541fi;
5542
5543 eval "$ac_cv_use_fontmap"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_FONTMAP" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5560 no_cache=0
5561 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5562if test "${enable_fs_inet+set}" = set; then
5563 enableval="$enable_fs_inet"
5564
5565 if test "$enableval" = yes; then
5566 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5567 else
5568 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5569 fi
5570
5571else
5572
5573 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
5580 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5581
5582fi;
5583
5584 eval "$ac_cv_use_fs_inet"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_FS_INET" = yes; then
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5603if test "${enable_fs_zip+set}" = set; then
5604 enableval="$enable_fs_zip"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5608 else
5609 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5622
5623fi;
5624
5625 eval "$ac_cv_use_fs_zip"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_FS_ZIP" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
5639 enablestring=
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5642 no_cache=0
5643 # Check whether --enable-geometry or --disable-geometry was given.
5644if test "${enable_geometry+set}" = set; then
5645 enableval="$enable_geometry"
5646
5647 if test "$enableval" = yes; then
5648 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5649 else
5650 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5651 fi
5652
5653else
5654
5655 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
5662 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5663
5664fi;
5665
5666 eval "$ac_cv_use_geometry"
5667 if test "$no_cache" != 1; then
5668 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5669 fi
5670
5671 if test "$wxUSE_GEOMETRY" = yes; then
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-log or --disable-log was given.
5685if test "${enable_log+set}" = set; then
5686 enableval="$enable_log"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_log='wxUSE_LOG=yes'
5690 else
5691 ac_cv_use_log='wxUSE_LOG=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5704
5705fi;
5706
5707 eval "$ac_cv_use_log"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_LOG" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-longlong or --disable-longlong was given.
5726if test "${enable_longlong+set}" = set; then
5727 enableval="$enable_longlong"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5731 else
5732 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5745
5746fi;
5747
5748 eval "$ac_cv_use_longlong"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_LONGLONG" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-mimetype or --disable-mimetype was given.
5767if test "${enable_mimetype+set}" = set; then
5768 enableval="$enable_mimetype"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5772 else
5773 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5786
5787fi;
5788
5789 eval "$ac_cv_use_mimetype"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_MIMETYPE" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-mslu or --disable-mslu was given.
5808if test "${enable_mslu+set}" = set; then
5809 enableval="$enable_mslu"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5813 else
5814 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5827
5828fi;
5829
5830 eval "$ac_cv_use_mslu"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_UNICODE_MSLU" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-snglinst or --disable-snglinst was given.
5849if test "${enable_snglinst+set}" = set; then
5850 enableval="$enable_snglinst"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5854 else
5855 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5868
5869fi;
5870
5871 eval "$ac_cv_use_snglinst"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
07158944
VZ
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5888 no_cache=0
07158944
VZ
5889 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5890if test "${enable_std_iostreams+set}" = set; then
5891 enableval="$enable_std_iostreams"
a848cd7e
SC
5892
5893 if test "$enableval" = yes; then
07158944 5894 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5895 else
07158944 5896 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5897 fi
5898
5899else
5900
07158944 5901 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
07158944 5908 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5909
5910fi;
5911
07158944 5912 eval "$ac_cv_use_std_iostreams"
a848cd7e 5913 if test "$no_cache" != 1; then
07158944 5914 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5915 fi
5916
07158944 5917 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
59746b65
MW
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-std_string or --disable-std_string was given.
5931if test "${enable_std_string+set}" = set; then
5932 enableval="$enable_std_string"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5936 else
5937 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5950
5951fi;
5952
5953 eval "$ac_cv_use_std_string"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_STD_STRING" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
a848cd7e 5967 enablestring=
07158944
VZ
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5970 no_cache=0
07158944
VZ
5971 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5972if test "${enable_stdpaths+set}" = set; then
5973 enableval="$enable_stdpaths"
a848cd7e
SC
5974
5975 if test "$enableval" = yes; then
07158944 5976 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5977 else
07158944 5978 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5979 fi
5980
5981else
5982
07158944 5983 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
07158944 5990 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5991
5992fi;
5993
07158944 5994 eval "$ac_cv_use_stdpaths"
a848cd7e 5995 if test "$no_cache" != 1; then
07158944 5996 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5997 fi
5998
07158944 5999 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6013if test "${enable_stopwatch+set}" = set; then
6014 enableval="$enable_stopwatch"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6018 else
6019 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6032
6033fi;
6034
6035 eval "$ac_cv_use_stopwatch"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_STOPWATCH" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
07158944
VZ
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-streams or --disable-streams was given.
6054if test "${enable_streams+set}" = set; then
6055 enableval="$enable_streams"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_streams='wxUSE_STREAMS=yes'
6059 else
6060 ac_cv_use_streams='wxUSE_STREAMS=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6073
6074fi;
6075
6076 eval "$ac_cv_use_streams"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_STREAMS" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
a848cd7e
SC
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-system_options or --disable-system_options was given.
6095if test "${enable_system_options+set}" = set; then
6096 enableval="$enable_system_options"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6100 else
6101 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6114
6115fi;
6116
6117 eval "$ac_cv_use_system_options"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-textbuf or --disable-textbuf was given.
6136if test "${enable_textbuf+set}" = set; then
6137 enableval="$enable_textbuf"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6141 else
6142 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6155
6156fi;
6157
6158 eval "$ac_cv_use_textbuf"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_TEXTBUFFER" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-textfile or --disable-textfile was given.
6177if test "${enable_textfile+set}" = set; then
6178 enableval="$enable_textfile"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6182 else
6183 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6196
6197fi;
6198
6199 eval "$ac_cv_use_textfile"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_TEXTFILE" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-timer or --disable-timer was given.
6218if test "${enable_timer+set}" = set; then
6219 enableval="$enable_timer"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_timer='wxUSE_TIMER=yes'
6223 else
6224 ac_cv_use_timer='wxUSE_TIMER=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6237
6238fi;
6239
6240 eval "$ac_cv_use_timer"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_TIMER" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-unicode or --disable-unicode was given.
6259if test "${enable_unicode+set}" = set; then
6260 enableval="$enable_unicode"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6264 else
6265 ac_cv_use_unicode='wxUSE_UNICODE=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6278
6279fi;
6280
6281 eval "$ac_cv_use_unicode"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_UNICODE" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-sound or --disable-sound was given.
6300if test "${enable_sound+set}" = set; then
6301 enableval="$enable_sound"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_sound='wxUSE_SOUND=yes'
6305 else
6306 ac_cv_use_sound='wxUSE_SOUND=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6319
6320fi;
6321
6322 eval "$ac_cv_use_sound"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_SOUND" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
3b57de8b
RL
6336 enablestring=
6337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6338echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6339 no_cache=0
6340 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6341if test "${enable_mediactrl+set}" = set; then
6342 enableval="$enable_mediactrl"
6343
6344 if test "$enableval" = yes; then
6345 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6346 else
6347 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6348 fi
6349
6350else
6351
6352 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
6359 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6360
6361fi;
6362
6363 eval "$ac_cv_use_mediactrl"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_MEDIACTRL" = yes; then
6369 echo "$as_me:$LINENO: result: yes" >&5
6370echo "${ECHO_T}yes" >&6
6371 else
6372 echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6
6374 fi
6375
6376
f10e38c4
VZ
6377 enablestring=
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6380 no_cache=0
6381 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6382if test "${enable_gstreamer8+set}" = set; then
6383 enableval="$enable_gstreamer8"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6387 else
6388 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6389 fi
6390
6391else
6392
6393 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6401
6402fi;
6403
6404 eval "$ac_cv_use_gstreamer8"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_GSTREAMER8" = yes; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
6412 else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415 fi
6416
6417
a848cd7e 6418 enablestring=
8b6682b9
JS
6419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6420echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6421 no_cache=0
8b6682b9
JS
6422 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6423if test "${enable_printfposparam+set}" = set; then
6424 enableval="$enable_printfposparam"
a848cd7e
SC
6425
6426 if test "$enableval" = yes; then
8b6682b9 6427 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6428 else
8b6682b9 6429 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6430 fi
6431
6432else
6433
8b6682b9 6434 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
8b6682b9 6441 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6442
6443fi;
6444
8b6682b9 6445 eval "$ac_cv_use_printfposparam"
a848cd7e 6446 if test "$no_cache" != 1; then
8b6682b9 6447 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6448 fi
6449
8b6682b9 6450 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6451 echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456 fi
6457
6458
6459 enablestring=
6460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6461echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6462 no_cache=0
6463 # Check whether --enable-zipstream or --disable-zipstream was given.
6464if test "${enable_zipstream+set}" = set; then
6465 enableval="$enable_zipstream"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6469 else
6470 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6483
6484fi;
6485
6486 eval "$ac_cv_use_zipstream"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_ZIPSTREAM" = yes; then
6492 echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6
6494 else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497 fi
6498
6499
a848cd7e
SC
6500
6501 enablestring=
6502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6503echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6504 no_cache=0
6505 # Check whether --enable-url or --disable-url was given.
6506if test "${enable_url+set}" = set; then
6507 enableval="$enable_url"
6508
6509 if test "$enableval" = yes; then
6510 ac_cv_use_url='wxUSE_URL=yes'
6511 else
6512 ac_cv_use_url='wxUSE_URL=no'
6513 fi
6514
6515else
6516
6517 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6525
6526fi;
6527
6528 eval "$ac_cv_use_url"
6529 if test "$no_cache" != 1; then
6530 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6531 fi
6532
6533 if test "$wxUSE_URL" = yes; then
6534 echo "$as_me:$LINENO: result: yes" >&5
6535echo "${ECHO_T}yes" >&6
6536 else
6537 echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539 fi
6540
6541
6542 enablestring=
6543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6544echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6545 no_cache=0
6546 # Check whether --enable-protocol or --disable-protocol was given.
6547if test "${enable_protocol+set}" = set; then
6548 enableval="$enable_protocol"
6549
6550 if test "$enableval" = yes; then
6551 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6552 else
6553 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6554 fi
6555
6556else
6557
6558 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6559 if test "x$LINE" != x ; then
6560 eval "DEFAULT_$LINE"
6561 else
6562 no_cache=1
6563 fi
6564
6565 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6566
6567fi;
6568
6569 eval "$ac_cv_use_protocol"
6570 if test "$no_cache" != 1; then
6571 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6572 fi
6573
6574 if test "$wxUSE_PROTOCOL" = yes; then
6575 echo "$as_me:$LINENO: result: yes" >&5
6576echo "${ECHO_T}yes" >&6
6577 else
6578 echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6
6580 fi
6581
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6588if test "${enable_protocol_http+set}" = set; then
6589 enableval="$enable_protocol_http"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6593 else
6594 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6607
6608fi;
6609
6610 eval "$ac_cv_use_protocol_http"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621 fi
6622
6623
6624 enablestring=
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6626echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6627 no_cache=0
6628 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6629if test "${enable_protocol_ftp+set}" = set; then
6630 enableval="$enable_protocol_ftp"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6634 else
6635 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6636 fi
6637
6638else
6639
6640 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6648
6649fi;
6650
6651 eval "$ac_cv_use_protocol_ftp"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
6659 else
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
6662 fi
6663
6664
6665 enablestring=
6666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6667echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6668 no_cache=0
6669 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6670if test "${enable_protocol_file+set}" = set; then
6671 enableval="$enable_protocol_file"
6672
6673 if test "$enableval" = yes; then
6674 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6675 else
6676 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6677 fi
6678
6679else
6680
6681 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6689
6690fi;
6691
6692 eval "$ac_cv_use_protocol_file"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6698 echo "$as_me:$LINENO: result: yes" >&5
6699echo "${ECHO_T}yes" >&6
6700 else
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
6703 fi
6704
6705
6706
6707
6708
6709 enablestring=
6710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6711echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6712 no_cache=0
6713 # Check whether --enable-threads or --disable-threads was given.
6714if test "${enable_threads+set}" = set; then
6715 enableval="$enable_threads"
6716
6717 if test "$enableval" = yes; then
6718 ac_cv_use_threads='wxUSE_THREADS=yes'
6719 else
6720 ac_cv_use_threads='wxUSE_THREADS=no'
6721 fi
6722
6723else
6724
6725 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6726 if test "x$LINE" != x ; then
6727 eval "DEFAULT_$LINE"
6728 else
6729 no_cache=1
6730 fi
6731
6732 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6733
6734fi;
6735
6736 eval "$ac_cv_use_threads"
6737 if test "$no_cache" != 1; then
6738 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6739 fi
6740
6741 if test "$wxUSE_THREADS" = yes; then
6742 echo "$as_me:$LINENO: result: yes" >&5
6743echo "${ECHO_T}yes" >&6
6744 else
6745 echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6
6747 fi
6748
6749
6750if test "$wxUSE_GUI" = "yes"; then
6751
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-docview or --disable-docview was given.
6759if test "${enable_docview+set}" = set; then
6760 enableval="$enable_docview"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6764 else
6765 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6778
6779fi;
6780
6781 eval "$ac_cv_use_docview"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6784 fi
6785
6786 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-help or --disable-help was given.
6800if test "${enable_help+set}" = set; then
6801 enableval="$enable_help"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_help='wxUSE_HELP=yes'
6805 else
6806 ac_cv_use_help='wxUSE_HELP=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6819
6820fi;
6821
6822 eval "$ac_cv_use_help"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_HELP" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836 enablestring=
6837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6838echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6839 no_cache=0
6840 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6841if test "${enable_mshtmlhelp+set}" = set; then
6842 enableval="$enable_mshtmlhelp"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6846 else
6847 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6860
6861fi;
6862
6863 eval "$ac_cv_use_mshtmlhelp"
6864 if test "$no_cache" != 1; then
6865 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6866 fi
6867
6868 if test "$wxUSE_MS_HTML_HELP" = yes; then
6869 echo "$as_me:$LINENO: result: yes" >&5
6870echo "${ECHO_T}yes" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-html or --disable-html was given.
6882if test "${enable_html+set}" = set; then
6883 enableval="$enable_html"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_html='wxUSE_HTML=yes'
6887 else
6888 ac_cv_use_html='wxUSE_HTML=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6901
6902fi;
6903
6904 eval "$ac_cv_use_html"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_HTML" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6923if test "${enable_htmlhelp+set}" = set; then
6924 enableval="$enable_htmlhelp"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6928 else
6929 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6942
6943fi;
6944
6945 eval "$ac_cv_use_htmlhelp"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_WXHTML_HELP" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
9a8f0513
VS
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-xrc or --disable-xrc was given.
6964if test "${enable_xrc+set}" = set; then
6965 enableval="$enable_xrc"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_xrc='wxUSE_XRC=yes'
6969 else
6970 ac_cv_use_xrc='wxUSE_XRC=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6983
6984fi;
6985
6986 eval "$ac_cv_use_xrc"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_XRC" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
3f60522a
JS
7000 enablestring=
7001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7002echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7003 no_cache=0
7004 # Check whether --enable-aui or --disable-aui was given.
7005if test "${enable_aui+set}" = set; then
7006 enableval="$enable_aui"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_aui='wxUSE_AUI=yes'
7010 else
7011 ac_cv_use_aui='wxUSE_AUI=no'
7012 fi
7013
7014else
7015
7016 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7024
7025fi;
7026
7027 eval "$ac_cv_use_aui"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_AUI" = yes; then
7033 echo "$as_me:$LINENO: result: yes" >&5
7034echo "${ECHO_T}yes" >&6
7035 else
7036 echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6
7038 fi
7039
7040
a848cd7e
SC
7041 enablestring=
7042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7043echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7044 no_cache=0
7045 # Check whether --enable-constraints or --disable-constraints was given.
7046if test "${enable_constraints+set}" = set; then
7047 enableval="$enable_constraints"
7048
7049 if test "$enableval" = yes; then
7050 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7051 else
7052 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7053 fi
7054
7055else
7056
7057 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7065
7066fi;
7067
7068 eval "$ac_cv_use_constraints"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_CONSTRAINTS" = yes; then
7074 echo "$as_me:$LINENO: result: yes" >&5
7075echo "${ECHO_T}yes" >&6
7076 else
7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
7079 fi
7080
7081
7082 enablestring=
7083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7084echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7085 no_cache=0
7086 # Check whether --enable-printarch or --disable-printarch was given.
7087if test "${enable_printarch+set}" = set; then
7088 enableval="$enable_printarch"
7089
7090 if test "$enableval" = yes; then
7091 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7092 else
7093 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7094 fi
7095
7096else
7097
7098 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7106
7107fi;
7108
7109 eval "$ac_cv_use_printarch"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7115 echo "$as_me:$LINENO: result: yes" >&5
7116echo "${ECHO_T}yes" >&6
7117 else
7118 echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
7120 fi
7121
7122
7123 enablestring=
7124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7125echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7126 no_cache=0
7127 # Check whether --enable-mdi or --disable-mdi was given.
7128if test "${enable_mdi+set}" = set; then
7129 enableval="$enable_mdi"
7130
7131 if test "$enableval" = yes; then
8a7b1113 7132 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7133 else
8a7b1113 7134 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7135 fi
7136
7137else
7138
8a7b1113 7139 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
8a7b1113 7146 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7147
7148fi;
7149
7150 eval "$ac_cv_use_mdi"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7153 fi
7154
8a7b1113
VZ
7155 if test "$wxUSE_MDI" = yes; then
7156 echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6
7158 else
7159 echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161 fi
7162
7163
7164 enablestring=
7165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7166echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7167 no_cache=0
7168 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7169if test "${enable_mdidoc+set}" = set; then
7170 enableval="$enable_mdidoc"
7171
7172 if test "$enableval" = yes; then
7173 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7174 else
7175 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7176 fi
7177
7178else
7179
7180 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7188
7189fi;
7190
7191 eval "$ac_cv_use_mdidoc"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7194 fi
7195
a848cd7e
SC
7196 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7197 echo "$as_me:$LINENO: result: yes" >&5
7198echo "${ECHO_T}yes" >&6
7199 else
7200 echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6
7202 fi
7203
7204
7205 enablestring=
7206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7207echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7208 no_cache=0
7209 # Check whether --enable-loggui or --disable-loggui was given.
7210if test "${enable_loggui+set}" = set; then
7211 enableval="$enable_loggui"
7212
7213 if test "$enableval" = yes; then
7214 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7215 else
7216 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7217 fi
7218
7219else
7220
7221 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7229
7230fi;
7231
7232 eval "$ac_cv_use_loggui"
7233 if test "$no_cache" != 1; then
7234 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7235 fi
7236
7237 if test "$wxUSE_LOGGUI" = yes; then
7238 echo "$as_me:$LINENO: result: yes" >&5
7239echo "${ECHO_T}yes" >&6
7240 else
7241 echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
7243 fi
7244
7245
7246 enablestring=
7247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7248echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7249 no_cache=0
7250 # Check whether --enable-logwin or --disable-logwin was given.
7251if test "${enable_logwin+set}" = set; then
7252 enableval="$enable_logwin"
7253
7254 if test "$enableval" = yes; then
7255 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7256 else
7257 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7258 fi
7259
7260else
7261
7262 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7270
7271fi;
7272
7273 eval "$ac_cv_use_logwin"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_LOGWINDOW" = yes; then
7279 echo "$as_me:$LINENO: result: yes" >&5
7280echo "${ECHO_T}yes" >&6
7281 else
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
7284 fi
7285
7286
7287 enablestring=
7288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7289echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7290 no_cache=0
7291 # Check whether --enable-logdialog or --disable-logdialog was given.
7292if test "${enable_logdialog+set}" = set; then
7293 enableval="$enable_logdialog"
7294
7295 if test "$enableval" = yes; then
7296 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7297 else
7298 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7299 fi
7300
7301else
7302
7303 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7311
7312fi;
7313
7314 eval "$ac_cv_use_logdialog"
7315 if test "$no_cache" != 1; then
7316 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7317 fi
7318
7319 if test "$wxUSE_LOGDIALOG" = yes; then
7320 echo "$as_me:$LINENO: result: yes" >&5
7321echo "${ECHO_T}yes" >&6
7322 else
7323 echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
7325 fi
7326
7327
646b6ec1
VS
7328 enablestring=
7329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7330echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7331 no_cache=0
7332 # Check whether --enable-webkit or --disable-webkit was given.
7333if test "${enable_webkit+set}" = set; then
7334 enableval="$enable_webkit"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7338 else
7339 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7340 fi
7341
7342else
7343
7344 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7352
7353fi;
7354
7355 eval "$ac_cv_use_webkit"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_WEBKIT" = yes; then
7361 echo "$as_me:$LINENO: result: yes" >&5
7362echo "${ECHO_T}yes" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
7366 fi
7367
7368
91dea314
MW
7369 enablestring=
7370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7371echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7372 no_cache=0
7373 # Check whether --enable-html or --disable-html was given.
7374if test "${enable_html+set}" = set; then
7375 enableval="$enable_html"
7376
7377 if test "$enableval" = yes; then
7378 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7379 else
7380 ac_cv_use_html='wxUSE_RICHTEXT=no'
7381 fi
7382
7383else
7384
7385 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7386 if test "x$LINE" != x ; then
7387 eval "DEFAULT_$LINE"
7388 else
7389 no_cache=1
7390 fi
7391
7392 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7393
7394fi;
7395
7396 eval "$ac_cv_use_html"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_RICHTEXT" = yes; then
7402 echo "$as_me:$LINENO: result: yes" >&5
7403echo "${ECHO_T}yes" >&6
7404 else
7405 echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6
7407 fi
7408
7409
a848cd7e
SC
7410
7411 enablestring=
7412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7413echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7414 no_cache=0
7415 # Check whether --enable-postscript or --disable-postscript was given.
7416if test "${enable_postscript+set}" = set; then
7417 enableval="$enable_postscript"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7421 else
7422 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7423 fi
7424
7425else
7426
7427 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7435
7436fi;
7437
7438 eval "$ac_cv_use_postscript"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_POSTSCRIPT" = yes; then
7444 echo "$as_me:$LINENO: result: yes" >&5
7445echo "${ECHO_T}yes" >&6
7446 else
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
7449 fi
7450
7451
7452
7453
7454
7455 enablestring=
7456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7457echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7458 no_cache=0
7459 # Check whether --enable-prologio or --disable-prologio was given.
7460if test "${enable_prologio+set}" = set; then
7461 enableval="$enable_prologio"
7462
7463 if test "$enableval" = yes; then
7464 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7465 else
7466 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7467 fi
7468
7469else
7470
7471 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7472 if test "x$LINE" != x ; then
7473 eval "DEFAULT_$LINE"
7474 else
7475 no_cache=1
7476 fi
7477
7478 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7479
7480fi;
7481
7482 eval "$ac_cv_use_prologio"
7483 if test "$no_cache" != 1; then
7484 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7485 fi
7486
7487 if test "$wxUSE_PROLOGIO" = yes; then
7488 echo "$as_me:$LINENO: result: yes" >&5
7489echo "${ECHO_T}yes" >&6
7490 else
7491 echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6
7493 fi
7494
7495
7496 enablestring=
7497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7498echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7499 no_cache=0
7500 # Check whether --enable-resources or --disable-resources was given.
7501if test "${enable_resources+set}" = set; then
7502 enableval="$enable_resources"
7503
7504 if test "$enableval" = yes; then
7505 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7506 else
7507 ac_cv_use_resources='wxUSE_RESOURCES=no'
7508 fi
7509
7510else
7511
7512 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7513 if test "x$LINE" != x ; then
7514 eval "DEFAULT_$LINE"
7515 else
7516 no_cache=1
7517 fi
7518
7519 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7520
7521fi;
7522
7523 eval "$ac_cv_use_resources"
7524 if test "$no_cache" != 1; then
7525 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7526 fi
7527
7528 if test "$wxUSE_RESOURCES" = yes; then
7529 echo "$as_me:$LINENO: result: yes" >&5
7530echo "${ECHO_T}yes" >&6
7531 else
7532 echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6
7534 fi
7535
7536
7537
7538
7539 enablestring=
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7541echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7542 no_cache=0
7543 # Check whether --enable-clipboard or --disable-clipboard was given.
7544if test "${enable_clipboard+set}" = set; then
7545 enableval="$enable_clipboard"
7546
7547 if test "$enableval" = yes; then
7548 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7549 else
7550 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7551 fi
7552
7553else
7554
7555 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7563
7564fi;
7565
7566 eval "$ac_cv_use_clipboard"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_CLIPBOARD" = yes; then
7572 echo "$as_me:$LINENO: result: yes" >&5
7573echo "${ECHO_T}yes" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577 fi
7578
7579
7580 enablestring=
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7582echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7583 no_cache=0
7584 # Check whether --enable-dnd or --disable-dnd was given.
7585if test "${enable_dnd+set}" = set; then
7586 enableval="$enable_dnd"
7587
7588 if test "$enableval" = yes; then
7589 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7590 else
7591 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7592 fi
7593
7594else
7595
7596 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7604
7605fi;
7606
7607 eval "$ac_cv_use_dnd"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7613 echo "$as_me:$LINENO: result: yes" >&5
7614echo "${ECHO_T}yes" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618 fi
7619
7620
7621 enablestring=
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7623echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7624 no_cache=0
7625 # Check whether --enable-metafile or --disable-metafile was given.
7626if test "${enable_metafile+set}" = set; then
7627 enableval="$enable_metafile"
7628
7629 if test "$enableval" = yes; then
7630 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7631 else
7632 ac_cv_use_metafile='wxUSE_METAFILE=no'
7633 fi
7634
7635else
7636
7637 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7645
7646fi;
7647
7648 eval "$ac_cv_use_metafile"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_METAFILE" = yes; then
7654 echo "$as_me:$LINENO: result: yes" >&5
7655echo "${ECHO_T}yes" >&6
7656 else
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
7659 fi
7660
7661
7662
7663
7664
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-controls or --disable-controls was given.
7670if test "${enable_controls+set}" = set; then
7671 enableval="$enable_controls"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7675 else
7676 ac_cv_use_controls='wxUSE_CONTROLS=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7689
7690fi;
7691
7692 eval "$ac_cv_use_controls"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CONTROLS" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
7706if test "$wxUSE_CONTROLS" = "yes"; then
7707 DEFAULT_wxUSE_ACCEL=yes
7708 DEFAULT_wxUSE_BMPBUTTON=yes
7709 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7710 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7711 DEFAULT_wxUSE_CARET=yes
7712 DEFAULT_wxUSE_COMBOBOX=yes
7713 DEFAULT_wxUSE_CHECKBOX=yes
7714 DEFAULT_wxUSE_CHECKLISTBOX=yes
7715 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7716 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7717 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7718 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7719 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7720 DEFAULT_wxUSE_DISPLAY=yes
7721 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7722 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7723 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7724 DEFAULT_wxUSE_GAUGE=yes
7725 DEFAULT_wxUSE_GRID=yes
6954625c 7726 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7727 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7728 DEFAULT_wxUSE_IMAGLIST=yes
7729 DEFAULT_wxUSE_LISTBOOK=yes
7730 DEFAULT_wxUSE_LISTBOX=yes
7731 DEFAULT_wxUSE_LISTCTRL=yes
7732 DEFAULT_wxUSE_NOTEBOOK=yes
7733 DEFAULT_wxUSE_RADIOBOX=yes
7734 DEFAULT_wxUSE_RADIOBTN=yes
7735 DEFAULT_wxUSE_SASH=yes
7736 DEFAULT_wxUSE_SCROLLBAR=yes
7737 DEFAULT_wxUSE_SLIDER=yes
7738 DEFAULT_wxUSE_SPINBTN=yes
7739 DEFAULT_wxUSE_SPINCTRL=yes
7740 DEFAULT_wxUSE_SPLITTER=yes
7741 DEFAULT_wxUSE_STATBMP=yes
7742 DEFAULT_wxUSE_STATBOX=yes
7743 DEFAULT_wxUSE_STATLINE=yes
7744 DEFAULT_wxUSE_STATUSBAR=yes
7745 DEFAULT_wxUSE_TAB_DIALOG=yes
7746 DEFAULT_wxUSE_TOGGLEBTN=yes
7747 DEFAULT_wxUSE_TOOLBAR=yes
7748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7749 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7750 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7751 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7752 DEFAULT_wxUSE_TREECTRL=yes
7753 DEFAULT_wxUSE_POPUPWIN=yes
7754 DEFAULT_wxUSE_TIPWINDOW=yes
7755elif test "$wxUSE_CONTROLS" = "no"; then
7756 DEFAULT_wxUSE_ACCEL=no
7757 DEFAULT_wxUSE_BMPBUTTON=no
7758 DEFAULT_wxUSE_BUTTON=no
7759 DEFAULT_wxUSE_CALCTRL=no
7760 DEFAULT_wxUSE_CARET=no
7761 DEFAULT_wxUSE_COMBOBOX=no
7762 DEFAULT_wxUSE_CHECKBOX=no
7763 DEFAULT_wxUSE_CHECKLISTBOX=no
7764 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7765 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7766 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7767 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7768 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7769 DEFAULT_wxUSE_DISPLAY=no
7770 DEFAULT_wxUSE_DIRPICKERCTRL=no
7771 DEFAULT_wxUSE_FILEPICKERCTRL=no
7772 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7773 DEFAULT_wxUSE_GAUGE=no
7774 DEFAULT_wxUSE_GRID=no
6954625c 7775 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7776 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7777 DEFAULT_wxUSE_IMAGLIST=no
7778 DEFAULT_wxUSE_LISTBOOK=no
7779 DEFAULT_wxUSE_LISTBOX=no
7780 DEFAULT_wxUSE_LISTCTRL=no
7781 DEFAULT_wxUSE_NOTEBOOK=no
7782 DEFAULT_wxUSE_RADIOBOX=no
7783 DEFAULT_wxUSE_RADIOBTN=no
7784 DEFAULT_wxUSE_SASH=no
7785 DEFAULT_wxUSE_SCROLLBAR=no
7786 DEFAULT_wxUSE_SLIDER=no
7787 DEFAULT_wxUSE_SPINBTN=no
7788 DEFAULT_wxUSE_SPINCTRL=no
7789 DEFAULT_wxUSE_SPLITTER=no
7790 DEFAULT_wxUSE_STATBMP=no
7791 DEFAULT_wxUSE_STATBOX=no
7792 DEFAULT_wxUSE_STATLINE=no
7793 DEFAULT_wxUSE_STATUSBAR=no
7794 DEFAULT_wxUSE_TAB_DIALOG=no
7795 DEFAULT_wxUSE_TOGGLEBTN=no
7796 DEFAULT_wxUSE_TOOLBAR=no
7797 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7798 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7799 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7800 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7801 DEFAULT_wxUSE_TREECTRL=no
7802 DEFAULT_wxUSE_POPUPWIN=no
7803 DEFAULT_wxUSE_TIPWINDOW=no
7804fi
7805
a848cd7e
SC
7806
7807 enablestring=
7808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7809echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7810 no_cache=0
7811 # Check whether --enable-accel or --disable-accel was given.
7812if test "${enable_accel+set}" = set; then
7813 enableval="$enable_accel"
7814
7815 if test "$enableval" = yes; then
7816 ac_cv_use_accel='wxUSE_ACCEL=yes'
7817 else
7818 ac_cv_use_accel='wxUSE_ACCEL=no'
7819 fi
7820
7821else
7822
7823 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7824 if test "x$LINE" != x ; then
7825 eval "DEFAULT_$LINE"
7826 else
7827 no_cache=1
7828 fi
7829
7830 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7831
7832fi;
7833
7834 eval "$ac_cv_use_accel"
7835 if test "$no_cache" != 1; then
7836 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7837 fi
7838
7839 if test "$wxUSE_ACCEL" = yes; then
7840 echo "$as_me:$LINENO: result: yes" >&5
7841echo "${ECHO_T}yes" >&6
7842 else
7843 echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6
7845 fi
7846
7847
7848 enablestring=
7849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7850echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7851 no_cache=0
7852 # Check whether --enable-button or --disable-button was given.
7853if test "${enable_button+set}" = set; then
7854 enableval="$enable_button"
7855
7856 if test "$enableval" = yes; then
7857 ac_cv_use_button='wxUSE_BUTTON=yes'
7858 else
7859 ac_cv_use_button='wxUSE_BUTTON=no'
7860 fi
7861
7862else
7863
7864 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7865 if test "x$LINE" != x ; then
7866 eval "DEFAULT_$LINE"
7867 else
7868 no_cache=1
7869 fi
7870
7871 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7872
7873fi;
7874
7875 eval "$ac_cv_use_button"
7876 if test "$no_cache" != 1; then
7877 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7878 fi
7879
7880 if test "$wxUSE_BUTTON" = yes; then
7881 echo "$as_me:$LINENO: result: yes" >&5
7882echo "${ECHO_T}yes" >&6
7883 else
7884 echo "$as_me:$LINENO: result: no" >&5
7885echo "${ECHO_T}no" >&6
7886 fi
7887
7888
7889 enablestring=
7890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7891echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7892 no_cache=0
7893 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7894if test "${enable_bmpbutton+set}" = set; then
7895 enableval="$enable_bmpbutton"
7896
7897 if test "$enableval" = yes; then
7898 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7899 else
7900 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7901 fi
7902
7903else
7904
7905 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7906 if test "x$LINE" != x ; then
7907 eval "DEFAULT_$LINE"
7908 else
7909 no_cache=1
7910 fi
7911
7912 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7913
7914fi;
7915
7916 eval "$ac_cv_use_bmpbutton"
7917 if test "$no_cache" != 1; then
7918 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7919 fi
7920
7921 if test "$wxUSE_BMPBUTTON" = yes; then
7922 echo "$as_me:$LINENO: result: yes" >&5
7923echo "${ECHO_T}yes" >&6
7924 else
7925 echo "$as_me:$LINENO: result: no" >&5
7926echo "${ECHO_T}no" >&6
7927 fi
7928
7929
7930 enablestring=
7931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7932echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7933 no_cache=0
7934 # Check whether --enable-calendar or --disable-calendar was given.
7935if test "${enable_calendar+set}" = set; then
7936 enableval="$enable_calendar"
7937
7938 if test "$enableval" = yes; then
7939 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7940 else
7941 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7942 fi
7943
7944else
7945
7946 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7954
7955fi;
7956
7957 eval "$ac_cv_use_calendar"
7958 if test "$no_cache" != 1; then
7959 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7960 fi
7961
7962 if test "$wxUSE_CALCTRL" = yes; then
7963 echo "$as_me:$LINENO: result: yes" >&5
7964echo "${ECHO_T}yes" >&6
7965 else
7966 echo "$as_me:$LINENO: result: no" >&5
7967echo "${ECHO_T}no" >&6
7968 fi
7969
7970
7971 enablestring=
7972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7973echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7974 no_cache=0
7975 # Check whether --enable-caret or --disable-caret was given.
7976if test "${enable_caret+set}" = set; then
7977 enableval="$enable_caret"
7978
7979 if test "$enableval" = yes; then
7980 ac_cv_use_caret='wxUSE_CARET=yes'
7981 else
7982 ac_cv_use_caret='wxUSE_CARET=no'
7983 fi
7984
7985else
7986
7987 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7988 if test "x$LINE" != x ; then
7989 eval "DEFAULT_$LINE"
7990 else
7991 no_cache=1
7992 fi
7993
7994 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7995
7996fi;
7997
7998 eval "$ac_cv_use_caret"
7999 if test "$no_cache" != 1; then
8000 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8001 fi
8002
8003 if test "$wxUSE_CARET" = yes; then
8004 echo "$as_me:$LINENO: result: yes" >&5
8005echo "${ECHO_T}yes" >&6
8006 else
8007 echo "$as_me:$LINENO: result: no" >&5
8008echo "${ECHO_T}no" >&6
8009 fi
8010
8011
8012 enablestring=
8013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8014echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8015 no_cache=0
8016 # Check whether --enable-checkbox or --disable-checkbox was given.
8017if test "${enable_checkbox+set}" = set; then
8018 enableval="$enable_checkbox"
8019
8020 if test "$enableval" = yes; then
8021 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8022 else
8023 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8024 fi
8025
8026else
8027
8028 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8029 if test "x$LINE" != x ; then
8030 eval "DEFAULT_$LINE"
8031 else
8032 no_cache=1
8033 fi
8034
8035 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8036
8037fi;
8038
8039 eval "$ac_cv_use_checkbox"
8040 if test "$no_cache" != 1; then
8041 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8042 fi
8043
8044 if test "$wxUSE_CHECKBOX" = yes; then
8045 echo "$as_me:$LINENO: result: yes" >&5
8046echo "${ECHO_T}yes" >&6
8047 else
8048 echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6
8050 fi
8051
8052
8053 enablestring=
8054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8055echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8056 no_cache=0
8057 # Check whether --enable-checklst or --disable-checklst was given.
8058if test "${enable_checklst+set}" = set; then
8059 enableval="$enable_checklst"
8060
8061 if test "$enableval" = yes; then
8062 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8063 else
8064 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8065 fi
8066
8067else
8068
8069 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8070 if test "x$LINE" != x ; then
8071 eval "DEFAULT_$LINE"
8072 else
8073 no_cache=1
8074 fi
8075
8076 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8077
8078fi;
8079
8080 eval "$ac_cv_use_checklst"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_CHECKLST" = yes; then
8086 echo "$as_me:$LINENO: result: yes" >&5
8087echo "${ECHO_T}yes" >&6
8088 else
8089 echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6
8091 fi
8092
8093
8094 enablestring=
8095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8096echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8097 no_cache=0
8098 # Check whether --enable-choice or --disable-choice was given.
8099if test "${enable_choice+set}" = set; then
8100 enableval="$enable_choice"
8101
8102 if test "$enableval" = yes; then
8103 ac_cv_use_choice='wxUSE_CHOICE=yes'
8104 else
8105 ac_cv_use_choice='wxUSE_CHOICE=no'
8106 fi
8107
8108else
8109
8110 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8111 if test "x$LINE" != x ; then
8112 eval "DEFAULT_$LINE"
8113 else
8114 no_cache=1
8115 fi
8116
8117 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8118
8119fi;
8120
8121 eval "$ac_cv_use_choice"
8122 if test "$no_cache" != 1; then
8123 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8124 fi
8125
8126 if test "$wxUSE_CHOICE" = yes; then
8127 echo "$as_me:$LINENO: result: yes" >&5
8128echo "${ECHO_T}yes" >&6
8129 else
8130 echo "$as_me:$LINENO: result: no" >&5
8131echo "${ECHO_T}no" >&6
8132 fi
8133
8134
92bbdbcd
WS
8135 enablestring=
8136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8137echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8138 no_cache=0
8139 # Check whether --enable-choicebook or --disable-choicebook was given.
8140if test "${enable_choicebook+set}" = set; then
8141 enableval="$enable_choicebook"
8142
8143 if test "$enableval" = yes; then
8144 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8145 else
8146 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8147 fi
8148
8149else
8150
8151 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8152 if test "x$LINE" != x ; then
8153 eval "DEFAULT_$LINE"
8154 else
8155 no_cache=1
8156 fi
8157
8158 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8159
8160fi;
8161
8162 eval "$ac_cv_use_choicebook"
8163 if test "$no_cache" != 1; then
8164 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8165 fi
8166
8167 if test "$wxUSE_CHOICEBOOK" = yes; then
8168 echo "$as_me:$LINENO: result: yes" >&5
8169echo "${ECHO_T}yes" >&6
8170 else
8171 echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
8173 fi
8174
8175
e9263684
VZ
8176 enablestring=
8177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8178echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8179 no_cache=0
8180 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8181if test "${enable_colourpicker+set}" = set; then
8182 enableval="$enable_colourpicker"
8183
8184 if test "$enableval" = yes; then
8185 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8186 else
8187 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8188 fi
8189
8190else
8191
8192 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8200
8201fi;
8202
8203 eval "$ac_cv_use_colourpicker"
8204 if test "$no_cache" != 1; then
8205 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8206 fi
8207
8208 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8209 echo "$as_me:$LINENO: result: yes" >&5
8210echo "${ECHO_T}yes" >&6
8211 else
8212 echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6
8214 fi
8215
8216
a848cd7e
SC
8217 enablestring=
8218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8219echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8220 no_cache=0
8221 # Check whether --enable-combobox or --disable-combobox was given.
8222if test "${enable_combobox+set}" = set; then
8223 enableval="$enable_combobox"
8224
8225 if test "$enableval" = yes; then
8226 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8227 else
8228 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8229 fi
8230
8231else
8232
8233 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8234 if test "x$LINE" != x ; then
8235 eval "DEFAULT_$LINE"
8236 else
8237 no_cache=1
8238 fi
8239
8240 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8241
8242fi;
8243
8244 eval "$ac_cv_use_combobox"
8245 if test "$no_cache" != 1; then
8246 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8247 fi
8248
8249 if test "$wxUSE_COMBOBOX" = yes; then
8250 echo "$as_me:$LINENO: result: yes" >&5
8251echo "${ECHO_T}yes" >&6
8252 else
8253 echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6
8255 fi
8256
8257
642bcba9 8258 enablestring=
a57d600f
VZ
8259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8260echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8261 no_cache=0
a57d600f
VZ
8262 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8263if test "${enable_comboctrl+set}" = set; then
8264 enableval="$enable_comboctrl"
642bcba9
VZ
8265
8266 if test "$enableval" = yes; then
a57d600f 8267 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8268 else
a57d600f 8269 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8270 fi
8271
8272else
8273
a57d600f 8274 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8275 if test "x$LINE" != x ; then
8276 eval "DEFAULT_$LINE"
8277 else
8278 no_cache=1
8279 fi
8280
a57d600f 8281 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8282
8283fi;
8284
a57d600f 8285 eval "$ac_cv_use_comboctrl"
642bcba9 8286 if test "$no_cache" != 1; then
a57d600f 8287 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8288 fi
8289
a57d600f 8290 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8291 echo "$as_me:$LINENO: result: yes" >&5
8292echo "${ECHO_T}yes" >&6
8293 else
8294 echo "$as_me:$LINENO: result: no" >&5
8295echo "${ECHO_T}no" >&6
8296 fi
8297
8298
da98e9be
VZ
8299 enablestring=
8300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8301echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8302 no_cache=0
8303 # Check whether --enable-datepick or --disable-datepick was given.
8304if test "${enable_datepick+set}" = set; then
8305 enableval="$enable_datepick"
8306
8307 if test "$enableval" = yes; then
8308 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8309 else
8310 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8311 fi
8312
8313else
8314
8315 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8316 if test "x$LINE" != x ; then
8317 eval "DEFAULT_$LINE"
8318 else
8319 no_cache=1
8320 fi
8321
8322 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8323
8324fi;
8325
8326 eval "$ac_cv_use_datepick"
8327 if test "$no_cache" != 1; then
8328 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8329 fi
8330
8331 if test "$wxUSE_DATEPICKCTRL" = yes; then
8332 echo "$as_me:$LINENO: result: yes" >&5
8333echo "${ECHO_T}yes" >&6
8334 else
8335 echo "$as_me:$LINENO: result: no" >&5
8336echo "${ECHO_T}no" >&6
8337 fi
8338
8339
e9263684
VZ
8340 enablestring=
8341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8342echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8343 no_cache=0
8344 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8345if test "${enable_dirpicker+set}" = set; then
8346 enableval="$enable_dirpicker"
8347
8348 if test "$enableval" = yes; then
8349 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8350 else
8351 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8352 fi
8353
8354else
8355
8356 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8357 if test "x$LINE" != x ; then
8358 eval "DEFAULT_$LINE"
8359 else
8360 no_cache=1
8361 fi
8362
8363 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8364
8365fi;
8366
8367 eval "$ac_cv_use_dirpicker"
8368 if test "$no_cache" != 1; then
8369 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8370 fi
8371
8372 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8373 echo "$as_me:$LINENO: result: yes" >&5
8374echo "${ECHO_T}yes" >&6
8375 else
8376 echo "$as_me:$LINENO: result: no" >&5
8377echo "${ECHO_T}no" >&6
8378 fi
8379
8380
a848cd7e
SC
8381 enablestring=
8382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8383echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8384 no_cache=0
8385 # Check whether --enable-display or --disable-display was given.
8386if test "${enable_display+set}" = set; then
8387 enableval="$enable_display"
8388
8389 if test "$enableval" = yes; then
8390 ac_cv_use_display='wxUSE_DISPLAY=yes'
8391 else
8392 ac_cv_use_display='wxUSE_DISPLAY=no'
8393 fi
8394
8395else
8396
8397 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8398 if test "x$LINE" != x ; then
8399 eval "DEFAULT_$LINE"
8400 else
8401 no_cache=1
8402 fi
8403
8404 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8405
8406fi;
8407
8408 eval "$ac_cv_use_display"
8409 if test "$no_cache" != 1; then
8410 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8411 fi
8412
8413 if test "$wxUSE_DISPLAY" = yes; then
8414 echo "$as_me:$LINENO: result: yes" >&5
8415echo "${ECHO_T}yes" >&6
8416 else
8417 echo "$as_me:$LINENO: result: no" >&5
8418echo "${ECHO_T}no" >&6
8419 fi
8420
8421
e9263684
VZ
8422 enablestring=
8423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8424echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8425 no_cache=0
8426 # Check whether --enable-filepicker or --disable-filepicker was given.
8427if test "${enable_filepicker+set}" = set; then
8428 enableval="$enable_filepicker"
8429
8430 if test "$enableval" = yes; then
8431 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8432 else
8433 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8434 fi
8435
8436else
8437
8438 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8439 if test "x$LINE" != x ; then
8440 eval "DEFAULT_$LINE"
8441 else
8442 no_cache=1
8443 fi
8444
8445 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8446
8447fi;
8448
8449 eval "$ac_cv_use_filepicker"
8450 if test "$no_cache" != 1; then
8451 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8452 fi
8453
8454 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8455 echo "$as_me:$LINENO: result: yes" >&5
8456echo "${ECHO_T}yes" >&6
8457 else
8458 echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
8460 fi
8461
8462
8463 enablestring=
8464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8465echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8466 no_cache=0
8467 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8468if test "${enable_fontpicker+set}" = set; then
8469 enableval="$enable_fontpicker"
8470
8471 if test "$enableval" = yes; then
8472 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8473 else
8474 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8475 fi
8476
8477else
8478
8479 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8480 if test "x$LINE" != x ; then
8481 eval "DEFAULT_$LINE"
8482 else
8483 no_cache=1
8484 fi
8485
8486 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8487
8488fi;
8489
8490 eval "$ac_cv_use_fontpicker"
8491 if test "$no_cache" != 1; then
8492 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8493 fi
8494
8495 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8496 echo "$as_me:$LINENO: result: yes" >&5
8497echo "${ECHO_T}yes" >&6
8498 else
8499 echo "$as_me:$LINENO: result: no" >&5
8500echo "${ECHO_T}no" >&6
8501 fi
8502
8503
a848cd7e
SC
8504 enablestring=
8505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8506echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8507 no_cache=0
8508 # Check whether --enable-gauge or --disable-gauge was given.
8509if test "${enable_gauge+set}" = set; then
8510 enableval="$enable_gauge"
8511
8512 if test "$enableval" = yes; then
8513 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8514 else
8515 ac_cv_use_gauge='wxUSE_GAUGE=no'
8516 fi
8517
8518else
8519
8520 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8521 if test "x$LINE" != x ; then
8522 eval "DEFAULT_$LINE"
8523 else
8524 no_cache=1
8525 fi
8526
8527 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8528
8529fi;
8530
8531 eval "$ac_cv_use_gauge"
8532 if test "$no_cache" != 1; then
8533 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8534 fi
8535
8536 if test "$wxUSE_GAUGE" = yes; then
8537 echo "$as_me:$LINENO: result: yes" >&5
8538echo "${ECHO_T}yes" >&6
8539 else
8540 echo "$as_me:$LINENO: result: no" >&5
8541echo "${ECHO_T}no" >&6
8542 fi
8543
8544
8545 enablestring=
8546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8547echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8548 no_cache=0
8549 # Check whether --enable-grid or --disable-grid was given.
8550if test "${enable_grid+set}" = set; then
8551 enableval="$enable_grid"
8552
8553 if test "$enableval" = yes; then
8554 ac_cv_use_grid='wxUSE_GRID=yes'
8555 else
8556 ac_cv_use_grid='wxUSE_GRID=no'
8557 fi
8558
8559else
8560
8561 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8562 if test "x$LINE" != x ; then
8563 eval "DEFAULT_$LINE"
8564 else
8565 no_cache=1
8566 fi
8567
8568 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8569
8570fi;
8571
8572 eval "$ac_cv_use_grid"
8573 if test "$no_cache" != 1; then
8574 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8575 fi
8576
8577 if test "$wxUSE_GRID" = yes; then
8578 echo "$as_me:$LINENO: result: yes" >&5
8579echo "${ECHO_T}yes" >&6
8580 else
8581 echo "$as_me:$LINENO: result: no" >&5
8582echo "${ECHO_T}no" >&6
8583 fi
8584
8585
20e34ecc
RR
8586 enablestring=
8587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8588echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8589 no_cache=0
8590 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8591if test "${enable_dataviewctrl+set}" = set; then
8592 enableval="$enable_dataviewctrl"
8593
8594 if test "$enableval" = yes; then
8595 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8596 else
8597 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8598 fi
8599
8600else
8601
8602 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8603 if test "x$LINE" != x ; then
8604 eval "DEFAULT_$LINE"
8605 else
8606 no_cache=1
8607 fi
8608
8609 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8610
8611fi;
8612
8613 eval "$ac_cv_use_dataviewctrl"
8614 if test "$no_cache" != 1; then
8615 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8616 fi
8617
8618 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8619 echo "$as_me:$LINENO: result: yes" >&5
8620echo "${ECHO_T}yes" >&6
8621 else
8622 echo "$as_me:$LINENO: result: no" >&5
8623echo "${ECHO_T}no" >&6
8624 fi
8625
8626
6954625c
VZ
8627 enablestring=
8628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8629echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8630 no_cache=0
8631 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8632if test "${enable_hyperlink+set}" = set; then
8633 enableval="$enable_hyperlink"
8634
8635 if test "$enableval" = yes; then
8636 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8637 else
8638 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8639 fi
8640
8641else
8642
8643 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8644 if test "x$LINE" != x ; then
8645 eval "DEFAULT_$LINE"
8646 else
8647 no_cache=1
8648 fi
8649
8650 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8651
8652fi;
8653
8654 eval "$ac_cv_use_hyperlink"
8655 if test "$no_cache" != 1; then
8656 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8657 fi
8658
8659 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8660 echo "$as_me:$LINENO: result: yes" >&5
8661echo "${ECHO_T}yes" >&6
8662 else
8663 echo "$as_me:$LINENO: result: no" >&5
8664echo "${ECHO_T}no" >&6
8665 fi
8666
8667
a848cd7e
SC
8668 enablestring=
8669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8670echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8671 no_cache=0
8672 # Check whether --enable-imaglist or --disable-imaglist was given.
8673if test "${enable_imaglist+set}" = set; then
8674 enableval="$enable_imaglist"
8675
8676 if test "$enableval" = yes; then
8677 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8678 else
8679 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8680 fi
8681
8682else
8683
8684 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8685 if test "x$LINE" != x ; then
8686 eval "DEFAULT_$LINE"
8687 else
8688 no_cache=1
8689 fi
8690
8691 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8692
8693fi;
8694
8695 eval "$ac_cv_use_imaglist"
8696 if test "$no_cache" != 1; then
8697 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8698 fi
8699
8700 if test "$wxUSE_IMAGLIST" = yes; then
8701 echo "$as_me:$LINENO: result: yes" >&5
8702echo "${ECHO_T}yes" >&6
8703 else
8704 echo "$as_me:$LINENO: result: no" >&5
8705echo "${ECHO_T}no" >&6
8706 fi
8707
8708
8709 enablestring=
8710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8711echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8712 no_cache=0
8713 # Check whether --enable-listbook or --disable-listbook was given.
8714if test "${enable_listbook+set}" = set; then
8715 enableval="$enable_listbook"
8716
8717 if test "$enableval" = yes; then
8718 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8719 else
8720 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8721 fi
8722
8723else
8724
8725 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8726 if test "x$LINE" != x ; then
8727 eval "DEFAULT_$LINE"
8728 else
8729 no_cache=1
8730 fi
8731
8732 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8733
8734fi;
8735
8736 eval "$ac_cv_use_listbook"
8737 if test "$no_cache" != 1; then
8738 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8739 fi
8740
8741 if test "$wxUSE_LISTBOOK" = yes; then
8742 echo "$as_me:$LINENO: result: yes" >&5
8743echo "${ECHO_T}yes" >&6
8744 else
8745 echo "$as_me:$LINENO: result: no" >&5
8746echo "${ECHO_T}no" >&6
8747 fi
8748
8749
8750 enablestring=
8751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8752echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8753 no_cache=0
8754 # Check whether --enable-listbox or --disable-listbox was given.
8755if test "${enable_listbox+set}" = set; then
8756 enableval="$enable_listbox"
8757
8758 if test "$enableval" = yes; then
8759 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8760 else
8761 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8762 fi
8763
8764else
8765
8766 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8767 if test "x$LINE" != x ; then
8768 eval "DEFAULT_$LINE"
8769 else
8770 no_cache=1
8771 fi
8772
8773 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8774
8775fi;
8776
8777 eval "$ac_cv_use_listbox"
8778 if test "$no_cache" != 1; then
8779 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8780 fi
8781
8782 if test "$wxUSE_LISTBOX" = yes; then
8783 echo "$as_me:$LINENO: result: yes" >&5
8784echo "${ECHO_T}yes" >&6
8785 else
8786 echo "$as_me:$LINENO: result: no" >&5
8787echo "${ECHO_T}no" >&6
8788 fi
8789
8790
8791 enablestring=
8792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8793echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8794 no_cache=0
8795 # Check whether --enable-listctrl or --disable-listctrl was given.
8796if test "${enable_listctrl+set}" = set; then
8797 enableval="$enable_listctrl"
8798
8799 if test "$enableval" = yes; then
8800 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8801 else
8802 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8803 fi
8804
8805else
8806
8807 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8808 if test "x$LINE" != x ; then
8809 eval "DEFAULT_$LINE"
8810 else
8811 no_cache=1
8812 fi
8813
8814 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8815
8816fi;
8817
8818 eval "$ac_cv_use_listctrl"
8819 if test "$no_cache" != 1; then
8820 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8821 fi
8822
8823 if test "$wxUSE_LISTCTRL" = yes; then
8824 echo "$as_me:$LINENO: result: yes" >&5
8825echo "${ECHO_T}yes" >&6
8826 else
8827 echo "$as_me:$LINENO: result: no" >&5
8828echo "${ECHO_T}no" >&6
8829 fi
8830
8831
8832 enablestring=
8833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8834echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8835 no_cache=0
8836 # Check whether --enable-notebook or --disable-notebook was given.
8837if test "${enable_notebook+set}" = set; then
8838 enableval="$enable_notebook"
8839
8840 if test "$enableval" = yes; then
8841 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8842 else
8843 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8844 fi
8845
8846else
8847
8848 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8849 if test "x$LINE" != x ; then
8850 eval "DEFAULT_$LINE"
8851 else
8852 no_cache=1
8853 fi
8854
8855 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8856
8857fi;
8858
8859 eval "$ac_cv_use_notebook"
8860 if test "$no_cache" != 1; then
8861 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8862 fi
8863
8864 if test "$wxUSE_NOTEBOOK" = yes; then
8865 echo "$as_me:$LINENO: result: yes" >&5
8866echo "${ECHO_T}yes" >&6
8867 else
8868 echo "$as_me:$LINENO: result: no" >&5
8869echo "${ECHO_T}no" >&6
8870 fi
8871
8872
642bcba9 8873 enablestring=
a57d600f
VZ
8874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8875echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8876 no_cache=0
a57d600f
VZ
8877 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8878if test "${enable_odcombobox+set}" = set; then
8879 enableval="$enable_odcombobox"
642bcba9
VZ
8880
8881 if test "$enableval" = yes; then
a57d600f 8882 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8883 else
a57d600f 8884 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8885 fi
8886
8887else
8888
a57d600f 8889 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8890 if test "x$LINE" != x ; then
8891 eval "DEFAULT_$LINE"
8892 else
8893 no_cache=1
8894 fi
8895
a57d600f 8896 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8897
8898fi;
8899
a57d600f 8900 eval "$ac_cv_use_odcombobox"
642bcba9 8901 if test "$no_cache" != 1; then
a57d600f 8902 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8903 fi
8904
a57d600f 8905 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8906 echo "$as_me:$LINENO: result: yes" >&5
8907echo "${ECHO_T}yes" >&6
8908 else
8909 echo "$as_me:$LINENO: result: no" >&5
8910echo "${ECHO_T}no" >&6
8911 fi
8912
8913
a848cd7e
SC
8914 enablestring=
8915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8916echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8917 no_cache=0
8918 # Check whether --enable-radiobox or --disable-radiobox was given.
8919if test "${enable_radiobox+set}" = set; then
8920 enableval="$enable_radiobox"
8921
8922 if test "$enableval" = yes; then
8923 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8924 else
8925 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8926 fi
8927
8928else
8929
8930 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8931 if test "x$LINE" != x ; then
8932 eval "DEFAULT_$LINE"
8933 else
8934 no_cache=1
8935 fi
8936
8937 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8938
8939fi;
8940
8941 eval "$ac_cv_use_radiobox"
8942 if test "$no_cache" != 1; then
8943 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8944 fi
8945
8946 if test "$wxUSE_RADIOBOX" = yes; then
8947 echo "$as_me:$LINENO: result: yes" >&5
8948echo "${ECHO_T}yes" >&6
8949 else
8950 echo "$as_me:$LINENO: result: no" >&5
8951echo "${ECHO_T}no" >&6
8952 fi
8953
8954
8955 enablestring=
8956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8957echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8958 no_cache=0
8959 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8960if test "${enable_radiobtn+set}" = set; then
8961 enableval="$enable_radiobtn"
8962
8963 if test "$enableval" = yes; then
8964 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8965 else
8966 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8967 fi
8968
8969else
8970
8971 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8972 if test "x$LINE" != x ; then
8973 eval "DEFAULT_$LINE"
8974 else
8975 no_cache=1
8976 fi
8977
8978 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8979
8980fi;
8981
8982 eval "$ac_cv_use_radiobtn"
8983 if test "$no_cache" != 1; then
8984 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8985 fi
8986
8987 if test "$wxUSE_RADIOBTN" = yes; then
8988 echo "$as_me:$LINENO: result: yes" >&5
8989echo "${ECHO_T}yes" >&6
8990 else
8991 echo "$as_me:$LINENO: result: no" >&5
8992echo "${ECHO_T}no" >&6
8993 fi
8994
8995
8996 enablestring=
8997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8998echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8999 no_cache=0
9000 # Check whether --enable-sash or --disable-sash was given.
9001if test "${enable_sash+set}" = set; then
9002 enableval="$enable_sash"
9003
9004 if test "$enableval" = yes; then
9005 ac_cv_use_sash='wxUSE_SASH=yes'
9006 else
9007 ac_cv_use_sash='wxUSE_SASH=no'
9008 fi
9009
9010else
9011
9012 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9013 if test "x$LINE" != x ; then
9014 eval "DEFAULT_$LINE"
9015 else
9016 no_cache=1
9017 fi
9018
9019 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9020
9021fi;
9022
9023 eval "$ac_cv_use_sash"
9024 if test "$no_cache" != 1; then
9025 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9026 fi
9027
9028 if test "$wxUSE_SASH" = yes; then
9029 echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
9031 else
9032 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
9034 fi
9035
9036
9037 enablestring=
9038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9039echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9040 no_cache=0
9041 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9042if test "${enable_scrollbar+set}" = set; then
9043 enableval="$enable_scrollbar"
9044
9045 if test "$enableval" = yes; then
9046 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9047 else
9048 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9049 fi
9050
9051else
9052
9053 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9054 if test "x$LINE" != x ; then
9055 eval "DEFAULT_$LINE"
9056 else
9057 no_cache=1
9058 fi
9059
9060 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9061
9062fi;
9063
9064 eval "$ac_cv_use_scrollbar"
9065 if test "$no_cache" != 1; then
9066 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9067 fi
9068
9069 if test "$wxUSE_SCROLLBAR" = yes; then
9070 echo "$as_me:$LINENO: result: yes" >&5
9071echo "${ECHO_T}yes" >&6
9072 else
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
9075 fi
9076
9077
9078 enablestring=
9079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9080echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9081 no_cache=0
9082 # Check whether --enable-slider or --disable-slider was given.
9083if test "${enable_slider+set}" = set; then
9084 enableval="$enable_slider"
9085
9086 if test "$enableval" = yes; then
9087 ac_cv_use_slider='wxUSE_SLIDER=yes'
9088 else
9089 ac_cv_use_slider='wxUSE_SLIDER=no'
9090 fi
9091
9092else
9093
9094 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9095 if test "x$LINE" != x ; then
9096 eval "DEFAULT_$LINE"
9097 else
9098 no_cache=1
9099 fi
9100
9101 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9102
9103fi;
9104
9105 eval "$ac_cv_use_slider"
9106 if test "$no_cache" != 1; then
9107 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9108 fi
9109
9110 if test "$wxUSE_SLIDER" = yes; then
9111 echo "$as_me:$LINENO: result: yes" >&5
9112echo "${ECHO_T}yes" >&6
9113 else
9114 echo "$as_me:$LINENO: result: no" >&5
9115echo "${ECHO_T}no" >&6
9116 fi
9117
9118
9119 enablestring=
9120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9121echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9122 no_cache=0
9123 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9124if test "${enable_spinbtn+set}" = set; then
9125 enableval="$enable_spinbtn"
9126
9127 if test "$enableval" = yes; then
9128 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9129 else
9130 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9131 fi
9132
9133else
9134
9135 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9136 if test "x$LINE" != x ; then
9137 eval "DEFAULT_$LINE"
9138 else
9139 no_cache=1
9140 fi
9141
9142 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9143
9144fi;
9145
9146 eval "$ac_cv_use_spinbtn"
9147 if test "$no_cache" != 1; then
9148 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9149 fi
9150
9151 if test "$wxUSE_SPINBTN" = yes; then
9152 echo "$as_me:$LINENO: result: yes" >&5
9153echo "${ECHO_T}yes" >&6
9154 else
9155 echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
9157 fi
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9165if test "${enable_spinctrl+set}" = set; then
9166 enableval="$enable_spinctrl"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9170 else
9171 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9184
9185fi;
9186
9187 eval "$ac_cv_use_spinctrl"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_SPINCTRL" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-splitter or --disable-splitter was given.
9206if test "${enable_splitter+set}" = set; then
9207 enableval="$enable_splitter"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9211 else
9212 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9225
9226fi;
9227
9228 eval "$ac_cv_use_splitter"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_SPLITTER" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-statbmp or --disable-statbmp was given.
9247if test "${enable_statbmp+set}" = set; then
9248 enableval="$enable_statbmp"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9252 else
9253 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9266
9267fi;
9268
9269 eval "$ac_cv_use_statbmp"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_STATBMP" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-statbox or --disable-statbox was given.
9288if test "${enable_statbox+set}" = set; then
9289 enableval="$enable_statbox"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9293 else
9294 ac_cv_use_statbox='wxUSE_STATBOX=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9307
9308fi;
9309
9310 eval "$ac_cv_use_statbox"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_STATBOX" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-statline or --disable-statline was given.
9329if test "${enable_statline+set}" = set; then
9330 enableval="$enable_statline"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_statline='wxUSE_STATLINE=yes'
9334 else
9335 ac_cv_use_statline='wxUSE_STATLINE=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9348
9349fi;
9350
9351 eval "$ac_cv_use_statline"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_STATLINE" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-stattext or --disable-stattext was given.
9370if test "${enable_stattext+set}" = set; then
9371 enableval="$enable_stattext"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9375 else
9376 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9389
9390fi;
9391
9392 eval "$ac_cv_use_stattext"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_STATTEXT" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-statusbar or --disable-statusbar was given.
9411if test "${enable_statusbar+set}" = set; then
9412 enableval="$enable_statusbar"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9416 else
9417 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9430
9431fi;
9432
9433 eval "$ac_cv_use_statusbar"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_STATUSBAR" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9452if test "${enable_tabdialog+set}" = set; then
9453 enableval="$enable_tabdialog"
9454
9455 if test "$enableval" = yes; then
f10e38c4 9456 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9457 else
f10e38c4 9458 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9459 fi
9460
9461else
9462
f10e38c4 9463 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
f10e38c4 9470 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9471
9472fi;
9473
9474 eval "$ac_cv_use_tabdialog"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9477 fi
9478
f10e38c4 9479 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488 enablestring=
9489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9490echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9491 no_cache=0
9492 # Check whether --enable-textctrl or --disable-textctrl was given.
9493if test "${enable_textctrl+set}" = set; then
9494 enableval="$enable_textctrl"
9495
9496 if test "$enableval" = yes; then
9497 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9498 else
9499 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9500 fi
9501
9502else
9503
9504 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9505 if test "x$LINE" != x ; then
9506 eval "DEFAULT_$LINE"
9507 else
9508 no_cache=1
9509 fi
9510
9511 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9512
9513fi;
9514
9515 eval "$ac_cv_use_textctrl"
9516 if test "$no_cache" != 1; then
9517 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9518 fi
9519
9520 if test "$wxUSE_TEXTCTRL" = yes; then
9521 echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6
9523 else
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526 fi
9527
9528
9529 enablestring=
9530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9531echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9532 no_cache=0
9533 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9534if test "${enable_togglebtn+set}" = set; then
9535 enableval="$enable_togglebtn"
9536
9537 if test "$enableval" = yes; then
9538 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9539 else
9540 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9541 fi
9542
9543else
9544
9545 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9546 if test "x$LINE" != x ; then
9547 eval "DEFAULT_$LINE"
9548 else
9549 no_cache=1
9550 fi
9551
9552 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9553
9554fi;
9555
9556 eval "$ac_cv_use_togglebtn"
9557 if test "$no_cache" != 1; then
9558 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9559 fi
9560
9561 if test "$wxUSE_TOGGLEBTN" = yes; then
9562 echo "$as_me:$LINENO: result: yes" >&5
9563echo "${ECHO_T}yes" >&6
9564 else
9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
9567 fi
9568
9569
9570 enablestring=
9571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9572echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9573 no_cache=0
9574 # Check whether --enable-toolbar or --disable-toolbar was given.
9575if test "${enable_toolbar+set}" = set; then
9576 enableval="$enable_toolbar"
9577
9578 if test "$enableval" = yes; then
9579 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9580 else
9581 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9582 fi
9583
9584else
9585
9586 LINE=`grep "wxUSE_TOOLBAR" ${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_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9594
9595fi;
9596
9597 eval "$ac_cv_use_toolbar"
9598 if test "$no_cache" != 1; then
9599 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9600 fi
9601
9602 if test "$wxUSE_TOOLBAR" = 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}-tbarnative" >&5
9613echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9614 no_cache=0
9615 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9616if test "${enable_tbarnative+set}" = set; then
9617 enableval="$enable_tbarnative"
9618
9619 if test "$enableval" = yes; then
9620 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9621 else
9622 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9623 fi
9624
9625else
9626
9627 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${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_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9635
9636fi;
9637
9638 eval "$ac_cv_use_tbarnative"
9639 if test "$no_cache" != 1; then
9640 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9641 fi
9642
9643 if test "$wxUSE_TOOLBAR_NATIVE" = 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
0093c2fc
VZ
9652 enablestring=
9653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9654echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9655 no_cache=0
9656 # Check whether --enable-treebook or --disable-treebook was given.
9657if test "${enable_treebook+set}" = set; then
9658 enableval="$enable_treebook"
9659
9660 if test "$enableval" = yes; then
9661 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9662 else
9663 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9664 fi
9665
9666else
9667
9668 LINE=`grep "wxUSE_TREEBOOK" ${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_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9676
9677fi;
9678
9679 eval "$ac_cv_use_treebook"
9680 if test "$no_cache" != 1; then
9681 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9682 fi
9683
9684 if test "$wxUSE_TREEBOOK" = 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
5ec3bc43
JS
9693 enablestring=
9694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9695echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9696 no_cache=0
9697 # Check whether --enable-toolbook or --disable-toolbook was given.
9698if test "${enable_toolbook+set}" = set; then
9699 enableval="$enable_toolbook"
9700
9701 if test "$enableval" = yes; then
9702 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9703 else
9704 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9705 fi
9706
9707else
9708
9709 LINE=`grep "wxUSE_TOOLBOOK" ${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_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9717
9718fi;
9719
9720 eval "$ac_cv_use_toolbook"
9721 if test "$no_cache" != 1; then
9722 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9723 fi
9724
9725 if test "$wxUSE_TOOLBOOK" = 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
a848cd7e
SC
9734 enablestring=
9735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9736echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9737 no_cache=0
9738 # Check whether --enable-treectrl or --disable-treectrl was given.
9739if test "${enable_treectrl+set}" = set; then
9740 enableval="$enable_treectrl"
9741
9742 if test "$enableval" = yes; then
9743 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9744 else
9745 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9746 fi
9747
9748else
9749
9750 LINE=`grep "wxUSE_TREECTRL" ${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_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9758
9759fi;
9760
9761 eval "$ac_cv_use_treectrl"
9762 if test "$no_cache" != 1; then
9763 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9764 fi
9765
9766 if test "$wxUSE_TREECTRL" = 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}-tipwindow" >&5
9777echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9778 no_cache=0
9779 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9780if test "${enable_tipwindow+set}" = set; then
9781 enableval="$enable_tipwindow"
9782
9783 if test "$enableval" = yes; then
9784 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9785 else
9786 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9787 fi
9788
9789else
9790
9791 LINE=`grep "wxUSE_TIPWINDOW" ${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_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9799
9800fi;
9801
9802 eval "$ac_cv_use_tipwindow"
9803 if test "$no_cache" != 1; then
9804 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9805 fi
9806
9807 if test "$wxUSE_TIPWINDOW" = 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}-popupwin" >&5
9818echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9819 no_cache=0
9820 # Check whether --enable-popupwin or --disable-popupwin was given.
9821if test "${enable_popupwin+set}" = set; then
9822 enableval="$enable_popupwin"
9823
9824 if test "$enableval" = yes; then
9825 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9826 else
9827 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9828 fi
9829
9830else
9831
9832 LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9840
9841fi;
9842
9843 eval "$ac_cv_use_popupwin"
9844 if test "$no_cache" != 1; then
9845 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9846 fi
9847
9848 if test "$wxUSE_POPUPWIN" = 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
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-commondlg or --disable-commondlg was given.
9864if test "${enable_commondlg+set}" = set; then
9865 enableval="$enable_commondlg"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9869 else
9870 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9883
9884fi;
9885
9886 eval "$ac_cv_use_commondlg"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_COMMONDLGS" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
9900 enablestring=
9901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9902echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9903 no_cache=0
9904 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9905if test "${enable_choicedlg+set}" = set; then
9906 enableval="$enable_choicedlg"
9907
9908 if test "$enableval" = yes; then
9909 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9910 else
9911 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9912 fi
9913
9914else
9915
9916 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9917 if test "x$LINE" != x ; then
9918 eval "DEFAULT_$LINE"
9919 else
9920 no_cache=1
9921 fi
9922
9923 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9924
9925fi;
9926
9927 eval "$ac_cv_use_choicedlg"
9928 if test "$no_cache" != 1; then
9929 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9930 fi
9931
9932 if test "$wxUSE_CHOICEDLG" = yes; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938 fi
9939
9940
9941 enablestring=
9942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9943echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9944 no_cache=0
9945 # Check whether --enable-coldlg or --disable-coldlg was given.
9946if test "${enable_coldlg+set}" = set; then
9947 enableval="$enable_coldlg"
9948
9949 if test "$enableval" = yes; then
9950 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9951 else
9952 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9953 fi
9954
9955else
9956
9957 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9958 if test "x$LINE" != x ; then
9959 eval "DEFAULT_$LINE"
9960 else
9961 no_cache=1
9962 fi
9963
9964 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9965
9966fi;
9967
9968 eval "$ac_cv_use_coldlg"
9969 if test "$no_cache" != 1; then
9970 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9971 fi
9972
9973 if test "$wxUSE_COLOURDLG" = yes; then
9974 echo "$as_me:$LINENO: result: yes" >&5
9975echo "${ECHO_T}yes" >&6
9976 else
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
9979 fi
9980
9981
9982 enablestring=
9983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9984echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9985 no_cache=0
9986 # Check whether --enable-filedlg or --disable-filedlg was given.
9987if test "${enable_filedlg+set}" = set; then
9988 enableval="$enable_filedlg"
9989
9990 if test "$enableval" = yes; then
9991 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9992 else
9993 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9994 fi
9995
9996else
9997
9998 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9999 if test "x$LINE" != x ; then
10000 eval "DEFAULT_$LINE"
10001 else
10002 no_cache=1
10003 fi
10004
10005 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10006
10007fi;
10008
10009 eval "$ac_cv_use_filedlg"
10010 if test "$no_cache" != 1; then
10011 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10012 fi
10013
10014 if test "$wxUSE_FILEDLG" = yes; then
10015 echo "$as_me:$LINENO: result: yes" >&5
10016echo "${ECHO_T}yes" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020 fi
10021
10022
10023 enablestring=
10024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10025echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10026 no_cache=0
10027 # Check whether --enable-finddlg or --disable-finddlg was given.
10028if test "${enable_finddlg+set}" = set; then
10029 enableval="$enable_finddlg"
10030
10031 if test "$enableval" = yes; then
10032 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10033 else
10034 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10035 fi
10036
10037else
10038
10039 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10040 if test "x$LINE" != x ; then
10041 eval "DEFAULT_$LINE"
10042 else
10043 no_cache=1
10044 fi
10045
10046 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10047
10048fi;
10049
10050 eval "$ac_cv_use_finddlg"
10051 if test "$no_cache" != 1; then
10052 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10053 fi
10054
10055 if test "$wxUSE_FINDREPLDLG" = yes; then
10056 echo "$as_me:$LINENO: result: yes" >&5
10057echo "${ECHO_T}yes" >&6
10058 else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061 fi
10062
10063
10064 enablestring=
10065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10066echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10067 no_cache=0
10068 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10069if test "${enable_fontdlg+set}" = set; then
10070 enableval="$enable_fontdlg"
10071
10072 if test "$enableval" = yes; then
10073 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10074 else
10075 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10076 fi
10077
10078else
10079
10080 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10081 if test "x$LINE" != x ; then
10082 eval "DEFAULT_$LINE"
10083 else
10084 no_cache=1
10085 fi
10086
10087 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10088
10089fi;
10090
10091 eval "$ac_cv_use_fontdlg"
10092 if test "$no_cache" != 1; then
10093 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10094 fi
10095
10096 if test "$wxUSE_FONTDLG" = yes; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098echo "${ECHO_T}yes" >&6
10099 else
10100 echo "$as_me:$LINENO: result: no" >&5
10101echo "${ECHO_T}no" >&6
10102 fi
10103
10104
10105 enablestring=
10106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10107echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10108 no_cache=0
10109 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10110if test "${enable_dirdlg+set}" = set; then
10111 enableval="$enable_dirdlg"
10112
10113 if test "$enableval" = yes; then
10114 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10115 else
10116 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10117 fi
10118
10119else
10120
10121 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10122 if test "x$LINE" != x ; then
10123 eval "DEFAULT_$LINE"
10124 else
10125 no_cache=1
10126 fi
10127
10128 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10129
10130fi;
10131
10132 eval "$ac_cv_use_dirdlg"
10133 if test "$no_cache" != 1; then
10134 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10135 fi
10136
10137 if test "$wxUSE_DIRDLG" = yes; then
10138 echo "$as_me:$LINENO: result: yes" >&5
10139echo "${ECHO_T}yes" >&6
10140 else
10141 echo "$as_me:$LINENO: result: no" >&5
10142echo "${ECHO_T}no" >&6
10143 fi
10144
10145
10146 enablestring=
10147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10148echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10149 no_cache=0
10150 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10151if test "${enable_msgdlg+set}" = set; then
10152 enableval="$enable_msgdlg"
10153
10154 if test "$enableval" = yes; then
10155 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10156 else
10157 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10158 fi
10159
10160else
10161
10162 LINE=`grep "wxUSE_MSGDLG" ${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_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10170
10171fi;
10172
10173 eval "$ac_cv_use_msgdlg"
10174 if test "$no_cache" != 1; then
10175 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10176 fi
10177
10178 if test "$wxUSE_MSGDLG" = 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}-numberdlg" >&5
10189echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10190 no_cache=0
10191 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10192if test "${enable_numberdlg+set}" = set; then
10193 enableval="$enable_numberdlg"
10194
10195 if test "$enableval" = yes; then
10196 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10197 else
10198 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10199 fi
10200
10201else
10202
10203 LINE=`grep "wxUSE_NUMBERDLG" ${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_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10211
10212fi;
10213
10214 eval "$ac_cv_use_numberdlg"
10215 if test "$no_cache" != 1; then
10216 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10217 fi
10218
10219 if test "$wxUSE_NUMBERDLG" = 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}-splash" >&5
10230echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10231 no_cache=0
10232 # Check whether --enable-splash or --disable-splash was given.
10233if test "${enable_splash+set}" = set; then
10234 enableval="$enable_splash"
10235
10236 if test "$enableval" = yes; then
10237 ac_cv_use_splash='wxUSE_SPLASH=yes'
10238 else
10239 ac_cv_use_splash='wxUSE_SPLASH=no'
10240 fi
10241
10242else
10243
10244 LINE=`grep "wxUSE_SPLASH" ${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_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10252
10253fi;
10254
10255 eval "$ac_cv_use_splash"
10256 if test "$no_cache" != 1; then
10257 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10258 fi
10259
10260 if test "$wxUSE_SPLASH" = 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}-textdlg" >&5
10271echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10272 no_cache=0
10273 # Check whether --enable-textdlg or --disable-textdlg was given.
10274if test "${enable_textdlg+set}" = set; then
10275 enableval="$enable_textdlg"
10276
10277 if test "$enableval" = yes; then
10278 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10279 else
10280 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10281 fi
10282
10283else
10284
10285 LINE=`grep "wxUSE_TEXTDLG" ${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_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10293
10294fi;
10295
10296 eval "$ac_cv_use_textdlg"
10297 if test "$no_cache" != 1; then
10298 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10299 fi
10300
10301 if test "$wxUSE_TEXTDLG" = 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
10310 enablestring=
10311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10312echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10313 no_cache=0
10314 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10315if test "${enable_tipdlg+set}" = set; then
10316 enableval="$enable_tipdlg"
10317
10318 if test "$enableval" = yes; then
10319 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10320 else
10321 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10322 fi
10323
10324else
10325
10326 LINE=`grep "wxUSE_STARTUP_TIPS" ${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_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10334
10335fi;
10336
10337 eval "$ac_cv_use_tipdlg"
10338 if test "$no_cache" != 1; then
10339 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10340 fi
10341
10342 if test "$wxUSE_STARTUP_TIPS" = 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
10351 enablestring=
10352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10353echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10354 no_cache=0
10355 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10356if test "${enable_progressdlg+set}" = set; then
10357 enableval="$enable_progressdlg"
10358
10359 if test "$enableval" = yes; then
10360 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10361 else
10362 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10363 fi
10364
10365else
10366
10367 LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10375
10376fi;
10377
10378 eval "$ac_cv_use_progressdlg"
10379 if test "$no_cache" != 1; then
10380 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10381 fi
10382
10383 if test "$wxUSE_PROGRESSDLG" = 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}-wizarddlg" >&5
10394echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10395 no_cache=0
10396 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10397if test "${enable_wizarddlg+set}" = set; then
10398 enableval="$enable_wizarddlg"
10399
10400 if test "$enableval" = yes; then
10401 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10402 else
10403 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10404 fi
10405
10406else
10407
10408 LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10416
10417fi;
10418
10419 eval "$ac_cv_use_wizarddlg"
10420 if test "$no_cache" != 1; then
10421 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10422 fi
10423
10424 if test "$wxUSE_WIZARDDLG" = 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
10434
10435 enablestring=
10436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10437echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10438 no_cache=0
10439 # Check whether --enable-menus or --disable-menus was given.
10440if test "${enable_menus+set}" = set; then
10441 enableval="$enable_menus"
10442
10443 if test "$enableval" = yes; then
10444 ac_cv_use_menus='wxUSE_MENUS=yes'
10445 else
10446 ac_cv_use_menus='wxUSE_MENUS=no'
10447 fi
10448
10449else
10450
10451 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10452 if test "x$LINE" != x ; then
10453 eval "DEFAULT_$LINE"
10454 else
10455 no_cache=1
10456 fi
10457
10458 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10459
10460fi;
10461
10462 eval "$ac_cv_use_menus"
10463 if test "$no_cache" != 1; then
10464 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10465 fi
10466
10467 if test "$wxUSE_MENUS" = yes; then
10468 echo "$as_me:$LINENO: result: yes" >&5
10469echo "${ECHO_T}yes" >&6
10470 else
10471 echo "$as_me:$LINENO: result: no" >&5
10472echo "${ECHO_T}no" >&6
10473 fi
10474
10475
10476 enablestring=
10477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10478echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10479 no_cache=0
10480 # Check whether --enable-miniframe or --disable-miniframe was given.
10481if test "${enable_miniframe+set}" = set; then
10482 enableval="$enable_miniframe"
10483
10484 if test "$enableval" = yes; then
10485 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10486 else
10487 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10488 fi
10489
10490else
10491
10492 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10493 if test "x$LINE" != x ; then
10494 eval "DEFAULT_$LINE"
10495 else
10496 no_cache=1
10497 fi
10498
10499 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10500
10501fi;
10502
10503 eval "$ac_cv_use_miniframe"
10504 if test "$no_cache" != 1; then
10505 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10506 fi
10507
10508 if test "$wxUSE_MINIFRAME" = yes; then
10509 echo "$as_me:$LINENO: result: yes" >&5
10510echo "${ECHO_T}yes" >&6
10511 else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514 fi
10515
10516
10517 enablestring=
10518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10519echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10520 no_cache=0
10521 # Check whether --enable-tooltips or --disable-tooltips was given.
10522if test "${enable_tooltips+set}" = set; then
10523 enableval="$enable_tooltips"
10524
10525 if test "$enableval" = yes; then
10526 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10527 else
10528 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10529 fi
10530
10531else
10532
10533 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10534 if test "x$LINE" != x ; then
10535 eval "DEFAULT_$LINE"
10536 else
10537 no_cache=1
10538 fi
10539
10540 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10541
10542fi;
10543
10544 eval "$ac_cv_use_tooltips"
10545 if test "$no_cache" != 1; then
10546 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10547 fi
10548
10549 if test "$wxUSE_TOOLTIPS" = yes; then
10550 echo "$as_me:$LINENO: result: yes" >&5
10551echo "${ECHO_T}yes" >&6
10552 else
10553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
10555 fi
10556
10557
10558 enablestring=
10559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10560echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10561 no_cache=0
10562 # Check whether --enable-splines or --disable-splines was given.
10563if test "${enable_splines+set}" = set; then
10564 enableval="$enable_splines"
10565
10566 if test "$enableval" = yes; then
10567 ac_cv_use_splines='wxUSE_SPLINES=yes'
10568 else
10569 ac_cv_use_splines='wxUSE_SPLINES=no'
10570 fi
10571
10572else
10573
10574 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10575 if test "x$LINE" != x ; then
10576 eval "DEFAULT_$LINE"
10577 else
10578 no_cache=1
10579 fi
10580
10581 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10582
10583fi;
10584
10585 eval "$ac_cv_use_splines"
10586 if test "$no_cache" != 1; then
10587 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10588 fi
10589
10590 if test "$wxUSE_SPLINES" = yes; then
10591 echo "$as_me:$LINENO: result: yes" >&5
10592echo "${ECHO_T}yes" >&6
10593 else
10594 echo "$as_me:$LINENO: result: no" >&5
10595echo "${ECHO_T}no" >&6
10596 fi
10597
10598
fbe2ca43
SN
10599 enablestring=
10600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10601echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10602 no_cache=0
10603 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10604if test "${enable_mousewheel+set}" = set; then
10605 enableval="$enable_mousewheel"
10606
10607 if test "$enableval" = yes; then
10608 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10609 else
10610 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10611 fi
10612
10613else
10614
10615 LINE=`grep "wxUSE_MOUSEWHEEL" ${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_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10623
10624fi;
10625
10626 eval "$ac_cv_use_mousewheel"
10627 if test "$no_cache" != 1; then
10628 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10629 fi
10630
10631 if test "$wxUSE_MOUSEWHEEL" = 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
10639
a848cd7e
SC
10640 enablestring=
10641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10642echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10643 no_cache=0
10644 # Check whether --enable-validators or --disable-validators was given.
10645if test "${enable_validators+set}" = set; then
10646 enableval="$enable_validators"
10647
10648 if test "$enableval" = yes; then
10649 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10650 else
10651 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10652 fi
10653
10654else
10655
10656 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10657 if test "x$LINE" != x ; then
10658 eval "DEFAULT_$LINE"
10659 else
10660 no_cache=1
10661 fi
10662
10663 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10664
10665fi;
10666
10667 eval "$ac_cv_use_validators"
10668 if test "$no_cache" != 1; then
10669 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10670 fi
10671
10672 if test "$wxUSE_VALIDATORS" = yes; then
10673 echo "$as_me:$LINENO: result: yes" >&5
10674echo "${ECHO_T}yes" >&6
10675 else
10676 echo "$as_me:$LINENO: result: no" >&5
10677echo "${ECHO_T}no" >&6
10678 fi
10679
10680
10681 enablestring=
10682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10683echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10684 no_cache=0
10685 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10686if test "${enable_busyinfo+set}" = set; then
10687 enableval="$enable_busyinfo"
10688
10689 if test "$enableval" = yes; then
10690 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10691 else
10692 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10693 fi
10694
10695else
10696
10697 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10698 if test "x$LINE" != x ; then
10699 eval "DEFAULT_$LINE"
10700 else
10701 no_cache=1
10702 fi
10703
10704 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10705
10706fi;
10707
10708 eval "$ac_cv_use_busyinfo"
10709 if test "$no_cache" != 1; then
10710 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10711 fi
10712
10713 if test "$wxUSE_BUSYINFO" = yes; then
10714 echo "$as_me:$LINENO: result: yes" >&5
10715echo "${ECHO_T}yes" >&6
10716 else
10717 echo "$as_me:$LINENO: result: no" >&5
10718echo "${ECHO_T}no" >&6
10719 fi
10720
10721
10722 enablestring=
10723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10724echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10725 no_cache=0
10726 # Check whether --enable-joystick or --disable-joystick was given.
10727if test "${enable_joystick+set}" = set; then
10728 enableval="$enable_joystick"
10729
10730 if test "$enableval" = yes; then
10731 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10732 else
10733 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10734 fi
10735
10736else
10737
10738 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10739 if test "x$LINE" != x ; then
10740 eval "DEFAULT_$LINE"
10741 else
10742 no_cache=1
10743 fi
10744
10745 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10746
10747fi;
10748
10749 eval "$ac_cv_use_joystick"
10750 if test "$no_cache" != 1; then
10751 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10752 fi
10753
10754 if test "$wxUSE_JOYSTICK" = yes; then
10755 echo "$as_me:$LINENO: result: yes" >&5
10756echo "${ECHO_T}yes" >&6
10757 else
10758 echo "$as_me:$LINENO: result: no" >&5
10759echo "${ECHO_T}no" >&6
10760 fi
10761
10762
10763 enablestring=
10764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10765echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10766 no_cache=0
10767 # Check whether --enable-metafile or --disable-metafile was given.
10768if test "${enable_metafile+set}" = set; then
10769 enableval="$enable_metafile"
10770
10771 if test "$enableval" = yes; then
10772 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10773 else
10774 ac_cv_use_metafile='wxUSE_METAFILE=no'
10775 fi
10776
10777else
10778
10779 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10780 if test "x$LINE" != x ; then
10781 eval "DEFAULT_$LINE"
10782 else
10783 no_cache=1
10784 fi
10785
10786 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10787
10788fi;
10789
10790 eval "$ac_cv_use_metafile"
10791 if test "$no_cache" != 1; then
10792 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10793 fi
10794
10795 if test "$wxUSE_METAFILE" = yes; then
10796 echo "$as_me:$LINENO: result: yes" >&5
10797echo "${ECHO_T}yes" >&6
10798 else
10799 echo "$as_me:$LINENO: result: no" >&5
10800echo "${ECHO_T}no" >&6
10801 fi
10802
10803
10804 enablestring=
10805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10806echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10807 no_cache=0
10808 # Check whether --enable-dragimage or --disable-dragimage was given.
10809if test "${enable_dragimage+set}" = set; then
10810 enableval="$enable_dragimage"
10811
10812 if test "$enableval" = yes; then
10813 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10814 else
10815 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10816 fi
10817
10818else
10819
10820 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10821 if test "x$LINE" != x ; then
10822 eval "DEFAULT_$LINE"
10823 else
10824 no_cache=1
10825 fi
10826
10827 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10828
10829fi;
10830
10831 eval "$ac_cv_use_dragimage"
10832 if test "$no_cache" != 1; then
10833 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10834 fi
10835
10836 if test "$wxUSE_DRAGIMAGE" = yes; then
10837 echo "$as_me:$LINENO: result: yes" >&5
10838echo "${ECHO_T}yes" >&6
10839 else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842 fi
10843
10844
10845 enablestring=
10846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10847echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10848 no_cache=0
10849 # Check whether --enable-accessibility or --disable-accessibility was given.
10850if test "${enable_accessibility+set}" = set; then
10851 enableval="$enable_accessibility"
10852
10853 if test "$enableval" = yes; then
10854 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10855 else
10856 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10857 fi
10858
10859else
10860
10861 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10862 if test "x$LINE" != x ; then
10863 eval "DEFAULT_$LINE"
10864 else
10865 no_cache=1
10866 fi
10867
10868 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10869
10870fi;
10871
10872 eval "$ac_cv_use_accessibility"
10873 if test "$no_cache" != 1; then
10874 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10875 fi
10876
10877 if test "$wxUSE_ACCESSIBILITY" = yes; then
10878 echo "$as_me:$LINENO: result: yes" >&5
10879echo "${ECHO_T}yes" >&6
10880 else
10881 echo "$as_me:$LINENO: result: no" >&5
10882echo "${ECHO_T}no" >&6
10883 fi
10884
10885
38b4a946
VZ
10886if test "$wxUSE_MSW" = "1"; then
10887
10888 enablestring=
10889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10890echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10891 no_cache=0
10892 # Check whether --enable-dccache or --disable-dccache was given.
10893if test "${enable_dccache+set}" = set; then
10894 enableval="$enable_dccache"
10895
10896 if test "$enableval" = yes; then
10897 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10898 else
10899 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10900 fi
10901
10902else
10903
10904 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10905 if test "x$LINE" != x ; then
10906 eval "DEFAULT_$LINE"
10907 else
10908 no_cache=1
10909 fi
10910
10911 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10912
10913fi;
10914
10915 eval "$ac_cv_use_dccache"
10916 if test "$no_cache" != 1; then
10917 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10918 fi
10919
10920 if test "$wxUSE_DC_CACHEING" = yes; then
10921 echo "$as_me:$LINENO: result: yes" >&5
10922echo "${ECHO_T}yes" >&6
10923 else
10924 echo "$as_me:$LINENO: result: no" >&5
10925echo "${ECHO_T}no" >&6
10926 fi
10927
10928fi
10929
a848cd7e
SC
10930
10931
10932 enablestring=
10933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10934echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10935 no_cache=0
10936 # Check whether --enable-palette or --disable-palette was given.
10937if test "${enable_palette+set}" = set; then
10938 enableval="$enable_palette"
10939
10940 if test "$enableval" = yes; then
10941 ac_cv_use_palette='wxUSE_PALETTE=yes'
10942 else
10943 ac_cv_use_palette='wxUSE_PALETTE=no'
10944 fi
10945
10946else
10947
10948 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10949 if test "x$LINE" != x ; then
10950 eval "DEFAULT_$LINE"
10951 else
10952 no_cache=1
10953 fi
10954
10955 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10956
10957fi;
10958
10959 eval "$ac_cv_use_palette"
10960 if test "$no_cache" != 1; then
10961 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10962 fi
10963
10964 if test "$wxUSE_PALETTE" = yes; then
10965 echo "$as_me:$LINENO: result: yes" >&5
10966echo "${ECHO_T}yes" >&6
10967 else
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
10970 fi
10971
10972
10973 enablestring=
10974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10975echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10976 no_cache=0
10977 # Check whether --enable-image or --disable-image was given.
10978if test "${enable_image+set}" = set; then
10979 enableval="$enable_image"
10980
10981 if test "$enableval" = yes; then
10982 ac_cv_use_image='wxUSE_IMAGE=yes'
10983 else
10984 ac_cv_use_image='wxUSE_IMAGE=no'
10985 fi
10986
10987else
10988
10989 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10990 if test "x$LINE" != x ; then
10991 eval "DEFAULT_$LINE"
10992 else
10993 no_cache=1
10994 fi
10995
10996 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10997
10998fi;
10999
11000 eval "$ac_cv_use_image"
11001 if test "$no_cache" != 1; then
11002 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11003 fi
11004
11005 if test "$wxUSE_IMAGE" = yes; then
11006 echo "$as_me:$LINENO: result: yes" >&5
11007echo "${ECHO_T}yes" >&6
11008 else
11009 echo "$as_me:$LINENO: result: no" >&5
11010echo "${ECHO_T}no" >&6
11011 fi
11012
11013
11014 enablestring=
11015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11016echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11017 no_cache=0
11018 # Check whether --enable-gif or --disable-gif was given.
11019if test "${enable_gif+set}" = set; then
11020 enableval="$enable_gif"
11021
11022 if test "$enableval" = yes; then
11023 ac_cv_use_gif='wxUSE_GIF=yes'
11024 else
11025 ac_cv_use_gif='wxUSE_GIF=no'
11026 fi
11027
11028else
11029
11030 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11031 if test "x$LINE" != x ; then
11032 eval "DEFAULT_$LINE"
11033 else
11034 no_cache=1
11035 fi
11036
11037 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11038
11039fi;
11040
11041 eval "$ac_cv_use_gif"
11042 if test "$no_cache" != 1; then
11043 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11044 fi
11045
11046 if test "$wxUSE_GIF" = yes; then
11047 echo "$as_me:$LINENO: result: yes" >&5
11048echo "${ECHO_T}yes" >&6
11049 else
11050 echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6
11052 fi
11053
11054
11055 enablestring=
11056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11057echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11058 no_cache=0
11059 # Check whether --enable-pcx or --disable-pcx was given.
11060if test "${enable_pcx+set}" = set; then
11061 enableval="$enable_pcx"
11062
11063 if test "$enableval" = yes; then
11064 ac_cv_use_pcx='wxUSE_PCX=yes'
11065 else
11066 ac_cv_use_pcx='wxUSE_PCX=no'
11067 fi
11068
11069else
11070
11071 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11072 if test "x$LINE" != x ; then
11073 eval "DEFAULT_$LINE"
11074 else
11075 no_cache=1
11076 fi
11077
11078 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11079
11080fi;
11081
11082 eval "$ac_cv_use_pcx"
11083 if test "$no_cache" != 1; then
11084 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11085 fi
11086
11087 if test "$wxUSE_PCX" = yes; then
11088 echo "$as_me:$LINENO: result: yes" >&5
11089echo "${ECHO_T}yes" >&6
11090 else
11091 echo "$as_me:$LINENO: result: no" >&5
11092echo "${ECHO_T}no" >&6
11093 fi
11094
11095
11096 enablestring=
11097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11098echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11099 no_cache=0
11100 # Check whether --enable-iff or --disable-iff was given.
11101if test "${enable_iff+set}" = set; then
11102 enableval="$enable_iff"
11103
11104 if test "$enableval" = yes; then
11105 ac_cv_use_iff='wxUSE_IFF=yes'
11106 else
11107 ac_cv_use_iff='wxUSE_IFF=no'
11108 fi
11109
11110else
11111
11112 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11113 if test "x$LINE" != x ; then
11114 eval "DEFAULT_$LINE"
11115 else
11116 no_cache=1
11117 fi
11118
11119 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11120
11121fi;
11122
11123 eval "$ac_cv_use_iff"
11124 if test "$no_cache" != 1; then
11125 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11126 fi
11127
11128 if test "$wxUSE_IFF" = yes; then
11129 echo "$as_me:$LINENO: result: yes" >&5
11130echo "${ECHO_T}yes" >&6
11131 else
11132 echo "$as_me:$LINENO: result: no" >&5
11133echo "${ECHO_T}no" >&6
11134 fi
11135
11136
11137 enablestring=
11138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11139echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11140 no_cache=0
11141 # Check whether --enable-pnm or --disable-pnm was given.
11142if test "${enable_pnm+set}" = set; then
11143 enableval="$enable_pnm"
11144
11145 if test "$enableval" = yes; then
11146 ac_cv_use_pnm='wxUSE_PNM=yes'
11147 else
11148 ac_cv_use_pnm='wxUSE_PNM=no'
11149 fi
11150
11151else
11152
11153 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11154 if test "x$LINE" != x ; then
11155 eval "DEFAULT_$LINE"
11156 else
11157 no_cache=1
11158 fi
11159
11160 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11161
11162fi;
11163
11164 eval "$ac_cv_use_pnm"
11165 if test "$no_cache" != 1; then
11166 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11167 fi
11168
11169 if test "$wxUSE_PNM" = yes; then
11170 echo "$as_me:$LINENO: result: yes" >&5
11171echo "${ECHO_T}yes" >&6
11172 else
11173 echo "$as_me:$LINENO: result: no" >&5
11174echo "${ECHO_T}no" >&6
11175 fi
11176
11177
11178 enablestring=
11179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11180echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11181 no_cache=0
11182 # Check whether --enable-xpm or --disable-xpm was given.
11183if test "${enable_xpm+set}" = set; then
11184 enableval="$enable_xpm"
11185
11186 if test "$enableval" = yes; then
11187 ac_cv_use_xpm='wxUSE_XPM=yes'
11188 else
11189 ac_cv_use_xpm='wxUSE_XPM=no'
11190 fi
11191
11192else
11193
11194 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11195 if test "x$LINE" != x ; then
11196 eval "DEFAULT_$LINE"
11197 else
11198 no_cache=1
11199 fi
11200
11201 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11202
11203fi;
11204
11205 eval "$ac_cv_use_xpm"
11206 if test "$no_cache" != 1; then
11207 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11208 fi
11209
11210 if test "$wxUSE_XPM" = yes; then
11211 echo "$as_me:$LINENO: result: yes" >&5
11212echo "${ECHO_T}yes" >&6
11213 else
11214 echo "$as_me:$LINENO: result: no" >&5
11215echo "${ECHO_T}no" >&6
11216 fi
11217
11218
11219 enablestring=
11220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11221echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11222 no_cache=0
11223 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11224if test "${enable_ico_cur+set}" = set; then
11225 enableval="$enable_ico_cur"
11226
11227 if test "$enableval" = yes; then
11228 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11229 else
11230 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11231 fi
11232
11233else
11234
11235 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11236 if test "x$LINE" != x ; then
11237 eval "DEFAULT_$LINE"
11238 else
11239 no_cache=1
11240 fi
11241
11242 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11243
11244fi;
11245
11246 eval "$ac_cv_use_ico_cur"
11247 if test "$no_cache" != 1; then
11248 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11249 fi
11250
11251 if test "$wxUSE_ICO_CUR" = yes; then
11252 echo "$as_me:$LINENO: result: yes" >&5
11253echo "${ECHO_T}yes" >&6
11254 else
11255 echo "$as_me:$LINENO: result: no" >&5
11256echo "${ECHO_T}no" >&6
11257 fi
11258
11259
11260fi
11261
11262
11263
ceec2216
RL
11264# Check whether --with-flavour or --without-flavour was given.
11265if test "${with_flavour+set}" = set; then
11266 withval="$with_flavour"
11267 WX_FLAVOUR="$withval"
11268fi;
11269
11270
11271
a848cd7e
SC
11272 enablestring=
11273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11274echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11275 no_cache=0
11276 # Check whether --enable-official_build or --disable-official_build was given.
11277if test "${enable_official_build+set}" = set; then
11278 enableval="$enable_official_build"
11279
11280 if test "$enableval" = yes; then
11281 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11282 else
11283 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11284 fi
11285
11286else
11287
11288 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11289 if test "x$LINE" != x ; then
11290 eval "DEFAULT_$LINE"
11291 else
11292 no_cache=1
11293 fi
11294
11295 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11296
11297fi;
11298
11299 eval "$ac_cv_use_official_build"
11300 if test "$no_cache" != 1; then
11301 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11302 fi
11303
11304 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11305 echo "$as_me:$LINENO: result: yes" >&5
11306echo "${ECHO_T}yes" >&6
11307 else
11308 echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6
11310 fi
11311
11312# Check whether --enable-vendor or --disable-vendor was given.
11313if test "${enable_vendor+set}" = set; then
11314 enableval="$enable_vendor"
11315 VENDOR="$enableval"
11316fi;
11317if test "x$VENDOR" = "x"; then
11318 VENDOR="custom"
11319fi
11320
a848cd7e
SC
11321
11322
11323
11324 echo "saving argument cache $wx_arg_cache_file"
11325 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11326
11327
11328
11329echo "$as_me:$LINENO: checking for toolkit" >&5
11330echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11331
11332# In Wine, we need to default to MSW, not GTK or MOTIF
11333if test "$wxUSE_WINE" = "yes"; then
11334 DEFAULT_DEFAULT_wxUSE_GTK=0
11335 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11336 DEFAULT_DEFAULT_wxUSE_MSW=1
11337 wxUSE_SHARED=no
11338fi
11339
f597b41c 11340
a848cd7e
SC
11341if test "$wxUSE_GUI" = "yes"; then
11342
11343 if test "$USE_BEOS" = 1; then
11344 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11345echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11346 { (exit 1); exit 1; }; }
11347 fi
11348
11349 if test "$TOOLKIT_GIVEN" = 1; then
11350 for toolkit in `echo $ALL_TOOLKITS`; do
11351 var=wxUSE_$toolkit
11352 eval "value=\$${var}"
f34ca037
MW
11353 if test "x$value" = "xno"; then
11354 eval "$var=0"
11355 elif test "x$value" != "x"; then
11356 eval "$var=1"
11357 fi
11358
11359 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11360 eval "wx${toolkit}_VERSION=$value"
11361 fi
a848cd7e
SC
11362 done
11363 else
11364 for toolkit in `echo $ALL_TOOLKITS`; do
11365 if test "$has_toolkit_in_cache" != 1; then
11366 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11367 else
11368 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11369
11370 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11371 if test "x$version" != "x"; then
11372 eval "wx${toolkit}_VERSION=$version"
11373 fi
a848cd7e
SC
11374 fi
11375 eval "wxUSE_$toolkit=\$${var}"
11376 done
11377 fi
11378
11379 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11380 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11381 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11382
11383 case "${host}" in
11384 *-pc-os2_emx | *-pc-os2-emx )
11385 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11386 esac
11387
11388 case "$NUM_TOOLKITS" in
11389 1)
11390 ;;
11391 0)
11392 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11393echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11394 { (exit 1); exit 1; }; }
11395 ;;
11396 *)
11397 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11398echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11399 { (exit 1); exit 1; }; }
11400 esac
11401
f34ca037
MW
11402 # to be removed when --disable-gtk2 isn't needed
11403 if test "x$wxUSE_GTK2" = "xyes"; then
11404 wxGTK_VERSION=2
11405 elif test "x$wxUSE_GTK2" = "xno"; then
11406 wxGTK_VERSION=1
11407 fi
11408
a848cd7e
SC
11409 for toolkit in `echo $ALL_TOOLKITS`; do
11410 var=wxUSE_$toolkit
11411 eval "value=\$${var}"
11412 if test "x$value" != x; then
11413 cache_var=CACHE_$toolkit
11414 eval "cache=\$${cache_var}"
11415 if test "$cache" = 1; then
11416 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11417 eval "version=\$wx${toolkit}_VERSION"
11418 if test "x$version" != "x"; then
11419 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11420 fi
a848cd7e
SC
11421 fi
11422 if test "$value" = 1; then
11423 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11424 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11425echo "${ECHO_T}$toolkit_echo" >&6
11426 fi
11427 fi
11428 done
11429else
11430 if test "x$host_alias" != "x"; then
11431 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11432echo "${ECHO_T}base ($host_alias hosted) only" >&6
11433 else
11434 echo "$as_me:$LINENO: result: base only" >&5
11435echo "${ECHO_T}base only" >&6
11436 fi
11437fi
11438
11439wants_win32=0
11440doesnt_want_win32=0
11441case "${host}" in
11442 *-*-cygwin*)
11443 if test "$wxUSE_MSW" = 1 ; then
11444 wants_win32=1
7275146d 11445 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11446 else
11447 doesnt_want_win32=1
11448 fi
11449 ;;
11450 *-*-mingw*)
11451 wants_win32=1
11452 ;;
11453esac
11454
11455if test "$wxUSE_WINE" = "yes"; then
11456 wants_win32=1
11457 CC=winegcc
11458 CXX=wineg++
a848cd7e
SC
11459 LDFLAGS_GUI="-mwindows"
11460fi
11461
11462if test "$wants_win32" = 1 ; then
11463 USE_UNIX=0
11464 USE_WIN32=1
11465 cat >>confdefs.h <<\_ACEOF
11466#define __WIN32__ 1
11467_ACEOF
11468
11469 cat >>confdefs.h <<\_ACEOF
11470#define __WIN95__ 1
11471_ACEOF
11472
11473 cat >>confdefs.h <<\_ACEOF
11474#define __WINDOWS__ 1
11475_ACEOF
11476
11477 cat >>confdefs.h <<\_ACEOF
11478#define __GNUWIN32__ 1
11479_ACEOF
11480
11481 cat >>confdefs.h <<\_ACEOF
11482#define STRICT 1
11483_ACEOF
11484
11485 cat >>confdefs.h <<\_ACEOF
11486#define WINVER 0x0400
11487_ACEOF
11488
11489fi
11490if test "$doesnt_want_win32" = 1 ; then
11491 USE_UNIX=1
11492 USE_WIN32=0
11493fi
11494
11495if test "$USE_UNIX" = 1 ; then
11496 wxUSE_UNIX=yes
11497 cat >>confdefs.h <<\_ACEOF
11498#define __UNIX__ 1
11499_ACEOF
11500
11501fi
11502
11503
11504cat >confcache <<\_ACEOF
11505# This file is a shell script that caches the results of configure
11506# tests run on this system so they can be shared between configure
11507# scripts and configure runs, see configure's option --config-cache.
11508# It is not useful on other systems. If it contains results you don't
11509# want to keep, you may remove or edit it.
11510#
11511# config.status only pays attention to the cache file if you give it
11512# the --recheck option to rerun configure.
11513#
11514# `ac_cv_env_foo' variables (set or unset) will be overridden when
11515# loading this file, other *unset* `ac_cv_foo' will be assigned the
11516# following values.
11517
11518_ACEOF
11519
11520# The following way of writing the cache mishandles newlines in values,
11521# but we know of no workaround that is simple, portable, and efficient.
11522# So, don't put newlines in cache variables' values.
11523# Ultrix sh set writes to stderr and can't be redirected directly,
11524# and sets the high bit in the cache file unless we assign to the vars.
11525{
11526 (set) 2>&1 |
11527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11528 *ac_space=\ *)
11529 # `set' does not quote correctly, so add quotes (double-quote
11530 # substitution turns \\\\ into \\, and sed turns \\ into \).
11531 sed -n \
ac1cb8d3
VS
11532 "s/'/'\\\\''/g;
11533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11534 ;;
11535 *)
11536 # `set' quotes correctly as required by POSIX, so do not add quotes.
11537 sed -n \
ac1cb8d3 11538 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11539 ;;
11540 esac;
11541} |
11542 sed '
11543 t clear
11544 : clear
11545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11546 t end
11547 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11548 : end' >>confcache
11549if diff $cache_file confcache >/dev/null 2>&1; then :; else
11550 if test -w $cache_file; then
11551 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11552 cat confcache >$cache_file
11553 else
11554 echo "not updating unwritable cache $cache_file"
11555 fi
11556fi
11557rm -f confcache
11558
a848cd7e 11559CFLAGS=${CFLAGS:=}
6dcfc289
DE
11560
11561
3006edc0 11562
6dcfc289 11563 ac_ext=c
a848cd7e
SC
11564ac_cpp='$CPP $CPPFLAGS'
11565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11567ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568if test -n "$ac_tool_prefix"; then
11569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11570set dummy ${ac_tool_prefix}gcc; ac_word=$2
11571echo "$as_me:$LINENO: checking for $ac_word" >&5
11572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573if test "${ac_cv_prog_CC+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 if test -n "$CC"; then
11577 ac_cv_prog_CC="$CC" # Let the user override the test.
11578else
11579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591done
11592
11593fi
11594fi
11595CC=$ac_cv_prog_CC
11596if test -n "$CC"; then
11597 echo "$as_me:$LINENO: result: $CC" >&5
11598echo "${ECHO_T}$CC" >&6
11599else
11600 echo "$as_me:$LINENO: result: no" >&5
11601echo "${ECHO_T}no" >&6
11602fi
11603
11604fi
11605if test -z "$ac_cv_prog_CC"; then
11606 ac_ct_CC=$CC
11607 # Extract the first word of "gcc", so it can be a program name with args.
11608set dummy gcc; ac_word=$2
11609echo "$as_me:$LINENO: checking for $ac_word" >&5
11610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 if test -n "$ac_ct_CC"; then
11615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11616else
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_prog_ac_ct_CC="gcc"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11627 fi
11628done
11629done
11630
11631fi
11632fi
11633ac_ct_CC=$ac_cv_prog_ac_ct_CC
11634if test -n "$ac_ct_CC"; then
11635 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11636echo "${ECHO_T}$ac_ct_CC" >&6
11637else
11638 echo "$as_me:$LINENO: result: no" >&5
11639echo "${ECHO_T}no" >&6
11640fi
11641
11642 CC=$ac_ct_CC
11643else
11644 CC="$ac_cv_prog_CC"
11645fi
11646
11647if test -z "$CC"; then
11648 if test -n "$ac_tool_prefix"; then
11649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11650set dummy ${ac_tool_prefix}cc; ac_word=$2
11651echo "$as_me:$LINENO: checking for $ac_word" >&5
11652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653if test "${ac_cv_prog_CC+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 if test -n "$CC"; then
11657 ac_cv_prog_CC="$CC" # Let the user override the test.
11658else
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_CC="${ac_tool_prefix}cc"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670done
11671done
11672
11673fi
11674fi
11675CC=$ac_cv_prog_CC
11676if test -n "$CC"; then
11677 echo "$as_me:$LINENO: result: $CC" >&5
11678echo "${ECHO_T}$CC" >&6
11679else
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
11682fi
11683
11684fi
11685if test -z "$ac_cv_prog_CC"; then
11686 ac_ct_CC=$CC
11687 # Extract the first word of "cc", so it can be a program name with args.
11688set dummy cc; ac_word=$2
11689echo "$as_me:$LINENO: checking for $ac_word" >&5
11690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11691if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693else
11694 if test -n "$ac_ct_CC"; then
11695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11696else
11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_prog_ac_ct_CC="cc"
11705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11707 fi
11708done
11709done
11710
11711fi
11712fi
11713ac_ct_CC=$ac_cv_prog_ac_ct_CC
11714if test -n "$ac_ct_CC"; then
11715 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11716echo "${ECHO_T}$ac_ct_CC" >&6
11717else
11718 echo "$as_me:$LINENO: result: no" >&5
11719echo "${ECHO_T}no" >&6
11720fi
11721
11722 CC=$ac_ct_CC
11723else
11724 CC="$ac_cv_prog_CC"
11725fi
11726
11727fi
11728if test -z "$CC"; then
11729 # Extract the first word of "cc", so it can be a program name with args.
11730set dummy cc; ac_word=$2
11731echo "$as_me:$LINENO: checking for $ac_word" >&5
11732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11733if test "${ac_cv_prog_CC+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735else
11736 if test -n "$CC"; then
11737 ac_cv_prog_CC="$CC" # Let the user override the test.
11738else
11739 ac_prog_rejected=no
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11748 ac_prog_rejected=yes
11749 continue
11750 fi
11751 ac_cv_prog_CC="cc"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755done
11756done
11757
11758if test $ac_prog_rejected = yes; then
11759 # We found a bogon in the path, so make sure we never use it.
11760 set dummy $ac_cv_prog_CC
11761 shift
11762 if test $# != 0; then
11763 # We chose a different compiler from the bogus one.
11764 # However, it has the same basename, so the bogon will be chosen
11765 # first if we set CC to just the basename; use the full file name.
11766 shift
11767 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11768 fi
11769fi
11770fi
11771fi
11772CC=$ac_cv_prog_CC
11773if test -n "$CC"; then
11774 echo "$as_me:$LINENO: result: $CC" >&5
11775echo "${ECHO_T}$CC" >&6
11776else
11777 echo "$as_me:$LINENO: result: no" >&5
11778echo "${ECHO_T}no" >&6
11779fi
11780
11781fi
11782if test -z "$CC"; then
11783 if test -n "$ac_tool_prefix"; then
11784 for ac_prog in cl
11785 do
11786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11788echo "$as_me:$LINENO: checking for $ac_word" >&5
11789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11790if test "${ac_cv_prog_CC+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792else
11793 if test -n "$CC"; then
11794 ac_cv_prog_CC="$CC" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11806 fi
11807done
11808done
11809
11810fi
11811fi
11812CC=$ac_cv_prog_CC
11813if test -n "$CC"; then
11814 echo "$as_me:$LINENO: result: $CC" >&5
11815echo "${ECHO_T}$CC" >&6
11816else
11817 echo "$as_me:$LINENO: result: no" >&5
11818echo "${ECHO_T}no" >&6
11819fi
11820
11821 test -n "$CC" && break
11822 done
11823fi
11824if test -z "$CC"; then
11825 ac_ct_CC=$CC
11826 for ac_prog in cl
11827do
11828 # Extract the first word of "$ac_prog", so it can be a program name with args.
11829set dummy $ac_prog; ac_word=$2
11830echo "$as_me:$LINENO: checking for $ac_word" >&5
11831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11832if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 if test -n "$ac_ct_CC"; then
11836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11837else
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_ac_ct_CC="$ac_prog"
11846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849done
11850done
11851
11852fi
11853fi
11854ac_ct_CC=$ac_cv_prog_ac_ct_CC
11855if test -n "$ac_ct_CC"; then
11856 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11857echo "${ECHO_T}$ac_ct_CC" >&6
11858else
11859 echo "$as_me:$LINENO: result: no" >&5
11860echo "${ECHO_T}no" >&6
11861fi
11862
11863 test -n "$ac_ct_CC" && break
11864done
11865
11866 CC=$ac_ct_CC
11867fi
11868
11869fi
11870
11871
11872test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11873See \`config.log' for more details." >&5
11874echo "$as_me: error: no acceptable C compiler found in \$PATH
11875See \`config.log' for more details." >&2;}
11876 { (exit 1); exit 1; }; }
11877
11878# Provide some information about the compiler.
11879echo "$as_me:$LINENO:" \
11880 "checking for C compiler version" >&5
11881ac_compiler=`set X $ac_compile; echo $2`
11882{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11883 (eval $ac_compiler --version </dev/null >&5) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }
11887{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11888 (eval $ac_compiler -v </dev/null >&5) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }
11892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11893 (eval $ac_compiler -V </dev/null >&5) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }
11897
11898cat >conftest.$ac_ext <<_ACEOF
11899/* confdefs.h. */
11900_ACEOF
11901cat confdefs.h >>conftest.$ac_ext
11902cat >>conftest.$ac_ext <<_ACEOF
11903/* end confdefs.h. */
11904
11905int
11906main ()
11907{
11908
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913ac_clean_files_save=$ac_clean_files
11914ac_clean_files="$ac_clean_files a.out a.exe b.out"
11915# Try to create an executable without -o first, disregard a.out.
11916# It will help us diagnose broken compilers, and finding out an intuition
11917# of exeext.
ac1cb8d3
VS
11918echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11919echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11920ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11921if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11922 (eval $ac_link_default) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; then
11926 # Find the output, starting from the most likely. This scheme is
11927# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11928# resort.
11929
11930# Be careful to initialize this variable, since it used to be cached.
11931# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11932ac_cv_exeext=
11933# b.out is created by i960 compilers.
11934for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11935do
11936 test -f "$ac_file" || continue
11937 case $ac_file in
11938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11939 ;;
a848cd7e 11940 conftest.$ac_ext )
ac1cb8d3
VS
11941 # This is the source file.
11942 ;;
a848cd7e 11943 [ab].out )
ac1cb8d3
VS
11944 # We found the default executable, but exeext='' is most
11945 # certainly right.
11946 break;;
a848cd7e 11947 *.* )
ac1cb8d3
VS
11948 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11949 # FIXME: I believe we export ac_cv_exeext for Libtool,
11950 # but it would be cool to find out if it's true. Does anybody
11951 # maintain Libtool? --akim.
11952 export ac_cv_exeext
11953 break;;
a848cd7e 11954 * )
ac1cb8d3 11955 break;;
a848cd7e
SC
11956 esac
11957done
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11963See \`config.log' for more details." >&5
11964echo "$as_me: error: C compiler cannot create executables
11965See \`config.log' for more details." >&2;}
11966 { (exit 77); exit 77; }; }
11967fi
11968
11969ac_exeext=$ac_cv_exeext
11970echo "$as_me:$LINENO: result: $ac_file" >&5
11971echo "${ECHO_T}$ac_file" >&6
11972
11973# Check the compiler produces executables we can run. If not, either
11974# the compiler is broken, or we cross compile.
11975echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11976echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11977# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11978# If not cross compiling, check that we can run a simple program.
11979if test "$cross_compiling" != yes; then
11980 if { ac_try='./$ac_file'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 cross_compiling=no
11987 else
11988 if test "$cross_compiling" = maybe; then
11989 cross_compiling=yes
11990 else
11991 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11992If you meant to cross compile, use \`--host'.
11993See \`config.log' for more details." >&5
11994echo "$as_me: error: cannot run C compiled programs.
11995If you meant to cross compile, use \`--host'.
11996See \`config.log' for more details." >&2;}
11997 { (exit 1); exit 1; }; }
11998 fi
11999 fi
12000fi
12001echo "$as_me:$LINENO: result: yes" >&5
12002echo "${ECHO_T}yes" >&6
12003
12004rm -f a.out a.exe conftest$ac_cv_exeext b.out
12005ac_clean_files=$ac_clean_files_save
12006# Check the compiler produces executables we can run. If not, either
12007# the compiler is broken, or we cross compile.
12008echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12009echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12010echo "$as_me:$LINENO: result: $cross_compiling" >&5
12011echo "${ECHO_T}$cross_compiling" >&6
12012
12013echo "$as_me:$LINENO: checking for suffix of executables" >&5
12014echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016 (eval $ac_link) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; then
12020 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12021# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12022# work properly (i.e., refer to `conftest.exe'), while it won't with
12023# `rm'.
12024for ac_file in conftest.exe conftest conftest.*; do
12025 test -f "$ac_file" || continue
12026 case $ac_file in
12027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12029 export ac_cv_exeext
12030 break;;
a848cd7e
SC
12031 * ) break;;
12032 esac
12033done
12034else
12035 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12036See \`config.log' for more details." >&5
12037echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12038See \`config.log' for more details." >&2;}
12039 { (exit 1); exit 1; }; }
12040fi
12041
12042rm -f conftest$ac_cv_exeext
12043echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12044echo "${ECHO_T}$ac_cv_exeext" >&6
12045
12046rm -f conftest.$ac_ext
12047EXEEXT=$ac_cv_exeext
12048ac_exeext=$EXEEXT
12049echo "$as_me:$LINENO: checking for suffix of object files" >&5
12050echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12051if test "${ac_cv_objext+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060
12061int
12062main ()
12063{
12064
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069rm -f conftest.o conftest.obj
12070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071 (eval $ac_compile) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; then
12075 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12076 case $ac_file in
12077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12079 break;;
12080 esac
12081done
12082else
12083 echo "$as_me: failed program was:" >&5
12084sed 's/^/| /' conftest.$ac_ext >&5
12085
12086{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12087See \`config.log' for more details." >&5
12088echo "$as_me: error: cannot compute suffix of object files: cannot compile
12089See \`config.log' for more details." >&2;}
12090 { (exit 1); exit 1; }; }
12091fi
12092
12093rm -f conftest.$ac_cv_objext conftest.$ac_ext
12094fi
12095echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12096echo "${ECHO_T}$ac_cv_objext" >&6
12097OBJEXT=$ac_cv_objext
12098ac_objext=$OBJEXT
12099echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12100echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12101if test "${ac_cv_c_compiler_gnu+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104 cat >conftest.$ac_ext <<_ACEOF
12105/* confdefs.h. */
12106_ACEOF
12107cat confdefs.h >>conftest.$ac_ext
12108cat >>conftest.$ac_ext <<_ACEOF
12109/* end confdefs.h. */
12110
12111int
12112main ()
12113{
12114#ifndef __GNUC__
12115 choke me
12116#endif
12117
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122rm -f conftest.$ac_objext
12123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12124 (eval $ac_compile) 2>conftest.er1
a848cd7e 12125 ac_status=$?
ac1cb8d3
VS
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
a848cd7e
SC
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
6a5c9b3f
RR
12131 { ac_try='test -z "$ac_c_werror_flag"
12132 || test ! -s conftest.err'
ac1cb8d3
VS
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_compiler_gnu=yes
12145else
12146 echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
12149ac_compiler_gnu=no
12150fi
ac1cb8d3 12151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12152ac_cv_c_compiler_gnu=$ac_compiler_gnu
12153
12154fi
12155echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12156echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12157GCC=`test $ac_compiler_gnu = yes && echo yes`
12158ac_test_CFLAGS=${CFLAGS+set}
12159ac_save_CFLAGS=$CFLAGS
15291213 12160CFLAGS="-g"
a848cd7e
SC
12161echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12162echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12163if test "${ac_cv_prog_cc_g+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165else
12166 cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172
12173int
12174main ()
12175{
12176
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext
12182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12183 (eval $ac_compile) 2>conftest.er1
a848cd7e 12184 ac_status=$?
ac1cb8d3
VS
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
a848cd7e
SC
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
6a5c9b3f
RR
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
ac1cb8d3
VS
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_cv_prog_cc_g=yes
12204else
12205 echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
12207
12208ac_cv_prog_cc_g=no
12209fi
ac1cb8d3 12210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12211fi
12212echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12213echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12214if test "$ac_test_CFLAGS" = set; then
12215 CFLAGS=$ac_save_CFLAGS
12216elif test $ac_cv_prog_cc_g = yes; then
12217 if test "$GCC" = yes; then
12218 CFLAGS="-g -O2"
12219 else
12220 CFLAGS="-g"
12221 fi
12222else
12223 if test "$GCC" = yes; then
12224 CFLAGS="-O2"
12225 else
12226 CFLAGS=
12227 fi
12228fi
12229echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12230echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12231if test "${ac_cv_prog_cc_stdc+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234 ac_cv_prog_cc_stdc=no
12235ac_save_CC=$CC
12236cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242#include <stdarg.h>
12243#include <stdio.h>
12244#include <sys/types.h>
12245#include <sys/stat.h>
12246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12247struct buf { int x; };
12248FILE * (*rcsopen) (struct buf *, struct stat *, int);
12249static char *e (p, i)
12250 char **p;
12251 int i;
12252{
12253 return p[i];
12254}
12255static char *f (char * (*g) (char **, int), char **p, ...)
12256{
12257 char *s;
12258 va_list v;
12259 va_start (v,p);
12260 s = g (p, va_arg (v,int));
12261 va_end (v);
12262 return s;
12263}
ac1cb8d3
VS
12264
12265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12266 function prototypes and stuff, but not '\xHH' hex character constants.
12267 These don't provoke an error unfortunately, instead are silently treated
12268 as 'x'. The following induces an error, until -std1 is added to get
12269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12270 array size at least. It's necessary to write '\x00'==0 to get something
12271 that's true only with -std1. */
12272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12273
a848cd7e
SC
12274int test (int i, double x);
12275struct s1 {int (*f) (int a);};
12276struct s2 {int (*f) (double a);};
12277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12278int argc;
12279char **argv;
12280int
12281main ()
12282{
12283return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12284 ;
12285 return 0;
12286}
12287_ACEOF
12288# Don't try gcc -ansi; that turns off useful extensions and
12289# breaks some systems' header files.
12290# AIX -qlanglvl=ansi
12291# Ultrix and OSF/1 -std1
12292# HP-UX 10.20 and later -Ae
12293# HP-UX older versions -Aa -D_HPUX_SOURCE
12294# SVR4 -Xc -D__EXTENSIONS__
12295for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12296do
12297 CC="$ac_save_CC $ac_arg"
12298 rm -f conftest.$ac_objext
12299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12300 (eval $ac_compile) 2>conftest.er1
a848cd7e 12301 ac_status=$?
ac1cb8d3
VS
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
a848cd7e
SC
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
6a5c9b3f
RR
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
ac1cb8d3
VS
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_prog_cc_stdc=$ac_arg
12321break
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326fi
ac1cb8d3 12327rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12328done
12329rm -f conftest.$ac_ext conftest.$ac_objext
12330CC=$ac_save_CC
12331
12332fi
12333
12334case "x$ac_cv_prog_cc_stdc" in
12335 x|xno)
12336 echo "$as_me:$LINENO: result: none needed" >&5
12337echo "${ECHO_T}none needed" >&6 ;;
12338 *)
12339 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12340echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12341 CC="$CC $ac_cv_prog_cc_stdc" ;;
12342esac
12343
12344# Some people use a C++ compiler to compile C. Since we use `exit',
12345# in C++ we need to declare it. In case someone uses the same compiler
12346# for both compiling C and C++ we need to have the C++ compiler decide
12347# the declaration of exit, since it's the most demanding environment.
12348cat >conftest.$ac_ext <<_ACEOF
12349#ifndef __cplusplus
12350 choke me
12351#endif
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12355 (eval $ac_compile) 2>conftest.er1
a848cd7e 12356 ac_status=$?
ac1cb8d3
VS
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
a848cd7e
SC
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
6a5c9b3f
RR
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
ac1cb8d3
VS
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 for ac_declaration in \
ac1cb8d3 12376 '' \
a848cd7e
SC
12377 'extern "C" void std::exit (int) throw (); using std::exit;' \
12378 'extern "C" void std::exit (int); using std::exit;' \
12379 'extern "C" void exit (int) throw ();' \
12380 'extern "C" void exit (int);' \
12381 'void exit (int);'
12382do
12383 cat >conftest.$ac_ext <<_ACEOF
12384/* confdefs.h. */
12385_ACEOF
12386cat confdefs.h >>conftest.$ac_ext
12387cat >>conftest.$ac_ext <<_ACEOF
12388/* end confdefs.h. */
de59c161 12389$ac_declaration
ac1cb8d3 12390#include <stdlib.h>
a848cd7e
SC
12391int
12392main ()
12393{
12394exit (42);
12395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext
12400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12401 (eval $ac_compile) 2>conftest.er1
a848cd7e 12402 ac_status=$?
ac1cb8d3
VS
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
a848cd7e
SC
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
6a5c9b3f
RR
12408 { ac_try='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
ac1cb8d3
VS
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 :
12422else
12423 echo "$as_me: failed program was:" >&5
12424sed 's/^/| /' conftest.$ac_ext >&5
12425
12426continue
12427fi
ac1cb8d3 12428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12429 cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h. */
12435$ac_declaration
12436int
12437main ()
12438{
12439exit (42);
12440 ;
12441 return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12446 (eval $ac_compile) 2>conftest.er1
a848cd7e 12447 ac_status=$?
ac1cb8d3
VS
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
a848cd7e
SC
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
6a5c9b3f
RR
12453 { ac_try='test -z "$ac_c_werror_flag"
12454 || test ! -s conftest.err'
ac1cb8d3
VS
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 break
12467else
12468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471fi
ac1cb8d3 12472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12473done
12474rm -f conftest*
12475if test -n "$ac_declaration"; then
12476 echo '#ifdef __cplusplus' >>confdefs.h
12477 echo $ac_declaration >>confdefs.h
12478 echo '#endif' >>confdefs.h
12479fi
12480
12481else
12482 echo "$as_me: failed program was:" >&5
12483sed 's/^/| /' conftest.$ac_ext >&5
12484
12485fi
ac1cb8d3 12486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12487ac_ext=c
12488ac_cpp='$CPP $CPPFLAGS'
12489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12491ac_compiler_gnu=$ac_cv_c_compiler_gnu
12492
ab0ad5f1
VZ
12493
12494
12495 ac_ext=c
12496ac_cpp='$CPP $CPPFLAGS'
12497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12499ac_compiler_gnu=$ac_cv_c_compiler_gnu
12500
12501 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12502echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12503if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506 cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512
12513int
12514main ()
12515{
12516
12517 #ifndef __INTEL_COMPILER
12518 choke me
12519 #endif
12520
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
12526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527 (eval $ac_compile) 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
6a5c9b3f
RR
12534 { ac_try='test -z "$ac_c_werror_flag"
12535 || test ! -s conftest.err'
ab0ad5f1
VZ
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552bakefile_cv_c_compiler___INTEL_COMPILER=no
12553
12554fi
12555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12556
12557
12558fi
12559echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12560echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12561 ac_ext=c
12562ac_cpp='$CPP $CPPFLAGS'
12563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565ac_compiler_gnu=$ac_cv_c_compiler_gnu
12566
12567 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12568 :; INTELCC=yes
12569 else
12570 :;
12571 fi
12572
12573
12574 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12575 if test "xCC" = "xC"; then
12576 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12577echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12578if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580else
12581 cat >conftest.$ac_ext <<_ACEOF
12582/* confdefs.h. */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
12586/* end confdefs.h. */
12587
12588int
12589main ()
12590{
12591
12592 ;
12593 return 0;
12594}
12595_ACEOF
12596rm -f conftest.$ac_objext conftest.$ac_ext.o
12597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12598 (eval $ac_compile) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; then
12602 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12603 case $ac_file in
12604 conftest.$ac_ext.o)
0093c2fc 12605 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12606 ;;
12607 *)
12608 ;;
12609 esac
12610done
12611else
12612 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12613See \`config.log' for more details." >&5
12614echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12615See \`config.log' for more details." >&2;}
12616 { (exit 1); exit 1; }; }
12617
12618fi
12619
12620rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12621
12622fi
0093c2fc
VZ
12623echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12624echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12625if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12626 if test "c" = "c"; then
0093c2fc 12627 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12628 fi
12629 if test "c" = "cxx"; then
0093c2fc 12630 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12631 fi
12632fi
12633
0093c2fc 12634 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12635 unset ac_cv_prog_cc_g
12636 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12637ac_save_CFLAGS=$CFLAGS
15291213 12638CFLAGS="-g"
480ccd21
DE
12639echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12640echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12641if test "${ac_cv_prog_cc_g+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643else
12644 cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650
12651int
12652main ()
12653{
12654
12655 ;
12656 return 0;
12657}
12658_ACEOF
12659rm -f conftest.$ac_objext
12660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12661 (eval $ac_compile) 2>conftest.er1
12662 ac_status=$?
12663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
6a5c9b3f
RR
12668 { ac_try='test -z "$ac_c_werror_flag"
12669 || test ! -s conftest.err'
480ccd21
DE
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest.$ac_objext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_prog_cc_g=yes
12682else
12683 echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686ac_cv_prog_cc_g=no
12687fi
12688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12689fi
12690echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12691echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12692if test "$ac_test_CFLAGS" = set; then
12693 CFLAGS=$ac_save_CFLAGS
12694elif test $ac_cv_prog_cc_g = yes; then
12695 if test "$GCC" = yes; then
12696 CFLAGS="-g -O2"
12697 else
12698 CFLAGS="-g"
12699 fi
12700else
12701 if test "$GCC" = yes; then
12702 CFLAGS="-O2"
12703 else
12704 CFLAGS=
12705 fi
12706fi
3006edc0 12707 fi
ab0ad5f1 12708 fi
3006edc0
VZ
12709
12710 case `uname -s` in
12711 AIX*)
12712 ac_ext=c
12713ac_cpp='$CPP $CPPFLAGS'
12714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716ac_compiler_gnu=$ac_cv_c_compiler_gnu
12717
12718echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12719echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12720if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722else
12723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
12729
12730int
12731main ()
12732{
12733#ifndef __xlC__
12734 choke me
12735#endif
12736
12737 ;
12738 return 0;
12739}
12740_ACEOF
12741rm -f conftest.$ac_objext
12742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>conftest.er1
12744 ac_status=$?
12745 grep -v '^ *+' conftest.er1 >conftest.err
12746 rm -f conftest.er1
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
6a5c9b3f
RR
12750 { ac_try='test -z "$ac_c_werror_flag"
12751 || test ! -s conftest.err'
3006edc0
VZ
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest.$ac_objext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
0093c2fc 12763 bakefile_compiler_xlc=yes
3006edc0
VZ
12764else
12765 echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
0093c2fc 12768bakefile_compiler_xlc=no
3006edc0
VZ
12769fi
12770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12771 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12772
12773fi
0093c2fc
VZ
12774echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12775echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12776
0093c2fc 12777XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12778ac_ext=c
12779ac_cpp='$CPP $CPPFLAGS'
12780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12782ac_compiler_gnu=$ac_cv_c_compiler_gnu
12783
12784
12785 ;;
12786
12787 Darwin)
12788 ac_ext=c
95986553
DE
12789ac_cpp='$CPP $CPPFLAGS'
12790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792ac_compiler_gnu=$ac_cv_c_compiler_gnu
12793
12794echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12795echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12796if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798else
12799 cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
12805
12806int
12807main ()
12808{
12809#ifndef __MWERKS__
12810 choke me
12811#endif
12812
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817rm -f conftest.$ac_objext
12818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
6a5c9b3f
RR
12826 { ac_try='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
95986553
DE
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest.$ac_objext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 bakefile_compiler_mwerks=yes
12840else
12841 echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
12844bakefile_compiler_mwerks=no
12845fi
12846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12848
12849fi
12850echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12851echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12852
0e6fa1d9 12853MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12854ac_ext=c
12855ac_cpp='$CPP $CPPFLAGS'
12856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12858ac_compiler_gnu=$ac_cv_c_compiler_gnu
12859
12860
3006edc0 12861 ac_ext=c
9273ffba
DE
12862ac_cpp='$CPP $CPPFLAGS'
12863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12865ac_compiler_gnu=$ac_cv_c_compiler_gnu
12866
12867echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12868echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12869if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871else
12872 cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h. */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h. */
12878
12879int
12880main ()
12881{
12882#ifndef __xlC__
12883 choke me
12884#endif
12885
12886 ;
12887 return 0;
12888}
12889_ACEOF
12890rm -f conftest.$ac_objext
12891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12892 (eval $ac_compile) 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
6a5c9b3f
RR
12899 { ac_try='test -z "$ac_c_werror_flag"
12900 || test ! -s conftest.err'
9273ffba
DE
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest.$ac_objext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
0093c2fc 12912 bakefile_compiler_xlc=yes
9273ffba
DE
12913else
12914 echo "$as_me: failed program was:" >&5
12915sed 's/^/| /' conftest.$ac_ext >&5
12916
0093c2fc 12917bakefile_compiler_xlc=no
9273ffba
DE
12918fi
12919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12920 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12921
12922fi
0093c2fc
VZ
12923echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12924echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12925
0093c2fc 12926XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12927ac_ext=c
12928ac_cpp='$CPP $CPPFLAGS'
12929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933
3006edc0
VZ
12934 ;;
12935
12936 IRIX*)
a848cd7e 12937
6dcfc289 12938
0ad5d837
VZ
12939 ac_ext=c
12940ac_cpp='$CPP $CPPFLAGS'
12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12946echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12947if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950 cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
12956
12957int
12958main ()
12959{
12960
12961 #ifndef _SGI_COMPILER_VERSION
12962 choke me
12963 #endif
12964
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969rm -f conftest.$ac_objext
12970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
6a5c9b3f
RR
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
0ad5d837
VZ
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12992else
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12997
12998fi
12999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000
13001
13002fi
13003echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13004echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13005 ac_ext=c
13006ac_cpp='$CPP $CPPFLAGS'
13007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009ac_compiler_gnu=$ac_cv_c_compiler_gnu
13010
13011 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13012 :; SGICC=yes
13013 else
13014 :;
13015 fi
13016
13017
3006edc0
VZ
13018 ;;
13019
0093c2fc 13020 HP-UX*)
3006edc0
VZ
13021
13022
13023 ac_ext=c
13024ac_cpp='$CPP $CPPFLAGS'
13025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13027ac_compiler_gnu=$ac_cv_c_compiler_gnu
13028
0093c2fc
VZ
13029 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13030echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13031if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13033else
13034 cat >conftest.$ac_ext <<_ACEOF
13035/* confdefs.h. */
13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
13040
13041int
13042main ()
13043{
13044
0093c2fc 13045 #ifndef __HP_cc
3006edc0
VZ
13046 choke me
13047 #endif
13048
13049 ;
13050 return 0;
13051}
13052_ACEOF
13053rm -f conftest.$ac_objext
13054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
6a5c9b3f
RR
13062 { ac_try='test -z "$ac_c_werror_flag"
13063 || test ! -s conftest.err'
3006edc0
VZ
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
0093c2fc 13075 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13076else
13077 echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
0093c2fc 13080bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13081
13082fi
13083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084
13085
13086fi
0093c2fc
VZ
13087echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13088echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13089 ac_ext=c
13090ac_cpp='$CPP $CPPFLAGS'
13091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093ac_compiler_gnu=$ac_cv_c_compiler_gnu
13094
0093c2fc
VZ
13095 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13096 :; HPCC=yes
a1aa0349
VZ
13097 else
13098 :;
13099 fi
13100
13101
13102 ;;
13103
0093c2fc 13104 OSF1)
a1aa0349
VZ
13105
13106
13107 ac_ext=c
13108ac_cpp='$CPP $CPPFLAGS'
13109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111ac_compiler_gnu=$ac_cv_c_compiler_gnu
13112
0093c2fc
VZ
13113 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13114echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13115if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117else
13118 cat >conftest.$ac_ext <<_ACEOF
13119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124
13125int
13126main ()
13127{
13128
0093c2fc 13129 #ifndef __DECC
a1aa0349
VZ
13130 choke me
13131 #endif
13132
13133 ;
13134 return 0;
13135}
13136_ACEOF
13137rm -f conftest.$ac_objext
13138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13139 (eval $ac_compile) 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
6a5c9b3f
RR
13146 { ac_try='test -z "$ac_c_werror_flag"
13147 || test ! -s conftest.err'
a1aa0349
VZ
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest.$ac_objext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
0093c2fc 13159 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13160else
13161 echo "$as_me: failed program was:" >&5
13162sed 's/^/| /' conftest.$ac_ext >&5
13163
0093c2fc 13164bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13165
13166fi
13167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13168
13169
13170fi
0093c2fc
VZ
13171echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13172echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13173 ac_ext=c
13174ac_cpp='$CPP $CPPFLAGS'
13175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_c_compiler_gnu
13178
0093c2fc
VZ
13179 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13180 :; COMPAQCC=yes
13181 else
13182 :;
13183 fi
13184
13185
13186 ;;
13187
13188 SunOS)
13189
13190
13191 ac_ext=c
13192ac_cpp='$CPP $CPPFLAGS'
13193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13195ac_compiler_gnu=$ac_cv_c_compiler_gnu
13196
13197 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13198echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13199if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202 cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208
13209int
13210main ()
13211{
13212
13213 #ifndef __SUNPRO_C
13214 choke me
13215 #endif
13216
13217 ;
13218 return 0;
13219}
13220_ACEOF
13221rm -f conftest.$ac_objext
13222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223 (eval $ac_compile) 2>conftest.er1
13224 ac_status=$?
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
6a5c9b3f
RR
13230 { ac_try='test -z "$ac_c_werror_flag"
13231 || test ! -s conftest.err'
0093c2fc
VZ
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 bakefile_cv_c_compiler___SUNPRO_C=yes
13244else
13245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
13248bakefile_cv_c_compiler___SUNPRO_C=no
13249
13250fi
13251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13252
13253
13254fi
13255echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13256echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13257 ac_ext=c
13258ac_cpp='$CPP $CPPFLAGS'
13259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13261ac_compiler_gnu=$ac_cv_c_compiler_gnu
13262
13263 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13264 :; SUNCC=yes
3006edc0
VZ
13265 else
13266 :;
13267 fi
13268
13269
13270 ;;
13271 esac
ab0ad5f1 13272 fi
a9e5b1f0
MW
13273
13274
3006edc0 13275
a848cd7e
SC
13276ac_ext=c
13277ac_cpp='$CPP $CPPFLAGS'
13278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13280ac_compiler_gnu=$ac_cv_c_compiler_gnu
13281echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13282echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13283# On Suns, sometimes $CPP names a directory.
13284if test -n "$CPP" && test -d "$CPP"; then
13285 CPP=
13286fi
13287if test -z "$CPP"; then
13288 if test "${ac_cv_prog_CPP+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290else
13291 # Double quotes because CPP needs to be expanded
13292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13293 do
13294 ac_preproc_ok=false
13295for ac_c_preproc_warn_flag in '' yes
13296do
13297 # Use a header file that comes with gcc, so configuring glibc
13298 # with a fresh cross-compiler works.
13299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13300 # <limits.h> exists even on freestanding compilers.
13301 # On the NeXT, cc -E runs the code through the compiler's parser,
13302 # not just through cpp. "Syntax error" is here to catch this case.
13303 cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h. */
13309#ifdef __STDC__
13310# include <limits.h>
13311#else
13312# include <assert.h>
13313#endif
ac1cb8d3 13314 Syntax error
a848cd7e
SC
13315_ACEOF
13316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } >/dev/null; then
13324 if test -s conftest.err; then
13325 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13327 else
13328 ac_cpp_err=
13329 fi
13330else
13331 ac_cpp_err=yes
13332fi
13333if test -z "$ac_cpp_err"; then
13334 :
13335else
13336 echo "$as_me: failed program was:" >&5
13337sed 's/^/| /' conftest.$ac_ext >&5
13338
13339 # Broken: fails on valid input.
13340continue
13341fi
13342rm -f conftest.err conftest.$ac_ext
13343
13344 # OK, works on sane cases. Now check whether non-existent headers
13345 # can be detected and how.
13346 cat >conftest.$ac_ext <<_ACEOF
13347/* confdefs.h. */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h. */
13352#include <ac_nonexistent.h>
13353_ACEOF
13354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13356 ac_status=$?
13357 grep -v '^ *+' conftest.er1 >conftest.err
13358 rm -f conftest.er1
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } >/dev/null; then
13362 if test -s conftest.err; then
13363 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13365 else
13366 ac_cpp_err=
13367 fi
13368else
13369 ac_cpp_err=yes
13370fi
13371if test -z "$ac_cpp_err"; then
13372 # Broken: success on invalid input.
13373continue
13374else
13375 echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 # Passes both tests.
13379ac_preproc_ok=:
13380break
13381fi
13382rm -f conftest.err conftest.$ac_ext
13383
13384done
13385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13386rm -f conftest.err conftest.$ac_ext
13387if $ac_preproc_ok; then
13388 break
13389fi
13390
13391 done
13392 ac_cv_prog_CPP=$CPP
13393
13394fi
13395 CPP=$ac_cv_prog_CPP
13396else
13397 ac_cv_prog_CPP=$CPP
13398fi
13399echo "$as_me:$LINENO: result: $CPP" >&5
13400echo "${ECHO_T}$CPP" >&6
13401ac_preproc_ok=false
13402for ac_c_preproc_warn_flag in '' yes
13403do
13404 # Use a header file that comes with gcc, so configuring glibc
13405 # with a fresh cross-compiler works.
13406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13407 # <limits.h> exists even on freestanding compilers.
13408 # On the NeXT, cc -E runs the code through the compiler's parser,
13409 # not just through cpp. "Syntax error" is here to catch this case.
13410 cat >conftest.$ac_ext <<_ACEOF
13411/* confdefs.h. */
13412_ACEOF
13413cat confdefs.h >>conftest.$ac_ext
13414cat >>conftest.$ac_ext <<_ACEOF
13415/* end confdefs.h. */
13416#ifdef __STDC__
13417# include <limits.h>
13418#else
13419# include <assert.h>
13420#endif
ac1cb8d3 13421 Syntax error
a848cd7e
SC
13422_ACEOF
13423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } >/dev/null; then
13431 if test -s conftest.err; then
13432 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13434 else
13435 ac_cpp_err=
13436 fi
13437else
13438 ac_cpp_err=yes
13439fi
13440if test -z "$ac_cpp_err"; then
13441 :
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 # Broken: fails on valid input.
13447continue
13448fi
13449rm -f conftest.err conftest.$ac_ext
13450
13451 # OK, works on sane cases. Now check whether non-existent headers
13452 # can be detected and how.
13453 cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
13459#include <ac_nonexistent.h>
13460_ACEOF
13461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } >/dev/null; then
13469 if test -s conftest.err; then
13470 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13472 else
13473 ac_cpp_err=
13474 fi
13475else
13476 ac_cpp_err=yes
13477fi
13478if test -z "$ac_cpp_err"; then
13479 # Broken: success on invalid input.
13480continue
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 # Passes both tests.
13486ac_preproc_ok=:
13487break
13488fi
13489rm -f conftest.err conftest.$ac_ext
13490
13491done
13492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13493rm -f conftest.err conftest.$ac_ext
13494if $ac_preproc_ok; then
13495 :
13496else
13497 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13498See \`config.log' for more details." >&5
13499echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13500See \`config.log' for more details." >&2;}
13501 { (exit 1); exit 1; }; }
13502fi
13503
13504ac_ext=c
13505ac_cpp='$CPP $CPPFLAGS'
13506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13508ac_compiler_gnu=$ac_cv_c_compiler_gnu
13509
13510
13511echo "$as_me:$LINENO: checking for egrep" >&5
13512echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13513if test "${ac_cv_prog_egrep+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
13516 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13517 then ac_cv_prog_egrep='grep -E'
13518 else ac_cv_prog_egrep='egrep'
13519 fi
13520fi
13521echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13522echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13523 EGREP=$ac_cv_prog_egrep
13524
13525
13526if test $ac_cv_c_compiler_gnu = yes; then
13527 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13528echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13529if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531else
13532 ac_pattern="Autoconf.*'x'"
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. */
13539#include <sgtty.h>
13540Autoconf TIOCGETP
13541_ACEOF
13542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13543 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13544 ac_cv_prog_gcc_traditional=yes
13545else
13546 ac_cv_prog_gcc_traditional=no
13547fi
13548rm -f conftest*
13549
13550
13551 if test $ac_cv_prog_gcc_traditional = no; then
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558#include <termio.h>
13559Autoconf TCGETA
13560_ACEOF
13561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13562 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13563 ac_cv_prog_gcc_traditional=yes
13564fi
13565rm -f conftest*
13566
13567 fi
13568fi
13569echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13570echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13571 if test $ac_cv_prog_gcc_traditional = yes; then
13572 CC="$CC -traditional"
13573 fi
13574fi
13575
13576
a848cd7e
SC
13577ac_ext=cc
13578ac_cpp='$CXXCPP $CPPFLAGS'
13579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13582
13583
13584CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13585
13586
3006edc0 13587
6dcfc289 13588 ac_ext=cc
a848cd7e
SC
13589ac_cpp='$CXXCPP $CPPFLAGS'
13590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13593if test -n "$ac_tool_prefix"; then
13594 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13595 do
13596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13598echo "$as_me:$LINENO: checking for $ac_word" >&5
13599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13600if test "${ac_cv_prog_CXX+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602else
13603 if test -n "$CXX"; then
13604 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13605else
13606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607for as_dir in $PATH
13608do
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13615 break 2
13616 fi
13617done
13618done
13619
13620fi
13621fi
13622CXX=$ac_cv_prog_CXX
13623if test -n "$CXX"; then
13624 echo "$as_me:$LINENO: result: $CXX" >&5
13625echo "${ECHO_T}$CXX" >&6
13626else
13627 echo "$as_me:$LINENO: result: no" >&5
13628echo "${ECHO_T}no" >&6
13629fi
13630
13631 test -n "$CXX" && break
13632 done
13633fi
13634if test -z "$CXX"; then
13635 ac_ct_CXX=$CXX
13636 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13637do
13638 # Extract the first word of "$ac_prog", so it can be a program name with args.
13639set dummy $ac_prog; ac_word=$2
13640echo "$as_me:$LINENO: checking for $ac_word" >&5
13641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13642if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644else
13645 if test -n "$ac_ct_CXX"; then
13646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13647else
13648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649for as_dir in $PATH
13650do
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13655 ac_cv_prog_ac_ct_CXX="$ac_prog"
13656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13658 fi
13659done
13660done
13661
13662fi
13663fi
13664ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13665if test -n "$ac_ct_CXX"; then
13666 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13667echo "${ECHO_T}$ac_ct_CXX" >&6
13668else
13669 echo "$as_me:$LINENO: result: no" >&5
13670echo "${ECHO_T}no" >&6
13671fi
13672
13673 test -n "$ac_ct_CXX" && break
13674done
13675test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13676
13677 CXX=$ac_ct_CXX
13678fi
13679
13680
13681# Provide some information about the compiler.
13682echo "$as_me:$LINENO:" \
13683 "checking for C++ compiler version" >&5
13684ac_compiler=`set X $ac_compile; echo $2`
13685{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13686 (eval $ac_compiler --version </dev/null >&5) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }
13690{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13691 (eval $ac_compiler -v </dev/null >&5) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }
13695{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13696 (eval $ac_compiler -V </dev/null >&5) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }
13700
13701echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13702echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13703if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705else
13706 cat >conftest.$ac_ext <<_ACEOF
13707/* confdefs.h. */
13708_ACEOF
13709cat confdefs.h >>conftest.$ac_ext
13710cat >>conftest.$ac_ext <<_ACEOF
13711/* end confdefs.h. */
13712
13713int
13714main ()
13715{
13716#ifndef __GNUC__
13717 choke me
13718#endif
13719
13720 ;
13721 return 0;
13722}
13723_ACEOF
13724rm -f conftest.$ac_objext
13725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13726 (eval $ac_compile) 2>conftest.er1
a848cd7e 13727 ac_status=$?
ac1cb8d3
VS
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
a848cd7e
SC
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
6a5c9b3f
RR
13733 { ac_try='test -z "$ac_cxx_werror_flag"
13734 || test ! -s conftest.err'
ac1cb8d3
VS
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; } &&
13740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_compiler_gnu=yes
13747else
13748 echo "$as_me: failed program was:" >&5
13749sed 's/^/| /' conftest.$ac_ext >&5
13750
13751ac_compiler_gnu=no
13752fi
ac1cb8d3 13753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13754ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13755
13756fi
13757echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13758echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13759GXX=`test $ac_compiler_gnu = yes && echo yes`
13760ac_test_CXXFLAGS=${CXXFLAGS+set}
13761ac_save_CXXFLAGS=$CXXFLAGS
13762CXXFLAGS="-g"
13763echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13764echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13765if test "${ac_cv_prog_cxx_g+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767else
13768 cat >conftest.$ac_ext <<_ACEOF
13769/* confdefs.h. */
13770_ACEOF
13771cat confdefs.h >>conftest.$ac_ext
13772cat >>conftest.$ac_ext <<_ACEOF
13773/* end confdefs.h. */
13774
13775int
13776main ()
13777{
13778
13779 ;
13780 return 0;
13781}
13782_ACEOF
13783rm -f conftest.$ac_objext
13784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13785 (eval $ac_compile) 2>conftest.er1
a848cd7e 13786 ac_status=$?
ac1cb8d3
VS
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
a848cd7e
SC
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
6a5c9b3f
RR
13792 { ac_try='test -z "$ac_cxx_werror_flag"
13793 || test ! -s conftest.err'
ac1cb8d3
VS
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_cv_prog_cxx_g=yes
13806else
13807 echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810ac_cv_prog_cxx_g=no
13811fi
ac1cb8d3 13812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13813fi
13814echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13815echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13816if test "$ac_test_CXXFLAGS" = set; then
13817 CXXFLAGS=$ac_save_CXXFLAGS
13818elif test $ac_cv_prog_cxx_g = yes; then
13819 if test "$GXX" = yes; then
15291213 13820 CXXFLAGS="-g -O2"
a848cd7e 13821 else
15291213 13822 CXXFLAGS="-g"
a848cd7e
SC
13823 fi
13824else
13825 if test "$GXX" = yes; then
13826 CXXFLAGS="-O2"
13827 else
13828 CXXFLAGS=
13829 fi
13830fi
13831for ac_declaration in \
ac1cb8d3 13832 '' \
a848cd7e
SC
13833 'extern "C" void std::exit (int) throw (); using std::exit;' \
13834 'extern "C" void std::exit (int); using std::exit;' \
13835 'extern "C" void exit (int) throw ();' \
13836 'extern "C" void exit (int);' \
13837 'void exit (int);'
13838do
13839 cat >conftest.$ac_ext <<_ACEOF
13840/* confdefs.h. */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
13844/* end confdefs.h. */
de59c161 13845$ac_declaration
ac1cb8d3 13846#include <stdlib.h>
a848cd7e
SC
13847int
13848main ()
13849{
13850exit (42);
13851 ;
13852 return 0;
13853}
13854_ACEOF
13855rm -f conftest.$ac_objext
13856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13857 (eval $ac_compile) 2>conftest.er1
a848cd7e 13858 ac_status=$?
ac1cb8d3
VS
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
a848cd7e
SC
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
6a5c9b3f
RR
13864 { ac_try='test -z "$ac_cxx_werror_flag"
13865 || test ! -s conftest.err'
ac1cb8d3
VS
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; } &&
13871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 :
13878else
13879 echo "$as_me: failed program was:" >&5
13880sed 's/^/| /' conftest.$ac_ext >&5
13881
13882continue
13883fi
ac1cb8d3 13884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13885 cat >conftest.$ac_ext <<_ACEOF
13886/* confdefs.h. */
13887_ACEOF
13888cat confdefs.h >>conftest.$ac_ext
13889cat >>conftest.$ac_ext <<_ACEOF
13890/* end confdefs.h. */
13891$ac_declaration
13892int
13893main ()
13894{
13895exit (42);
13896 ;
13897 return 0;
13898}
13899_ACEOF
13900rm -f conftest.$ac_objext
13901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13902 (eval $ac_compile) 2>conftest.er1
a848cd7e 13903 ac_status=$?
ac1cb8d3
VS
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
a848cd7e
SC
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
6a5c9b3f
RR
13909 { ac_try='test -z "$ac_cxx_werror_flag"
13910 || test ! -s conftest.err'
ac1cb8d3
VS
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 break
13923else
13924 echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927fi
ac1cb8d3 13928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13929done
13930rm -f conftest*
13931if test -n "$ac_declaration"; then
13932 echo '#ifdef __cplusplus' >>confdefs.h
13933 echo $ac_declaration >>confdefs.h
13934 echo '#endif' >>confdefs.h
13935fi
13936
13937ac_ext=cc
13938ac_cpp='$CXXCPP $CPPFLAGS'
13939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13942
ab0ad5f1
VZ
13943
13944
13945 ac_ext=cc
13946ac_cpp='$CXXCPP $CPPFLAGS'
13947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13950
13951 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13952echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13953if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955else
13956 cat >conftest.$ac_ext <<_ACEOF
13957/* confdefs.h. */
13958_ACEOF
13959cat confdefs.h >>conftest.$ac_ext
13960cat >>conftest.$ac_ext <<_ACEOF
13961/* end confdefs.h. */
13962
13963int
13964main ()
13965{
13966
13967 #ifndef __INTEL_COMPILER
13968 choke me
13969 #endif
13970
13971 ;
13972 return 0;
13973}
13974_ACEOF
13975rm -f conftest.$ac_objext
13976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13977 (eval $ac_compile) 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
6a5c9b3f
RR
13984 { ac_try='test -z "$ac_cxx_werror_flag"
13985 || test ! -s conftest.err'
ab0ad5f1
VZ
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; } &&
13991 { ac_try='test -s conftest.$ac_objext'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13998else
13999 echo "$as_me: failed program was:" >&5
14000sed 's/^/| /' conftest.$ac_ext >&5
14001
14002bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14003
14004fi
14005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14006
14007
14008fi
14009echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14010echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14011 ac_ext=cc
14012ac_cpp='$CXXCPP $CPPFLAGS'
14013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14016
14017 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14018 :; INTELCXX=yes
14019 else
14020 :;
14021 fi
14022
14023
3006edc0
VZ
14024 if test "x$GCXX" != "xyes"; then
14025 if test "xCXX" = "xC"; then
14026 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14027echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14028if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030else
14031 cat >conftest.$ac_ext <<_ACEOF
14032/* confdefs.h. */
14033_ACEOF
14034cat confdefs.h >>conftest.$ac_ext
14035cat >>conftest.$ac_ext <<_ACEOF
14036/* end confdefs.h. */
14037
14038int
14039main ()
14040{
14041
14042 ;
14043 return 0;
14044}
14045_ACEOF
14046rm -f conftest.$ac_objext conftest.$ac_ext.o
14047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14048 (eval $ac_compile) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; then
14052 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14053 case $ac_file in
14054 conftest.$ac_ext.o)
0093c2fc 14055 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14056 ;;
14057 *)
14058 ;;
14059 esac
14060done
14061else
14062 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14063See \`config.log' for more details." >&5
14064echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14065See \`config.log' for more details." >&2;}
14066 { (exit 1); exit 1; }; }
14067
14068fi
14069
14070rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14071
14072fi
0093c2fc
VZ
14073echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14074echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14075if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14076 if test "cxx" = "c"; then
0093c2fc 14077 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14078 fi
14079 if test "cxx" = "cxx"; then
0093c2fc 14080 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14081 fi
14082fi
14083
0093c2fc 14084 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14085 unset ac_cv_prog_cc_g
14086 ac_test_CFLAGS=${CFLAGS+set}
14087ac_save_CFLAGS=$CFLAGS
15291213 14088CFLAGS="-g"
3006edc0
VZ
14089echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14090echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14091if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14093else
14094 cat >conftest.$ac_ext <<_ACEOF
14095/* confdefs.h. */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h. */
14100
14101int
14102main ()
14103{
14104
14105 ;
14106 return 0;
14107}
14108_ACEOF
14109rm -f conftest.$ac_objext
14110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111 (eval $ac_compile) 2>conftest.er1
14112 ac_status=$?
14113 grep -v '^ *+' conftest.er1 >conftest.err
14114 rm -f conftest.er1
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
6a5c9b3f
RR
14118 { ac_try='test -z "$ac_cxx_werror_flag"
14119 || test ! -s conftest.err'
480ccd21
DE
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest.$ac_objext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
3006edc0 14131 ac_cv_prog_cc_g=yes
480ccd21
DE
14132else
14133 echo "$as_me: failed program was:" >&5
14134sed 's/^/| /' conftest.$ac_ext >&5
14135
3006edc0 14136ac_cv_prog_cc_g=no
480ccd21
DE
14137fi
14138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14139fi
3006edc0
VZ
14140echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14141echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14142if test "$ac_test_CFLAGS" = set; then
14143 CFLAGS=$ac_save_CFLAGS
14144elif test $ac_cv_prog_cc_g = yes; then
14145 if test "$GCC" = yes; then
14146 CFLAGS="-g -O2"
480ccd21 14147 else
3006edc0 14148 CFLAGS="-g"
480ccd21
DE
14149 fi
14150else
3006edc0
VZ
14151 if test "$GCC" = yes; then
14152 CFLAGS="-O2"
480ccd21 14153 else
3006edc0 14154 CFLAGS=
480ccd21
DE
14155 fi
14156fi
3006edc0 14157 fi
ab0ad5f1 14158 fi
3006edc0
VZ
14159
14160 case `uname -s` in
14161 AIX*)
14162 ac_ext=cc
14163ac_cpp='$CXXCPP $CPPFLAGS'
14164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14167
14168echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14169echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14170if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172else
14173 cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179
14180int
14181main ()
14182{
14183#ifndef __xlC__
14184 choke me
14185#endif
14186
14187 ;
14188 return 0;
14189}
14190_ACEOF
14191rm -f conftest.$ac_objext
14192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193 (eval $ac_compile) 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
6a5c9b3f
RR
14200 { ac_try='test -z "$ac_cxx_werror_flag"
14201 || test ! -s conftest.err'
3006edc0
VZ
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest.$ac_objext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
0093c2fc 14213 bakefile_compiler_xlc=yes
3006edc0
VZ
14214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
0093c2fc 14218bakefile_compiler_xlc=no
3006edc0
VZ
14219fi
14220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14221 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14222
14223fi
0093c2fc
VZ
14224echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14225echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14226
0093c2fc 14227XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14228ac_ext=cc
14229ac_cpp='$CXXCPP $CPPFLAGS'
14230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14233
14234
14235 ;;
14236
14237 Darwin)
14238 ac_ext=cc
95986553
DE
14239ac_cpp='$CXXCPP $CPPFLAGS'
14240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14243
14244echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14245echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14246if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249 cat >conftest.$ac_ext <<_ACEOF
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
14255
14256int
14257main ()
14258{
14259#ifndef __MWERKS__
14260 choke me
14261#endif
14262
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext
14268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
6a5c9b3f
RR
14276 { ac_try='test -z "$ac_cxx_werror_flag"
14277 || test ! -s conftest.err'
95986553
DE
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 bakefile_compiler_mwerks=yes
14290else
14291 echo "$as_me: failed program was:" >&5
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
14294bakefile_compiler_mwerks=no
14295fi
14296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14297 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14298
14299fi
14300echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14301echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14302
0e6fa1d9 14303MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14304ac_ext=cc
14305ac_cpp='$CXXCPP $CPPFLAGS'
14306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14309
14310
3006edc0 14311 ac_ext=cc
9273ffba
DE
14312ac_cpp='$CXXCPP $CPPFLAGS'
14313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14316
14317echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14318echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14319if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321else
14322 cat >conftest.$ac_ext <<_ACEOF
14323/* confdefs.h. */
14324_ACEOF
14325cat confdefs.h >>conftest.$ac_ext
14326cat >>conftest.$ac_ext <<_ACEOF
14327/* end confdefs.h. */
14328
14329int
14330main ()
14331{
14332#ifndef __xlC__
14333 choke me
14334#endif
14335
14336 ;
14337 return 0;
14338}
14339_ACEOF
14340rm -f conftest.$ac_objext
14341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342 (eval $ac_compile) 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
6a5c9b3f
RR
14349 { ac_try='test -z "$ac_cxx_werror_flag"
14350 || test ! -s conftest.err'
9273ffba
DE
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
0093c2fc 14362 bakefile_compiler_xlc=yes
9273ffba
DE
14363else
14364 echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
0093c2fc 14367bakefile_compiler_xlc=no
9273ffba
DE
14368fi
14369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14370 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14371
14372fi
0093c2fc
VZ
14373echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14374echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14375
0093c2fc 14376XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14377ac_ext=cc
14378ac_cpp='$CXXCPP $CPPFLAGS'
14379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14382
14383
3006edc0
VZ
14384 ;;
14385
14386 IRIX*)
95986553 14387
6dcfc289 14388
0ad5d837
VZ
14389 ac_ext=cc
14390ac_cpp='$CXXCPP $CPPFLAGS'
14391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14394
14395 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14396echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14397if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14399else
14400 cat >conftest.$ac_ext <<_ACEOF
14401/* confdefs.h. */
14402_ACEOF
14403cat confdefs.h >>conftest.$ac_ext
14404cat >>conftest.$ac_ext <<_ACEOF
14405/* end confdefs.h. */
14406
14407int
14408main ()
14409{
14410
14411 #ifndef _SGI_COMPILER_VERSION
14412 choke me
14413 #endif
14414
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419rm -f conftest.$ac_objext
14420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
6a5c9b3f
RR
14428 { ac_try='test -z "$ac_cxx_werror_flag"
14429 || test ! -s conftest.err'
0ad5d837
VZ
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14442else
14443 echo "$as_me: failed program was:" >&5
14444sed 's/^/| /' conftest.$ac_ext >&5
14445
14446bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14447
14448fi
14449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14450
14451
14452fi
14453echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14454echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14455 ac_ext=cc
14456ac_cpp='$CXXCPP $CPPFLAGS'
14457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14460
14461 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14462 :; SGICXX=yes
14463 else
14464 :;
14465 fi
14466
14467
3006edc0
VZ
14468 ;;
14469
0093c2fc 14470 HP-UX*)
3006edc0
VZ
14471
14472
14473 ac_ext=cc
14474ac_cpp='$CXXCPP $CPPFLAGS'
14475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14478
0093c2fc
VZ
14479 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14480echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14481if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483else
14484 cat >conftest.$ac_ext <<_ACEOF
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
14489/* end confdefs.h. */
14490
14491int
14492main ()
14493{
14494
0093c2fc 14495 #ifndef __HP_aCC
3006edc0
VZ
14496 choke me
14497 #endif
14498
14499 ;
14500 return 0;
14501}
14502_ACEOF
14503rm -f conftest.$ac_objext
14504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
6a5c9b3f
RR
14512 { ac_try='test -z "$ac_cxx_werror_flag"
14513 || test ! -s conftest.err'
3006edc0
VZ
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
0093c2fc 14525 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14526else
14527 echo "$as_me: failed program was:" >&5
14528sed 's/^/| /' conftest.$ac_ext >&5
14529
0093c2fc 14530bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14531
14532fi
14533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14534
14535
14536fi
0093c2fc
VZ
14537echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14538echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14539 ac_ext=cc
14540ac_cpp='$CXXCPP $CPPFLAGS'
14541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14544
0093c2fc
VZ
14545 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14546 :; HPCXX=yes
a1aa0349
VZ
14547 else
14548 :;
14549 fi
14550
14551
14552 ;;
14553
0093c2fc 14554 OSF1)
a1aa0349
VZ
14555
14556
14557 ac_ext=cc
14558ac_cpp='$CXXCPP $CPPFLAGS'
14559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14562
0093c2fc
VZ
14563 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14564echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14565if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567else
14568 cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574
14575int
14576main ()
14577{
14578
0093c2fc 14579 #ifndef __DECCXX
a1aa0349
VZ
14580 choke me
14581 #endif
14582
14583 ;
14584 return 0;
14585}
14586_ACEOF
14587rm -f conftest.$ac_objext
14588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14589 (eval $ac_compile) 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
6a5c9b3f
RR
14596 { ac_try='test -z "$ac_cxx_werror_flag"
14597 || test ! -s conftest.err'
a1aa0349
VZ
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; } &&
14603 { ac_try='test -s conftest.$ac_objext'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
0093c2fc 14609 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14610else
14611 echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
0093c2fc 14614bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14615
14616fi
14617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14618
14619
14620fi
0093c2fc
VZ
14621echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14622echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14623 ac_ext=cc
14624ac_cpp='$CXXCPP $CPPFLAGS'
14625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14628
0093c2fc
VZ
14629 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14630 :; COMPAQCXX=yes
14631 else
14632 :;
14633 fi
14634
14635
14636 ;;
14637
14638 SunOS)
14639
14640
14641 ac_ext=cc
14642ac_cpp='$CXXCPP $CPPFLAGS'
14643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14646
14647 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14648echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14649if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651else
14652 cat >conftest.$ac_ext <<_ACEOF
14653/* confdefs.h. */
14654_ACEOF
14655cat confdefs.h >>conftest.$ac_ext
14656cat >>conftest.$ac_ext <<_ACEOF
14657/* end confdefs.h. */
14658
14659int
14660main ()
14661{
14662
14663 #ifndef __SUNPRO_CC
14664 choke me
14665 #endif
14666
14667 ;
14668 return 0;
14669}
14670_ACEOF
14671rm -f conftest.$ac_objext
14672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673 (eval $ac_compile) 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
6a5c9b3f
RR
14680 { ac_try='test -z "$ac_cxx_werror_flag"
14681 || test ! -s conftest.err'
0093c2fc
VZ
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698bakefile_cv_cxx_compiler___SUNPRO_CC=no
14699
14700fi
14701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14702
14703
14704fi
14705echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14706echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14707 ac_ext=cc
14708ac_cpp='$CXXCPP $CPPFLAGS'
14709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14712
14713 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14714 :; SUNCXX=yes
3006edc0
VZ
14715 else
14716 :;
ab0ad5f1 14717 fi
a9e5b1f0
MW
14718
14719
3006edc0
VZ
14720 ;;
14721 esac
14722 fi
14723
14724
14725
a848cd7e
SC
14726if test -n "$ac_tool_prefix"; then
14727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14728set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14729echo "$as_me:$LINENO: checking for $ac_word" >&5
14730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14731if test "${ac_cv_prog_RANLIB+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733else
14734 if test -n "$RANLIB"; then
14735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14736else
14737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14738for as_dir in $PATH
14739do
14740 IFS=$as_save_IFS
14741 test -z "$as_dir" && as_dir=.
14742 for ac_exec_ext in '' $ac_executable_extensions; do
14743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14746 break 2
14747 fi
14748done
14749done
14750
14751fi
14752fi
14753RANLIB=$ac_cv_prog_RANLIB
14754if test -n "$RANLIB"; then
14755 echo "$as_me:$LINENO: result: $RANLIB" >&5
14756echo "${ECHO_T}$RANLIB" >&6
14757else
14758 echo "$as_me:$LINENO: result: no" >&5
14759echo "${ECHO_T}no" >&6
14760fi
14761
14762fi
14763if test -z "$ac_cv_prog_RANLIB"; then
14764 ac_ct_RANLIB=$RANLIB
14765 # Extract the first word of "ranlib", so it can be a program name with args.
14766set dummy ranlib; ac_word=$2
14767echo "$as_me:$LINENO: checking for $ac_word" >&5
14768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14769if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771else
14772 if test -n "$ac_ct_RANLIB"; then
14773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14774else
14775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776for as_dir in $PATH
14777do
14778 IFS=$as_save_IFS
14779 test -z "$as_dir" && as_dir=.
14780 for ac_exec_ext in '' $ac_executable_extensions; do
14781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14782 ac_cv_prog_ac_ct_RANLIB="ranlib"
14783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14784 break 2
14785 fi
14786done
14787done
14788
14789 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14790fi
14791fi
14792ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14793if test -n "$ac_ct_RANLIB"; then
14794 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14795echo "${ECHO_T}$ac_ct_RANLIB" >&6
14796else
14797 echo "$as_me:$LINENO: result: no" >&5
14798echo "${ECHO_T}no" >&6
14799fi
14800
14801 RANLIB=$ac_ct_RANLIB
14802else
14803 RANLIB="$ac_cv_prog_RANLIB"
14804fi
14805
14806
8c80d384
DE
14807if test -n "$ac_tool_prefix"; then
14808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14809set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14810echo "$as_me:$LINENO: checking for $ac_word" >&5
14811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14812if test "${ac_cv_prog_AR+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814else
14815 if test -n "$AR"; then
14816 ac_cv_prog_AR="$AR" # Let the user override the test.
14817else
14818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819for as_dir in $PATH
14820do
14821 IFS=$as_save_IFS
14822 test -z "$as_dir" && as_dir=.
14823 for ac_exec_ext in '' $ac_executable_extensions; do
14824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14825 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14827 break 2
14828 fi
14829done
14830done
14831
14832fi
14833fi
14834AR=$ac_cv_prog_AR
14835if test -n "$AR"; then
14836 echo "$as_me:$LINENO: result: $AR" >&5
14837echo "${ECHO_T}$AR" >&6
14838else
14839 echo "$as_me:$LINENO: result: no" >&5
14840echo "${ECHO_T}no" >&6
14841fi
14842
8c80d384
DE
14843fi
14844if test -z "$ac_cv_prog_AR"; then
14845 ac_ct_AR=$AR
14846 # Extract the first word of "ar", so it can be a program name with args.
14847set dummy ar; ac_word=$2
14848echo "$as_me:$LINENO: checking for $ac_word" >&5
14849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14850if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852else
14853 if test -n "$ac_ct_AR"; then
14854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14855else
14856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857for as_dir in $PATH
14858do
14859 IFS=$as_save_IFS
14860 test -z "$as_dir" && as_dir=.
14861 for ac_exec_ext in '' $ac_executable_extensions; do
14862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863 ac_cv_prog_ac_ct_AR="ar"
14864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14865 break 2
14866 fi
14867done
14868done
14869
14870fi
14871fi
14872ac_ct_AR=$ac_cv_prog_ac_ct_AR
14873if test -n "$ac_ct_AR"; then
14874 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14875echo "${ECHO_T}$ac_ct_AR" >&6
14876else
14877 echo "$as_me:$LINENO: result: no" >&5
14878echo "${ECHO_T}no" >&6
14879fi
14880
14881 AR=$ac_ct_AR
14882else
14883 AR="$ac_cv_prog_AR"
14884fi
14885
a848cd7e 14886if test "x$AR" = "x" ; then
77ffb593
JS
14887 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14888echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14889 { (exit 1); exit 1; }; }
14890fi
14891
14892# Find a good install program. We prefer a C program (faster),
14893# so one script is as good as another. But avoid the broken or
14894# incompatible versions:
14895# SysV /etc/install, /usr/sbin/install
14896# SunOS /usr/etc/install
14897# IRIX /sbin/install
14898# AIX /bin/install
14899# AmigaOS /C/install, which installs bootblocks on floppy discs
14900# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14901# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14902# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14903# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14904# ./install, which can be erroneously created by make from ./install.sh.
14905echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14906echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14907if test -z "$INSTALL"; then
14908if test "${ac_cv_path_install+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910else
14911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14912for as_dir in $PATH
14913do
14914 IFS=$as_save_IFS
14915 test -z "$as_dir" && as_dir=.
14916 # Account for people who put trailing slashes in PATH elements.
14917case $as_dir/ in
14918 ./ | .// | /cC/* | \
14919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14920 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14921 /usr/ucb/* ) ;;
14922 *)
14923 # OSF1 and SCO ODT 3.0 have their own names for install.
14924 # Don't use installbsd from OSF since it installs stuff as root
14925 # by default.
14926 for ac_prog in ginstall scoinst install; do
14927 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14928 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14929 if test $ac_prog = install &&
14930 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14931 # AIX install. It has an incompatible calling convention.
14932 :
14933 elif test $ac_prog = install &&
14934 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14935 # program-specific install script used by HP pwplus--don't use.
14936 :
14937 else
14938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14939 break 3
14940 fi
14941 fi
a848cd7e
SC
14942 done
14943 done
14944 ;;
14945esac
14946done
14947
14948
14949fi
14950 if test "${ac_cv_path_install+set}" = set; then
14951 INSTALL=$ac_cv_path_install
14952 else
14953 # As a last resort, use the slow shell script. We don't cache a
14954 # path for INSTALL within a source directory, because that will
14955 # break other packages using the cache if that directory is
14956 # removed, or if the path is relative.
14957 INSTALL=$ac_install_sh
14958 fi
14959fi
14960echo "$as_me:$LINENO: result: $INSTALL" >&5
14961echo "${ECHO_T}$INSTALL" >&6
14962
14963# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14964# It thinks the first close brace ends the variable substitution.
14965test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14966
14967test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14968
14969test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14970
14971
14972case ${INSTALL} in
14973 /* ) # Absolute
14974 ;;
14975 ?:* ) # Drive letter, considered as absolute.
14976 ;;
14977 *)
14978 INSTALL=`pwd`/${INSTALL} ;;
14979esac
14980
a848cd7e
SC
14981
14982case "${host}" in
14983
cfda0ea8 14984 *-*-darwin* )
a848cd7e
SC
14985 INSTALL_PROGRAM="cp -fp"
14986 INSTALL_DATA="cp -fp"
14987 ;;
14988 *)
14989 ;;
14990esac
14991
8c80d384
DE
14992if test -n "$ac_tool_prefix"; then
14993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14994set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14995echo "$as_me:$LINENO: checking for $ac_word" >&5
14996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14997if test "${ac_cv_prog_STRIP+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999else
15000 if test -n "$STRIP"; then
15001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15002else
15003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15004for as_dir in $PATH
15005do
15006 IFS=$as_save_IFS
15007 test -z "$as_dir" && as_dir=.
15008 for ac_exec_ext in '' $ac_executable_extensions; do
15009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15012 break 2
15013 fi
15014done
15015done
15016
a848cd7e
SC
15017fi
15018fi
15019STRIP=$ac_cv_prog_STRIP
15020if test -n "$STRIP"; then
15021 echo "$as_me:$LINENO: result: $STRIP" >&5
15022echo "${ECHO_T}$STRIP" >&6
15023else
15024 echo "$as_me:$LINENO: result: no" >&5
15025echo "${ECHO_T}no" >&6
15026fi
15027
8c80d384
DE
15028fi
15029if test -z "$ac_cv_prog_STRIP"; then
15030 ac_ct_STRIP=$STRIP
15031 # Extract the first word of "strip", so it can be a program name with args.
15032set dummy strip; ac_word=$2
15033echo "$as_me:$LINENO: checking for $ac_word" >&5
15034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15035if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15037else
15038 if test -n "$ac_ct_STRIP"; then
15039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15040else
15041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042for as_dir in $PATH
15043do
15044 IFS=$as_save_IFS
15045 test -z "$as_dir" && as_dir=.
15046 for ac_exec_ext in '' $ac_executable_extensions; do
15047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15048 ac_cv_prog_ac_ct_STRIP="strip"
15049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15050 break 2
15051 fi
15052done
15053done
15054
15055 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15056fi
15057fi
15058ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15059if test -n "$ac_ct_STRIP"; then
15060 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15061echo "${ECHO_T}$ac_ct_STRIP" >&6
15062else
15063 echo "$as_me:$LINENO: result: no" >&5
15064echo "${ECHO_T}no" >&6
15065fi
15066
15067 STRIP=$ac_ct_STRIP
15068else
15069 STRIP="$ac_cv_prog_STRIP"
15070fi
15071
15072
15073if test "$wxUSE_WINE" = "yes"; then
15074 if test -n "$ac_tool_prefix"; then
15075 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15076set dummy ${ac_tool_prefix}wrc; ac_word=$2
15077echo "$as_me:$LINENO: checking for $ac_word" >&5
15078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15079if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081else
8ced02f6
DE
15082 if test -n "$WINDRES"; then
15083 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15084else
15085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086for as_dir in $PATH
15087do
15088 IFS=$as_save_IFS
15089 test -z "$as_dir" && as_dir=.
15090 for ac_exec_ext in '' $ac_executable_extensions; do
15091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15092 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15094 break 2
15095 fi
15096done
15097done
15098
15099fi
15100fi
8ced02f6
DE
15101WINDRES=$ac_cv_prog_WINDRES
15102if test -n "$WINDRES"; then
15103 echo "$as_me:$LINENO: result: $WINDRES" >&5
15104echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15105else
15106 echo "$as_me:$LINENO: result: no" >&5
15107echo "${ECHO_T}no" >&6
15108fi
15109
15110fi
8ced02f6
DE
15111if test -z "$ac_cv_prog_WINDRES"; then
15112 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15113 # Extract the first word of "wrc", so it can be a program name with args.
15114set dummy wrc; ac_word=$2
15115echo "$as_me:$LINENO: checking for $ac_word" >&5
15116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15117if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119else
8ced02f6
DE
15120 if test -n "$ac_ct_WINDRES"; then
15121 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15122else
15123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15124for as_dir in $PATH
15125do
15126 IFS=$as_save_IFS
15127 test -z "$as_dir" && as_dir=.
15128 for ac_exec_ext in '' $ac_executable_extensions; do
15129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15130 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15132 break 2
15133 fi
15134done
15135done
15136
15137fi
15138fi
8ced02f6
DE
15139ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15140if test -n "$ac_ct_WINDRES"; then
15141 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15142echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15143else
15144 echo "$as_me:$LINENO: result: no" >&5
15145echo "${ECHO_T}no" >&6
15146fi
15147
8ced02f6 15148 WINDRES=$ac_ct_WINDRES
8c80d384 15149else
8ced02f6 15150 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15151fi
15152
004ee6da 15153 RESCOMP="$WINDRES"
8c80d384
DE
15154else
15155 case "${host}" in
15156 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15157 if test -n "$ac_tool_prefix"; then
15158 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15159set dummy ${ac_tool_prefix}windres; ac_word=$2
15160echo "$as_me:$LINENO: checking for $ac_word" >&5
15161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15162if test "${ac_cv_prog_WINDRES+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15164else
15165 if test -n "$WINDRES"; then
15166 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15167else
15168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15169for as_dir in $PATH
15170do
15171 IFS=$as_save_IFS
15172 test -z "$as_dir" && as_dir=.
15173 for ac_exec_ext in '' $ac_executable_extensions; do
15174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15175 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15177 break 2
15178 fi
15179done
15180done
15181
15182fi
15183fi
15184WINDRES=$ac_cv_prog_WINDRES
15185if test -n "$WINDRES"; then
15186 echo "$as_me:$LINENO: result: $WINDRES" >&5
15187echo "${ECHO_T}$WINDRES" >&6
15188else
15189 echo "$as_me:$LINENO: result: no" >&5
15190echo "${ECHO_T}no" >&6
15191fi
15192
15193fi
15194if test -z "$ac_cv_prog_WINDRES"; then
15195 ac_ct_WINDRES=$WINDRES
15196 # Extract the first word of "windres", so it can be a program name with args.
15197set dummy windres; ac_word=$2
15198echo "$as_me:$LINENO: checking for $ac_word" >&5
15199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15200if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203 if test -n "$ac_ct_WINDRES"; then
15204 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15205else
15206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15207for as_dir in $PATH
15208do
15209 IFS=$as_save_IFS
15210 test -z "$as_dir" && as_dir=.
15211 for ac_exec_ext in '' $ac_executable_extensions; do
15212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15213 ac_cv_prog_ac_ct_WINDRES="windres"
15214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15215 break 2
15216 fi
15217done
15218done
15219
15220fi
15221fi
15222ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15223if test -n "$ac_ct_WINDRES"; then
15224 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15225echo "${ECHO_T}$ac_ct_WINDRES" >&6
15226else
15227 echo "$as_me:$LINENO: result: no" >&5
15228echo "${ECHO_T}no" >&6
15229fi
15230
15231 WINDRES=$ac_ct_WINDRES
15232else
15233 WINDRES="$ac_cv_prog_WINDRES"
15234fi
15235
15236 RESCOMP="$WINDRES"
15237 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15238 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15239set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15240echo "$as_me:$LINENO: checking for $ac_word" >&5
15241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15242if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244else
15245 if test -n "$DLLTOOL"; then
15246 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15247else
15248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249for as_dir in $PATH
15250do
15251 IFS=$as_save_IFS
15252 test -z "$as_dir" && as_dir=.
15253 for ac_exec_ext in '' $ac_executable_extensions; do
15254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15257 break 2
15258 fi
15259done
15260done
15261
15262fi
15263fi
15264DLLTOOL=$ac_cv_prog_DLLTOOL
15265if test -n "$DLLTOOL"; then
15266 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15267echo "${ECHO_T}$DLLTOOL" >&6
15268else
15269 echo "$as_me:$LINENO: result: no" >&5
15270echo "${ECHO_T}no" >&6
15271fi
15272
15273fi
15274if test -z "$ac_cv_prog_DLLTOOL"; then
15275 ac_ct_DLLTOOL=$DLLTOOL
15276 # Extract the first word of "dlltool", so it can be a program name with args.
15277set dummy dlltool; ac_word=$2
15278echo "$as_me:$LINENO: checking for $ac_word" >&5
15279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15280if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 if test -n "$ac_ct_DLLTOOL"; then
15284 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15285else
15286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15287for as_dir in $PATH
15288do
15289 IFS=$as_save_IFS
15290 test -z "$as_dir" && as_dir=.
15291 for ac_exec_ext in '' $ac_executable_extensions; do
15292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15293 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15295 break 2
15296 fi
15297done
15298done
15299
15300fi
15301fi
15302ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15303if test -n "$ac_ct_DLLTOOL"; then
15304 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15305echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15306else
15307 echo "$as_me:$LINENO: result: no" >&5
15308echo "${ECHO_T}no" >&6
15309fi
15310
15311 DLLTOOL=$ac_ct_DLLTOOL
15312else
15313 DLLTOOL="$ac_cv_prog_DLLTOOL"
15314fi
15315
15316 ;;
15317 esac
15318fi
a848cd7e
SC
15319
15320echo "$as_me:$LINENO: checking if make is GNU make" >&5
15321echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15322if test "${wx_cv_prog_makeisgnu+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324else
15325
15326 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15327 egrep -s GNU > /dev/null); then
15328 wx_cv_prog_makeisgnu="yes"
15329 else
15330 wx_cv_prog_makeisgnu="no"
15331 fi
15332
15333fi
15334echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15335echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15336
15337if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15338 IF_GNU_MAKE=""
15339else
15340 IF_GNU_MAKE="#"
15341fi
15342
15343
15344
15345if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15346echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15347echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15348if test "${wx_cv_prog_makevpath+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351
15352cat - << EOF > confMake
15353check : file
15354 cp \$? \$@
15355 cp \$? final_file
15356EOF
15357
15358if test ! -d sub ; then
15359 mkdir sub
15360fi
15361echo dummy > sub/file
15362${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15363RESULT=$?
15364rm -f sub/file check final_file confMake
15365rmdir sub
15366if test "$RESULT" = 0; then
15367 wx_cv_prog_makevpath="yes"
15368else
15369 wx_cv_prog_makevpath="no"
15370fi
15371
15372fi
15373echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15374echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15375
15376if test "x$wx_cv_prog_makevpath" != "xyes"; then
15377{ { echo "$as_me:$LINENO: error:
15378You need a make-utility that is able to use the variable
15379VPATH correctly.
15380If your version of make does not support VPATH correctly,
15381please install GNU-make (possibly as gmake), and start
15382configure with the following command:
15383export MAKE=gmake; ./configure for sh-type shells
15384setenv MAKE gmake; ./configure for csh-type shells
15385Also please do remember to use gmake in this case every time
15386you are trying to compile.
15387" >&5
15388echo "$as_me: error:
15389You need a make-utility that is able to use the variable
15390VPATH correctly.
15391If your version of make does not support VPATH correctly,
15392please install GNU-make (possibly as gmake), and start
15393configure with the following command:
15394export MAKE=gmake; ./configure for sh-type shells
15395setenv MAKE gmake; ./configure for csh-type shells
15396Also please do remember to use gmake in this case every time
15397you are trying to compile.
15398" >&2;}
15399 { (exit 1); exit 1; }; }
15400fi fi
15401echo "$as_me:$LINENO: checking whether ln -s works" >&5
15402echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15403LN_S=$as_ln_s
15404if test "$LN_S" = "ln -s"; then
15405 echo "$as_me:$LINENO: result: yes" >&5
15406echo "${ECHO_T}yes" >&6
15407else
15408 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15409echo "${ECHO_T}no, using $LN_S" >&6
15410fi
15411
15412
bcaab0f9 15413
a848cd7e 15414
2113bc77 15415if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15416 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15417fi
15418
4d7ec9f1
DE
15419case "${host}" in
15420 powerpc-*-darwin* )
15421 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15422echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15423 cat >conftest.$ac_ext <<_ACEOF
15424/* confdefs.h. */
15425_ACEOF
15426cat confdefs.h >>conftest.$ac_ext
15427cat >>conftest.$ac_ext <<_ACEOF
15428/* end confdefs.h. */
15429
15430int
15431main ()
15432{
15433#ifndef __POWERPC__
15434 choke me for lack of PowerPC
15435#endif
15436
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
6a5c9b3f
RR
15450 { ac_try='test -z "$ac_cxx_werror_flag"
15451 || test ! -s conftest.err'
4d7ec9f1
DE
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 echo "$as_me:$LINENO: result: yes" >&5
15464echo "${ECHO_T}yes" >&6
15465else
15466 echo "$as_me: failed program was:" >&5
15467sed 's/^/| /' conftest.$ac_ext >&5
15468
15469echo "$as_me:$LINENO: result: no" >&5
15470echo "${ECHO_T}no" >&6
15471 cat >>confdefs.h <<\_ACEOF
15472#define __POWERPC__ 1
15473_ACEOF
15474
15475
15476fi
15477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15478 ;;
15479esac
15480
15481case "${host}" in
15482 *-*-darwin* )
4d7ec9f1
DE
15483 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15484echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15485 cat >conftest.$ac_ext <<_ACEOF
15486/* confdefs.h. */
15487_ACEOF
15488cat confdefs.h >>conftest.$ac_ext
15489cat >>conftest.$ac_ext <<_ACEOF
15490/* end confdefs.h. */
15491#include <CoreFoundation/CFBase.h>
15492
15493int
15494main ()
15495{
15496
15497 ;
15498 return 0;
15499}
15500_ACEOF
15501rm -f conftest.$ac_objext
15502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15503 (eval $ac_compile) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
6a5c9b3f
RR
15510 { ac_try='test -z "$ac_cxx_werror_flag"
15511 || test ! -s conftest.err'
4d7ec9f1
DE
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest.$ac_objext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 echo "$as_me:$LINENO: result: yes" >&5
15524echo "${ECHO_T}yes" >&6
15525else
15526 echo "$as_me: failed program was:" >&5
15527sed 's/^/| /' conftest.$ac_ext >&5
15528
15529echo "$as_me:$LINENO: result: no" >&5
15530echo "${ECHO_T}no" >&6
15531 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15532echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15533 cat >conftest.$ac_ext <<_ACEOF
15534/* confdefs.h. */
15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
15538/* end confdefs.h. */
15539#define __CF_USE_FRAMEWORK_INCLUDES__
15540#include <CoreFoundation/CFBase.h>
15541
15542int
15543main ()
15544{
15545
15546 ;
15547 return 0;
15548}
15549_ACEOF
15550rm -f conftest.$ac_objext
15551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15552 (eval $ac_compile) 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } &&
6a5c9b3f
RR
15559 { ac_try='test -z "$ac_cxx_werror_flag"
15560 || test ! -s conftest.err'
4d7ec9f1
DE
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 echo "$as_me:$LINENO: result: yes" >&5
15573echo "${ECHO_T}yes" >&6
c92ad099 15574 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15575else
15576 echo "$as_me: failed program was:" >&5
15577sed 's/^/| /' conftest.$ac_ext >&5
15578
15579{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15580See \`config.log' for more details." >&5
15581echo "$as_me: error: no. CoreFoundation not available.
15582See \`config.log' for more details." >&2;}
15583 { (exit 1); exit 1; }; }
15584
15585fi
15586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15587
15588
15589fi
15590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15591 ;;
15592esac
15593
a848cd7e
SC
15594case "${host}" in
15595 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15596 ac_ext=c
15597ac_cpp='$CPP $CPPFLAGS'
15598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15600ac_compiler_gnu=$ac_cv_c_compiler_gnu
15601
15602 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15603 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15604echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15605if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607else
15608 ac_check_lib_save_LIBS=$LIBS
15609LIBS="-lcExt $LIBS"
15610cat >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
15617/* Override any gcc2 internal prototype to avoid an error. */
15618#ifdef __cplusplus
15619extern "C"
15620#endif
15621/* We use char because int might match the return type of a gcc2
15622 builtin and then its argument prototype would still apply. */
15623char drand48 ();
15624int
15625main ()
15626{
15627drand48 ();
15628 ;
15629 return 0;
15630}
15631_ACEOF
15632rm -f conftest.$ac_objext conftest$ac_exeext
15633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15634 (eval $ac_link) 2>conftest.er1
a848cd7e 15635 ac_status=$?
ac1cb8d3
VS
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
a848cd7e
SC
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
6a5c9b3f
RR
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
ac1cb8d3
VS
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_lib_cExt_drand48=yes
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659ac_cv_lib_cExt_drand48=no
15660fi
ac1cb8d3
VS
15661rm -f conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15663LIBS=$ac_check_lib_save_LIBS
15664fi
15665echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15666echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15667if test $ac_cv_lib_cExt_drand48 = yes; then
15668 LIBS="$LIBS -lcExt"
15669fi
15670
15671 else
15672 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15673 fi
69120ee4
VZ
15674 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15675echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15676if test "${wx_cv_gccversion+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678else
15679
391a765e
VS
15680 if test "$cross_compiling" = yes; then
15681 wx_cv_gccversion="EMX2"
15682
15683else
15684 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690
391a765e 15691 #include <stdio.h>
a848cd7e 15692
391a765e
VS
15693 int main()
15694 {
15695 FILE *f=fopen("conftestval", "w");
15696 if (!f) exit(1);
15697 fprintf(f,
a848cd7e 15698 #if (__GNUC__ < 3)
391a765e
VS
15699 "EMX2"
15700 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15701 "EMX3"
15702 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15703 "Innotek5"
15704 #else
15705 "Innotek6"
a848cd7e 15706 #endif
5039a2df 15707 );
391a765e
VS
15708 exit(0);
15709 }
a848cd7e 15710
a848cd7e 15711_ACEOF
391a765e
VS
15712rm -f conftest$ac_exeext
15713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15714 (eval $ac_link) 2>&5
ac1cb8d3
VS
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
391a765e 15723 wx_cv_gccversion=`cat conftestval`
a848cd7e 15724else
391a765e
VS
15725 echo "$as_me: program exited with status $ac_status" >&5
15726echo "$as_me: failed program was:" >&5
a848cd7e
SC
15727sed 's/^/| /' conftest.$ac_ext >&5
15728
391a765e
VS
15729( exit $ac_status )
15730wx_cv_gccversion="EMX2"
a848cd7e 15731fi
391a765e 15732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15733fi
a848cd7e
SC
15734
15735fi
15736echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15737echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15738 ac_ext=cc
15739ac_cpp='$CXXCPP $CPPFLAGS'
15740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15743
391a765e 15744 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15745 LIBS="$LIBS -lstdcpp"
15746 LDFLAGS="$LDFLAGS -Zsysv-signals"
15747 else
391a765e 15748 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15749 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15750 LDFLAGS="$LDFLAGS -Zsysv-signals"
15751 else
15752 LIBS="$LIBS -lstdc++"
15753 fi
15754 fi
94acd38e
DE
15755 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15756 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15757echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15758 wxUSE_OMF=yes
2da0c077 15759 enable_omf=yes
a848cd7e
SC
15760 fi
15761 ;;
15762 *)
15763
95986553 15764 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15765echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15766if test "${ac_cv_string_strcasecmp+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768else
15769
15770 cat >conftest.$ac_ext <<_ACEOF
15771/* confdefs.h. */
15772_ACEOF
15773cat confdefs.h >>conftest.$ac_ext
15774cat >>conftest.$ac_ext <<_ACEOF
15775/* end confdefs.h. */
15776
15777 #include <string.h>
15778
15779int
15780main ()
15781{
15782
15783 strcasecmp("foo", "bar");
15784
15785 ;
15786 return 0;
15787}
15788_ACEOF
15789rm -f conftest.$ac_objext conftest$ac_exeext
15790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15791 (eval $ac_link) 2>conftest.er1
a848cd7e 15792 ac_status=$?
ac1cb8d3
VS
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
a848cd7e
SC
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
6a5c9b3f
RR
15798 { ac_try='test -z "$ac_cxx_werror_flag"
15799 || test ! -s conftest.err'
ac1cb8d3
VS
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_string_strcasecmp=yes
15812else
15813 echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816ac_cv_string_strcasecmp=no
15817
15818fi
ac1cb8d3
VS
15819rm -f conftest.err conftest.$ac_objext \
15820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15821
15822fi
15823echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15824echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15825
15826 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15827 cat >>confdefs.h <<\_ACEOF
15828#define HAVE_STRCASECMP_IN_STRING_H 1
15829_ACEOF
15830
15831 else
15832 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15833echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15834if test "${ac_cv_strings_strcasecmp+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836else
15837
15838 cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844
15845 #include <strings.h>
15846
15847int
15848main ()
15849{
15850
15851 strcasecmp("foo", "bar");
15852
15853 ;
15854 return 0;
15855}
15856_ACEOF
15857rm -f conftest.$ac_objext conftest$ac_exeext
15858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15859 (eval $ac_link) 2>conftest.er1
a848cd7e 15860 ac_status=$?
ac1cb8d3
VS
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
a848cd7e
SC
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
6a5c9b3f
RR
15866 { ac_try='test -z "$ac_cxx_werror_flag"
15867 || test ! -s conftest.err'
ac1cb8d3
VS
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_cv_strings_strcasecmp=yes
15880else
15881 echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
15884ac_cv_strings_strcasecmp=no
15885
15886fi
ac1cb8d3
VS
15887rm -f conftest.err conftest.$ac_objext \
15888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15889
15890fi
15891echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15892echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15893
0c3c69fc 15894 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15895 cat >>confdefs.h <<\_ACEOF
15896#define HAVE_STRCASECMP_IN_STRINGS_H 1
15897_ACEOF
15898
15899 else
15900 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15901echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15902 { (exit 1); exit 1; }; }
15903 fi
15904 fi
15905
a848cd7e
SC
15906 ;;
15907esac
15908
15909
5d7b7554
VZ
15910ac_ext=cc
15911ac_cpp='$CXXCPP $CPPFLAGS'
15912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15915echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15916echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15917if test -z "$CXXCPP"; then
15918 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15920else
15921 # Double quotes because CXXCPP needs to be expanded
15922 for CXXCPP in "$CXX -E" "/lib/cpp"
15923 do
15924 ac_preproc_ok=false
15925for ac_cxx_preproc_warn_flag in '' yes
15926do
15927 # Use a header file that comes with gcc, so configuring glibc
15928 # with a fresh cross-compiler works.
15929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15930 # <limits.h> exists even on freestanding compilers.
15931 # On the NeXT, cc -E runs the code through the compiler's parser,
15932 # not just through cpp. "Syntax error" is here to catch this case.
15933 cat >conftest.$ac_ext <<_ACEOF
15934/* confdefs.h. */
15935_ACEOF
15936cat confdefs.h >>conftest.$ac_ext
15937cat >>conftest.$ac_ext <<_ACEOF
15938/* end confdefs.h. */
15939#ifdef __STDC__
15940# include <limits.h>
15941#else
15942# include <assert.h>
15943#endif
15944 Syntax error
15945_ACEOF
15946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } >/dev/null; then
15954 if test -s conftest.err; then
15955 ac_cpp_err=$ac_cxx_preproc_warn_flag
15956 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15957 else
15958 ac_cpp_err=
15959 fi
15960else
15961 ac_cpp_err=yes
15962fi
15963if test -z "$ac_cpp_err"; then
15964 :
15965else
15966 echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 # Broken: fails on valid input.
15970continue
15971fi
15972rm -f conftest.err conftest.$ac_ext
15973
15974 # OK, works on sane cases. Now check whether non-existent headers
15975 # can be detected and how.
15976 cat >conftest.$ac_ext <<_ACEOF
15977/* confdefs.h. */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h. */
15982#include <ac_nonexistent.h>
15983_ACEOF
15984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15986 ac_status=$?
15987 grep -v '^ *+' conftest.er1 >conftest.err
15988 rm -f conftest.er1
15989 cat conftest.err >&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } >/dev/null; then
15992 if test -s conftest.err; then
15993 ac_cpp_err=$ac_cxx_preproc_warn_flag
15994 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15995 else
15996 ac_cpp_err=
15997 fi
15998else
15999 ac_cpp_err=yes
16000fi
16001if test -z "$ac_cpp_err"; then
16002 # Broken: success on invalid input.
16003continue
16004else
16005 echo "$as_me: failed program was:" >&5
16006sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 # Passes both tests.
16009ac_preproc_ok=:
16010break
16011fi
16012rm -f conftest.err conftest.$ac_ext
16013
16014done
16015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16016rm -f conftest.err conftest.$ac_ext
16017if $ac_preproc_ok; then
16018 break
16019fi
16020
16021 done
16022 ac_cv_prog_CXXCPP=$CXXCPP
16023
16024fi
16025 CXXCPP=$ac_cv_prog_CXXCPP
16026else
16027 ac_cv_prog_CXXCPP=$CXXCPP
16028fi
16029echo "$as_me:$LINENO: result: $CXXCPP" >&5
16030echo "${ECHO_T}$CXXCPP" >&6
16031ac_preproc_ok=false
16032for ac_cxx_preproc_warn_flag in '' yes
16033do
16034 # Use a header file that comes with gcc, so configuring glibc
16035 # with a fresh cross-compiler works.
16036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16037 # <limits.h> exists even on freestanding compilers.
16038 # On the NeXT, cc -E runs the code through the compiler's parser,
16039 # not just through cpp. "Syntax error" is here to catch this case.
16040 cat >conftest.$ac_ext <<_ACEOF
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
16046#ifdef __STDC__
16047# include <limits.h>
16048#else
16049# include <assert.h>
16050#endif
16051 Syntax error
16052_ACEOF
16053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16055 ac_status=$?
16056 grep -v '^ *+' conftest.er1 >conftest.err
16057 rm -f conftest.er1
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } >/dev/null; then
16061 if test -s conftest.err; then
16062 ac_cpp_err=$ac_cxx_preproc_warn_flag
16063 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16064 else
16065 ac_cpp_err=
16066 fi
16067else
16068 ac_cpp_err=yes
16069fi
16070if test -z "$ac_cpp_err"; then
16071 :
16072else
16073 echo "$as_me: failed program was:" >&5
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
16076 # Broken: fails on valid input.
16077continue
16078fi
16079rm -f conftest.err conftest.$ac_ext
16080
16081 # OK, works on sane cases. Now check whether non-existent headers
16082 # can be detected and how.
16083 cat >conftest.$ac_ext <<_ACEOF
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089#include <ac_nonexistent.h>
16090_ACEOF
16091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } >/dev/null; then
16099 if test -s conftest.err; then
16100 ac_cpp_err=$ac_cxx_preproc_warn_flag
16101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16102 else
16103 ac_cpp_err=
16104 fi
16105else
16106 ac_cpp_err=yes
16107fi
16108if test -z "$ac_cpp_err"; then
16109 # Broken: success on invalid input.
16110continue
16111else
16112 echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115 # Passes both tests.
16116ac_preproc_ok=:
16117break
16118fi
16119rm -f conftest.err conftest.$ac_ext
16120
16121done
16122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16123rm -f conftest.err conftest.$ac_ext
16124if $ac_preproc_ok; then
16125 :
16126else
16127 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16128See \`config.log' for more details." >&5
16129echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16130See \`config.log' for more details." >&2;}
16131 { (exit 1); exit 1; }; }
16132fi
16133
16134ac_ext=cc
16135ac_cpp='$CXXCPP $CPPFLAGS'
16136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16139
16140
a848cd7e
SC
16141echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16142echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16143if test "${ac_cv_header_stdc+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16145else
16146 cat >conftest.$ac_ext <<_ACEOF
16147/* confdefs.h. */
16148_ACEOF
16149cat confdefs.h >>conftest.$ac_ext
16150cat >>conftest.$ac_ext <<_ACEOF
16151/* end confdefs.h. */
16152#include <stdlib.h>
16153#include <stdarg.h>
16154#include <string.h>
16155#include <float.h>
16156
16157int
16158main ()
16159{
16160
16161 ;
16162 return 0;
16163}
16164_ACEOF
16165rm -f conftest.$ac_objext
16166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16167 (eval $ac_compile) 2>conftest.er1
a848cd7e 16168 ac_status=$?
ac1cb8d3
VS
16169 grep -v '^ *+' conftest.er1 >conftest.err
16170 rm -f conftest.er1
16171 cat conftest.err >&5
a848cd7e
SC
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
6a5c9b3f
RR
16174 { ac_try='test -z "$ac_cxx_werror_flag"
16175 || test ! -s conftest.err'
ac1cb8d3
VS
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_cv_header_stdc=yes
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192ac_cv_header_stdc=no
16193fi
ac1cb8d3 16194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16195
16196if test $ac_cv_header_stdc = yes; then
16197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16198 cat >conftest.$ac_ext <<_ACEOF
16199/* confdefs.h. */
16200_ACEOF
16201cat confdefs.h >>conftest.$ac_ext
16202cat >>conftest.$ac_ext <<_ACEOF
16203/* end confdefs.h. */
16204#include <string.h>
16205
16206_ACEOF
16207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16208 $EGREP "memchr" >/dev/null 2>&1; then
16209 :
16210else
16211 ac_cv_header_stdc=no
16212fi
16213rm -f conftest*
16214
16215fi
16216
16217if test $ac_cv_header_stdc = yes; then
16218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16219 cat >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#include <stdlib.h>
16226
16227_ACEOF
16228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16229 $EGREP "free" >/dev/null 2>&1; then
16230 :
16231else
16232 ac_cv_header_stdc=no
16233fi
16234rm -f conftest*
16235
16236fi
16237
16238if test $ac_cv_header_stdc = yes; then
16239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16240 if test "$cross_compiling" = yes; then
16241 :
16242else
16243 cat >conftest.$ac_ext <<_ACEOF
16244/* confdefs.h. */
16245_ACEOF
16246cat confdefs.h >>conftest.$ac_ext
16247cat >>conftest.$ac_ext <<_ACEOF
16248/* end confdefs.h. */
16249#include <ctype.h>
16250#if ((' ' & 0x0FF) == 0x020)
16251# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16252# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16253#else
16254# define ISLOWER(c) \
ac1cb8d3
VS
16255 (('a' <= (c) && (c) <= 'i') \
16256 || ('j' <= (c) && (c) <= 'r') \
16257 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16258# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16259#endif
16260
16261#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16262int
16263main ()
16264{
16265 int i;
16266 for (i = 0; i < 256; i++)
16267 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16268 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16269 exit(2);
16270 exit (0);
16271}
16272_ACEOF
16273rm -f conftest$ac_exeext
16274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 :
16285else
16286 echo "$as_me: program exited with status $ac_status" >&5
16287echo "$as_me: failed program was:" >&5
16288sed 's/^/| /' conftest.$ac_ext >&5
16289
16290( exit $ac_status )
16291ac_cv_header_stdc=no
16292fi
ac1cb8d3 16293rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16294fi
16295fi
16296fi
16297echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16298echo "${ECHO_T}$ac_cv_header_stdc" >&6
16299if test $ac_cv_header_stdc = yes; then
16300
16301cat >>confdefs.h <<\_ACEOF
16302#define STDC_HEADERS 1
16303_ACEOF
16304
16305fi
16306
16307# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16318 inttypes.h stdint.h unistd.h
a848cd7e
SC
16319do
16320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16321echo "$as_me:$LINENO: checking for $ac_header" >&5
16322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16323if eval "test \"\${$as_ac_Header+set}\" = set"; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325else
16326 cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333
16334#include <$ac_header>
16335_ACEOF
16336rm -f conftest.$ac_objext
16337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16338 (eval $ac_compile) 2>conftest.er1
a848cd7e 16339 ac_status=$?
ac1cb8d3
VS
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
a848cd7e
SC
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
6a5c9b3f
RR
16345 { ac_try='test -z "$ac_cxx_werror_flag"
16346 || test ! -s conftest.err'
ac1cb8d3
VS
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 eval "$as_ac_Header=yes"
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363eval "$as_ac_Header=no"
16364fi
ac1cb8d3 16365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16366fi
16367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16369if test `eval echo '${'$as_ac_Header'}'` = yes; then
16370 cat >>confdefs.h <<_ACEOF
16371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16372_ACEOF
16373
16374fi
16375
16376done
16377
16378
16379
16380for ac_header in stdlib.h
16381do
16382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16383if eval "test \"\${$as_ac_Header+set}\" = set"; then
16384 echo "$as_me:$LINENO: checking for $ac_header" >&5
16385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16386if eval "test \"\${$as_ac_Header+set}\" = set"; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388fi
16389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16391else
16392 # Is the header compilable?
16393echo "$as_me:$LINENO: checking $ac_header usability" >&5
16394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16395cat >conftest.$ac_ext <<_ACEOF
16396/* confdefs.h. */
16397_ACEOF
16398cat confdefs.h >>conftest.$ac_ext
16399cat >>conftest.$ac_ext <<_ACEOF
16400/* end confdefs.h. */
16401$ac_includes_default
16402#include <$ac_header>
16403_ACEOF
16404rm -f conftest.$ac_objext
16405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16406 (eval $ac_compile) 2>conftest.er1
a848cd7e 16407 ac_status=$?
ac1cb8d3
VS
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
a848cd7e
SC
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
6a5c9b3f
RR
16413 { ac_try='test -z "$ac_cxx_werror_flag"
16414 || test ! -s conftest.err'
ac1cb8d3
VS
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16426 ac_header_compiler=yes
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431ac_header_compiler=no
16432fi
ac1cb8d3 16433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16435echo "${ECHO_T}$ac_header_compiler" >&6
16436
16437# Is the header present?
16438echo "$as_me:$LINENO: checking $ac_header presence" >&5
16439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16440cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h. */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h. */
16446#include <$ac_header>
16447_ACEOF
16448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16450 ac_status=$?
16451 grep -v '^ *+' conftest.er1 >conftest.err
16452 rm -f conftest.er1
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } >/dev/null; then
16456 if test -s conftest.err; then
5d7b7554
VZ
16457 ac_cpp_err=$ac_cxx_preproc_warn_flag
16458 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16459 else
16460 ac_cpp_err=
16461 fi
16462else
16463 ac_cpp_err=yes
16464fi
16465if test -z "$ac_cpp_err"; then
16466 ac_header_preproc=yes
16467else
16468 echo "$as_me: failed program was:" >&5
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ac_header_preproc=no
16472fi
16473rm -f conftest.err conftest.$ac_ext
16474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16475echo "${ECHO_T}$ac_header_preproc" >&6
16476
16477# So? What about this header?
5d7b7554 16478case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16479 yes:no: )
a848cd7e
SC
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16484 ac_header_preproc=yes
a848cd7e 16485 ;;
ac1cb8d3 16486 no:yes:* )
a848cd7e
SC
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16499 (
16500 cat <<\_ASBOX
ac1cb8d3
VS
16501## ----------------------------------------- ##
16502## Report this to wx-dev@lists.wxwidgets.org ##
16503## ----------------------------------------- ##
a848cd7e
SC
16504_ASBOX
16505 ) |
16506 sed "s/^/$as_me: WARNING: /" >&2
16507 ;;
16508esac
16509echo "$as_me:$LINENO: checking for $ac_header" >&5
16510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16511if eval "test \"\${$as_ac_Header+set}\" = set"; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513else
ac1cb8d3 16514 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16515fi
16516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16518
16519fi
16520if test `eval echo '${'$as_ac_Header'}'` = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16523_ACEOF
16524
16525fi
16526
16527done
16528
16529
16530for ac_header in malloc.h
16531do
16532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16533if eval "test \"\${$as_ac_Header+set}\" = set"; then
16534 echo "$as_me:$LINENO: checking for $ac_header" >&5
16535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16536if eval "test \"\${$as_ac_Header+set}\" = set"; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538fi
16539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16541else
16542 # Is the header compilable?
16543echo "$as_me:$LINENO: checking $ac_header usability" >&5
16544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16545cat >conftest.$ac_ext <<_ACEOF
16546/* confdefs.h. */
16547_ACEOF
16548cat confdefs.h >>conftest.$ac_ext
16549cat >>conftest.$ac_ext <<_ACEOF
16550/* end confdefs.h. */
16551$ac_includes_default
16552#include <$ac_header>
16553_ACEOF
16554rm -f conftest.$ac_objext
16555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16556 (eval $ac_compile) 2>conftest.er1
a848cd7e 16557 ac_status=$?
ac1cb8d3
VS
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
a848cd7e
SC
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
6a5c9b3f
RR
16563 { ac_try='test -z "$ac_cxx_werror_flag"
16564 || test ! -s conftest.err'
ac1cb8d3
VS
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_header_compiler=yes
16577else
16578 echo "$as_me: failed program was:" >&5
16579sed 's/^/| /' conftest.$ac_ext >&5
16580
16581ac_header_compiler=no
16582fi
ac1cb8d3 16583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16585echo "${ECHO_T}$ac_header_compiler" >&6
16586
16587# Is the header present?
16588echo "$as_me:$LINENO: checking $ac_header presence" >&5
16589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16590cat >conftest.$ac_ext <<_ACEOF
16591/* confdefs.h. */
16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596#include <$ac_header>
16597_ACEOF
16598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } >/dev/null; then
16606 if test -s conftest.err; then
5d7b7554
VZ
16607 ac_cpp_err=$ac_cxx_preproc_warn_flag
16608 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16609 else
16610 ac_cpp_err=
16611 fi
16612else
16613 ac_cpp_err=yes
16614fi
16615if test -z "$ac_cpp_err"; then
16616 ac_header_preproc=yes
16617else
16618 echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 ac_header_preproc=no
16622fi
16623rm -f conftest.err conftest.$ac_ext
16624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16625echo "${ECHO_T}$ac_header_preproc" >&6
16626
16627# So? What about this header?
5d7b7554 16628case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16629 yes:no: )
a848cd7e
SC
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16634 ac_header_preproc=yes
a848cd7e 16635 ;;
ac1cb8d3 16636 no:yes:* )
a848cd7e
SC
16637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16649 (
16650 cat <<\_ASBOX
ac1cb8d3
VS
16651## ----------------------------------------- ##
16652## Report this to wx-dev@lists.wxwidgets.org ##
16653## ----------------------------------------- ##
a848cd7e
SC
16654_ASBOX
16655 ) |
16656 sed "s/^/$as_me: WARNING: /" >&2
16657 ;;
16658esac
16659echo "$as_me:$LINENO: checking for $ac_header" >&5
16660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16661if eval "test \"\${$as_ac_Header+set}\" = set"; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663else
ac1cb8d3 16664 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16665fi
16666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16668
16669fi
16670if test `eval echo '${'$as_ac_Header'}'` = yes; then
16671 cat >>confdefs.h <<_ACEOF
16672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16673_ACEOF
16674
16675fi
16676
16677done
16678
16679
16680for ac_header in unistd.h
16681do
16682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16683if eval "test \"\${$as_ac_Header+set}\" = set"; then
16684 echo "$as_me:$LINENO: checking for $ac_header" >&5
16685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16686if eval "test \"\${$as_ac_Header+set}\" = set"; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688fi
16689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16691else
16692 # Is the header compilable?
16693echo "$as_me:$LINENO: checking $ac_header usability" >&5
16694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16695cat >conftest.$ac_ext <<_ACEOF
16696/* confdefs.h. */
16697_ACEOF
16698cat confdefs.h >>conftest.$ac_ext
16699cat >>conftest.$ac_ext <<_ACEOF
16700/* end confdefs.h. */
16701$ac_includes_default
16702#include <$ac_header>
16703_ACEOF
16704rm -f conftest.$ac_objext
16705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16706 (eval $ac_compile) 2>conftest.er1
a848cd7e 16707 ac_status=$?
ac1cb8d3
VS
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
a848cd7e
SC
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
6a5c9b3f
RR
16713 { ac_try='test -z "$ac_cxx_werror_flag"
16714 || test ! -s conftest.err'
ac1cb8d3
VS
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_header_compiler=yes
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731ac_header_compiler=no
16732fi
ac1cb8d3 16733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16735echo "${ECHO_T}$ac_header_compiler" >&6
16736
16737# Is the header present?
16738echo "$as_me:$LINENO: checking $ac_header presence" >&5
16739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16740cat >conftest.$ac_ext <<_ACEOF
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
16746#include <$ac_header>
16747_ACEOF
16748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } >/dev/null; then
16756 if test -s conftest.err; then
5d7b7554
VZ
16757 ac_cpp_err=$ac_cxx_preproc_warn_flag
16758 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16759 else
16760 ac_cpp_err=
16761 fi
16762else
16763 ac_cpp_err=yes
16764fi
16765if test -z "$ac_cpp_err"; then
16766 ac_header_preproc=yes
16767else
16768 echo "$as_me: failed program was:" >&5
16769sed 's/^/| /' conftest.$ac_ext >&5
16770
16771 ac_header_preproc=no
16772fi
16773rm -f conftest.err conftest.$ac_ext
16774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16775echo "${ECHO_T}$ac_header_preproc" >&6
16776
16777# So? What about this header?
5d7b7554 16778case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16779 yes:no: )
a848cd7e
SC
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16784 ac_header_preproc=yes
a848cd7e 16785 ;;
ac1cb8d3 16786 no:yes:* )
a848cd7e
SC
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16799 (
16800 cat <<\_ASBOX
ac1cb8d3
VS
16801## ----------------------------------------- ##
16802## Report this to wx-dev@lists.wxwidgets.org ##
16803## ----------------------------------------- ##
a848cd7e
SC
16804_ASBOX
16805 ) |
16806 sed "s/^/$as_me: WARNING: /" >&2
16807 ;;
16808esac
16809echo "$as_me:$LINENO: checking for $ac_header" >&5
16810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16811if eval "test \"\${$as_ac_Header+set}\" = set"; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813else
ac1cb8d3 16814 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16815fi
16816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16818
16819fi
16820if test `eval echo '${'$as_ac_Header'}'` = yes; then
16821 cat >>confdefs.h <<_ACEOF
16822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16823_ACEOF
16824
16825fi
16826
16827done
16828
16829
16830for ac_header in wchar.h
16831do
16832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16833if eval "test \"\${$as_ac_Header+set}\" = set"; then
16834 echo "$as_me:$LINENO: checking for $ac_header" >&5
16835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16836if eval "test \"\${$as_ac_Header+set}\" = set"; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16838fi
16839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16841else
16842 # Is the header compilable?
16843echo "$as_me:$LINENO: checking $ac_header usability" >&5
16844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16845cat >conftest.$ac_ext <<_ACEOF
16846/* confdefs.h. */
16847_ACEOF
16848cat confdefs.h >>conftest.$ac_ext
16849cat >>conftest.$ac_ext <<_ACEOF
16850/* end confdefs.h. */
16851$ac_includes_default
16852#include <$ac_header>
16853_ACEOF
16854rm -f conftest.$ac_objext
16855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16856 (eval $ac_compile) 2>conftest.er1
a848cd7e 16857 ac_status=$?
ac1cb8d3
VS
16858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
a848cd7e
SC
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
6a5c9b3f
RR
16863 { ac_try='test -z "$ac_cxx_werror_flag"
16864 || test ! -s conftest.err'
ac1cb8d3
VS
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_header_compiler=yes
16877else
16878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881ac_header_compiler=no
16882fi
ac1cb8d3 16883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16885echo "${ECHO_T}$ac_header_compiler" >&6
16886
16887# Is the header present?
16888echo "$as_me:$LINENO: checking $ac_header presence" >&5
16889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16890cat >conftest.$ac_ext <<_ACEOF
16891/* confdefs.h. */
16892_ACEOF
16893cat confdefs.h >>conftest.$ac_ext
16894cat >>conftest.$ac_ext <<_ACEOF
16895/* end confdefs.h. */
16896#include <$ac_header>
16897_ACEOF
16898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } >/dev/null; then
16906 if test -s conftest.err; then
5d7b7554
VZ
16907 ac_cpp_err=$ac_cxx_preproc_warn_flag
16908 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16909 else
16910 ac_cpp_err=
16911 fi
16912else
16913 ac_cpp_err=yes
16914fi
16915if test -z "$ac_cpp_err"; then
16916 ac_header_preproc=yes
16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_header_preproc=no
16922fi
16923rm -f conftest.err conftest.$ac_ext
16924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16925echo "${ECHO_T}$ac_header_preproc" >&6
16926
16927# So? What about this header?
5d7b7554 16928case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16929 yes:no: )
a848cd7e
SC
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16934 ac_header_preproc=yes
a848cd7e 16935 ;;
ac1cb8d3 16936 no:yes:* )
a848cd7e
SC
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16949 (
16950 cat <<\_ASBOX
ac1cb8d3
VS
16951## ----------------------------------------- ##
16952## Report this to wx-dev@lists.wxwidgets.org ##
16953## ----------------------------------------- ##
a848cd7e
SC
16954_ASBOX
16955 ) |
16956 sed "s/^/$as_me: WARNING: /" >&2
16957 ;;
16958esac
16959echo "$as_me:$LINENO: checking for $ac_header" >&5
16960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16961if eval "test \"\${$as_ac_Header+set}\" = set"; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963else
ac1cb8d3 16964 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16965fi
16966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16968
16969fi
16970if test `eval echo '${'$as_ac_Header'}'` = yes; then
16971 cat >>confdefs.h <<_ACEOF
16972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16973_ACEOF
16974
16975fi
16976
16977done
16978
16979
16980if test "$ac_cv_header_wchar_h" != "yes"; then
16981
16982for ac_header in wcstr.h
16983do
16984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16985if eval "test \"\${$as_ac_Header+set}\" = set"; then
16986 echo "$as_me:$LINENO: checking for $ac_header" >&5
16987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16988if eval "test \"\${$as_ac_Header+set}\" = set"; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990fi
16991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16993else
16994 # Is the header compilable?
16995echo "$as_me:$LINENO: checking $ac_header usability" >&5
16996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16997cat >conftest.$ac_ext <<_ACEOF
16998/* confdefs.h. */
16999_ACEOF
17000cat confdefs.h >>conftest.$ac_ext
17001cat >>conftest.$ac_ext <<_ACEOF
17002/* end confdefs.h. */
17003$ac_includes_default
17004#include <$ac_header>
17005_ACEOF
17006rm -f conftest.$ac_objext
17007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17008 (eval $ac_compile) 2>conftest.er1
a848cd7e 17009 ac_status=$?
ac1cb8d3
VS
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
a848cd7e
SC
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
6a5c9b3f
RR
17015 { ac_try='test -z "$ac_cxx_werror_flag"
17016 || test ! -s conftest.err'
ac1cb8d3
VS
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_header_compiler=yes
17029else
17030 echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
17032
17033ac_header_compiler=no
17034fi
ac1cb8d3 17035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17037echo "${ECHO_T}$ac_header_compiler" >&6
17038
17039# Is the header present?
17040echo "$as_me:$LINENO: checking $ac_header presence" >&5
17041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17042cat >conftest.$ac_ext <<_ACEOF
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
17048#include <$ac_header>
17049_ACEOF
17050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17052 ac_status=$?
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } >/dev/null; then
17058 if test -s conftest.err; then
5d7b7554
VZ
17059 ac_cpp_err=$ac_cxx_preproc_warn_flag
17060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17061 else
17062 ac_cpp_err=
17063 fi
17064else
17065 ac_cpp_err=yes
17066fi
17067if test -z "$ac_cpp_err"; then
17068 ac_header_preproc=yes
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 ac_header_preproc=no
17074fi
17075rm -f conftest.err conftest.$ac_ext
17076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17077echo "${ECHO_T}$ac_header_preproc" >&6
17078
17079# So? What about this header?
5d7b7554 17080case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17081 yes:no: )
a848cd7e
SC
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17086 ac_header_preproc=yes
a848cd7e 17087 ;;
ac1cb8d3 17088 no:yes:* )
a848cd7e
SC
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17101 (
17102 cat <<\_ASBOX
ac1cb8d3
VS
17103## ----------------------------------------- ##
17104## Report this to wx-dev@lists.wxwidgets.org ##
17105## ----------------------------------------- ##
a848cd7e
SC
17106_ASBOX
17107 ) |
17108 sed "s/^/$as_me: WARNING: /" >&2
17109 ;;
17110esac
17111echo "$as_me:$LINENO: checking for $ac_header" >&5
17112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17113if eval "test \"\${$as_ac_Header+set}\" = set"; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115else
ac1cb8d3 17116 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17117fi
17118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17120
17121fi
17122if test `eval echo '${'$as_ac_Header'}'` = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17125_ACEOF
17126
17127fi
17128
17129done
17130
17131fi
17132
17133
17134for ac_header in fnmatch.h
17135do
17136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17137if eval "test \"\${$as_ac_Header+set}\" = set"; then
17138 echo "$as_me:$LINENO: checking for $ac_header" >&5
17139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17140if eval "test \"\${$as_ac_Header+set}\" = set"; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142fi
17143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17145else
17146 # Is the header compilable?
17147echo "$as_me:$LINENO: checking $ac_header usability" >&5
17148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17149cat >conftest.$ac_ext <<_ACEOF
17150/* confdefs.h. */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
17154/* end confdefs.h. */
17155$ac_includes_default
17156#include <$ac_header>
17157_ACEOF
17158rm -f conftest.$ac_objext
17159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17160 (eval $ac_compile) 2>conftest.er1
a848cd7e 17161 ac_status=$?
ac1cb8d3
VS
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
a848cd7e
SC
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
6a5c9b3f
RR
17167 { ac_try='test -z "$ac_cxx_werror_flag"
17168 || test ! -s conftest.err'
ac1cb8d3
VS
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_header_compiler=yes
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185ac_header_compiler=no
17186fi
ac1cb8d3 17187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17189echo "${ECHO_T}$ac_header_compiler" >&6
17190
17191# Is the header present?
17192echo "$as_me:$LINENO: checking $ac_header presence" >&5
17193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17194cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
17200#include <$ac_header>
17201_ACEOF
17202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } >/dev/null; then
17210 if test -s conftest.err; then
5d7b7554
VZ
17211 ac_cpp_err=$ac_cxx_preproc_warn_flag
17212 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17213 else
17214 ac_cpp_err=
17215 fi
17216else
17217 ac_cpp_err=yes
17218fi
17219if test -z "$ac_cpp_err"; then
17220 ac_header_preproc=yes
17221else
17222 echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225 ac_header_preproc=no
17226fi
17227rm -f conftest.err conftest.$ac_ext
17228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17229echo "${ECHO_T}$ac_header_preproc" >&6
17230
17231# So? What about this header?
5d7b7554 17232case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17233 yes:no: )
a848cd7e
SC
17234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17238 ac_header_preproc=yes
a848cd7e 17239 ;;
ac1cb8d3 17240 no:yes:* )
a848cd7e
SC
17241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17253 (
17254 cat <<\_ASBOX
ac1cb8d3
VS
17255## ----------------------------------------- ##
17256## Report this to wx-dev@lists.wxwidgets.org ##
17257## ----------------------------------------- ##
a848cd7e
SC
17258_ASBOX
17259 ) |
17260 sed "s/^/$as_me: WARNING: /" >&2
17261 ;;
17262esac
17263echo "$as_me:$LINENO: checking for $ac_header" >&5
17264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17265if eval "test \"\${$as_ac_Header+set}\" = set"; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267else
ac1cb8d3 17268 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17269fi
17270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17272
17273fi
17274if test `eval echo '${'$as_ac_Header'}'` = yes; then
17275 cat >>confdefs.h <<_ACEOF
17276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17277_ACEOF
17278
17279fi
17280
17281done
17282
17283
a848cd7e
SC
17284
17285for ac_header in langinfo.h
17286do
17287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17288if eval "test \"\${$as_ac_Header+set}\" = set"; then
17289 echo "$as_me:$LINENO: checking for $ac_header" >&5
17290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17291if eval "test \"\${$as_ac_Header+set}\" = set"; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293fi
17294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17296else
17297 # Is the header compilable?
17298echo "$as_me:$LINENO: checking $ac_header usability" >&5
17299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17300cat >conftest.$ac_ext <<_ACEOF
17301/* confdefs.h. */
17302_ACEOF
17303cat confdefs.h >>conftest.$ac_ext
17304cat >>conftest.$ac_ext <<_ACEOF
17305/* end confdefs.h. */
17306$ac_includes_default
17307#include <$ac_header>
17308_ACEOF
17309rm -f conftest.$ac_objext
17310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17311 (eval $ac_compile) 2>conftest.er1
a848cd7e 17312 ac_status=$?
ac1cb8d3
VS
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
a848cd7e
SC
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
6a5c9b3f
RR
17318 { ac_try='test -z "$ac_cxx_werror_flag"
17319 || test ! -s conftest.err'
ac1cb8d3
VS
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 ac_header_compiler=yes
17332else
17333 echo "$as_me: failed program was:" >&5
17334sed 's/^/| /' conftest.$ac_ext >&5
17335
17336ac_header_compiler=no
17337fi
ac1cb8d3 17338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17340echo "${ECHO_T}$ac_header_compiler" >&6
17341
17342# Is the header present?
17343echo "$as_me:$LINENO: checking $ac_header presence" >&5
17344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17345cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351#include <$ac_header>
17352_ACEOF
17353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } >/dev/null; then
17361 if test -s conftest.err; then
5d7b7554
VZ
17362 ac_cpp_err=$ac_cxx_preproc_warn_flag
17363 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17364 else
17365 ac_cpp_err=
17366 fi
17367else
17368 ac_cpp_err=yes
17369fi
17370if test -z "$ac_cpp_err"; then
17371 ac_header_preproc=yes
17372else
17373 echo "$as_me: failed program was:" >&5
17374sed 's/^/| /' conftest.$ac_ext >&5
17375
17376 ac_header_preproc=no
17377fi
17378rm -f conftest.err conftest.$ac_ext
17379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17380echo "${ECHO_T}$ac_header_preproc" >&6
17381
17382# So? What about this header?
5d7b7554 17383case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17384 yes:no: )
a848cd7e
SC
17385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17389 ac_header_preproc=yes
a848cd7e 17390 ;;
ac1cb8d3 17391 no:yes:* )
a848cd7e
SC
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17404 (
17405 cat <<\_ASBOX
ac1cb8d3
VS
17406## ----------------------------------------- ##
17407## Report this to wx-dev@lists.wxwidgets.org ##
17408## ----------------------------------------- ##
a848cd7e
SC
17409_ASBOX
17410 ) |
17411 sed "s/^/$as_me: WARNING: /" >&2
17412 ;;
17413esac
17414echo "$as_me:$LINENO: checking for $ac_header" >&5
17415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17416if eval "test \"\${$as_ac_Header+set}\" = set"; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
ac1cb8d3 17419 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17420fi
17421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17423
17424fi
17425if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17428_ACEOF
17429
17430fi
17431
17432done
17433
17434
17435case "${host}" in
17436 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17437 if test $ac_cv_header_langinfo_h = "yes" \
17438 -a \( "$wx_cv_gccversion" = "EMX2" \
17439 -o "$wx_cv_gccversion" = "EMX3" \
17440 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17441 LIBS="$LIBS -lintl"
17442 fi
17443 ;;
17444esac
17445
bc023abb
MW
17446if test "$USE_UNIX" = 1 ; then
17447
17448for ac_header in sys/select.h
17449do
17450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17451if eval "test \"\${$as_ac_Header+set}\" = set"; then
17452 echo "$as_me:$LINENO: checking for $ac_header" >&5
17453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17454if eval "test \"\${$as_ac_Header+set}\" = set"; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456fi
17457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17459else
17460 # Is the header compilable?
17461echo "$as_me:$LINENO: checking $ac_header usability" >&5
17462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17463cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469$ac_includes_default
17470#include <$ac_header>
17471_ACEOF
17472rm -f conftest.$ac_objext
17473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17474 (eval $ac_compile) 2>conftest.er1
17475 ac_status=$?
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
6a5c9b3f
RR
17481 { ac_try='test -z "$ac_cxx_werror_flag"
17482 || test ! -s conftest.err'
bc023abb
MW
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'
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_header_compiler=yes
17495else
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
17499ac_header_compiler=no
17500fi
17501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17503echo "${ECHO_T}$ac_header_compiler" >&6
17504
17505# Is the header present?
17506echo "$as_me:$LINENO: checking $ac_header presence" >&5
17507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17508cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
17514#include <$ac_header>
17515_ACEOF
17516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17518 ac_status=$?
17519 grep -v '^ *+' conftest.er1 >conftest.err
17520 rm -f conftest.er1
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } >/dev/null; then
17524 if test -s conftest.err; then
17525 ac_cpp_err=$ac_cxx_preproc_warn_flag
17526 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17527 else
17528 ac_cpp_err=
17529 fi
17530else
17531 ac_cpp_err=yes
17532fi
17533if test -z "$ac_cpp_err"; then
17534 ac_header_preproc=yes
17535else
17536 echo "$as_me: failed program was:" >&5
17537sed 's/^/| /' conftest.$ac_ext >&5
17538
17539 ac_header_preproc=no
17540fi
17541rm -f conftest.err conftest.$ac_ext
17542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17543echo "${ECHO_T}$ac_header_preproc" >&6
17544
17545# So? What about this header?
17546case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17547 yes:no: )
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17552 ac_header_preproc=yes
17553 ;;
17554 no:yes:* )
17555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17567 (
17568 cat <<\_ASBOX
17569## ----------------------------------------- ##
17570## Report this to wx-dev@lists.wxwidgets.org ##
17571## ----------------------------------------- ##
17572_ASBOX
17573 ) |
17574 sed "s/^/$as_me: WARNING: /" >&2
17575 ;;
17576esac
17577echo "$as_me:$LINENO: checking for $ac_header" >&5
17578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17579if eval "test \"\${$as_ac_Header+set}\" = set"; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17581else
17582 eval "$as_ac_Header=\$ac_header_preproc"
17583fi
17584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17586
17587fi
17588if test `eval echo '${'$as_ac_Header'}'` = yes; then
17589 cat >>confdefs.h <<_ACEOF
17590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17591_ACEOF
17592
17593fi
17594
17595done
17596
17597fi
17598
a848cd7e
SC
17599
17600echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17601echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17602if test "${ac_cv_c_const+set}" = set; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17604else
17605 cat >conftest.$ac_ext <<_ACEOF
17606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
17611
17612int
17613main ()
17614{
17615/* FIXME: Include the comments suggested by Paul. */
17616#ifndef __cplusplus
17617 /* Ultrix mips cc rejects this. */
17618 typedef int charset[2];
17619 const charset x;
17620 /* SunOS 4.1.1 cc rejects this. */
17621 char const *const *ccp;
17622 char **p;
17623 /* NEC SVR4.0.2 mips cc rejects this. */
17624 struct point {int x, y;};
17625 static struct point const zero = {0,0};
17626 /* AIX XL C 1.02.0.0 rejects this.
17627 It does not let you subtract one const X* pointer from another in
17628 an arm of an if-expression whose if-part is not a constant
17629 expression */
17630 const char *g = "string";
17631 ccp = &g + (g ? g-g : 0);
17632 /* HPUX 7.0 cc rejects these. */
17633 ++ccp;
17634 p = (char**) ccp;
17635 ccp = (char const *const *) p;
17636 { /* SCO 3.2v4 cc rejects this. */
17637 char *t;
17638 char const *s = 0 ? (char *) 0 : (char const *) 0;
17639
17640 *t++ = 0;
17641 }
17642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17643 int x[] = {25, 17};
17644 const int *foo = &x[0];
17645 ++foo;
17646 }
17647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17648 typedef const int *iptr;
17649 iptr p = 0;
17650 ++p;
17651 }
17652 { /* AIX XL C 1.02.0.0 rejects this saying
17653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17654 struct s { int j; const int *ap[3]; };
17655 struct s *b; b->j = 5;
17656 }
17657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17658 const int foo = 10;
17659 }
17660#endif
17661
17662 ;
17663 return 0;
17664}
17665_ACEOF
17666rm -f conftest.$ac_objext
17667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17668 (eval $ac_compile) 2>conftest.er1
a848cd7e 17669 ac_status=$?
ac1cb8d3
VS
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
a848cd7e
SC
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
6a5c9b3f
RR
17675 { ac_try='test -z "$ac_cxx_werror_flag"
17676 || test ! -s conftest.err'
ac1cb8d3
VS
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_cv_c_const=yes
17689else
17690 echo "$as_me: failed program was:" >&5
17691sed 's/^/| /' conftest.$ac_ext >&5
17692
17693ac_cv_c_const=no
17694fi
ac1cb8d3 17695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17696fi
17697echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17698echo "${ECHO_T}$ac_cv_c_const" >&6
17699if test $ac_cv_c_const = no; then
17700
17701cat >>confdefs.h <<\_ACEOF
17702#define const
17703_ACEOF
17704
17705fi
17706
17707echo "$as_me:$LINENO: checking for inline" >&5
17708echo $ECHO_N "checking for inline... $ECHO_C" >&6
17709if test "${ac_cv_c_inline+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17711else
17712 ac_cv_c_inline=no
17713for ac_kw in inline __inline__ __inline; do
17714 cat >conftest.$ac_ext <<_ACEOF
17715/* confdefs.h. */
17716_ACEOF
17717cat confdefs.h >>conftest.$ac_ext
17718cat >>conftest.$ac_ext <<_ACEOF
17719/* end confdefs.h. */
17720#ifndef __cplusplus
17721typedef int foo_t;
17722static $ac_kw foo_t static_foo () {return 0; }
17723$ac_kw foo_t foo () {return 0; }
17724#endif
17725
17726_ACEOF
17727rm -f conftest.$ac_objext
17728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17729 (eval $ac_compile) 2>conftest.er1
a848cd7e 17730 ac_status=$?
ac1cb8d3
VS
17731 grep -v '^ *+' conftest.er1 >conftest.err
17732 rm -f conftest.er1
17733 cat conftest.err >&5
a848cd7e
SC
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
6a5c9b3f
RR
17736 { ac_try='test -z "$ac_cxx_werror_flag"
17737 || test ! -s conftest.err'
ac1cb8d3
VS
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_cv_c_inline=$ac_kw; break
17750else
17751 echo "$as_me: failed program was:" >&5
17752sed 's/^/| /' conftest.$ac_ext >&5
17753
17754fi
ac1cb8d3 17755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17756done
17757
17758fi
17759echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17760echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17761
17762
a848cd7e
SC
17763case $ac_cv_c_inline in
17764 inline | yes) ;;
ac1cb8d3
VS
17765 *)
17766 case $ac_cv_c_inline in
17767 no) ac_val=;;
17768 *) ac_val=$ac_cv_c_inline;;
17769 esac
17770 cat >>confdefs.h <<_ACEOF
17771#ifndef __cplusplus
17772#define inline $ac_val
17773#endif
de59c161 17774_ACEOF
ac1cb8d3 17775 ;;
a848cd7e
SC
17776esac
17777
17778
17779echo "$as_me:$LINENO: checking for char" >&5
17780echo $ECHO_N "checking for char... $ECHO_C" >&6
17781if test "${ac_cv_type_char+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783else
17784 cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794if ((char *) 0)
17795 return 0;
17796if (sizeof (char))
17797 return 0;
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17804 (eval $ac_compile) 2>conftest.er1
a848cd7e 17805 ac_status=$?
ac1cb8d3
VS
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
a848cd7e
SC
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
6a5c9b3f
RR
17811 { ac_try='test -z "$ac_cxx_werror_flag"
17812 || test ! -s conftest.err'
ac1cb8d3
VS
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_type_char=yes
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829ac_cv_type_char=no
17830fi
ac1cb8d3 17831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17832fi
17833echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17834echo "${ECHO_T}$ac_cv_type_char" >&6
17835
17836echo "$as_me:$LINENO: checking size of char" >&5
17837echo $ECHO_N "checking size of char... $ECHO_C" >&6
17838if test "${ac_cv_sizeof_char+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840else
17841 if test "$ac_cv_type_char" = yes; then
17842 # The cast to unsigned long works around a bug in the HP C Compiler
17843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17845 # This bug is HP SR number 8606223364.
17846 if test "$cross_compiling" = yes; then
17847 # Depending upon the size, compute the lo and hi bounds.
17848cat >conftest.$ac_ext <<_ACEOF
17849/* confdefs.h. */
17850_ACEOF
17851cat confdefs.h >>conftest.$ac_ext
17852cat >>conftest.$ac_ext <<_ACEOF
17853/* end confdefs.h. */
17854$ac_includes_default
17855int
17856main ()
17857{
17858static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17859test_array [0] = 0
17860
17861 ;
17862 return 0;
17863}
17864_ACEOF
17865rm -f conftest.$ac_objext
17866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17867 (eval $ac_compile) 2>conftest.er1
a848cd7e 17868 ac_status=$?
ac1cb8d3
VS
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
a848cd7e
SC
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
6a5c9b3f
RR
17874 { ac_try='test -z "$ac_cxx_werror_flag"
17875 || test ! -s conftest.err'
ac1cb8d3
VS
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_lo=0 ac_mid=0
17888 while :; do
17889 cat >conftest.$ac_ext <<_ACEOF
17890/* confdefs.h. */
17891_ACEOF
17892cat confdefs.h >>conftest.$ac_ext
17893cat >>conftest.$ac_ext <<_ACEOF
17894/* end confdefs.h. */
17895$ac_includes_default
17896int
17897main ()
17898{
17899static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17900test_array [0] = 0
17901
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906rm -f conftest.$ac_objext
17907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17908 (eval $ac_compile) 2>conftest.er1
a848cd7e 17909 ac_status=$?
ac1cb8d3
VS
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
a848cd7e
SC
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
6a5c9b3f
RR
17915 { ac_try='test -z "$ac_cxx_werror_flag"
17916 || test ! -s conftest.err'
ac1cb8d3
VS
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_hi=$ac_mid; break
17929else
17930 echo "$as_me: failed program was:" >&5
17931sed 's/^/| /' conftest.$ac_ext >&5
17932
17933ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17934 if test $ac_lo -le $ac_mid; then
17935 ac_lo= ac_hi=
17936 break
17937 fi
17938 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17939fi
ac1cb8d3 17940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17941 done
17942else
17943 echo "$as_me: failed program was:" >&5
17944sed 's/^/| /' conftest.$ac_ext >&5
17945
17946cat >conftest.$ac_ext <<_ACEOF
17947/* confdefs.h. */
17948_ACEOF
17949cat confdefs.h >>conftest.$ac_ext
17950cat >>conftest.$ac_ext <<_ACEOF
17951/* end confdefs.h. */
17952$ac_includes_default
17953int
17954main ()
17955{
17956static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17957test_array [0] = 0
17958
17959 ;
17960 return 0;
17961}
17962_ACEOF
17963rm -f conftest.$ac_objext
17964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17965 (eval $ac_compile) 2>conftest.er1
a848cd7e 17966 ac_status=$?
ac1cb8d3
VS
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
a848cd7e
SC
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
6a5c9b3f
RR
17972 { ac_try='test -z "$ac_cxx_werror_flag"
17973 || test ! -s conftest.err'
ac1cb8d3
VS
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_hi=-1 ac_mid=-1
17986 while :; do
17987 cat >conftest.$ac_ext <<_ACEOF
17988/* confdefs.h. */
17989_ACEOF
17990cat confdefs.h >>conftest.$ac_ext
17991cat >>conftest.$ac_ext <<_ACEOF
17992/* end confdefs.h. */
17993$ac_includes_default
17994int
17995main ()
17996{
17997static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17998test_array [0] = 0
17999
18000 ;
18001 return 0;
18002}
18003_ACEOF
18004rm -f conftest.$ac_objext
18005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18006 (eval $ac_compile) 2>conftest.er1
a848cd7e 18007 ac_status=$?
ac1cb8d3
VS
18008 grep -v '^ *+' conftest.er1 >conftest.err
18009 rm -f conftest.er1
18010 cat conftest.err >&5
a848cd7e
SC
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
6a5c9b3f
RR
18013 { ac_try='test -z "$ac_cxx_werror_flag"
18014 || test ! -s conftest.err'
ac1cb8d3
VS
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
18026 ac_lo=$ac_mid; break
18027else
18028 echo "$as_me: failed program was:" >&5
18029sed 's/^/| /' conftest.$ac_ext >&5
18030
18031ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18032 if test $ac_mid -le $ac_hi; then
18033 ac_lo= ac_hi=
18034 break
18035 fi
18036 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18037fi
ac1cb8d3 18038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18039 done
18040else
18041 echo "$as_me: failed program was:" >&5
18042sed 's/^/| /' conftest.$ac_ext >&5
18043
18044ac_lo= ac_hi=
18045fi
ac1cb8d3 18046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18047fi
ac1cb8d3 18048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18049# Binary search between lo and hi bounds.
18050while test "x$ac_lo" != "x$ac_hi"; do
18051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18052 cat >conftest.$ac_ext <<_ACEOF
18053/* confdefs.h. */
18054_ACEOF
18055cat confdefs.h >>conftest.$ac_ext
18056cat >>conftest.$ac_ext <<_ACEOF
18057/* end confdefs.h. */
18058$ac_includes_default
18059int
18060main ()
18061{
18062static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18063test_array [0] = 0
18064
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069rm -f conftest.$ac_objext
18070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18071 (eval $ac_compile) 2>conftest.er1
a848cd7e 18072 ac_status=$?
ac1cb8d3
VS
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
a848cd7e
SC
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
6a5c9b3f
RR
18078 { ac_try='test -z "$ac_cxx_werror_flag"
18079 || test ! -s conftest.err'
ac1cb8d3
VS
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_hi=$ac_mid
18092else
18093 echo "$as_me: failed program was:" >&5
18094sed 's/^/| /' conftest.$ac_ext >&5
18095
18096ac_lo=`expr '(' $ac_mid ')' + 1`
18097fi
ac1cb8d3 18098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18099done
18100case $ac_lo in
18101?*) ac_cv_sizeof_char=$ac_lo;;
18102'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18103See \`config.log' for more details." >&5
18104echo "$as_me: error: cannot compute sizeof (char), 77
18105See \`config.log' for more details." >&2;}
18106 { (exit 1); exit 1; }; } ;;
18107esac
18108else
18109 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
18110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18111See \`config.log' for more details." >&5
18112echo "$as_me: error: cannot run test program while cross compiling
18113See \`config.log' for more details." >&2;}
a848cd7e
SC
18114 { (exit 1); exit 1; }; }
18115else
18116 cat >conftest.$ac_ext <<_ACEOF
18117/* confdefs.h. */
18118_ACEOF
18119cat confdefs.h >>conftest.$ac_ext
18120cat >>conftest.$ac_ext <<_ACEOF
18121/* end confdefs.h. */
18122$ac_includes_default
18123long longval () { return (long) (sizeof (char)); }
18124unsigned long ulongval () { return (long) (sizeof (char)); }
18125#include <stdio.h>
18126#include <stdlib.h>
18127int
18128main ()
18129{
18130
18131 FILE *f = fopen ("conftest.val", "w");
18132 if (! f)
18133 exit (1);
18134 if (((long) (sizeof (char))) < 0)
18135 {
18136 long i = longval ();
18137 if (i != ((long) (sizeof (char))))
18138 exit (1);
18139 fprintf (f, "%ld\n", i);
18140 }
18141 else
18142 {
18143 unsigned long i = ulongval ();
18144 if (i != ((long) (sizeof (char))))
18145 exit (1);
18146 fprintf (f, "%lu\n", i);
18147 }
18148 exit (ferror (f) || fclose (f) != 0);
18149
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest$ac_exeext
18155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18156 (eval $ac_link) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_sizeof_char=`cat conftest.val`
18166else
18167 echo "$as_me: program exited with status $ac_status" >&5
18168echo "$as_me: failed program was:" >&5
18169sed 's/^/| /' conftest.$ac_ext >&5
18170
18171( exit $ac_status )
18172{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18173See \`config.log' for more details." >&5
18174echo "$as_me: error: cannot compute sizeof (char), 77
18175See \`config.log' for more details." >&2;}
18176 { (exit 1); exit 1; }; }
18177fi
ac1cb8d3 18178rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18179fi
18180fi
18181rm -f conftest.val
18182else
18183 ac_cv_sizeof_char=0
18184fi
18185fi
18186echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18187echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18188cat >>confdefs.h <<_ACEOF
18189#define SIZEOF_CHAR $ac_cv_sizeof_char
18190_ACEOF
18191
18192
18193echo "$as_me:$LINENO: checking for short" >&5
18194echo $ECHO_N "checking for short... $ECHO_C" >&6
18195if test "${ac_cv_type_short+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197else
18198 cat >conftest.$ac_ext <<_ACEOF
18199/* confdefs.h. */
18200_ACEOF
18201cat confdefs.h >>conftest.$ac_ext
18202cat >>conftest.$ac_ext <<_ACEOF
18203/* end confdefs.h. */
18204$ac_includes_default
18205int
18206main ()
18207{
18208if ((short *) 0)
18209 return 0;
18210if (sizeof (short))
18211 return 0;
18212 ;
18213 return 0;
18214}
18215_ACEOF
18216rm -f conftest.$ac_objext
18217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18218 (eval $ac_compile) 2>conftest.er1
a848cd7e 18219 ac_status=$?
ac1cb8d3
VS
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
a848cd7e
SC
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
6a5c9b3f
RR
18225 { ac_try='test -z "$ac_cxx_werror_flag"
18226 || test ! -s conftest.err'
ac1cb8d3
VS
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 ac_cv_type_short=yes
18239else
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243ac_cv_type_short=no
18244fi
ac1cb8d3 18245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18246fi
18247echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18248echo "${ECHO_T}$ac_cv_type_short" >&6
18249
18250echo "$as_me:$LINENO: checking size of short" >&5
18251echo $ECHO_N "checking size of short... $ECHO_C" >&6
18252if test "${ac_cv_sizeof_short+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255 if test "$ac_cv_type_short" = yes; then
18256 # The cast to unsigned long works around a bug in the HP C Compiler
18257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18259 # This bug is HP SR number 8606223364.
18260 if test "$cross_compiling" = yes; then
18261 # Depending upon the size, compute the lo and hi bounds.
18262cat >conftest.$ac_ext <<_ACEOF
18263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
18268$ac_includes_default
18269int
18270main ()
18271{
18272static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18273test_array [0] = 0
18274
18275 ;
18276 return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext
18280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18281 (eval $ac_compile) 2>conftest.er1
a848cd7e 18282 ac_status=$?
ac1cb8d3
VS
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
a848cd7e
SC
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
6a5c9b3f
RR
18288 { ac_try='test -z "$ac_cxx_werror_flag"
18289 || test ! -s conftest.err'
ac1cb8d3
VS
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; } &&
18295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 ac_lo=0 ac_mid=0
18302 while :; do
18303 cat >conftest.$ac_ext <<_ACEOF
18304/* confdefs.h. */
18305_ACEOF
18306cat confdefs.h >>conftest.$ac_ext
18307cat >>conftest.$ac_ext <<_ACEOF
18308/* end confdefs.h. */
18309$ac_includes_default
18310int
18311main ()
18312{
18313static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18314test_array [0] = 0
18315
18316 ;
18317 return 0;
18318}
18319_ACEOF
18320rm -f conftest.$ac_objext
18321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18322 (eval $ac_compile) 2>conftest.er1
a848cd7e 18323 ac_status=$?
ac1cb8d3
VS
18324 grep -v '^ *+' conftest.er1 >conftest.err
18325 rm -f conftest.er1
18326 cat conftest.err >&5
a848cd7e
SC
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
6a5c9b3f
RR
18329 { ac_try='test -z "$ac_cxx_werror_flag"
18330 || test ! -s conftest.err'
ac1cb8d3
VS
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; } &&
18336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_hi=$ac_mid; break
18343else
18344 echo "$as_me: failed program was:" >&5
18345sed 's/^/| /' conftest.$ac_ext >&5
18346
18347ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18348 if test $ac_lo -le $ac_mid; then
18349 ac_lo= ac_hi=
18350 break
18351 fi
18352 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18353fi
ac1cb8d3 18354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18355 done
18356else
18357 echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360cat >conftest.$ac_ext <<_ACEOF
18361/* confdefs.h. */
18362_ACEOF
18363cat confdefs.h >>conftest.$ac_ext
18364cat >>conftest.$ac_ext <<_ACEOF
18365/* end confdefs.h. */
18366$ac_includes_default
18367int
18368main ()
18369{
18370static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18371test_array [0] = 0
18372
18373 ;
18374 return 0;
18375}
18376_ACEOF
18377rm -f conftest.$ac_objext
18378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18379 (eval $ac_compile) 2>conftest.er1
a848cd7e 18380 ac_status=$?
ac1cb8d3
VS
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
a848cd7e
SC
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
6a5c9b3f
RR
18386 { ac_try='test -z "$ac_cxx_werror_flag"
18387 || test ! -s conftest.err'
ac1cb8d3
VS
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_hi=-1 ac_mid=-1
18400 while :; do
18401 cat >conftest.$ac_ext <<_ACEOF
18402/* confdefs.h. */
18403_ACEOF
18404cat confdefs.h >>conftest.$ac_ext
18405cat >>conftest.$ac_ext <<_ACEOF
18406/* end confdefs.h. */
18407$ac_includes_default
18408int
18409main ()
18410{
18411static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18412test_array [0] = 0
18413
18414 ;
18415 return 0;
18416}
18417_ACEOF
18418rm -f conftest.$ac_objext
18419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18420 (eval $ac_compile) 2>conftest.er1
a848cd7e 18421 ac_status=$?
ac1cb8d3
VS
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
a848cd7e
SC
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
6a5c9b3f
RR
18427 { ac_try='test -z "$ac_cxx_werror_flag"
18428 || test ! -s conftest.err'
ac1cb8d3
VS
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_lo=$ac_mid; break
18441else
18442 echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18446 if test $ac_mid -le $ac_hi; then
18447 ac_lo= ac_hi=
18448 break
18449 fi
18450 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18451fi
ac1cb8d3 18452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18453 done
18454else
18455 echo "$as_me: failed program was:" >&5
18456sed 's/^/| /' conftest.$ac_ext >&5
18457
18458ac_lo= ac_hi=
18459fi
ac1cb8d3 18460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18461fi
ac1cb8d3 18462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18463# Binary search between lo and hi bounds.
18464while test "x$ac_lo" != "x$ac_hi"; do
18465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18466 cat >conftest.$ac_ext <<_ACEOF
18467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
18472$ac_includes_default
18473int
18474main ()
18475{
18476static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18477test_array [0] = 0
18478
18479 ;
18480 return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext
18484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18485 (eval $ac_compile) 2>conftest.er1
a848cd7e 18486 ac_status=$?
ac1cb8d3
VS
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
a848cd7e
SC
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
6a5c9b3f
RR
18492 { ac_try='test -z "$ac_cxx_werror_flag"
18493 || test ! -s conftest.err'
ac1cb8d3
VS
18494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; } &&
18499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_hi=$ac_mid
18506else
18507 echo "$as_me: failed program was:" >&5
18508sed 's/^/| /' conftest.$ac_ext >&5
18509
18510ac_lo=`expr '(' $ac_mid ')' + 1`
18511fi
ac1cb8d3 18512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18513done
18514case $ac_lo in
18515?*) ac_cv_sizeof_short=$ac_lo;;
18516'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18517See \`config.log' for more details." >&5
18518echo "$as_me: error: cannot compute sizeof (short), 77
18519See \`config.log' for more details." >&2;}
18520 { (exit 1); exit 1; }; } ;;
18521esac
18522else
18523 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
18524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18525See \`config.log' for more details." >&5
18526echo "$as_me: error: cannot run test program while cross compiling
18527See \`config.log' for more details." >&2;}
a848cd7e
SC
18528 { (exit 1); exit 1; }; }
18529else
18530 cat >conftest.$ac_ext <<_ACEOF
18531/* confdefs.h. */
18532_ACEOF
18533cat confdefs.h >>conftest.$ac_ext
18534cat >>conftest.$ac_ext <<_ACEOF
18535/* end confdefs.h. */
18536$ac_includes_default
18537long longval () { return (long) (sizeof (short)); }
18538unsigned long ulongval () { return (long) (sizeof (short)); }
18539#include <stdio.h>
18540#include <stdlib.h>
18541int
18542main ()
18543{
18544
18545 FILE *f = fopen ("conftest.val", "w");
18546 if (! f)
18547 exit (1);
18548 if (((long) (sizeof (short))) < 0)
18549 {
18550 long i = longval ();
18551 if (i != ((long) (sizeof (short))))
18552 exit (1);
18553 fprintf (f, "%ld\n", i);
18554 }
18555 else
18556 {
18557 unsigned long i = ulongval ();
18558 if (i != ((long) (sizeof (short))))
18559 exit (1);
18560 fprintf (f, "%lu\n", i);
18561 }
18562 exit (ferror (f) || fclose (f) != 0);
18563
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest$ac_exeext
18569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18570 (eval $ac_link) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 ac_cv_sizeof_short=`cat conftest.val`
18580else
18581 echo "$as_me: program exited with status $ac_status" >&5
18582echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585( exit $ac_status )
18586{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18587See \`config.log' for more details." >&5
18588echo "$as_me: error: cannot compute sizeof (short), 77
18589See \`config.log' for more details." >&2;}
18590 { (exit 1); exit 1; }; }
18591fi
ac1cb8d3 18592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18593fi
18594fi
18595rm -f conftest.val
18596else
18597 ac_cv_sizeof_short=0
18598fi
18599fi
18600echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18601echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18602cat >>confdefs.h <<_ACEOF
18603#define SIZEOF_SHORT $ac_cv_sizeof_short
18604_ACEOF
18605
18606
18607echo "$as_me:$LINENO: checking for void *" >&5
18608echo $ECHO_N "checking for void *... $ECHO_C" >&6
18609if test "${ac_cv_type_void_p+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18611else
18612 cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618$ac_includes_default
18619int
18620main ()
18621{
18622if ((void * *) 0)
18623 return 0;
18624if (sizeof (void *))
18625 return 0;
18626 ;
18627 return 0;
18628}
18629_ACEOF
18630rm -f conftest.$ac_objext
18631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18632 (eval $ac_compile) 2>conftest.er1
a848cd7e 18633 ac_status=$?
ac1cb8d3
VS
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
a848cd7e
SC
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
6a5c9b3f
RR
18639 { ac_try='test -z "$ac_cxx_werror_flag"
18640 || test ! -s conftest.err'
ac1cb8d3
VS
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_cv_type_void_p=yes
18653else
18654 echo "$as_me: failed program was:" >&5
18655sed 's/^/| /' conftest.$ac_ext >&5
18656
18657ac_cv_type_void_p=no
18658fi
ac1cb8d3 18659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18660fi
18661echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18662echo "${ECHO_T}$ac_cv_type_void_p" >&6
18663
18664echo "$as_me:$LINENO: checking size of void *" >&5
18665echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18666if test "${ac_cv_sizeof_void_p+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18668else
18669 if test "$ac_cv_type_void_p" = yes; then
18670 # The cast to unsigned long works around a bug in the HP C Compiler
18671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18673 # This bug is HP SR number 8606223364.
18674 if test "$cross_compiling" = yes; then
18675 # Depending upon the size, compute the lo and hi bounds.
18676cat >conftest.$ac_ext <<_ACEOF
18677/* confdefs.h. */
18678_ACEOF
18679cat confdefs.h >>conftest.$ac_ext
18680cat >>conftest.$ac_ext <<_ACEOF
18681/* end confdefs.h. */
18682$ac_includes_default
18683int
18684main ()
18685{
18686static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18687test_array [0] = 0
18688
18689 ;
18690 return 0;
18691}
18692_ACEOF
18693rm -f conftest.$ac_objext
18694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18695 (eval $ac_compile) 2>conftest.er1
a848cd7e 18696 ac_status=$?
ac1cb8d3
VS
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
a848cd7e
SC
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
6a5c9b3f
RR
18702 { ac_try='test -z "$ac_cxx_werror_flag"
18703 || test ! -s conftest.err'
ac1cb8d3
VS
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_lo=0 ac_mid=0
18716 while :; do
18717 cat >conftest.$ac_ext <<_ACEOF
18718/* confdefs.h. */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h. */
18723$ac_includes_default
18724int
18725main ()
18726{
18727static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18728test_array [0] = 0
18729
18730 ;
18731 return 0;
18732}
18733_ACEOF
18734rm -f conftest.$ac_objext
18735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18736 (eval $ac_compile) 2>conftest.er1
a848cd7e 18737 ac_status=$?
ac1cb8d3
VS
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
a848cd7e
SC
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } &&
6a5c9b3f
RR
18743 { ac_try='test -z "$ac_cxx_werror_flag"
18744 || test ! -s conftest.err'
ac1cb8d3
VS
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; } &&
18750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 ac_hi=$ac_mid; break
18757else
18758 echo "$as_me: failed program was:" >&5
18759sed 's/^/| /' conftest.$ac_ext >&5
18760
18761ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18762 if test $ac_lo -le $ac_mid; then
18763 ac_lo= ac_hi=
18764 break
18765 fi
18766 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18767fi
ac1cb8d3 18768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18769 done
18770else
18771 echo "$as_me: failed program was:" >&5
18772sed 's/^/| /' conftest.$ac_ext >&5
18773
18774cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
18780$ac_includes_default
18781int
18782main ()
18783{
18784static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18785test_array [0] = 0
18786
18787 ;
18788 return 0;
18789}
18790_ACEOF
18791rm -f conftest.$ac_objext
18792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18793 (eval $ac_compile) 2>conftest.er1
a848cd7e 18794 ac_status=$?
ac1cb8d3
VS
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
a848cd7e
SC
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
6a5c9b3f
RR
18800 { ac_try='test -z "$ac_cxx_werror_flag"
18801 || test ! -s conftest.err'
ac1cb8d3
VS
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_hi=-1 ac_mid=-1
18814 while :; do
18815 cat >conftest.$ac_ext <<_ACEOF
18816/* confdefs.h. */
18817_ACEOF
18818cat confdefs.h >>conftest.$ac_ext
18819cat >>conftest.$ac_ext <<_ACEOF
18820/* end confdefs.h. */
18821$ac_includes_default
18822int
18823main ()
18824{
18825static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18826test_array [0] = 0
18827
18828 ;
18829 return 0;
18830}
18831_ACEOF
18832rm -f conftest.$ac_objext
18833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18834 (eval $ac_compile) 2>conftest.er1
a848cd7e 18835 ac_status=$?
ac1cb8d3
VS
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
a848cd7e
SC
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } &&
6a5c9b3f
RR
18841 { ac_try='test -z "$ac_cxx_werror_flag"
18842 || test ! -s conftest.err'
ac1cb8d3
VS
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; } &&
18848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; }; then
18854 ac_lo=$ac_mid; break
18855else
18856 echo "$as_me: failed program was:" >&5
18857sed 's/^/| /' conftest.$ac_ext >&5
18858
18859ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18860 if test $ac_mid -le $ac_hi; then
18861 ac_lo= ac_hi=
18862 break
18863 fi
18864 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18865fi
ac1cb8d3 18866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18867 done
18868else
18869 echo "$as_me: failed program was:" >&5
18870sed 's/^/| /' conftest.$ac_ext >&5
18871
18872ac_lo= ac_hi=
18873fi
ac1cb8d3 18874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18875fi
ac1cb8d3 18876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18877# Binary search between lo and hi bounds.
18878while test "x$ac_lo" != "x$ac_hi"; do
18879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18880 cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886$ac_includes_default
18887int
18888main ()
18889{
18890static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18891test_array [0] = 0
18892
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext
18898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18899 (eval $ac_compile) 2>conftest.er1
a848cd7e 18900 ac_status=$?
ac1cb8d3
VS
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
a848cd7e
SC
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
6a5c9b3f
RR
18906 { ac_try='test -z "$ac_cxx_werror_flag"
18907 || test ! -s conftest.err'
ac1cb8d3
VS
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_hi=$ac_mid
18920else
18921 echo "$as_me: failed program was:" >&5
18922sed 's/^/| /' conftest.$ac_ext >&5
18923
18924ac_lo=`expr '(' $ac_mid ')' + 1`
18925fi
ac1cb8d3 18926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18927done
18928case $ac_lo in
18929?*) ac_cv_sizeof_void_p=$ac_lo;;
18930'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18931See \`config.log' for more details." >&5
18932echo "$as_me: error: cannot compute sizeof (void *), 77
18933See \`config.log' for more details." >&2;}
18934 { (exit 1); exit 1; }; } ;;
18935esac
18936else
18937 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
18938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18939See \`config.log' for more details." >&5
18940echo "$as_me: error: cannot run test program while cross compiling
18941See \`config.log' for more details." >&2;}
a848cd7e
SC
18942 { (exit 1); exit 1; }; }
18943else
18944 cat >conftest.$ac_ext <<_ACEOF
18945/* confdefs.h. */
18946_ACEOF
18947cat confdefs.h >>conftest.$ac_ext
18948cat >>conftest.$ac_ext <<_ACEOF
18949/* end confdefs.h. */
18950$ac_includes_default
18951long longval () { return (long) (sizeof (void *)); }
18952unsigned long ulongval () { return (long) (sizeof (void *)); }
18953#include <stdio.h>
18954#include <stdlib.h>
18955int
18956main ()
18957{
18958
18959 FILE *f = fopen ("conftest.val", "w");
18960 if (! f)
18961 exit (1);
18962 if (((long) (sizeof (void *))) < 0)
18963 {
18964 long i = longval ();
18965 if (i != ((long) (sizeof (void *))))
18966 exit (1);
18967 fprintf (f, "%ld\n", i);
18968 }
18969 else
18970 {
18971 unsigned long i = ulongval ();
18972 if (i != ((long) (sizeof (void *))))
18973 exit (1);
18974 fprintf (f, "%lu\n", i);
18975 }
18976 exit (ferror (f) || fclose (f) != 0);
18977
18978 ;
18979 return 0;
18980}
18981_ACEOF
18982rm -f conftest$ac_exeext
18983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18984 (eval $ac_link) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_sizeof_void_p=`cat conftest.val`
18994else
18995 echo "$as_me: program exited with status $ac_status" >&5
18996echo "$as_me: failed program was:" >&5
18997sed 's/^/| /' conftest.$ac_ext >&5
18998
18999( exit $ac_status )
19000{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19001See \`config.log' for more details." >&5
19002echo "$as_me: error: cannot compute sizeof (void *), 77
19003See \`config.log' for more details." >&2;}
19004 { (exit 1); exit 1; }; }
19005fi
ac1cb8d3 19006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19007fi
19008fi
19009rm -f conftest.val
19010else
19011 ac_cv_sizeof_void_p=0
19012fi
19013fi
19014echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19015echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19016cat >>confdefs.h <<_ACEOF
19017#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19018_ACEOF
19019
19020
19021echo "$as_me:$LINENO: checking for int" >&5
19022echo $ECHO_N "checking for int... $ECHO_C" >&6
19023if test "${ac_cv_type_int+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025else
19026 cat >conftest.$ac_ext <<_ACEOF
19027/* confdefs.h. */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h. */
19032$ac_includes_default
19033int
19034main ()
19035{
19036if ((int *) 0)
19037 return 0;
19038if (sizeof (int))
19039 return 0;
19040 ;
19041 return 0;
19042}
19043_ACEOF
19044rm -f conftest.$ac_objext
19045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19046 (eval $ac_compile) 2>conftest.er1
a848cd7e 19047 ac_status=$?
ac1cb8d3
VS
19048 grep -v '^ *+' conftest.er1 >conftest.err
19049 rm -f conftest.er1
19050 cat conftest.err >&5
a848cd7e
SC
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
6a5c9b3f
RR
19053 { ac_try='test -z "$ac_cxx_werror_flag"
19054 || test ! -s conftest.err'
ac1cb8d3
VS
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; } &&
19060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_cv_type_int=yes
19067else
19068 echo "$as_me: failed program was:" >&5
19069sed 's/^/| /' conftest.$ac_ext >&5
19070
19071ac_cv_type_int=no
19072fi
ac1cb8d3 19073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19074fi
19075echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19076echo "${ECHO_T}$ac_cv_type_int" >&6
19077
19078echo "$as_me:$LINENO: checking size of int" >&5
19079echo $ECHO_N "checking size of int... $ECHO_C" >&6
19080if test "${ac_cv_sizeof_int+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083 if test "$ac_cv_type_int" = yes; then
19084 # The cast to unsigned long works around a bug in the HP C Compiler
19085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19087 # This bug is HP SR number 8606223364.
19088 if test "$cross_compiling" = yes; then
19089 # Depending upon the size, compute the lo and hi bounds.
19090cat >conftest.$ac_ext <<_ACEOF
19091/* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
19096$ac_includes_default
19097int
19098main ()
19099{
19100static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19101test_array [0] = 0
19102
19103 ;
19104 return 0;
19105}
19106_ACEOF
19107rm -f conftest.$ac_objext
19108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19109 (eval $ac_compile) 2>conftest.er1
a848cd7e 19110 ac_status=$?
ac1cb8d3
VS
19111 grep -v '^ *+' conftest.er1 >conftest.err
19112 rm -f conftest.er1
19113 cat conftest.err >&5
a848cd7e
SC
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
6a5c9b3f
RR
19116 { ac_try='test -z "$ac_cxx_werror_flag"
19117 || test ! -s conftest.err'
ac1cb8d3
VS
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_lo=0 ac_mid=0
19130 while :; do
19131 cat >conftest.$ac_ext <<_ACEOF
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
19137$ac_includes_default
19138int
19139main ()
19140{
19141static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19142test_array [0] = 0
19143
19144 ;
19145 return 0;
19146}
19147_ACEOF
19148rm -f conftest.$ac_objext
19149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19150 (eval $ac_compile) 2>conftest.er1
a848cd7e 19151 ac_status=$?
ac1cb8d3
VS
19152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
a848cd7e
SC
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
6a5c9b3f
RR
19157 { ac_try='test -z "$ac_cxx_werror_flag"
19158 || test ! -s conftest.err'
ac1cb8d3
VS
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 ac_hi=$ac_mid; break
19171else
19172 echo "$as_me: failed program was:" >&5
19173sed 's/^/| /' conftest.$ac_ext >&5
19174
19175ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19176 if test $ac_lo -le $ac_mid; then
19177 ac_lo= ac_hi=
19178 break
19179 fi
19180 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19181fi
ac1cb8d3 19182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19183 done
19184else
19185 echo "$as_me: failed program was:" >&5
19186sed 's/^/| /' conftest.$ac_ext >&5
19187
19188cat >conftest.$ac_ext <<_ACEOF
19189/* confdefs.h. */
19190_ACEOF
19191cat confdefs.h >>conftest.$ac_ext
19192cat >>conftest.$ac_ext <<_ACEOF
19193/* end confdefs.h. */
19194$ac_includes_default
19195int
19196main ()
19197{
19198static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19199test_array [0] = 0
19200
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205rm -f conftest.$ac_objext
19206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19207 (eval $ac_compile) 2>conftest.er1
a848cd7e 19208 ac_status=$?
ac1cb8d3
VS
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
a848cd7e
SC
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
6a5c9b3f
RR
19214 { ac_try='test -z "$ac_cxx_werror_flag"
19215 || test ! -s conftest.err'
ac1cb8d3
VS
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_hi=-1 ac_mid=-1
19228 while :; do
19229 cat >conftest.$ac_ext <<_ACEOF
19230/* confdefs.h. */
19231_ACEOF
19232cat confdefs.h >>conftest.$ac_ext
19233cat >>conftest.$ac_ext <<_ACEOF
19234/* end confdefs.h. */
19235$ac_includes_default
19236int
19237main ()
19238{
19239static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19240test_array [0] = 0
19241
19242 ;
19243 return 0;
19244}
19245_ACEOF
19246rm -f conftest.$ac_objext
19247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19248 (eval $ac_compile) 2>conftest.er1
a848cd7e 19249 ac_status=$?
ac1cb8d3
VS
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
a848cd7e
SC
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
6a5c9b3f
RR
19255 { ac_try='test -z "$ac_cxx_werror_flag"
19256 || test ! -s conftest.err'
ac1cb8d3
VS
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ac_lo=$ac_mid; break
19269else
19270 echo "$as_me: failed program was:" >&5
19271sed 's/^/| /' conftest.$ac_ext >&5
19272
19273ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19274 if test $ac_mid -le $ac_hi; then
19275 ac_lo= ac_hi=
19276 break
19277 fi
19278 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19279fi
ac1cb8d3 19280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19281 done
19282else
19283 echo "$as_me: failed program was:" >&5
19284sed 's/^/| /' conftest.$ac_ext >&5
19285
19286ac_lo= ac_hi=
19287fi
ac1cb8d3 19288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19289fi
ac1cb8d3 19290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19291# Binary search between lo and hi bounds.
19292while test "x$ac_lo" != "x$ac_hi"; do
19293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19294 cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
19300$ac_includes_default
19301int
19302main ()
19303{
19304static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19305test_array [0] = 0
19306
19307 ;
19308 return 0;
19309}
19310_ACEOF
19311rm -f conftest.$ac_objext
19312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19313 (eval $ac_compile) 2>conftest.er1
a848cd7e 19314 ac_status=$?
ac1cb8d3
VS
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
a848cd7e
SC
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
6a5c9b3f
RR
19320 { ac_try='test -z "$ac_cxx_werror_flag"
19321 || test ! -s conftest.err'
ac1cb8d3
VS
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ac_hi=$ac_mid
19334else
19335 echo "$as_me: failed program was:" >&5
19336sed 's/^/| /' conftest.$ac_ext >&5
19337
19338ac_lo=`expr '(' $ac_mid ')' + 1`
19339fi
ac1cb8d3 19340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19341done
19342case $ac_lo in
19343?*) ac_cv_sizeof_int=$ac_lo;;
19344'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19345See \`config.log' for more details." >&5
19346echo "$as_me: error: cannot compute sizeof (int), 77
19347See \`config.log' for more details." >&2;}
19348 { (exit 1); exit 1; }; } ;;
19349esac
19350else
19351 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
19352 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19353See \`config.log' for more details." >&5
19354echo "$as_me: error: cannot run test program while cross compiling
19355See \`config.log' for more details." >&2;}
a848cd7e
SC
19356 { (exit 1); exit 1; }; }
19357else
19358 cat >conftest.$ac_ext <<_ACEOF
19359/* confdefs.h. */
19360_ACEOF
19361cat confdefs.h >>conftest.$ac_ext
19362cat >>conftest.$ac_ext <<_ACEOF
19363/* end confdefs.h. */
19364$ac_includes_default
19365long longval () { return (long) (sizeof (int)); }
19366unsigned long ulongval () { return (long) (sizeof (int)); }
19367#include <stdio.h>
19368#include <stdlib.h>
19369int
19370main ()
19371{
19372
19373 FILE *f = fopen ("conftest.val", "w");
19374 if (! f)
19375 exit (1);
19376 if (((long) (sizeof (int))) < 0)
19377 {
19378 long i = longval ();
19379 if (i != ((long) (sizeof (int))))
19380 exit (1);
19381 fprintf (f, "%ld\n", i);
19382 }
19383 else
19384 {
19385 unsigned long i = ulongval ();
19386 if (i != ((long) (sizeof (int))))
19387 exit (1);
19388 fprintf (f, "%lu\n", i);
19389 }
19390 exit (ferror (f) || fclose (f) != 0);
19391
19392 ;
19393 return 0;
19394}
19395_ACEOF
19396rm -f conftest$ac_exeext
19397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19398 (eval $ac_link) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407 ac_cv_sizeof_int=`cat conftest.val`
19408else
19409 echo "$as_me: program exited with status $ac_status" >&5
19410echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413( exit $ac_status )
19414{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19415See \`config.log' for more details." >&5
19416echo "$as_me: error: cannot compute sizeof (int), 77
19417See \`config.log' for more details." >&2;}
19418 { (exit 1); exit 1; }; }
19419fi
ac1cb8d3 19420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19421fi
19422fi
19423rm -f conftest.val
19424else
19425 ac_cv_sizeof_int=0
19426fi
19427fi
19428echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19429echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19430cat >>confdefs.h <<_ACEOF
19431#define SIZEOF_INT $ac_cv_sizeof_int
19432_ACEOF
19433
19434
19435echo "$as_me:$LINENO: checking for long" >&5
19436echo $ECHO_N "checking for long... $ECHO_C" >&6
19437if test "${ac_cv_type_long+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439else
19440 cat >conftest.$ac_ext <<_ACEOF
19441/* confdefs.h. */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h. */
19446$ac_includes_default
19447int
19448main ()
19449{
19450if ((long *) 0)
19451 return 0;
19452if (sizeof (long))
19453 return 0;
19454 ;
19455 return 0;
19456}
19457_ACEOF
19458rm -f conftest.$ac_objext
19459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19460 (eval $ac_compile) 2>conftest.er1
a848cd7e 19461 ac_status=$?
ac1cb8d3
VS
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
a848cd7e
SC
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } &&
6a5c9b3f
RR
19467 { ac_try='test -z "$ac_cxx_werror_flag"
19468 || test ! -s conftest.err'
ac1cb8d3
VS
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; } &&
19474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 ac_cv_type_long=yes
19481else
19482 echo "$as_me: failed program was:" >&5
19483sed 's/^/| /' conftest.$ac_ext >&5
19484
19485ac_cv_type_long=no
19486fi
ac1cb8d3 19487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19488fi
19489echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19490echo "${ECHO_T}$ac_cv_type_long" >&6
19491
19492echo "$as_me:$LINENO: checking size of long" >&5
19493echo $ECHO_N "checking size of long... $ECHO_C" >&6
19494if test "${ac_cv_sizeof_long+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19496else
19497 if test "$ac_cv_type_long" = yes; then
19498 # The cast to unsigned long works around a bug in the HP C Compiler
19499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19501 # This bug is HP SR number 8606223364.
19502 if test "$cross_compiling" = yes; then
19503 # Depending upon the size, compute the lo and hi bounds.
19504cat >conftest.$ac_ext <<_ACEOF
19505/* confdefs.h. */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
19510$ac_includes_default
19511int
19512main ()
19513{
19514static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19515test_array [0] = 0
19516
19517 ;
19518 return 0;
19519}
19520_ACEOF
19521rm -f conftest.$ac_objext
19522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19523 (eval $ac_compile) 2>conftest.er1
a848cd7e 19524 ac_status=$?
ac1cb8d3
VS
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
a848cd7e
SC
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
6a5c9b3f
RR
19530 { ac_try='test -z "$ac_cxx_werror_flag"
19531 || test ! -s conftest.err'
ac1cb8d3
VS
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_lo=0 ac_mid=0
19544 while :; do
19545 cat >conftest.$ac_ext <<_ACEOF
19546/* confdefs.h. */
19547_ACEOF
19548cat confdefs.h >>conftest.$ac_ext
19549cat >>conftest.$ac_ext <<_ACEOF
19550/* end confdefs.h. */
19551$ac_includes_default
19552int
19553main ()
19554{
19555static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19556test_array [0] = 0
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19564 (eval $ac_compile) 2>conftest.er1
a848cd7e 19565 ac_status=$?
ac1cb8d3
VS
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
a848cd7e
SC
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
6a5c9b3f
RR
19571 { ac_try='test -z "$ac_cxx_werror_flag"
19572 || test ! -s conftest.err'
ac1cb8d3
VS
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_hi=$ac_mid; break
19585else
19586 echo "$as_me: failed program was:" >&5
19587sed 's/^/| /' conftest.$ac_ext >&5
19588
19589ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19590 if test $ac_lo -le $ac_mid; then
19591 ac_lo= ac_hi=
19592 break
19593 fi
19594 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19595fi
ac1cb8d3 19596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19597 done
19598else
19599 echo "$as_me: failed program was:" >&5
19600sed 's/^/| /' conftest.$ac_ext >&5
19601
19602cat >conftest.$ac_ext <<_ACEOF
19603/* confdefs.h. */
19604_ACEOF
19605cat confdefs.h >>conftest.$ac_ext
19606cat >>conftest.$ac_ext <<_ACEOF
19607/* end confdefs.h. */
19608$ac_includes_default
19609int
19610main ()
19611{
19612static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19613test_array [0] = 0
19614
19615 ;
19616 return 0;
19617}
19618_ACEOF
19619rm -f conftest.$ac_objext
19620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19621 (eval $ac_compile) 2>conftest.er1
a848cd7e 19622 ac_status=$?
ac1cb8d3
VS
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
a848cd7e
SC
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
6a5c9b3f
RR
19628 { ac_try='test -z "$ac_cxx_werror_flag"
19629 || test ! -s conftest.err'
ac1cb8d3
VS
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; } &&
19635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_hi=-1 ac_mid=-1
19642 while :; do
19643 cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
19648/* end confdefs.h. */
19649$ac_includes_default
19650int
19651main ()
19652{
19653static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19654test_array [0] = 0
19655
19656 ;
19657 return 0;
19658}
19659_ACEOF
19660rm -f conftest.$ac_objext
19661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19662 (eval $ac_compile) 2>conftest.er1
a848cd7e 19663 ac_status=$?
ac1cb8d3
VS
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
a848cd7e
SC
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
6a5c9b3f
RR
19669 { ac_try='test -z "$ac_cxx_werror_flag"
19670 || test ! -s conftest.err'
ac1cb8d3
VS
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19673 ac_status=$?
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_lo=$ac_mid; break
19683else
19684 echo "$as_me: failed program was:" >&5
19685sed 's/^/| /' conftest.$ac_ext >&5
19686
19687ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19688 if test $ac_mid -le $ac_hi; then
19689 ac_lo= ac_hi=
19690 break
19691 fi
19692 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19693fi
ac1cb8d3 19694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19695 done
19696else
19697 echo "$as_me: failed program was:" >&5
19698sed 's/^/| /' conftest.$ac_ext >&5
19699
19700ac_lo= ac_hi=
19701fi
ac1cb8d3 19702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19703fi
ac1cb8d3 19704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19705# Binary search between lo and hi bounds.
19706while test "x$ac_lo" != "x$ac_hi"; do
19707 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19708 cat >conftest.$ac_ext <<_ACEOF
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714$ac_includes_default
19715int
19716main ()
19717{
19718static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19719test_array [0] = 0
19720
19721 ;
19722 return 0;
19723}
19724_ACEOF
19725rm -f conftest.$ac_objext
19726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19727 (eval $ac_compile) 2>conftest.er1
a848cd7e 19728 ac_status=$?
ac1cb8d3
VS
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
a848cd7e
SC
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
6a5c9b3f
RR
19734 { ac_try='test -z "$ac_cxx_werror_flag"
19735 || test ! -s conftest.err'
ac1cb8d3
VS
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_hi=$ac_mid
19748else
19749 echo "$as_me: failed program was:" >&5
19750sed 's/^/| /' conftest.$ac_ext >&5
19751
19752ac_lo=`expr '(' $ac_mid ')' + 1`
19753fi
ac1cb8d3 19754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19755done
19756case $ac_lo in
19757?*) ac_cv_sizeof_long=$ac_lo;;
19758'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19759See \`config.log' for more details." >&5
19760echo "$as_me: error: cannot compute sizeof (long), 77
19761See \`config.log' for more details." >&2;}
19762 { (exit 1); exit 1; }; } ;;
19763esac
19764else
19765 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
19766 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19767See \`config.log' for more details." >&5
19768echo "$as_me: error: cannot run test program while cross compiling
19769See \`config.log' for more details." >&2;}
a848cd7e
SC
19770 { (exit 1); exit 1; }; }
19771else
19772 cat >conftest.$ac_ext <<_ACEOF
19773/* confdefs.h. */
19774_ACEOF
19775cat confdefs.h >>conftest.$ac_ext
19776cat >>conftest.$ac_ext <<_ACEOF
19777/* end confdefs.h. */
19778$ac_includes_default
19779long longval () { return (long) (sizeof (long)); }
19780unsigned long ulongval () { return (long) (sizeof (long)); }
19781#include <stdio.h>
19782#include <stdlib.h>
19783int
19784main ()
19785{
19786
19787 FILE *f = fopen ("conftest.val", "w");
19788 if (! f)
19789 exit (1);
19790 if (((long) (sizeof (long))) < 0)
19791 {
19792 long i = longval ();
19793 if (i != ((long) (sizeof (long))))
19794 exit (1);
19795 fprintf (f, "%ld\n", i);
19796 }
19797 else
19798 {
19799 unsigned long i = ulongval ();
19800 if (i != ((long) (sizeof (long))))
19801 exit (1);
19802 fprintf (f, "%lu\n", i);
19803 }
19804 exit (ferror (f) || fclose (f) != 0);
19805
19806 ;
19807 return 0;
19808}
19809_ACEOF
19810rm -f conftest$ac_exeext
19811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_sizeof_long=`cat conftest.val`
19822else
19823 echo "$as_me: program exited with status $ac_status" >&5
19824echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827( exit $ac_status )
19828{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19829See \`config.log' for more details." >&5
19830echo "$as_me: error: cannot compute sizeof (long), 77
19831See \`config.log' for more details." >&2;}
19832 { (exit 1); exit 1; }; }
19833fi
ac1cb8d3 19834rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19835fi
19836fi
19837rm -f conftest.val
19838else
19839 ac_cv_sizeof_long=0
19840fi
19841fi
19842echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19843echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19844cat >>confdefs.h <<_ACEOF
19845#define SIZEOF_LONG $ac_cv_sizeof_long
19846_ACEOF
19847
19848
19849echo "$as_me:$LINENO: checking for size_t" >&5
19850echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19851if test "${ac_cv_type_size_t+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
19860$ac_includes_default
19861int
19862main ()
19863{
19864if ((size_t *) 0)
19865 return 0;
19866if (sizeof (size_t))
19867 return 0;
19868 ;
19869 return 0;
19870}
19871_ACEOF
19872rm -f conftest.$ac_objext
19873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19874 (eval $ac_compile) 2>conftest.er1
a848cd7e 19875 ac_status=$?
ac1cb8d3
VS
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
a848cd7e
SC
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
6a5c9b3f
RR
19881 { ac_try='test -z "$ac_cxx_werror_flag"
19882 || test ! -s conftest.err'
ac1cb8d3
VS
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_cv_type_size_t=yes
19895else
19896 echo "$as_me: failed program was:" >&5
19897sed 's/^/| /' conftest.$ac_ext >&5
19898
19899ac_cv_type_size_t=no
19900fi
ac1cb8d3 19901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19902fi
19903echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19904echo "${ECHO_T}$ac_cv_type_size_t" >&6
19905
19906echo "$as_me:$LINENO: checking size of size_t" >&5
19907echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19908if test "${ac_cv_sizeof_size_t+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910else
19911 if test "$ac_cv_type_size_t" = yes; then
19912 # The cast to unsigned long works around a bug in the HP C Compiler
19913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19915 # This bug is HP SR number 8606223364.
19916 if test "$cross_compiling" = yes; then
19917 # Depending upon the size, compute the lo and hi bounds.
19918cat >conftest.$ac_ext <<_ACEOF
19919/* confdefs.h. */
19920_ACEOF
19921cat confdefs.h >>conftest.$ac_ext
19922cat >>conftest.$ac_ext <<_ACEOF
19923/* end confdefs.h. */
19924$ac_includes_default
19925int
19926main ()
19927{
19928static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19929test_array [0] = 0
19930
19931 ;
19932 return 0;
19933}
19934_ACEOF
19935rm -f conftest.$ac_objext
19936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19937 (eval $ac_compile) 2>conftest.er1
a848cd7e 19938 ac_status=$?
ac1cb8d3
VS
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
a848cd7e
SC
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
6a5c9b3f
RR
19944 { ac_try='test -z "$ac_cxx_werror_flag"
19945 || test ! -s conftest.err'
ac1cb8d3
VS
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_lo=0 ac_mid=0
19958 while :; do
19959 cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965$ac_includes_default
19966int
19967main ()
19968{
19969static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19970test_array [0] = 0
19971
19972 ;
19973 return 0;
19974}
19975_ACEOF
19976rm -f conftest.$ac_objext
19977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19978 (eval $ac_compile) 2>conftest.er1
a848cd7e 19979 ac_status=$?
ac1cb8d3
VS
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
a848cd7e
SC
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
6a5c9b3f
RR
19985 { ac_try='test -z "$ac_cxx_werror_flag"
19986 || test ! -s conftest.err'
ac1cb8d3
VS
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; }; then
19998 ac_hi=$ac_mid; break
19999else
20000 echo "$as_me: failed program was:" >&5
20001sed 's/^/| /' conftest.$ac_ext >&5
20002
20003ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20004 if test $ac_lo -le $ac_mid; then
20005 ac_lo= ac_hi=
20006 break
20007 fi
20008 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20009fi
ac1cb8d3 20010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20011 done
20012else
20013 echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016cat >conftest.$ac_ext <<_ACEOF
20017/* confdefs.h. */
20018_ACEOF
20019cat confdefs.h >>conftest.$ac_ext
20020cat >>conftest.$ac_ext <<_ACEOF
20021/* end confdefs.h. */
20022$ac_includes_default
20023int
20024main ()
20025{
20026static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20027test_array [0] = 0
20028
20029 ;
20030 return 0;
20031}
20032_ACEOF
20033rm -f conftest.$ac_objext
20034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20035 (eval $ac_compile) 2>conftest.er1
a848cd7e 20036 ac_status=$?
ac1cb8d3
VS
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
a848cd7e
SC
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
6a5c9b3f
RR
20042 { ac_try='test -z "$ac_cxx_werror_flag"
20043 || test ! -s conftest.err'
ac1cb8d3
VS
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_hi=-1 ac_mid=-1
20056 while :; do
20057 cat >conftest.$ac_ext <<_ACEOF
20058/* confdefs.h. */
20059_ACEOF
20060cat confdefs.h >>conftest.$ac_ext
20061cat >>conftest.$ac_ext <<_ACEOF
20062/* end confdefs.h. */
20063$ac_includes_default
20064int
20065main ()
20066{
20067static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20068test_array [0] = 0
20069
20070 ;
20071 return 0;
20072}
20073_ACEOF
20074rm -f conftest.$ac_objext
20075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20076 (eval $ac_compile) 2>conftest.er1
a848cd7e 20077 ac_status=$?
ac1cb8d3
VS
20078 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1
20080 cat conftest.err >&5
a848cd7e
SC
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } &&
6a5c9b3f
RR
20083 { ac_try='test -z "$ac_cxx_werror_flag"
20084 || test ! -s conftest.err'
ac1cb8d3
VS
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 ac_lo=$ac_mid; break
20097else
20098 echo "$as_me: failed program was:" >&5
20099sed 's/^/| /' conftest.$ac_ext >&5
20100
20101ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20102 if test $ac_mid -le $ac_hi; then
20103 ac_lo= ac_hi=
20104 break
20105 fi
20106 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20107fi
ac1cb8d3 20108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20109 done
20110else
20111 echo "$as_me: failed program was:" >&5
20112sed 's/^/| /' conftest.$ac_ext >&5
20113
20114ac_lo= ac_hi=
20115fi
ac1cb8d3 20116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20117fi
ac1cb8d3 20118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20119# Binary search between lo and hi bounds.
20120while test "x$ac_lo" != "x$ac_hi"; do
20121 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20122 cat >conftest.$ac_ext <<_ACEOF
20123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
20128$ac_includes_default
20129int
20130main ()
20131{
20132static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20133test_array [0] = 0
20134
20135 ;
20136 return 0;
20137}
20138_ACEOF
20139rm -f conftest.$ac_objext
20140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20141 (eval $ac_compile) 2>conftest.er1
a848cd7e 20142 ac_status=$?
ac1cb8d3
VS
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
a848cd7e
SC
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
6a5c9b3f
RR
20148 { ac_try='test -z "$ac_cxx_werror_flag"
20149 || test ! -s conftest.err'
ac1cb8d3
VS
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_hi=$ac_mid
20162else
20163 echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166ac_lo=`expr '(' $ac_mid ')' + 1`
20167fi
ac1cb8d3 20168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20169done
20170case $ac_lo in
20171?*) ac_cv_sizeof_size_t=$ac_lo;;
20172'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20173See \`config.log' for more details." >&5
20174echo "$as_me: error: cannot compute sizeof (size_t), 77
20175See \`config.log' for more details." >&2;}
20176 { (exit 1); exit 1; }; } ;;
20177esac
20178else
20179 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
20180 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20181See \`config.log' for more details." >&5
20182echo "$as_me: error: cannot run test program while cross compiling
20183See \`config.log' for more details." >&2;}
a848cd7e
SC
20184 { (exit 1); exit 1; }; }
20185else
20186 cat >conftest.$ac_ext <<_ACEOF
20187/* confdefs.h. */
20188_ACEOF
20189cat confdefs.h >>conftest.$ac_ext
20190cat >>conftest.$ac_ext <<_ACEOF
20191/* end confdefs.h. */
20192$ac_includes_default
20193long longval () { return (long) (sizeof (size_t)); }
20194unsigned long ulongval () { return (long) (sizeof (size_t)); }
20195#include <stdio.h>
20196#include <stdlib.h>
20197int
20198main ()
20199{
20200
20201 FILE *f = fopen ("conftest.val", "w");
20202 if (! f)
20203 exit (1);
20204 if (((long) (sizeof (size_t))) < 0)
20205 {
20206 long i = longval ();
20207 if (i != ((long) (sizeof (size_t))))
20208 exit (1);
20209 fprintf (f, "%ld\n", i);
20210 }
20211 else
20212 {
20213 unsigned long i = ulongval ();
20214 if (i != ((long) (sizeof (size_t))))
20215 exit (1);
20216 fprintf (f, "%lu\n", i);
20217 }
20218 exit (ferror (f) || fclose (f) != 0);
20219
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest$ac_exeext
20225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226 (eval $ac_link) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_cv_sizeof_size_t=`cat conftest.val`
20236else
20237 echo "$as_me: program exited with status $ac_status" >&5
20238echo "$as_me: failed program was:" >&5
20239sed 's/^/| /' conftest.$ac_ext >&5
20240
20241( exit $ac_status )
20242{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20243See \`config.log' for more details." >&5
20244echo "$as_me: error: cannot compute sizeof (size_t), 77
20245See \`config.log' for more details." >&2;}
20246 { (exit 1); exit 1; }; }
20247fi
ac1cb8d3 20248rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20249fi
20250fi
20251rm -f conftest.val
20252else
20253 ac_cv_sizeof_size_t=0
20254fi
20255fi
20256echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20257echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20258cat >>confdefs.h <<_ACEOF
20259#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20260_ACEOF
20261
20262
20263
20264case "${host}" in
20265 arm-*-linux* )
20266 echo "$as_me:$LINENO: checking for long long" >&5
20267echo $ECHO_N "checking for long long... $ECHO_C" >&6
20268if test "${ac_cv_type_long_long+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20270else
20271 cat >conftest.$ac_ext <<_ACEOF
20272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h. */
20277$ac_includes_default
20278int
20279main ()
20280{
20281if ((long long *) 0)
20282 return 0;
20283if (sizeof (long long))
20284 return 0;
20285 ;
20286 return 0;
20287}
20288_ACEOF
20289rm -f conftest.$ac_objext
20290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20291 (eval $ac_compile) 2>conftest.er1
a848cd7e 20292 ac_status=$?
ac1cb8d3
VS
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
a848cd7e
SC
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
6a5c9b3f
RR
20298 { ac_try='test -z "$ac_cxx_werror_flag"
20299 || test ! -s conftest.err'
ac1cb8d3
VS
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 ac_cv_type_long_long=yes
20312else
20313 echo "$as_me: failed program was:" >&5
20314sed 's/^/| /' conftest.$ac_ext >&5
20315
20316ac_cv_type_long_long=no
20317fi
ac1cb8d3 20318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20319fi
20320echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20321echo "${ECHO_T}$ac_cv_type_long_long" >&6
20322
20323echo "$as_me:$LINENO: checking size of long long" >&5
20324echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20325if test "${ac_cv_sizeof_long_long+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 if test "$ac_cv_type_long_long" = yes; then
20329 # The cast to unsigned long works around a bug in the HP C Compiler
20330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20332 # This bug is HP SR number 8606223364.
20333 if test "$cross_compiling" = yes; then
20334 # Depending upon the size, compute the lo and hi bounds.
20335cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341$ac_includes_default
20342int
20343main ()
20344{
20345static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20346test_array [0] = 0
20347
20348 ;
20349 return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext
20353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20354 (eval $ac_compile) 2>conftest.er1
a848cd7e 20355 ac_status=$?
ac1cb8d3
VS
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
a848cd7e
SC
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } &&
6a5c9b3f
RR
20361 { ac_try='test -z "$ac_cxx_werror_flag"
20362 || test ! -s conftest.err'
ac1cb8d3
VS
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_lo=0 ac_mid=0
20375 while :; do
20376 cat >conftest.$ac_ext <<_ACEOF
20377/* confdefs.h. */
20378_ACEOF
20379cat confdefs.h >>conftest.$ac_ext
20380cat >>conftest.$ac_ext <<_ACEOF
20381/* end confdefs.h. */
20382$ac_includes_default
20383int
20384main ()
20385{
20386static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20387test_array [0] = 0
20388
20389 ;
20390 return 0;
20391}
20392_ACEOF
20393rm -f conftest.$ac_objext
20394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20395 (eval $ac_compile) 2>conftest.er1
a848cd7e 20396 ac_status=$?
ac1cb8d3
VS
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
a848cd7e
SC
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
6a5c9b3f
RR
20402 { ac_try='test -z "$ac_cxx_werror_flag"
20403 || test ! -s conftest.err'
ac1cb8d3
VS
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; } &&
20409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; }; then
20415 ac_hi=$ac_mid; break
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20421 if test $ac_lo -le $ac_mid; then
20422 ac_lo= ac_hi=
20423 break
20424 fi
20425 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20426fi
ac1cb8d3 20427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20428 done
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433cat >conftest.$ac_ext <<_ACEOF
20434/* confdefs.h. */
20435_ACEOF
20436cat confdefs.h >>conftest.$ac_ext
20437cat >>conftest.$ac_ext <<_ACEOF
20438/* end confdefs.h. */
20439$ac_includes_default
20440int
20441main ()
20442{
20443static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20444test_array [0] = 0
20445
20446 ;
20447 return 0;
20448}
20449_ACEOF
20450rm -f conftest.$ac_objext
20451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20452 (eval $ac_compile) 2>conftest.er1
a848cd7e 20453 ac_status=$?
ac1cb8d3
VS
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
a848cd7e
SC
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
6a5c9b3f
RR
20459 { ac_try='test -z "$ac_cxx_werror_flag"
20460 || test ! -s conftest.err'
ac1cb8d3
VS
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 ac_hi=-1 ac_mid=-1
20473 while :; do
20474 cat >conftest.$ac_ext <<_ACEOF
20475/* confdefs.h. */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
20479/* end confdefs.h. */
20480$ac_includes_default
20481int
20482main ()
20483{
20484static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20485test_array [0] = 0
20486
20487 ;
20488 return 0;
20489}
20490_ACEOF
20491rm -f conftest.$ac_objext
20492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20493 (eval $ac_compile) 2>conftest.er1
a848cd7e 20494 ac_status=$?
ac1cb8d3
VS
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
a848cd7e
SC
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
6a5c9b3f
RR
20500 { ac_try='test -z "$ac_cxx_werror_flag"
20501 || test ! -s conftest.err'
ac1cb8d3
VS
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; } &&
20507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513 ac_lo=$ac_mid; break
20514else
20515 echo "$as_me: failed program was:" >&5
20516sed 's/^/| /' conftest.$ac_ext >&5
20517
20518ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20519 if test $ac_mid -le $ac_hi; then
20520 ac_lo= ac_hi=
20521 break
20522 fi
20523 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20524fi
ac1cb8d3 20525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20526 done
20527else
20528 echo "$as_me: failed program was:" >&5
20529sed 's/^/| /' conftest.$ac_ext >&5
20530
20531ac_lo= ac_hi=
20532fi
ac1cb8d3 20533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20534fi
ac1cb8d3 20535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20536# Binary search between lo and hi bounds.
20537while test "x$ac_lo" != "x$ac_hi"; do
20538 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20539 cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h. */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
20544/* end confdefs.h. */
20545$ac_includes_default
20546int
20547main ()
20548{
20549static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20550test_array [0] = 0
20551
20552 ;
20553 return 0;
20554}
20555_ACEOF
20556rm -f conftest.$ac_objext
20557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20558 (eval $ac_compile) 2>conftest.er1
a848cd7e 20559 ac_status=$?
ac1cb8d3
VS
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
a848cd7e
SC
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
6a5c9b3f
RR
20565 { ac_try='test -z "$ac_cxx_werror_flag"
20566 || test ! -s conftest.err'
ac1cb8d3
VS
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; } &&
20572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20578 ac_hi=$ac_mid
20579else
20580 echo "$as_me: failed program was:" >&5
20581sed 's/^/| /' conftest.$ac_ext >&5
20582
20583ac_lo=`expr '(' $ac_mid ')' + 1`
20584fi
ac1cb8d3 20585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20586done
20587case $ac_lo in
20588?*) ac_cv_sizeof_long_long=$ac_lo;;
20589'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20590See \`config.log' for more details." >&5
20591echo "$as_me: error: cannot compute sizeof (long long), 77
20592See \`config.log' for more details." >&2;}
20593 { (exit 1); exit 1; }; } ;;
20594esac
20595else
20596 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
20597 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20598See \`config.log' for more details." >&5
20599echo "$as_me: error: cannot run test program while cross compiling
20600See \`config.log' for more details." >&2;}
a848cd7e
SC
20601 { (exit 1); exit 1; }; }
20602else
20603 cat >conftest.$ac_ext <<_ACEOF
20604/* confdefs.h. */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h. */
20609$ac_includes_default
20610long longval () { return (long) (sizeof (long long)); }
20611unsigned long ulongval () { return (long) (sizeof (long long)); }
20612#include <stdio.h>
20613#include <stdlib.h>
20614int
20615main ()
20616{
20617
20618 FILE *f = fopen ("conftest.val", "w");
20619 if (! f)
20620 exit (1);
20621 if (((long) (sizeof (long long))) < 0)
20622 {
20623 long i = longval ();
20624 if (i != ((long) (sizeof (long long))))
20625 exit (1);
20626 fprintf (f, "%ld\n", i);
20627 }
20628 else
20629 {
20630 unsigned long i = ulongval ();
20631 if (i != ((long) (sizeof (long long))))
20632 exit (1);
20633 fprintf (f, "%lu\n", i);
20634 }
20635 exit (ferror (f) || fclose (f) != 0);
20636
20637 ;
20638 return 0;
20639}
20640_ACEOF
20641rm -f conftest$ac_exeext
20642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20643 (eval $ac_link) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 ac_cv_sizeof_long_long=`cat conftest.val`
20653else
20654 echo "$as_me: program exited with status $ac_status" >&5
20655echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658( exit $ac_status )
20659{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20660See \`config.log' for more details." >&5
20661echo "$as_me: error: cannot compute sizeof (long long), 77
20662See \`config.log' for more details." >&2;}
20663 { (exit 1); exit 1; }; }
20664fi
ac1cb8d3 20665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20666fi
20667fi
20668rm -f conftest.val
20669else
20670 ac_cv_sizeof_long_long=0
20671fi
20672fi
20673echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20674echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20675cat >>confdefs.h <<_ACEOF
20676#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20677_ACEOF
20678
20679
20680 ;;
20681 *-hp-hpux* )
20682 echo "$as_me:$LINENO: checking for long long" >&5
20683echo $ECHO_N "checking for long long... $ECHO_C" >&6
20684if test "${ac_cv_type_long_long+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686else
20687 cat >conftest.$ac_ext <<_ACEOF
20688/* confdefs.h. */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
20692/* end confdefs.h. */
20693$ac_includes_default
20694int
20695main ()
20696{
20697if ((long long *) 0)
20698 return 0;
20699if (sizeof (long long))
20700 return 0;
20701 ;
20702 return 0;
20703}
20704_ACEOF
20705rm -f conftest.$ac_objext
20706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20707 (eval $ac_compile) 2>conftest.er1
a848cd7e 20708 ac_status=$?
ac1cb8d3
VS
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
a848cd7e
SC
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
6a5c9b3f
RR
20714 { ac_try='test -z "$ac_cxx_werror_flag"
20715 || test ! -s conftest.err'
ac1cb8d3
VS
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_cv_type_long_long=yes
20728else
20729 echo "$as_me: failed program was:" >&5
20730sed 's/^/| /' conftest.$ac_ext >&5
20731
20732ac_cv_type_long_long=no
20733fi
ac1cb8d3 20734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20735fi
20736echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20737echo "${ECHO_T}$ac_cv_type_long_long" >&6
20738
20739echo "$as_me:$LINENO: checking size of long long" >&5
20740echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20741if test "${ac_cv_sizeof_long_long+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20743else
20744 if test "$ac_cv_type_long_long" = yes; then
20745 # The cast to unsigned long works around a bug in the HP C Compiler
20746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20748 # This bug is HP SR number 8606223364.
20749 if test "$cross_compiling" = yes; then
20750 # Depending upon the size, compute the lo and hi bounds.
20751cat >conftest.$ac_ext <<_ACEOF
20752/* confdefs.h. */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h. */
20757$ac_includes_default
20758int
20759main ()
20760{
20761static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20762test_array [0] = 0
20763
20764 ;
20765 return 0;
20766}
20767_ACEOF
20768rm -f conftest.$ac_objext
20769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20770 (eval $ac_compile) 2>conftest.er1
a848cd7e 20771 ac_status=$?
ac1cb8d3
VS
20772 grep -v '^ *+' conftest.er1 >conftest.err
20773 rm -f conftest.er1
20774 cat conftest.err >&5
a848cd7e
SC
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
6a5c9b3f
RR
20777 { ac_try='test -z "$ac_cxx_werror_flag"
20778 || test ! -s conftest.err'
ac1cb8d3
VS
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20787 ac_status=$?
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; }; then
20790 ac_lo=0 ac_mid=0
20791 while :; do
20792 cat >conftest.$ac_ext <<_ACEOF
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
20798$ac_includes_default
20799int
20800main ()
20801{
20802static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20803test_array [0] = 0
20804
20805 ;
20806 return 0;
20807}
20808_ACEOF
20809rm -f conftest.$ac_objext
20810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20811 (eval $ac_compile) 2>conftest.er1
a848cd7e 20812 ac_status=$?
ac1cb8d3
VS
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
a848cd7e
SC
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
6a5c9b3f
RR
20818 { ac_try='test -z "$ac_cxx_werror_flag"
20819 || test ! -s conftest.err'
ac1cb8d3
VS
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; } &&
20825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 ac_hi=$ac_mid; break
20832else
20833 echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20837 if test $ac_lo -le $ac_mid; then
20838 ac_lo= ac_hi=
20839 break
20840 fi
20841 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20842fi
ac1cb8d3 20843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20844 done
20845else
20846 echo "$as_me: failed program was:" >&5
20847sed 's/^/| /' conftest.$ac_ext >&5
20848
20849cat >conftest.$ac_ext <<_ACEOF
20850/* confdefs.h. */
20851_ACEOF
20852cat confdefs.h >>conftest.$ac_ext
20853cat >>conftest.$ac_ext <<_ACEOF
20854/* end confdefs.h. */
20855$ac_includes_default
20856int
20857main ()
20858{
20859static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20860test_array [0] = 0
20861
20862 ;
20863 return 0;
20864}
20865_ACEOF
20866rm -f conftest.$ac_objext
20867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20868 (eval $ac_compile) 2>conftest.er1
a848cd7e 20869 ac_status=$?
ac1cb8d3
VS
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
a848cd7e
SC
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
6a5c9b3f
RR
20875 { ac_try='test -z "$ac_cxx_werror_flag"
20876 || test ! -s conftest.err'
ac1cb8d3
VS
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; } &&
20882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20885 ac_status=$?
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20888 ac_hi=-1 ac_mid=-1
20889 while :; do
20890 cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h. */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h. */
20896$ac_includes_default
20897int
20898main ()
20899{
20900static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20901test_array [0] = 0
20902
20903 ;
20904 return 0;
20905}
20906_ACEOF
20907rm -f conftest.$ac_objext
20908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20909 (eval $ac_compile) 2>conftest.er1
a848cd7e 20910 ac_status=$?
ac1cb8d3
VS
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
a848cd7e
SC
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
6a5c9b3f
RR
20916 { ac_try='test -z "$ac_cxx_werror_flag"
20917 || test ! -s conftest.err'
ac1cb8d3
VS
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_lo=$ac_mid; break
20930else
20931 echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20935 if test $ac_mid -le $ac_hi; then
20936 ac_lo= ac_hi=
20937 break
20938 fi
20939 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20940fi
ac1cb8d3 20941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20942 done
20943else
20944 echo "$as_me: failed program was:" >&5
20945sed 's/^/| /' conftest.$ac_ext >&5
20946
20947ac_lo= ac_hi=
20948fi
ac1cb8d3 20949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20950fi
ac1cb8d3 20951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20952# Binary search between lo and hi bounds.
20953while test "x$ac_lo" != "x$ac_hi"; do
20954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20955 cat >conftest.$ac_ext <<_ACEOF
20956/* confdefs.h. */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
20960/* end confdefs.h. */
20961$ac_includes_default
20962int
20963main ()
20964{
20965static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20966test_array [0] = 0
20967
20968 ;
20969 return 0;
20970}
20971_ACEOF
20972rm -f conftest.$ac_objext
20973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20974 (eval $ac_compile) 2>conftest.er1
a848cd7e 20975 ac_status=$?
ac1cb8d3
VS
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
a848cd7e
SC
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } &&
6a5c9b3f
RR
20981 { ac_try='test -z "$ac_cxx_werror_flag"
20982 || test ! -s conftest.err'
ac1cb8d3
VS
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_hi=$ac_mid
20995else
20996 echo "$as_me: failed program was:" >&5
20997sed 's/^/| /' conftest.$ac_ext >&5
20998
20999ac_lo=`expr '(' $ac_mid ')' + 1`
21000fi
ac1cb8d3 21001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21002done
21003case $ac_lo in
21004?*) ac_cv_sizeof_long_long=$ac_lo;;
21005'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21006See \`config.log' for more details." >&5
21007echo "$as_me: error: cannot compute sizeof (long long), 77
21008See \`config.log' for more details." >&2;}
21009 { (exit 1); exit 1; }; } ;;
21010esac
21011else
21012 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
21013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21014See \`config.log' for more details." >&5
21015echo "$as_me: error: cannot run test program while cross compiling
21016See \`config.log' for more details." >&2;}
a848cd7e
SC
21017 { (exit 1); exit 1; }; }
21018else
21019 cat >conftest.$ac_ext <<_ACEOF
21020/* confdefs.h. */
21021_ACEOF
21022cat confdefs.h >>conftest.$ac_ext
21023cat >>conftest.$ac_ext <<_ACEOF
21024/* end confdefs.h. */
21025$ac_includes_default
21026long longval () { return (long) (sizeof (long long)); }
21027unsigned long ulongval () { return (long) (sizeof (long long)); }
21028#include <stdio.h>
21029#include <stdlib.h>
21030int
21031main ()
21032{
21033
21034 FILE *f = fopen ("conftest.val", "w");
21035 if (! f)
21036 exit (1);
21037 if (((long) (sizeof (long long))) < 0)
21038 {
21039 long i = longval ();
21040 if (i != ((long) (sizeof (long long))))
21041 exit (1);
21042 fprintf (f, "%ld\n", i);
21043 }
21044 else
21045 {
21046 unsigned long i = ulongval ();
21047 if (i != ((long) (sizeof (long long))))
21048 exit (1);
21049 fprintf (f, "%lu\n", i);
21050 }
21051 exit (ferror (f) || fclose (f) != 0);
21052
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest$ac_exeext
21058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21059 (eval $ac_link) 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 ac_cv_sizeof_long_long=`cat conftest.val`
21069else
21070 echo "$as_me: program exited with status $ac_status" >&5
21071echo "$as_me: failed program was:" >&5
21072sed 's/^/| /' conftest.$ac_ext >&5
21073
21074( exit $ac_status )
21075{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21076See \`config.log' for more details." >&5
21077echo "$as_me: error: cannot compute sizeof (long long), 77
21078See \`config.log' for more details." >&2;}
21079 { (exit 1); exit 1; }; }
21080fi
ac1cb8d3 21081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21082fi
21083fi
21084rm -f conftest.val
21085else
21086 ac_cv_sizeof_long_long=0
21087fi
21088fi
21089echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21090echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21091cat >>confdefs.h <<_ACEOF
21092#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21093_ACEOF
21094
21095
21096 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21097 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21098 fi
21099 ;;
21100 * )
21101 echo "$as_me:$LINENO: checking for long long" >&5
21102echo $ECHO_N "checking for long long... $ECHO_C" >&6
21103if test "${ac_cv_type_long_long+set}" = set; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21105else
21106 cat >conftest.$ac_ext <<_ACEOF
21107/* confdefs.h. */
21108_ACEOF
21109cat confdefs.h >>conftest.$ac_ext
21110cat >>conftest.$ac_ext <<_ACEOF
21111/* end confdefs.h. */
21112$ac_includes_default
21113int
21114main ()
21115{
21116if ((long long *) 0)
21117 return 0;
21118if (sizeof (long long))
21119 return 0;
21120 ;
21121 return 0;
21122}
21123_ACEOF
21124rm -f conftest.$ac_objext
21125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21126 (eval $ac_compile) 2>conftest.er1
a848cd7e 21127 ac_status=$?
ac1cb8d3
VS
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
a848cd7e
SC
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } &&
6a5c9b3f
RR
21133 { ac_try='test -z "$ac_cxx_werror_flag"
21134 || test ! -s conftest.err'
ac1cb8d3
VS
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; } &&
21140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146 ac_cv_type_long_long=yes
21147else
21148 echo "$as_me: failed program was:" >&5
21149sed 's/^/| /' conftest.$ac_ext >&5
21150
21151ac_cv_type_long_long=no
21152fi
ac1cb8d3 21153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21154fi
21155echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21156echo "${ECHO_T}$ac_cv_type_long_long" >&6
21157
21158echo "$as_me:$LINENO: checking size of long long" >&5
21159echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21160if test "${ac_cv_sizeof_long_long+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162else
21163 if test "$ac_cv_type_long_long" = yes; then
21164 # The cast to unsigned long works around a bug in the HP C Compiler
21165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21167 # This bug is HP SR number 8606223364.
21168 if test "$cross_compiling" = yes; then
21169 # Depending upon the size, compute the lo and hi bounds.
21170cat >conftest.$ac_ext <<_ACEOF
21171/* confdefs.h. */
21172_ACEOF
21173cat confdefs.h >>conftest.$ac_ext
21174cat >>conftest.$ac_ext <<_ACEOF
21175/* end confdefs.h. */
21176$ac_includes_default
21177int
21178main ()
21179{
21180static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21181test_array [0] = 0
21182
21183 ;
21184 return 0;
21185}
21186_ACEOF
21187rm -f conftest.$ac_objext
21188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21189 (eval $ac_compile) 2>conftest.er1
a848cd7e 21190 ac_status=$?
ac1cb8d3
VS
21191 grep -v '^ *+' conftest.er1 >conftest.err
21192 rm -f conftest.er1
21193 cat conftest.err >&5
a848cd7e
SC
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
6a5c9b3f
RR
21196 { ac_try='test -z "$ac_cxx_werror_flag"
21197 || test ! -s conftest.err'
ac1cb8d3
VS
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 ac_lo=0 ac_mid=0
21210 while :; do
21211 cat >conftest.$ac_ext <<_ACEOF
21212/* confdefs.h. */
21213_ACEOF
21214cat confdefs.h >>conftest.$ac_ext
21215cat >>conftest.$ac_ext <<_ACEOF
21216/* end confdefs.h. */
21217$ac_includes_default
21218int
21219main ()
21220{
21221static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21222test_array [0] = 0
21223
21224 ;
21225 return 0;
21226}
21227_ACEOF
21228rm -f conftest.$ac_objext
21229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21230 (eval $ac_compile) 2>conftest.er1
a848cd7e 21231 ac_status=$?
ac1cb8d3
VS
21232 grep -v '^ *+' conftest.er1 >conftest.err
21233 rm -f conftest.er1
21234 cat conftest.err >&5
a848cd7e
SC
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
6a5c9b3f
RR
21237 { ac_try='test -z "$ac_cxx_werror_flag"
21238 || test ! -s conftest.err'
ac1cb8d3
VS
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; } &&
21244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 ac_hi=$ac_mid; break
21251else
21252 echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21256 if test $ac_lo -le $ac_mid; then
21257 ac_lo= ac_hi=
21258 break
21259 fi
21260 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21261fi
ac1cb8d3 21262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21263 done
21264else
21265 echo "$as_me: failed program was:" >&5
21266sed 's/^/| /' conftest.$ac_ext >&5
21267
21268cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274$ac_includes_default
21275int
21276main ()
21277{
21278static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21279test_array [0] = 0
21280
21281 ;
21282 return 0;
21283}
21284_ACEOF
21285rm -f conftest.$ac_objext
21286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21287 (eval $ac_compile) 2>conftest.er1
a848cd7e 21288 ac_status=$?
ac1cb8d3
VS
21289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
a848cd7e
SC
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
6a5c9b3f
RR
21294 { ac_try='test -z "$ac_cxx_werror_flag"
21295 || test ! -s conftest.err'
ac1cb8d3
VS
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ac_hi=-1 ac_mid=-1
21308 while :; do
21309 cat >conftest.$ac_ext <<_ACEOF
21310/* confdefs.h. */
21311_ACEOF
21312cat confdefs.h >>conftest.$ac_ext
21313cat >>conftest.$ac_ext <<_ACEOF
21314/* end confdefs.h. */
21315$ac_includes_default
21316int
21317main ()
21318{
21319static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21320test_array [0] = 0
21321
21322 ;
21323 return 0;
21324}
21325_ACEOF
21326rm -f conftest.$ac_objext
21327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21328 (eval $ac_compile) 2>conftest.er1
a848cd7e 21329 ac_status=$?
ac1cb8d3
VS
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
a848cd7e
SC
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
6a5c9b3f
RR
21335 { ac_try='test -z "$ac_cxx_werror_flag"
21336 || test ! -s conftest.err'
ac1cb8d3
VS
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; } &&
21342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ac_lo=$ac_mid; break
21349else
21350 echo "$as_me: failed program was:" >&5
21351sed 's/^/| /' conftest.$ac_ext >&5
21352
21353ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21354 if test $ac_mid -le $ac_hi; then
21355 ac_lo= ac_hi=
21356 break
21357 fi
21358 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21359fi
ac1cb8d3 21360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21361 done
21362else
21363 echo "$as_me: failed program was:" >&5
21364sed 's/^/| /' conftest.$ac_ext >&5
21365
21366ac_lo= ac_hi=
21367fi
ac1cb8d3 21368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21369fi
ac1cb8d3 21370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21371# Binary search between lo and hi bounds.
21372while test "x$ac_lo" != "x$ac_hi"; do
21373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21374 cat >conftest.$ac_ext <<_ACEOF
21375/* confdefs.h. */
21376_ACEOF
21377cat confdefs.h >>conftest.$ac_ext
21378cat >>conftest.$ac_ext <<_ACEOF
21379/* end confdefs.h. */
21380$ac_includes_default
21381int
21382main ()
21383{
21384static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21385test_array [0] = 0
21386
21387 ;
21388 return 0;
21389}
21390_ACEOF
21391rm -f conftest.$ac_objext
21392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21393 (eval $ac_compile) 2>conftest.er1
a848cd7e 21394 ac_status=$?
ac1cb8d3
VS
21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
a848cd7e
SC
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } &&
6a5c9b3f
RR
21400 { ac_try='test -z "$ac_cxx_werror_flag"
21401 || test ! -s conftest.err'
ac1cb8d3
VS
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21404 ac_status=$?
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; } &&
21407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413 ac_hi=$ac_mid
21414else
21415 echo "$as_me: failed program was:" >&5
21416sed 's/^/| /' conftest.$ac_ext >&5
21417
21418ac_lo=`expr '(' $ac_mid ')' + 1`
21419fi
ac1cb8d3 21420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21421done
21422case $ac_lo in
21423?*) ac_cv_sizeof_long_long=$ac_lo;;
21424'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21425See \`config.log' for more details." >&5
21426echo "$as_me: error: cannot compute sizeof (long long), 77
21427See \`config.log' for more details." >&2;}
21428 { (exit 1); exit 1; }; } ;;
21429esac
21430else
21431 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
21432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21433See \`config.log' for more details." >&5
21434echo "$as_me: error: cannot run test program while cross compiling
21435See \`config.log' for more details." >&2;}
a848cd7e
SC
21436 { (exit 1); exit 1; }; }
21437else
21438 cat >conftest.$ac_ext <<_ACEOF
21439/* confdefs.h. */
21440_ACEOF
21441cat confdefs.h >>conftest.$ac_ext
21442cat >>conftest.$ac_ext <<_ACEOF
21443/* end confdefs.h. */
21444$ac_includes_default
21445long longval () { return (long) (sizeof (long long)); }
21446unsigned long ulongval () { return (long) (sizeof (long long)); }
21447#include <stdio.h>
21448#include <stdlib.h>
21449int
21450main ()
21451{
21452
21453 FILE *f = fopen ("conftest.val", "w");
21454 if (! f)
21455 exit (1);
21456 if (((long) (sizeof (long long))) < 0)
21457 {
21458 long i = longval ();
21459 if (i != ((long) (sizeof (long long))))
21460 exit (1);
21461 fprintf (f, "%ld\n", i);
21462 }
21463 else
21464 {
21465 unsigned long i = ulongval ();
21466 if (i != ((long) (sizeof (long long))))
21467 exit (1);
21468 fprintf (f, "%lu\n", i);
21469 }
21470 exit (ferror (f) || fclose (f) != 0);
21471
21472 ;
21473 return 0;
21474}
21475_ACEOF
21476rm -f conftest$ac_exeext
21477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21478 (eval $ac_link) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 ac_cv_sizeof_long_long=`cat conftest.val`
21488else
21489 echo "$as_me: program exited with status $ac_status" >&5
21490echo "$as_me: failed program was:" >&5
21491sed 's/^/| /' conftest.$ac_ext >&5
21492
21493( exit $ac_status )
21494{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21495See \`config.log' for more details." >&5
21496echo "$as_me: error: cannot compute sizeof (long long), 77
21497See \`config.log' for more details." >&2;}
21498 { (exit 1); exit 1; }; }
21499fi
ac1cb8d3 21500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21501fi
21502fi
21503rm -f conftest.val
21504else
21505 ac_cv_sizeof_long_long=0
21506fi
21507fi
21508echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21509echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21510cat >>confdefs.h <<_ACEOF
21511#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21512_ACEOF
21513
21514
21515esac
21516
238ecede
MW
21517echo "$as_me:$LINENO: checking for wchar_t" >&5
21518echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21519if test "${ac_cv_type_wchar_t+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521else
21522 cat >conftest.$ac_ext <<_ACEOF
21523/* confdefs.h. */
21524_ACEOF
21525cat confdefs.h >>conftest.$ac_ext
21526cat >>conftest.$ac_ext <<_ACEOF
21527/* end confdefs.h. */
21528
83d8eb47
MW
21529 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21530 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21531 # error "fake wchar_t"
21532 #endif
21533 #ifdef HAVE_WCHAR_H
21534 # ifdef __CYGWIN__
21535 # include <stddef.h>
21536 # endif
21537 # include <wchar.h>
21538 #endif
21539 #ifdef HAVE_STDLIB_H
21540 # include <stdlib.h>
21541 #endif
21542 #include <stdio.h>
21543
21544
21545
21546int
21547main ()
21548{
21549if ((wchar_t *) 0)
21550 return 0;
21551if (sizeof (wchar_t))
21552 return 0;
21553 ;
21554 return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext
21558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
6a5c9b3f
RR
21566 { ac_try='test -z "$ac_cxx_werror_flag"
21567 || test ! -s conftest.err'
238ecede
MW
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_type_wchar_t=yes
21580else
21581 echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
21584ac_cv_type_wchar_t=no
21585fi
21586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21587fi
21588echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21589echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21590
a848cd7e
SC
21591echo "$as_me:$LINENO: checking size of wchar_t" >&5
21592echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21593if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595else
238ecede
MW
21596 if test "$ac_cv_type_wchar_t" = yes; then
21597 # The cast to unsigned long works around a bug in the HP C Compiler
21598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21600 # This bug is HP SR number 8606223364.
21601 if test "$cross_compiling" = yes; then
21602 # Depending upon the size, compute the lo and hi bounds.
21603cat >conftest.$ac_ext <<_ACEOF
21604/* confdefs.h. */
21605_ACEOF
21606cat confdefs.h >>conftest.$ac_ext
21607cat >>conftest.$ac_ext <<_ACEOF
21608/* end confdefs.h. */
21609
83d8eb47
MW
21610 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21611 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21612 # error "fake wchar_t"
21613 #endif
21614 #ifdef HAVE_WCHAR_H
21615 # ifdef __CYGWIN__
21616 # include <stddef.h>
21617 # endif
21618 # include <wchar.h>
21619 #endif
21620 #ifdef HAVE_STDLIB_H
21621 # include <stdlib.h>
21622 #endif
21623 #include <stdio.h>
21624
21625
21626
21627int
21628main ()
21629{
21630static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21631test_array [0] = 0
21632
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext
21638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21639 (eval $ac_compile) 2>conftest.er1
21640 ac_status=$?
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
6a5c9b3f
RR
21646 { ac_try='test -z "$ac_cxx_werror_flag"
21647 || test ! -s conftest.err'
238ecede
MW
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; } &&
21653 { ac_try='test -s conftest.$ac_objext'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 ac_lo=0 ac_mid=0
21660 while :; do
21661 cat >conftest.$ac_ext <<_ACEOF
21662/* confdefs.h. */
21663_ACEOF
21664cat confdefs.h >>conftest.$ac_ext
21665cat >>conftest.$ac_ext <<_ACEOF
21666/* end confdefs.h. */
21667
83d8eb47
MW
21668 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21669 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21670 # error "fake wchar_t"
21671 #endif
21672 #ifdef HAVE_WCHAR_H
21673 # ifdef __CYGWIN__
21674 # include <stddef.h>
21675 # endif
21676 # include <wchar.h>
21677 #endif
21678 #ifdef HAVE_STDLIB_H
21679 # include <stdlib.h>
21680 #endif
21681 #include <stdio.h>
21682
21683
21684
21685int
21686main ()
21687{
21688static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21689test_array [0] = 0
21690
21691 ;
21692 return 0;
21693}
21694_ACEOF
21695rm -f conftest.$ac_objext
21696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21697 (eval $ac_compile) 2>conftest.er1
21698 ac_status=$?
21699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } &&
6a5c9b3f
RR
21704 { ac_try='test -z "$ac_cxx_werror_flag"
21705 || test ! -s conftest.err'
238ecede
MW
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; } &&
21711 { ac_try='test -s conftest.$ac_objext'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
21717 ac_hi=$ac_mid; break
21718else
21719 echo "$as_me: failed program was:" >&5
21720sed 's/^/| /' conftest.$ac_ext >&5
21721
21722ac_lo=`expr $ac_mid + 1`
21723 if test $ac_lo -le $ac_mid; then
21724 ac_lo= ac_hi=
21725 break
21726 fi
21727 ac_mid=`expr 2 '*' $ac_mid + 1`
21728fi
21729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21730 done
21731else
21732 echo "$as_me: failed program was:" >&5
21733sed 's/^/| /' conftest.$ac_ext >&5
21734
21735cat >conftest.$ac_ext <<_ACEOF
21736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
21741
83d8eb47
MW
21742 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21743 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21744 # error "fake wchar_t"
21745 #endif
21746 #ifdef HAVE_WCHAR_H
21747 # ifdef __CYGWIN__
21748 # include <stddef.h>
21749 # endif
21750 # include <wchar.h>
21751 #endif
21752 #ifdef HAVE_STDLIB_H
21753 # include <stdlib.h>
21754 #endif
21755 #include <stdio.h>
21756
21757
21758
21759int
21760main ()
21761{
21762static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21763test_array [0] = 0
21764
21765 ;
21766 return 0;
21767}
21768_ACEOF
21769rm -f conftest.$ac_objext
21770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21771 (eval $ac_compile) 2>conftest.er1
21772 ac_status=$?
21773 grep -v '^ *+' conftest.er1 >conftest.err
21774 rm -f conftest.er1
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } &&
6a5c9b3f
RR
21778 { ac_try='test -z "$ac_cxx_werror_flag"
21779 || test ! -s conftest.err'
238ecede
MW
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest.$ac_objext'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ac_hi=-1 ac_mid=-1
21792 while :; do
21793 cat >conftest.$ac_ext <<_ACEOF
21794/* confdefs.h. */
21795_ACEOF
21796cat confdefs.h >>conftest.$ac_ext
21797cat >>conftest.$ac_ext <<_ACEOF
21798/* end confdefs.h. */
21799
83d8eb47
MW
21800 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21801 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21802 # error "fake wchar_t"
21803 #endif
21804 #ifdef HAVE_WCHAR_H
21805 # ifdef __CYGWIN__
21806 # include <stddef.h>
21807 # endif
21808 # include <wchar.h>
21809 #endif
21810 #ifdef HAVE_STDLIB_H
21811 # include <stdlib.h>
21812 #endif
21813 #include <stdio.h>
21814
21815
21816
21817int
21818main ()
21819{
21820static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21821test_array [0] = 0
21822
21823 ;
21824 return 0;
21825}
21826_ACEOF
21827rm -f conftest.$ac_objext
21828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21829 (eval $ac_compile) 2>conftest.er1
21830 ac_status=$?
21831 grep -v '^ *+' conftest.er1 >conftest.err
21832 rm -f conftest.er1
21833 cat conftest.err >&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } &&
6a5c9b3f
RR
21836 { ac_try='test -z "$ac_cxx_werror_flag"
21837 || test ! -s conftest.err'
238ecede
MW
21838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839 (eval $ac_try) 2>&5
21840 ac_status=$?
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; } &&
21843 { ac_try='test -s conftest.$ac_objext'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ac_lo=$ac_mid; break
21850else
21851 echo "$as_me: failed program was:" >&5
21852sed 's/^/| /' conftest.$ac_ext >&5
21853
21854ac_hi=`expr '(' $ac_mid ')' - 1`
21855 if test $ac_mid -le $ac_hi; then
21856 ac_lo= ac_hi=
21857 break
21858 fi
21859 ac_mid=`expr 2 '*' $ac_mid`
21860fi
21861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21862 done
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867ac_lo= ac_hi=
21868fi
21869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21870fi
21871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21872# Binary search between lo and hi bounds.
21873while test "x$ac_lo" != "x$ac_hi"; do
21874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21875 cat >conftest.$ac_ext <<_ACEOF
21876/* confdefs.h. */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h. */
21881
83d8eb47
MW
21882 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21883 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21884 # error "fake wchar_t"
21885 #endif
21886 #ifdef HAVE_WCHAR_H
21887 # ifdef __CYGWIN__
21888 # include <stddef.h>
21889 # endif
21890 # include <wchar.h>
21891 #endif
21892 #ifdef HAVE_STDLIB_H
21893 # include <stdlib.h>
21894 #endif
21895 #include <stdio.h>
a848cd7e 21896
a848cd7e 21897
a848cd7e 21898
238ecede
MW
21899int
21900main ()
21901{
21902static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21903test_array [0] = 0
a848cd7e 21904
238ecede
MW
21905 ;
21906 return 0;
21907}
21908_ACEOF
21909rm -f conftest.$ac_objext
21910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21911 (eval $ac_compile) 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } &&
6a5c9b3f
RR
21918 { ac_try='test -z "$ac_cxx_werror_flag"
21919 || test ! -s conftest.err'
238ecede
MW
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; } &&
21925 { ac_try='test -s conftest.$ac_objext'
21926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21928 ac_status=$?
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; }; then
21931 ac_hi=$ac_mid
21932else
21933 echo "$as_me: failed program was:" >&5
21934sed 's/^/| /' conftest.$ac_ext >&5
21935
21936ac_lo=`expr '(' $ac_mid ')' + 1`
21937fi
21938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21939done
21940case $ac_lo in
21941?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21942'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21943See \`config.log' for more details." >&5
21944echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21945See \`config.log' for more details." >&2;}
21946 { (exit 1); exit 1; }; } ;;
21947esac
21948else
21949 if test "$cross_compiling" = yes; then
6a5c9b3f
RR
21950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21951See \`config.log' for more details." >&5
21952echo "$as_me: error: cannot run test program while cross compiling
21953See \`config.log' for more details." >&2;}
238ecede 21954 { (exit 1); exit 1; }; }
a848cd7e
SC
21955else
21956 cat >conftest.$ac_ext <<_ACEOF
21957/* confdefs.h. */
21958_ACEOF
21959cat confdefs.h >>conftest.$ac_ext
21960cat >>conftest.$ac_ext <<_ACEOF
21961/* end confdefs.h. */
21962
83d8eb47
MW
21963 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21964 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21965 # error "fake wchar_t"
21966 #endif
21967 #ifdef HAVE_WCHAR_H
21968 # ifdef __CYGWIN__
21969 # include <stddef.h>
21970 # endif
21971 # include <wchar.h>
21972 #endif
21973 #ifdef HAVE_STDLIB_H
21974 # include <stdlib.h>
21975 #endif
21976 #include <stdio.h>
21977
21978
21979
21980long longval () { return (long) (sizeof (wchar_t)); }
21981unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21982#include <stdio.h>
21983#include <stdlib.h>
21984int
21985main ()
21986{
a848cd7e 21987
238ecede
MW
21988 FILE *f = fopen ("conftest.val", "w");
21989 if (! f)
21990 exit (1);
21991 if (((long) (sizeof (wchar_t))) < 0)
21992 {
21993 long i = longval ();
21994 if (i != ((long) (sizeof (wchar_t))))
21995 exit (1);
21996 fprintf (f, "%ld\n", i);
21997 }
21998 else
21999 {
22000 unsigned long i = ulongval ();
22001 if (i != ((long) (sizeof (wchar_t))))
22002 exit (1);
22003 fprintf (f, "%lu\n", i);
22004 }
22005 exit (ferror (f) || fclose (f) != 0);
22006
22007 ;
22008 return 0;
22009}
a848cd7e
SC
22010_ACEOF
22011rm -f conftest$ac_exeext
22012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013 (eval $ac_link) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22018 (eval $ac_try) 2>&5
22019 ac_status=$?
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); }; }; then
238ecede 22022 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22023else
22024 echo "$as_me: program exited with status $ac_status" >&5
22025echo "$as_me: failed program was:" >&5
22026sed 's/^/| /' conftest.$ac_ext >&5
22027
22028( exit $ac_status )
238ecede
MW
22029{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22030See \`config.log' for more details." >&5
22031echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22032See \`config.log' for more details." >&2;}
22033 { (exit 1); exit 1; }; }
a848cd7e 22034fi
ac1cb8d3 22035rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22036fi
a848cd7e 22037fi
238ecede
MW
22038rm -f conftest.val
22039else
22040 ac_cv_sizeof_wchar_t=0
22041fi
22042fi
22043echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22044echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22045cat >>confdefs.h <<_ACEOF
238ecede 22046#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22047_ACEOF
22048
22049
47a7e797
MW
22050if test "$ac_cv_sizeof_wchar_t" != "0"; then
22051 wxUSE_WCHAR_T=yes
22052else
22053 wxUSE_WCHAR_T=no
22054fi
238ecede 22055
ba3d13e1
VZ
22056echo "$as_me:$LINENO: checking for va_copy" >&5
22057echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22058if test "${wx_cv_func_va_copy+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060else
22061
22062 cat >conftest.$ac_ext <<_ACEOF
22063
22064 #include <stdarg.h>
22065 void foo(char *f, ...)
22066 {
22067 va_list ap1, ap2;
22068 va_start(ap1, f);
22069 va_copy(ap2, ap1);
22070 va_end(ap2);
22071 va_end(ap1);
22072 }
5886b072
VZ
22073 int main()
22074 {
b902e639
VZ
22075 foo("hi", 17);
22076 return 0;
5886b072 22077 }
ba3d13e1
VZ
22078_ACEOF
22079rm -f conftest.$ac_objext conftest$ac_exeext
22080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22081 (eval $ac_link) 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
6a5c9b3f
RR
22088 { ac_try='test -z "$ac_cxx_werror_flag"
22089 || test ! -s conftest.err'
ba3d13e1
VZ
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; } &&
22095 { ac_try='test -s conftest$ac_exeext'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 wx_cv_func_va_copy=yes
22102else
22103 echo "$as_me: failed program was:" >&5
22104sed 's/^/| /' conftest.$ac_ext >&5
22105
22106wx_cv_func_va_copy=no
22107
22108fi
22109rm -f conftest.err conftest.$ac_objext \
22110 conftest$ac_exeext conftest.$ac_ext
22111
22112
22113fi
22114echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22115echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22116
22117if test $wx_cv_func_va_copy = "yes"; then
22118 cat >>confdefs.h <<\_ACEOF
22119#define HAVE_VA_COPY 1
22120_ACEOF
22121
22122else
22123 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22124echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22125if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127else
22128
22129 if test "$cross_compiling" = yes; then
22130 wx_cv_type_va_list_lvalue=yes
22131
22132else
22133 cat >conftest.$ac_ext <<_ACEOF
22134
22135 #include <stdarg.h>
22136 int foo(char *f, ...)
22137 {
22138 va_list ap1, ap2;
22139 va_start(ap1, f);
22140 ap2 = ap1;
22141 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22142 return 1;
22143 va_end(ap2);
22144 va_end(ap1);
22145 return 0;
22146 }
22147 int main()
22148 {
22149 return foo("hi", 17);
22150 }
22151_ACEOF
22152rm -f conftest$ac_exeext
22153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22154 (eval $ac_link) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 wx_cv_type_va_list_lvalue=yes
22164else
22165 echo "$as_me: program exited with status $ac_status" >&5
22166echo "$as_me: failed program was:" >&5
22167sed 's/^/| /' conftest.$ac_ext >&5
22168
22169( exit $ac_status )
22170wx_cv_type_va_list_lvalue=no
22171fi
22172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22173fi
22174
22175
22176fi
22177echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22178echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22179
22180 if test $wx_cv_type_va_list_lvalue != "yes"; then
22181 cat >>confdefs.h <<\_ACEOF
22182#define VA_LIST_IS_ARRAY 1
22183_ACEOF
22184
22185 fi
22186fi
22187
ca766534
VS
22188echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22189echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22190if test "${wx_cv_have_variadic_macros+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22192else
22193
22194 cat >conftest.$ac_ext <<_ACEOF
22195/* confdefs.h. */
22196_ACEOF
22197cat confdefs.h >>conftest.$ac_ext
22198cat >>conftest.$ac_ext <<_ACEOF
22199/* end confdefs.h. */
22200
22201 #include <stdio.h>
22202 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22203
22204int
22205main ()
22206{
22207
22208 test("%s %d %p", "test", 1, 0);
22209
22210
22211 ;
22212 return 0;
22213}
22214_ACEOF
22215rm -f conftest.$ac_objext
22216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217 (eval $ac_compile) 2>conftest.er1
22218 ac_status=$?
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } &&
6a5c9b3f
RR
22224 { ac_try='test -z "$ac_cxx_werror_flag"
22225 || test ! -s conftest.err'
ca766534
VS
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22228 ac_status=$?
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; } &&
22231 { ac_try='test -s conftest.$ac_objext'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 wx_cv_have_variadic_macros=yes
22238else
22239 echo "$as_me: failed program was:" >&5
22240sed 's/^/| /' conftest.$ac_ext >&5
22241
22242wx_cv_have_variadic_macros=no
22243
22244fi
22245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22246
22247
22248fi
22249echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22250echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22251
22252if test $wx_cv_have_variadic_macros = "yes"; then
22253 cat >>confdefs.h <<\_ACEOF
22254#define HAVE_VARIADIC_MACROS 1
22255_ACEOF
22256
22257fi
22258
a848cd7e
SC
22259# Check whether --enable-largefile or --disable-largefile was given.
22260if test "${enable_largefile+set}" = set; then
22261 enableval="$enable_largefile"
22262
22263fi;
22264if test "$enable_largefile" != no; then
22265 wx_largefile=no
22266
22267 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22268echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22269if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22271else
22272
22273 cat >conftest.$ac_ext <<_ACEOF
22274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
22279#define _FILE_OFFSET_BITS 64
22280 #include <sys/types.h>
22281int
22282main ()
22283{
22284typedef struct {
22285 unsigned int field: sizeof(off_t) == 8;
22286} wxlf;
22287
22288 ;
22289 return 0;
22290}
22291_ACEOF
22292rm -f conftest.$ac_objext
22293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22294 (eval $ac_compile) 2>conftest.er1
a848cd7e 22295 ac_status=$?
ac1cb8d3
VS
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
a848cd7e
SC
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
6a5c9b3f
RR
22301 { ac_try='test -z "$ac_cxx_werror_flag"
22302 || test ! -s conftest.err'
ac1cb8d3
VS
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; } &&
22308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }; then
22314 ac_cv_sys_file_offset_bits=64
22315else
22316 echo "$as_me: failed program was:" >&5
22317sed 's/^/| /' conftest.$ac_ext >&5
22318
22319ac_cv_sys_file_offset_bits=no
22320fi
ac1cb8d3 22321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22322
22323
22324fi
22325echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22326echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22327
22328 if test "$ac_cv_sys_file_offset_bits" != no; then
22329 wx_largefile=yes
22330 cat >>confdefs.h <<_ACEOF
22331#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22332_ACEOF
22333
22334 fi
22335
22336 if test "x$wx_largefile" != "xyes"; then
22337
22338 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22339echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22340if test "${ac_cv_sys_large_files+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22342else
22343
22344 cat >conftest.$ac_ext <<_ACEOF
22345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
22350#define _LARGE_FILES 1
22351 #include <sys/types.h>
22352int
22353main ()
22354{
22355typedef struct {
22356 unsigned int field: sizeof(off_t) == 8;
22357} wxlf;
22358
22359 ;
22360 return 0;
22361}
22362_ACEOF
22363rm -f conftest.$ac_objext
22364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22365 (eval $ac_compile) 2>conftest.er1
a848cd7e 22366 ac_status=$?
ac1cb8d3
VS
22367 grep -v '^ *+' conftest.er1 >conftest.err
22368 rm -f conftest.er1
22369 cat conftest.err >&5
a848cd7e
SC
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } &&
6a5c9b3f
RR
22372 { ac_try='test -z "$ac_cxx_werror_flag"
22373 || test ! -s conftest.err'
ac1cb8d3
VS
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22376 ac_status=$?
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; } &&
22379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; }; then
22385 ac_cv_sys_large_files=1
22386else
22387 echo "$as_me: failed program was:" >&5
22388sed 's/^/| /' conftest.$ac_ext >&5
22389
22390ac_cv_sys_large_files=no
22391fi
ac1cb8d3 22392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22393
22394
22395fi
22396echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22397echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22398
22399 if test "$ac_cv_sys_large_files" != no; then
22400 wx_largefile=yes
22401 cat >>confdefs.h <<_ACEOF
22402#define _LARGE_FILES $ac_cv_sys_large_files
22403_ACEOF
22404
22405 fi
22406
22407 fi
22408
22409 echo "$as_me:$LINENO: checking if large file support is available" >&5
22410echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22411 if test "x$wx_largefile" = "xyes"; then
22412 cat >>confdefs.h <<\_ACEOF
22413#define HAVE_LARGEFILE_SUPPORT 1
22414_ACEOF
22415
22416 fi
22417 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22418echo "${ECHO_T}$wx_largefile" >&6
22419fi
22420
5b674b9d
DE
22421
22422if test "x$wx_largefile" = "xyes"; then
22423 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22424 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22425
22426 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22427 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22428echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22429if test "${wx_cv_STDC_EXT_required+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22431else
22432
00421666
MW
22433 cat >conftest.$ac_ext <<_ACEOF
22434/* confdefs.h. */
22435_ACEOF
22436cat confdefs.h >>conftest.$ac_ext
22437cat >>conftest.$ac_ext <<_ACEOF
22438/* end confdefs.h. */
22439
22440int
22441main ()
22442{
22443
22444 #ifndef __STDC_EXT__
22445 choke me
22446 #endif
22447
22448 ;
22449 return 0;
22450}
22451_ACEOF
22452rm -f conftest.$ac_objext
22453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22454 (eval $ac_compile) 2>conftest.er1
22455 ac_status=$?
22456 grep -v '^ *+' conftest.er1 >conftest.err
22457 rm -f conftest.er1
22458 cat conftest.err >&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } &&
6a5c9b3f
RR
22461 { ac_try='test -z "$ac_cxx_werror_flag"
22462 || test ! -s conftest.err'
00421666
MW
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try='test -s conftest.$ac_objext'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; }; then
22474 wx_cv_STDC_EXT_required=no
22475else
22476 echo "$as_me: failed program was:" >&5
22477sed 's/^/| /' conftest.$ac_ext >&5
22478
22479wx_cv_STDC_EXT_required=yes
22480
22481fi
22482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22483
22484
22485fi
22486echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22487echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22488 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22489 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22490 fi
22491 fi
5b674b9d 22492 else
5ff751d6 22493 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22494 fi
22495 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22496echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22497if test "${ac_cv_sys_largefile_source+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22499else
22500 while :; do
22501 ac_cv_sys_largefile_source=no
22502 cat >conftest.$ac_ext <<_ACEOF
22503/* confdefs.h. */
22504_ACEOF
22505cat confdefs.h >>conftest.$ac_ext
22506cat >>conftest.$ac_ext <<_ACEOF
22507/* end confdefs.h. */
22508#include <stdio.h>
22509int
22510main ()
22511{
22512return !fseeko;
22513 ;
22514 return 0;
22515}
22516_ACEOF
22517rm -f conftest.$ac_objext
22518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22519 (eval $ac_compile) 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
6a5c9b3f
RR
22526 { ac_try='test -z "$ac_cxx_werror_flag"
22527 || test ! -s conftest.err'
5294a27e
VZ
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try='test -s conftest.$ac_objext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 break
22540else
22541 echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544fi
22545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h. */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h. */
22552#define _LARGEFILE_SOURCE 1
22553#include <stdio.h>
22554int
22555main ()
22556{
22557return !fseeko;
22558 ;
22559 return 0;
22560}
22561_ACEOF
22562rm -f conftest.$ac_objext
22563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22564 (eval $ac_compile) 2>conftest.er1
22565 ac_status=$?
22566 grep -v '^ *+' conftest.er1 >conftest.err
22567 rm -f conftest.er1
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } &&
6a5c9b3f
RR
22571 { ac_try='test -z "$ac_cxx_werror_flag"
22572 || test ! -s conftest.err'
5294a27e
VZ
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest.$ac_objext'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 ac_cv_sys_largefile_source=1; break
22585else
22586 echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589fi
22590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22591 break
22592done
22593fi
22594echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22595echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22596if test "$ac_cv_sys_largefile_source" != no; then
22597
22598cat >>confdefs.h <<_ACEOF
22599#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22600_ACEOF
22601
22602fi
22603rm -f conftest*
22604
22605# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22606# in glibc 2.1.3, but that breaks too many other things.
22607# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22608echo "$as_me:$LINENO: checking for fseeko" >&5
22609echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22610if test "${ac_cv_func_fseeko+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22612else
22613 cat >conftest.$ac_ext <<_ACEOF
22614/* confdefs.h. */
22615_ACEOF
22616cat confdefs.h >>conftest.$ac_ext
22617cat >>conftest.$ac_ext <<_ACEOF
22618/* end confdefs.h. */
22619#include <stdio.h>
22620int
22621main ()
22622{
22623return fseeko && fseeko (stdin, 0, 0);
22624 ;
22625 return 0;
22626}
22627_ACEOF
22628rm -f conftest.$ac_objext conftest$ac_exeext
22629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22630 (eval $ac_link) 2>conftest.er1
22631 ac_status=$?
22632 grep -v '^ *+' conftest.er1 >conftest.err
22633 rm -f conftest.er1
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } &&
6a5c9b3f
RR
22637 { ac_try='test -z "$ac_cxx_werror_flag"
22638 || test ! -s conftest.err'
5294a27e
VZ
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; } &&
22644 { ac_try='test -s conftest$ac_exeext'
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 ac_cv_func_fseeko=yes
22651else
22652 echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
22654
22655ac_cv_func_fseeko=no
22656fi
22657rm -f conftest.err conftest.$ac_objext \
22658 conftest$ac_exeext conftest.$ac_ext
22659fi
22660echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22661echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22662if test $ac_cv_func_fseeko = yes; then
22663
22664cat >>confdefs.h <<\_ACEOF
22665#define HAVE_FSEEKO 1
22666_ACEOF
22667
22668fi
22669
5b674b9d 22670 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22671 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22672 fi
a848cd7e
SC
22673fi
22674
22675echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22676echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22677if test "${ac_cv_c_bigendian+set}" = set; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22679else
22680 ac_cv_c_bigendian=unknown
22681# See if sys/param.h defines the BYTE_ORDER macro.
22682cat >conftest.$ac_ext <<_ACEOF
22683/* confdefs.h. */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h. */
22688#include <sys/types.h>
22689#include <sys/param.h>
22690int
22691main ()
22692{
22693
22694#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22695 bogus endian macros
22696#endif
22697 ;
22698 return 0;
22699}
22700_ACEOF
22701rm -f conftest.$ac_objext
22702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22703 (eval $ac_compile) 2>conftest.er1
a848cd7e 22704 ac_status=$?
ac1cb8d3
VS
22705 grep -v '^ *+' conftest.er1 >conftest.err
22706 rm -f conftest.er1
22707 cat conftest.err >&5
a848cd7e
SC
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } &&
6a5c9b3f
RR
22710 { ac_try='test -z "$ac_cxx_werror_flag"
22711 || test ! -s conftest.err'
ac1cb8d3
VS
22712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713 (eval $ac_try) 2>&5
22714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; } &&
22717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; }; then
22723 # It does; now see whether it defined to BIG_ENDIAN or not.
22724cat >conftest.$ac_ext <<_ACEOF
22725/* confdefs.h. */
22726_ACEOF
22727cat confdefs.h >>conftest.$ac_ext
22728cat >>conftest.$ac_ext <<_ACEOF
22729/* end confdefs.h. */
22730#include <sys/types.h>
22731#include <sys/param.h>
22732int
22733main ()
22734{
22735
22736#if BYTE_ORDER != BIG_ENDIAN
22737 not big endian
22738#endif
22739 ;
22740 return 0;
22741}
22742_ACEOF
22743rm -f conftest.$ac_objext
22744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22745 (eval $ac_compile) 2>conftest.er1
a848cd7e 22746 ac_status=$?
ac1cb8d3
VS
22747 grep -v '^ *+' conftest.er1 >conftest.err
22748 rm -f conftest.er1
22749 cat conftest.err >&5
a848cd7e
SC
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } &&
6a5c9b3f
RR
22752 { ac_try='test -z "$ac_cxx_werror_flag"
22753 || test ! -s conftest.err'
ac1cb8d3
VS
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; } &&
22759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761 (eval $ac_try) 2>&5
22762 ac_status=$?
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; }; then
22765 ac_cv_c_bigendian=yes
22766else
22767 echo "$as_me: failed program was:" >&5
22768sed 's/^/| /' conftest.$ac_ext >&5
22769
22770ac_cv_c_bigendian=no
22771fi
ac1cb8d3 22772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22773else
22774 echo "$as_me: failed program was:" >&5
22775sed 's/^/| /' conftest.$ac_ext >&5
22776
22777fi
ac1cb8d3 22778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22779if test $ac_cv_c_bigendian = unknown; then
22780if test "$cross_compiling" = yes; then
22781 ac_cv_c_bigendian=unknown
22782else
22783 cat >conftest.$ac_ext <<_ACEOF
22784/* confdefs.h. */
22785_ACEOF
22786cat confdefs.h >>conftest.$ac_ext
22787cat >>conftest.$ac_ext <<_ACEOF
22788/* end confdefs.h. */
22789main () {
22790 /* Are we little or big endian? From Harbison&Steele. */
22791 union
22792 {
22793 long l;
22794 char c[sizeof (long)];
22795 } u;
22796 u.l = 1;
22797 exit (u.c[sizeof (long) - 1] == 1);
22798}
22799_ACEOF
22800rm -f conftest$ac_exeext
22801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22802 (eval $ac_link) 2>&5
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 ac_cv_c_bigendian=no
22812else
22813 echo "$as_me: program exited with status $ac_status" >&5
22814echo "$as_me: failed program was:" >&5
22815sed 's/^/| /' conftest.$ac_ext >&5
22816
22817( exit $ac_status )
22818ac_cv_c_bigendian=yes
22819fi
ac1cb8d3 22820rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22821fi
22822fi
22823fi
22824echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22825echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22826if test $ac_cv_c_bigendian = unknown; then
22827 { 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
22828echo "$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;}
22829fi
22830if test $ac_cv_c_bigendian = yes; then
22831 cat >>confdefs.h <<\_ACEOF
22832#define WORDS_BIGENDIAN 1
22833_ACEOF
22834
22835fi
22836
22837
a848cd7e
SC
22838
22839
22840
22841 ac_ext=cc
22842ac_cpp='$CXXCPP $CPPFLAGS'
22843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22846
22847
22848
22849for ac_header in iostream
22850do
22851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22852if eval "test \"\${$as_ac_Header+set}\" = set"; then
22853 echo "$as_me:$LINENO: checking for $ac_header" >&5
22854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22855if eval "test \"\${$as_ac_Header+set}\" = set"; then
22856 echo $ECHO_N "(cached) $ECHO_C" >&6
22857fi
22858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22860else
22861 # Is the header compilable?
22862echo "$as_me:$LINENO: checking $ac_header usability" >&5
22863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22864cat >conftest.$ac_ext <<_ACEOF
22865/* confdefs.h. */
22866_ACEOF
22867cat confdefs.h >>conftest.$ac_ext
22868cat >>conftest.$ac_ext <<_ACEOF
22869/* end confdefs.h. */
22870$ac_includes_default
22871#include <$ac_header>
22872_ACEOF
22873rm -f conftest.$ac_objext
22874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22875 (eval $ac_compile) 2>conftest.er1
a848cd7e 22876 ac_status=$?
ac1cb8d3
VS
22877 grep -v '^ *+' conftest.er1 >conftest.err
22878 rm -f conftest.er1
22879 cat conftest.err >&5
a848cd7e
SC
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } &&
6a5c9b3f
RR
22882 { ac_try='test -z "$ac_cxx_werror_flag"
22883 || test ! -s conftest.err'
ac1cb8d3
VS
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; } &&
22889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_header_compiler=yes
22896else
22897 echo "$as_me: failed program was:" >&5
22898sed 's/^/| /' conftest.$ac_ext >&5
22899
22900ac_header_compiler=no
22901fi
ac1cb8d3 22902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22903echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22904echo "${ECHO_T}$ac_header_compiler" >&6
22905
22906# Is the header present?
22907echo "$as_me:$LINENO: checking $ac_header presence" >&5
22908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22909cat >conftest.$ac_ext <<_ACEOF
22910/* confdefs.h. */
22911_ACEOF
22912cat confdefs.h >>conftest.$ac_ext
22913cat >>conftest.$ac_ext <<_ACEOF
22914/* end confdefs.h. */
22915#include <$ac_header>
22916_ACEOF
22917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } >/dev/null; then
22925 if test -s conftest.err; then
22926 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22928 else
22929 ac_cpp_err=
22930 fi
22931else
22932 ac_cpp_err=yes
22933fi
22934if test -z "$ac_cpp_err"; then
22935 ac_header_preproc=yes
22936else
22937 echo "$as_me: failed program was:" >&5
22938sed 's/^/| /' conftest.$ac_ext >&5
22939
22940 ac_header_preproc=no
22941fi
22942rm -f conftest.err conftest.$ac_ext
22943echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22944echo "${ECHO_T}$ac_header_preproc" >&6
22945
22946# So? What about this header?
ac1cb8d3
VS
22947case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22948 yes:no: )
a848cd7e
SC
22949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22953 ac_header_preproc=yes
a848cd7e 22954 ;;
ac1cb8d3 22955 no:yes:* )
a848cd7e
SC
22956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22968 (
22969 cat <<\_ASBOX
ac1cb8d3
VS
22970## ----------------------------------------- ##
22971## Report this to wx-dev@lists.wxwidgets.org ##
22972## ----------------------------------------- ##
a848cd7e
SC
22973_ASBOX
22974 ) |
22975 sed "s/^/$as_me: WARNING: /" >&2
22976 ;;
22977esac
22978echo "$as_me:$LINENO: checking for $ac_header" >&5
22979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22980if eval "test \"\${$as_ac_Header+set}\" = set"; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22982else
ac1cb8d3 22983 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22984fi
22985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22987
22988fi
22989if test `eval echo '${'$as_ac_Header'}'` = yes; then
22990 cat >>confdefs.h <<_ACEOF
22991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22992_ACEOF
22993
22994fi
22995
22996done
22997
22998
22999 if test "$ac_cv_header_iostream" = "yes" ; then
23000 :
23001 else
23002 cat >>confdefs.h <<\_ACEOF
23003#define wxUSE_IOSTREAMH 1
23004_ACEOF
23005
23006 fi
23007
5d7b7554
VZ
23008 ac_ext=cc
23009ac_cpp='$CXXCPP $CPPFLAGS'
23010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23013
23014
23015
23016
23017 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23018echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23019if test "${wx_cv_cpp_bool+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021else
23022
23023
23024
23025 ac_ext=cc
23026ac_cpp='$CXXCPP $CPPFLAGS'
23027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23030
23031
23032 cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
23038
23039
23040int
23041main ()
23042{
23043
23044 bool b = true;
23045
23046 return 0;
23047
23048 ;
23049 return 0;
23050}
23051_ACEOF
23052rm -f conftest.$ac_objext
23053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23054 (eval $ac_compile) 2>conftest.er1
a848cd7e 23055 ac_status=$?
ac1cb8d3
VS
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
a848cd7e
SC
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } &&
6a5c9b3f
RR
23061 { ac_try='test -z "$ac_cxx_werror_flag"
23062 || test ! -s conftest.err'
ac1cb8d3
VS
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23065 ac_status=$?
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; } &&
23068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23071 ac_status=$?
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; }; then
23074
23075 wx_cv_cpp_bool=yes
23076
23077else
23078 echo "$as_me: failed program was:" >&5
23079sed 's/^/| /' conftest.$ac_ext >&5
23080
23081
23082 wx_cv_cpp_bool=no
23083
23084
23085fi
ac1cb8d3 23086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23087
5d7b7554
VZ
23088 ac_ext=cc
23089ac_cpp='$CXXCPP $CPPFLAGS'
23090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23093
23094
23095fi
23096echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23097echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23098
23099 if test "$wx_cv_cpp_bool" = "yes"; then
23100 cat >>confdefs.h <<\_ACEOF
23101#define HAVE_BOOL 1
23102_ACEOF
23103
23104 fi
23105
23106
23107
23108 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23109echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23110if test "${wx_cv_explicit+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112else
23113
23114
23115
23116 ac_ext=cc
23117ac_cpp='$CXXCPP $CPPFLAGS'
23118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23121
23122
23123 cat >conftest.$ac_ext <<_ACEOF
23124/* confdefs.h. */
23125_ACEOF
23126cat confdefs.h >>conftest.$ac_ext
23127cat >>conftest.$ac_ext <<_ACEOF
23128/* end confdefs.h. */
23129
23130 class Foo { public: explicit Foo(int) {} };
23131
23132int
23133main ()
23134{
23135
23136 return 0;
23137
23138 ;
23139 return 0;
23140}
23141_ACEOF
23142rm -f conftest.$ac_objext
23143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23144 (eval $ac_compile) 2>conftest.er1
a848cd7e 23145 ac_status=$?
ac1cb8d3
VS
23146 grep -v '^ *+' conftest.er1 >conftest.err
23147 rm -f conftest.er1
23148 cat conftest.err >&5
a848cd7e
SC
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } &&
6a5c9b3f
RR
23151 { ac_try='test -z "$ac_cxx_werror_flag"
23152 || test ! -s conftest.err'
ac1cb8d3
VS
23153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154 (eval $ac_try) 2>&5
23155 ac_status=$?
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); }; } &&
23158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; }; then
23164
23165 cat >conftest.$ac_ext <<_ACEOF
23166/* confdefs.h. */
23167_ACEOF
23168cat confdefs.h >>conftest.$ac_ext
23169cat >>conftest.$ac_ext <<_ACEOF
23170/* end confdefs.h. */
23171
23172 class Foo { public: explicit Foo(int) {} };
23173 static void TakeFoo(const Foo& foo) { }
23174
23175int
23176main ()
23177{
23178
23179 TakeFoo(17);
23180 return 0;
23181
23182 ;
23183 return 0;
23184}
23185_ACEOF
23186rm -f conftest.$ac_objext
23187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23188 (eval $ac_compile) 2>conftest.er1
a848cd7e 23189 ac_status=$?
ac1cb8d3
VS
23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
a848cd7e
SC
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
6a5c9b3f
RR
23195 { ac_try='test -z "$ac_cxx_werror_flag"
23196 || test ! -s conftest.err'
ac1cb8d3
VS
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; } &&
23202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204 (eval $ac_try) 2>&5
23205 ac_status=$?
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); }; }; then
23208 wx_cv_explicit=no
23209else
23210 echo "$as_me: failed program was:" >&5
23211sed 's/^/| /' conftest.$ac_ext >&5
23212
23213wx_cv_explicit=yes
23214
23215fi
ac1cb8d3 23216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23217
23218else
23219 echo "$as_me: failed program was:" >&5
23220sed 's/^/| /' conftest.$ac_ext >&5
23221
23222wx_cv_explicit=no
23223
23224fi
ac1cb8d3 23225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23226
5d7b7554
VZ
23227 ac_ext=cc
23228ac_cpp='$CXXCPP $CPPFLAGS'
23229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23232
23233
23234fi
23235echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23236echo "${ECHO_T}$wx_cv_explicit" >&6
23237
23238 if test "$wx_cv_explicit" = "yes"; then
23239 cat >>confdefs.h <<\_ACEOF
23240#define HAVE_EXPLICIT 1
23241_ACEOF
23242
23243 fi
23244
23245
23246echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23247echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23248if test "${ac_cv_cxx_const_cast+set}" = set; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23250else
23251
23252
23253 ac_ext=cc
23254ac_cpp='$CXXCPP $CPPFLAGS'
23255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23258
23259 cat >conftest.$ac_ext <<_ACEOF
23260/* confdefs.h. */
23261_ACEOF
23262cat confdefs.h >>conftest.$ac_ext
23263cat >>conftest.$ac_ext <<_ACEOF
23264/* end confdefs.h. */
23265
23266int
23267main ()
23268{
23269int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23270 ;
23271 return 0;
23272}
23273_ACEOF
23274rm -f conftest.$ac_objext
23275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23276 (eval $ac_compile) 2>conftest.er1
a848cd7e 23277 ac_status=$?
ac1cb8d3
VS
23278 grep -v '^ *+' conftest.er1 >conftest.err
23279 rm -f conftest.er1
23280 cat conftest.err >&5
a848cd7e
SC
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } &&
6a5c9b3f
RR
23283 { ac_try='test -z "$ac_cxx_werror_flag"
23284 || test ! -s conftest.err'
ac1cb8d3
VS
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; } &&
23290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 ac_cv_cxx_const_cast=yes
23297else
23298 echo "$as_me: failed program was:" >&5
23299sed 's/^/| /' conftest.$ac_ext >&5
23300
23301ac_cv_cxx_const_cast=no
23302fi
ac1cb8d3 23303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23304 ac_ext=cc
23305ac_cpp='$CXXCPP $CPPFLAGS'
23306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23309
23310
23311fi
23312echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23313echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23314if test "$ac_cv_cxx_const_cast" = yes; then
23315
23316cat >>confdefs.h <<\_ACEOF
23317#define HAVE_CONST_CAST
23318_ACEOF
23319
23320fi
23321
7714864e
RL
23322echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23323echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23324if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23326else
23327
23328
23329 ac_ext=cc
23330ac_cpp='$CXXCPP $CPPFLAGS'
23331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23334
23335 cat >conftest.$ac_ext <<_ACEOF
23336/* confdefs.h. */
23337_ACEOF
23338cat confdefs.h >>conftest.$ac_ext
23339cat >>conftest.$ac_ext <<_ACEOF
23340/* end confdefs.h. */
23341#include <typeinfo>
23342class Base { public : Base () {} virtual void f () = 0;};
23343class Derived : public Base { public : Derived () {} virtual void f () {} };
23344class Unrelated { public : Unrelated () {} };
23345int g (Unrelated&) { return 0; }
23346int
23347main ()
23348{
23349
23350Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23351 ;
23352 return 0;
23353}
23354_ACEOF
23355rm -f conftest.$ac_objext
23356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23357 (eval $ac_compile) 2>conftest.er1
23358 ac_status=$?
23359 grep -v '^ *+' conftest.er1 >conftest.err
23360 rm -f conftest.er1
23361 cat conftest.err >&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } &&
6a5c9b3f
RR
23364 { ac_try='test -z "$ac_cxx_werror_flag"
23365 || test ! -s conftest.err'
7714864e
RL
23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; } &&
23371 { ac_try='test -s conftest.$ac_objext'
23372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23373 (eval $ac_try) 2>&5
23374 ac_status=$?
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); }; }; then
23377 ac_cv_cxx_reinterpret_cast=yes
23378else
23379 echo "$as_me: failed program was:" >&5
23380sed 's/^/| /' conftest.$ac_ext >&5
23381
23382ac_cv_cxx_reinterpret_cast=no
23383fi
23384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23385 ac_ext=cc
23386ac_cpp='$CXXCPP $CPPFLAGS'
23387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23390
23391
23392fi
23393echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23394echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23395if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23396
23397cat >>confdefs.h <<\_ACEOF
23398#define HAVE_REINTERPRET_CAST
23399_ACEOF
23400
23401fi
23402
a848cd7e
SC
23403echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23404echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23405if test "${ac_cv_cxx_static_cast+set}" = set; then
23406 echo $ECHO_N "(cached) $ECHO_C" >&6
23407else
23408
23409
23410 ac_ext=cc
23411ac_cpp='$CXXCPP $CPPFLAGS'
23412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23415
23416 cat >conftest.$ac_ext <<_ACEOF
23417/* confdefs.h. */
23418_ACEOF
23419cat confdefs.h >>conftest.$ac_ext
23420cat >>conftest.$ac_ext <<_ACEOF
23421/* end confdefs.h. */
23422#include <typeinfo>
23423class Base { public : Base () {} virtual void f () = 0; };
23424class Derived : public Base { public : Derived () {} virtual void f () {} };
23425int g (Derived&) { return 0; }
23426int
23427main ()
23428{
23429
23430Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23431 ;
23432 return 0;
23433}
23434_ACEOF
23435rm -f conftest.$ac_objext
23436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23437 (eval $ac_compile) 2>conftest.er1
a848cd7e 23438 ac_status=$?
ac1cb8d3
VS
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
a848cd7e
SC
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
6a5c9b3f
RR
23444 { ac_try='test -z "$ac_cxx_werror_flag"
23445 || test ! -s conftest.err'
ac1cb8d3
VS
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 ac_cv_cxx_static_cast=yes
23458else
23459 echo "$as_me: failed program was:" >&5
23460sed 's/^/| /' conftest.$ac_ext >&5
23461
23462ac_cv_cxx_static_cast=no
23463fi
ac1cb8d3 23464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23465 ac_ext=cc
23466ac_cpp='$CXXCPP $CPPFLAGS'
23467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23470
23471
23472fi
23473echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23474echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23475if test "$ac_cv_cxx_static_cast" = yes; then
23476
23477cat >>confdefs.h <<\_ACEOF
23478#define HAVE_STATIC_CAST
23479_ACEOF
23480
23481fi
23482
23483
3c28b7cb 23484if test "x$SUNCXX" = xyes; then
c92ad099 23485 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23486fi
23487
9122d155 23488if test "x$SUNCC" = xyes; then
c92ad099 23489 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23490fi
23491
0ad5d837 23492if test "x$SGICC" = "xyes"; then
c92ad099 23493 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23494fi
23495if test "x$SGICXX" = "xyes"; then
c92ad099 23496 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23497fi
23498
2eef8513 23499if test "x$HPCC" = "xyes"; then
c92ad099 23500 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23501fi
23502if test "x$HPCXX" = "xyes"; then
c92ad099 23503 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23504fi
23505
23506if test "x$COMPAQCXX" = "xyes"; then
23507 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23508fi
23509
f56c22b4 23510if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23511 if test "$wxUSE_UNICODE" = "yes"; then
23512 std_string="std::wstring"
23513 char_type="wchar_t"
23514 else
23515 std_string="std::string"
23516 char_type="char"
23517 fi
23518
23519 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23520echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23521 cat >conftest.$ac_ext <<_ACEOF
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527#include <string>
a848cd7e
SC
23528int
23529main ()
23530{
f56c22b4 23531$std_string foo;
a848cd7e
SC
23532 ;
23533 return 0;
23534}
23535_ACEOF
23536rm -f conftest.$ac_objext
23537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23538 (eval $ac_compile) 2>conftest.er1
a848cd7e 23539 ac_status=$?
ac1cb8d3
VS
23540 grep -v '^ *+' conftest.er1 >conftest.err
23541 rm -f conftest.er1
23542 cat conftest.err >&5
a848cd7e
SC
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } &&
6a5c9b3f
RR
23545 { ac_try='test -z "$ac_cxx_werror_flag"
23546 || test ! -s conftest.err'
ac1cb8d3
VS
23547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548 (eval $ac_try) 2>&5
23549 ac_status=$?
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; } &&
23552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23555 ac_status=$?
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; }; then
23558 echo "$as_me:$LINENO: result: yes" >&5
23559echo "${ECHO_T}yes" >&6
0a08f02a
MB
23560 cat >>confdefs.h <<\_ACEOF
23561#define HAVE_STD_WSTRING 1
23562_ACEOF
23563
a848cd7e
SC
23564else
23565 echo "$as_me: failed program was:" >&5
23566sed 's/^/| /' conftest.$ac_ext >&5
23567
23568echo "$as_me:$LINENO: result: no" >&5
23569echo "${ECHO_T}no" >&6
f56c22b4
MW
23570 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23571echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23572 cat >conftest.$ac_ext <<_ACEOF
23573/* confdefs.h. */
23574_ACEOF
23575cat confdefs.h >>conftest.$ac_ext
23576cat >>conftest.$ac_ext <<_ACEOF
23577/* end confdefs.h. */
23578
23579 #ifdef HAVE_WCHAR_H
23580 # ifdef __CYGWIN__
23581 # include <stddef.h>
23582 # endif
23583 # include <wchar.h>
23584 #endif
23585 #ifdef HAVE_STDLIB_H
23586 # include <stdlib.h>
23587 #endif
23588 #include <stdio.h>
23589 #include <string>
23590
23591int
23592main ()
23593{
f56c22b4
MW
23594std::basic_string<$char_type> foo;
23595 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23596 ;
23597 return 0;
23598}
23599_ACEOF
23600rm -f conftest.$ac_objext
23601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23602 (eval $ac_compile) 2>conftest.er1
23603 ac_status=$?
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } &&
6a5c9b3f
RR
23609 { ac_try='test -z "$ac_cxx_werror_flag"
23610 || test ! -s conftest.err'
0a08f02a
MB
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } &&
23616 { ac_try='test -s conftest.$ac_objext'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 echo "$as_me:$LINENO: result: yes" >&5
23623echo "${ECHO_T}yes" >&6
23624else
23625 echo "$as_me: failed program was:" >&5
23626sed 's/^/| /' conftest.$ac_ext >&5
23627
23628echo "$as_me:$LINENO: result: no" >&5
23629echo "${ECHO_T}no" >&6
f56c22b4 23630 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23631 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23632echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23633 { (exit 1); exit 1; }; }
23634 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23635 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23636echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23637 { (exit 1); exit 1; }; }
f56c22b4
MW
23638 else
23639 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23640echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23641 wxUSE_STD_STRING=no
23642 fi
23643
0a08f02a 23644
a848cd7e 23645fi
ac1cb8d3 23646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23647
0a08f02a
MB
23648fi
23649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23650fi
23651
23652if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23653 echo "$as_me:$LINENO: checking for std::istream" >&5
23654echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23655if test "${ac_cv_type_std__istream+set}" = set; then
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23657else
23658 cat >conftest.$ac_ext <<_ACEOF
23659/* confdefs.h. */
23660_ACEOF
23661cat confdefs.h >>conftest.$ac_ext
23662cat >>conftest.$ac_ext <<_ACEOF
23663/* end confdefs.h. */
23664#include <iostream>
23665
23666int
23667main ()
23668{
23669if ((std::istream *) 0)
23670 return 0;
23671if (sizeof (std::istream))
23672 return 0;
23673 ;
23674 return 0;
23675}
23676_ACEOF
23677rm -f conftest.$ac_objext
23678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23679 (eval $ac_compile) 2>conftest.er1
23680 ac_status=$?
23681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
6a5c9b3f
RR
23686 { ac_try='test -z "$ac_cxx_werror_flag"
23687 || test ! -s conftest.err'
f56c22b4
MW
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; } &&
23693 { ac_try='test -s conftest.$ac_objext'
23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23696 ac_status=$?
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 ac_cv_type_std__istream=yes
23700else
23701 echo "$as_me: failed program was:" >&5
23702sed 's/^/| /' conftest.$ac_ext >&5
23703
23704ac_cv_type_std__istream=no
23705fi
23706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23707fi
23708echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23709echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23710if test $ac_cv_type_std__istream = yes; then
23711
23712cat >>confdefs.h <<_ACEOF
23713#define HAVE_STD__ISTREAM 1
23714_ACEOF
23715
23716
23717else
23718 wxUSE_STD_IOSTREAM=no
23719fi
23720echo "$as_me:$LINENO: checking for std::ostream" >&5
23721echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23722if test "${ac_cv_type_std__ostream+set}" = set; then
23723 echo $ECHO_N "(cached) $ECHO_C" >&6
23724else
23725 cat >conftest.$ac_ext <<_ACEOF
23726/* confdefs.h. */
23727_ACEOF
23728cat confdefs.h >>conftest.$ac_ext
23729cat >>conftest.$ac_ext <<_ACEOF
23730/* end confdefs.h. */
23731#include <iostream>
23732
23733int
23734main ()
23735{
23736if ((std::ostream *) 0)
23737 return 0;
23738if (sizeof (std::ostream))
23739 return 0;
23740 ;
23741 return 0;
23742}
23743_ACEOF
23744rm -f conftest.$ac_objext
23745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23746 (eval $ac_compile) 2>conftest.er1
23747 ac_status=$?
23748 grep -v '^ *+' conftest.er1 >conftest.err
23749 rm -f conftest.er1
23750 cat conftest.err >&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } &&
6a5c9b3f
RR
23753 { ac_try='test -z "$ac_cxx_werror_flag"
23754 || test ! -s conftest.err'
f56c22b4
MW
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest.$ac_objext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 ac_cv_type_std__ostream=yes
23767else
23768 echo "$as_me: failed program was:" >&5
23769sed 's/^/| /' conftest.$ac_ext >&5
23770
23771ac_cv_type_std__ostream=no
23772fi
23773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23774fi
23775echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23776echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23777if test $ac_cv_type_std__ostream = yes; then
23778
23779cat >>confdefs.h <<_ACEOF
23780#define HAVE_STD__OSTREAM 1
23781_ACEOF
23782
23783
23784else
23785 wxUSE_STD_IOSTREAM=no
23786fi
23787
23788
23789 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23790 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23791 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23792echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23793 { (exit 1); exit 1; }; }
23794 else
23795 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23796echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23797 fi
f56c22b4 23798 fi
0a08f02a
MB
23799fi
23800
23801if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23802 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23803echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23804 cat >conftest.$ac_ext <<_ACEOF
23805/* confdefs.h. */
23806_ACEOF
23807cat confdefs.h >>conftest.$ac_ext
23808cat >>conftest.$ac_ext <<_ACEOF
23809/* end confdefs.h. */
23810#include <string>
0a08f02a
MB
23811 #include <functional>
23812 #include <algorithm>
23813 #include <vector>
23814 #include <list>
a848cd7e
SC
23815int
23816main ()
23817{
0a08f02a
MB
23818std::vector<int> moo;
23819 std::list<int> foo;
23820 std::vector<int>::iterator it =
23821 std::find_if(moo.begin(), moo.end(),
23822 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23823 ;
23824 return 0;
23825}
23826_ACEOF
23827rm -f conftest.$ac_objext
23828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23829 (eval $ac_compile) 2>conftest.er1
a848cd7e 23830 ac_status=$?
ac1cb8d3
VS
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
a848cd7e
SC
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
6a5c9b3f
RR
23836 { ac_try='test -z "$ac_cxx_werror_flag"
23837 || test ! -s conftest.err'
ac1cb8d3
VS
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; } &&
23843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 echo "$as_me:$LINENO: result: yes" >&5
23850echo "${ECHO_T}yes" >&6
a848cd7e
SC
23851else
23852 echo "$as_me: failed program was:" >&5
23853sed 's/^/| /' conftest.$ac_ext >&5
23854
23855echo "$as_me:$LINENO: result: no" >&5
23856echo "${ECHO_T}no" >&6
0a08f02a
MB
23857 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23858echo "$as_me: error: Basic STL functionality missing" >&2;}
23859 { (exit 1); exit 1; }; }
a848cd7e 23860fi
ac1cb8d3 23861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23862
23863 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23864echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23865 cat >conftest.$ac_ext <<_ACEOF
23866/* confdefs.h. */
23867_ACEOF
23868cat confdefs.h >>conftest.$ac_ext
23869cat >>conftest.$ac_ext <<_ACEOF
23870/* end confdefs.h. */
23871#include <string>
23872int
23873main ()
23874{
23875std::string foo, bar;
23876 foo.compare(bar);
23877 foo.compare(1, 1, bar);
23878 foo.compare(1, 1, bar, 1, 1);
23879 foo.compare("");
23880 foo.compare(1, 1, "");
23881 foo.compare(1, 1, "", 2);
23882 ;
23883 return 0;
23884}
23885_ACEOF
23886rm -f conftest.$ac_objext
23887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23888 (eval $ac_compile) 2>conftest.er1
a848cd7e 23889 ac_status=$?
ac1cb8d3
VS
23890 grep -v '^ *+' conftest.er1 >conftest.err
23891 rm -f conftest.er1
23892 cat conftest.err >&5
a848cd7e
SC
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } &&
6a5c9b3f
RR
23895 { ac_try='test -z "$ac_cxx_werror_flag"
23896 || test ! -s conftest.err'
ac1cb8d3
VS
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; } &&
23902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908 echo "$as_me:$LINENO: result: yes" >&5
23909echo "${ECHO_T}yes" >&6
23910 cat >>confdefs.h <<\_ACEOF
23911#define HAVE_STD_STRING_COMPARE 1
23912_ACEOF
23913
23914else
23915 echo "$as_me: failed program was:" >&5
23916sed 's/^/| /' conftest.$ac_ext >&5
23917
23918echo "$as_me:$LINENO: result: no" >&5
23919echo "${ECHO_T}no" >&6
23920fi
ac1cb8d3 23921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23922
23923 if test "${ac_cv_header_hash_map+set}" = set; then
23924 echo "$as_me:$LINENO: checking for hash_map" >&5
23925echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23926if test "${ac_cv_header_hash_map+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23928fi
23929echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23930echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23931else
23932 # Is the header compilable?
23933echo "$as_me:$LINENO: checking hash_map usability" >&5
23934echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23935cat >conftest.$ac_ext <<_ACEOF
23936/* confdefs.h. */
23937_ACEOF
23938cat confdefs.h >>conftest.$ac_ext
23939cat >>conftest.$ac_ext <<_ACEOF
23940/* end confdefs.h. */
23941$ac_includes_default
23942#include <hash_map>
23943_ACEOF
23944rm -f conftest.$ac_objext
23945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23946 (eval $ac_compile) 2>conftest.er1
bdcade0a 23947 ac_status=$?
ac1cb8d3
VS
23948 grep -v '^ *+' conftest.er1 >conftest.err
23949 rm -f conftest.er1
23950 cat conftest.err >&5
bdcade0a
MB
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } &&
6a5c9b3f
RR
23953 { ac_try='test -z "$ac_cxx_werror_flag"
23954 || test ! -s conftest.err'
ac1cb8d3
VS
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23957 ac_status=$?
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; } &&
23960 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); }; }; then
23966 ac_header_compiler=yes
23967else
23968 echo "$as_me: failed program was:" >&5
23969sed 's/^/| /' conftest.$ac_ext >&5
23970
23971ac_header_compiler=no
23972fi
ac1cb8d3 23973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23975echo "${ECHO_T}$ac_header_compiler" >&6
23976
23977# Is the header present?
23978echo "$as_me:$LINENO: checking hash_map presence" >&5
23979echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23980cat >conftest.$ac_ext <<_ACEOF
23981/* confdefs.h. */
23982_ACEOF
23983cat confdefs.h >>conftest.$ac_ext
23984cat >>conftest.$ac_ext <<_ACEOF
23985/* end confdefs.h. */
23986#include <hash_map>
23987_ACEOF
23988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23990 ac_status=$?
23991 grep -v '^ *+' conftest.er1 >conftest.err
23992 rm -f conftest.er1
23993 cat conftest.err >&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } >/dev/null; then
23996 if test -s conftest.err; then
23997 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23998 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23999 else
24000 ac_cpp_err=
24001 fi
24002else
24003 ac_cpp_err=yes
24004fi
24005if test -z "$ac_cpp_err"; then
24006 ac_header_preproc=yes
24007else
24008 echo "$as_me: failed program was:" >&5
24009sed 's/^/| /' conftest.$ac_ext >&5
24010
24011 ac_header_preproc=no
24012fi
24013rm -f conftest.err conftest.$ac_ext
24014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24015echo "${ECHO_T}$ac_header_preproc" >&6
24016
24017# So? What about this header?
ac1cb8d3
VS
24018case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24019 yes:no: )
bdcade0a
MB
24020 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24021echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24022 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24023echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24024 ac_header_preproc=yes
bdcade0a 24025 ;;
ac1cb8d3 24026 no:yes:* )
bdcade0a
MB
24027 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24028echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24029 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24030echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24031 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24032echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24033 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24034echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24035 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24036echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24037 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24038echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24039 (
24040 cat <<\_ASBOX
ac1cb8d3
VS
24041## ----------------------------------------- ##
24042## Report this to wx-dev@lists.wxwidgets.org ##
24043## ----------------------------------------- ##
bdcade0a
MB
24044_ASBOX
24045 ) |
24046 sed "s/^/$as_me: WARNING: /" >&2
24047 ;;
24048esac
24049echo "$as_me:$LINENO: checking for hash_map" >&5
24050echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24051if test "${ac_cv_header_hash_map+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24053else
24054 ac_cv_header_hash_map=$ac_header_preproc
24055fi
24056echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24057echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24058
24059fi
24060if test $ac_cv_header_hash_map = yes; then
24061 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24062echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24063 cat >conftest.$ac_ext <<_ACEOF
24064/* confdefs.h. */
24065_ACEOF
24066cat confdefs.h >>conftest.$ac_ext
24067cat >>conftest.$ac_ext <<_ACEOF
24068/* end confdefs.h. */
24069#include <hash_map>
24070 #include <hash_set>
24071int
24072main ()
24073{
24074std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24075 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24076 ;
24077 return 0;
24078}
24079_ACEOF
24080rm -f conftest.$ac_objext
24081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24082 (eval $ac_compile) 2>conftest.er1
bdcade0a 24083 ac_status=$?
ac1cb8d3
VS
24084 grep -v '^ *+' conftest.er1 >conftest.err
24085 rm -f conftest.er1
24086 cat conftest.err >&5
bdcade0a
MB
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } &&
6a5c9b3f
RR
24089 { ac_try='test -z "$ac_cxx_werror_flag"
24090 || test ! -s conftest.err'
ac1cb8d3
VS
24091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24092 (eval $ac_try) 2>&5
24093 ac_status=$?
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); }; } &&
24096 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098 (eval $ac_try) 2>&5
24099 ac_status=$?
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; }; then
24102 echo "$as_me:$LINENO: result: yes" >&5
24103echo "${ECHO_T}yes" >&6
24104 cat >>confdefs.h <<\_ACEOF
24105#define HAVE_HASH_MAP 1
24106_ACEOF
24107
24108 cat >>confdefs.h <<\_ACEOF
24109#define HAVE_STD_HASH_MAP 1
24110_ACEOF
24111
24112else
24113 echo "$as_me: failed program was:" >&5
24114sed 's/^/| /' conftest.$ac_ext >&5
24115
24116echo "$as_me:$LINENO: result: no" >&5
24117echo "${ECHO_T}no" >&6
24118fi
ac1cb8d3 24119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24120
24121fi
24122
24123
24124
24125 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24126 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24127echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24128if test "${ac_cv_header_ext_hash_map+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24130fi
24131echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24132echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24133else
24134 # Is the header compilable?
24135echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24136echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24137cat >conftest.$ac_ext <<_ACEOF
24138/* confdefs.h. */
24139_ACEOF
24140cat confdefs.h >>conftest.$ac_ext
24141cat >>conftest.$ac_ext <<_ACEOF
24142/* end confdefs.h. */
24143$ac_includes_default
24144#include <ext/hash_map>
24145_ACEOF
24146rm -f conftest.$ac_objext
24147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24148 (eval $ac_compile) 2>conftest.er1
bdcade0a 24149 ac_status=$?
ac1cb8d3
VS
24150 grep -v '^ *+' conftest.er1 >conftest.err
24151 rm -f conftest.er1
24152 cat conftest.err >&5
bdcade0a
MB
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } &&
6a5c9b3f
RR
24155 { ac_try='test -z "$ac_cxx_werror_flag"
24156 || test ! -s conftest.err'
ac1cb8d3
VS
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; } &&
24162 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; }; then
24168 ac_header_compiler=yes
24169else
24170 echo "$as_me: failed program was:" >&5
24171sed 's/^/| /' conftest.$ac_ext >&5
24172
24173ac_header_compiler=no
24174fi
ac1cb8d3 24175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24177echo "${ECHO_T}$ac_header_compiler" >&6
24178
24179# Is the header present?
24180echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24181echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24182cat >conftest.$ac_ext <<_ACEOF
24183/* confdefs.h. */
24184_ACEOF
24185cat confdefs.h >>conftest.$ac_ext
24186cat >>conftest.$ac_ext <<_ACEOF
24187/* end confdefs.h. */
24188#include <ext/hash_map>
24189_ACEOF
24190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24192 ac_status=$?
24193 grep -v '^ *+' conftest.er1 >conftest.err
24194 rm -f conftest.er1
24195 cat conftest.err >&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); } >/dev/null; then
24198 if test -s conftest.err; then
24199 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24200 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24201 else
24202 ac_cpp_err=
24203 fi
24204else
24205 ac_cpp_err=yes
24206fi
24207if test -z "$ac_cpp_err"; then
24208 ac_header_preproc=yes
24209else
24210 echo "$as_me: failed program was:" >&5
24211sed 's/^/| /' conftest.$ac_ext >&5
24212
24213 ac_header_preproc=no
24214fi
24215rm -f conftest.err conftest.$ac_ext
24216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24217echo "${ECHO_T}$ac_header_preproc" >&6
24218
24219# So? What about this header?
ac1cb8d3
VS
24220case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24221 yes:no: )
bdcade0a
MB
24222 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24223echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24224 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24225echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24226 ac_header_preproc=yes
bdcade0a 24227 ;;
ac1cb8d3 24228 no:yes:* )
bdcade0a
MB
24229 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24230echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24231 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24232echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24233 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24234echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24236echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24237 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24238echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24239 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24240echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24241 (
24242 cat <<\_ASBOX
ac1cb8d3
VS
24243## ----------------------------------------- ##
24244## Report this to wx-dev@lists.wxwidgets.org ##
24245## ----------------------------------------- ##
bdcade0a
MB
24246_ASBOX
24247 ) |
24248 sed "s/^/$as_me: WARNING: /" >&2
24249 ;;
24250esac
24251echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24252echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24253if test "${ac_cv_header_ext_hash_map+set}" = set; then
24254 echo $ECHO_N "(cached) $ECHO_C" >&6
24255else
24256 ac_cv_header_ext_hash_map=$ac_header_preproc
24257fi
24258echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24259echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24260
24261fi
24262if test $ac_cv_header_ext_hash_map = yes; then
24263 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24264echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24265 cat >conftest.$ac_ext <<_ACEOF
24266/* confdefs.h. */
24267_ACEOF
24268cat confdefs.h >>conftest.$ac_ext
24269cat >>conftest.$ac_ext <<_ACEOF
24270/* end confdefs.h. */
24271#include <ext/hash_map>
24272 #include <ext/hash_set>
24273int
24274main ()
24275{
24276__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24277 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24278 ;
24279 return 0;
24280}
24281_ACEOF
24282rm -f conftest.$ac_objext
24283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24284 (eval $ac_compile) 2>conftest.er1
bdcade0a 24285 ac_status=$?
ac1cb8d3
VS
24286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
bdcade0a
MB
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
6a5c9b3f
RR
24291 { ac_try='test -z "$ac_cxx_werror_flag"
24292 || test ! -s conftest.err'
ac1cb8d3
VS
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; } &&
24298 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; }; then
24304 echo "$as_me:$LINENO: result: yes" >&5
24305echo "${ECHO_T}yes" >&6
24306 cat >>confdefs.h <<\_ACEOF
24307#define HAVE_EXT_HASH_MAP 1
24308_ACEOF
24309
24310 cat >>confdefs.h <<\_ACEOF
24311#define HAVE_GNU_CXX_HASH_MAP 1
24312_ACEOF
24313
24314else
24315 echo "$as_me: failed program was:" >&5
24316sed 's/^/| /' conftest.$ac_ext >&5
24317
24318echo "$as_me:$LINENO: result: no" >&5
24319echo "${ECHO_T}no" >&6
24320fi
ac1cb8d3 24321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24322
24323fi
24324
24325
a848cd7e
SC
24326fi
24327
24328
24329SEARCH_INCLUDE="\
24330 /usr/local/include \
24331 \
24332 /usr/Motif-2.1/include \
24333 /usr/Motif-1.2/include \
24334 /usr/include/Motif1.2 \
a848cd7e
SC
24335 \
24336 /usr/dt/include \
24337 /usr/openwin/include \
24338 \
24339 /usr/include/Xm \
24340 \
24341 /usr/X11R6/include \
24342 /usr/X11R6.4/include \
24343 /usr/X11R5/include \
24344 /usr/X11R4/include \
24345 \
24346 /usr/include/X11R6 \
24347 /usr/include/X11R5 \
24348 /usr/include/X11R4 \
24349 \
24350 /usr/local/X11R6/include \
24351 /usr/local/X11R5/include \
24352 /usr/local/X11R4/include \
24353 \
24354 /usr/local/include/X11R6 \
24355 /usr/local/include/X11R5 \
24356 /usr/local/include/X11R4 \
24357 \
24358 /usr/X11/include \
24359 /usr/include/X11 \
24360 /usr/local/X11/include \
24361 /usr/local/include/X11 \
24362 \
a848cd7e 24363 /usr/XFree86/include/X11 \
e051b34e
MW
24364 /usr/pkg/include \
24365 \
a848cd7e
SC
24366 /usr/openwin/share/include"
24367
6f9cf1e6 24368echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24369echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24370
24371case "${host}" in
24372 *-*-irix6* )
24373 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24374 echo $ECHO_N "(cached) $ECHO_C" >&6
24375else
24376
c687b303
VZ
24377 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24378 for e in a so sl dylib dll.a; do
24379 libc="$d/libc.$e"
24380 if test -f $libc; then
24381 save_LIBS="$LIBS"
24382 LIBS="$libc"
24383 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24384int main() { return 0; }
24385_ACEOF
24386rm -f conftest.$ac_objext conftest$ac_exeext
24387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24388 (eval $ac_link) 2>conftest.er1
24389 ac_status=$?
24390 grep -v '^ *+' conftest.er1 >conftest.err
24391 rm -f conftest.er1
24392 cat conftest.err >&5
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } &&
6a5c9b3f
RR
24395 { ac_try='test -z "$ac_cxx_werror_flag"
24396 || test ! -s conftest.err'
0ad5d837
VZ
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; } &&
24402 { ac_try='test -s conftest$ac_exeext'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24405 ac_status=$?
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; }; then
24408 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24409else
24410 echo "$as_me: failed program was:" >&5
24411sed 's/^/| /' conftest.$ac_ext >&5
24412
24413fi
24414rm -f conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24416 LIBS="$save_LIBS"
24417 if test "x$wx_cv_std_libpath" != "x"; then
24418 break 2
24419 fi
24420 fi
24421 done
24422 done
24423 if test "x$wx_cv_std_libpath" = "x"; then
24424 wx_cv_std_libpath="lib"
0ad5d837 24425 fi
0ad5d837
VZ
24426
24427
24428fi
6f9cf1e6
MW
24429
24430 ;;
24431
24432 *-*-solaris2* )
24433 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24434 wx_cv_std_libpath="lib/64"
24435 else
24436 wx_cv_std_libpath="lib"
24437 fi
24438 ;;
24439
24440 *-*-linux* )
24441 if test "$ac_cv_sizeof_void_p" = 8 -a \
24442 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24443 wx_cv_std_libpath="lib64"
24444 else
24445 wx_cv_std_libpath="lib"
24446 fi
c687b303
VZ
24447 ;;
24448
24449 *)
24450 wx_cv_std_libpath="lib";
24451 ;;
24452esac
0ad5d837 24453
6f9cf1e6
MW
24454echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24455echo "${ECHO_T}$wx_cv_std_libpath" >&6
24456
24457SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24458
3eca31dc
MW
24459if test "$build" != "$host" -a "$GCC" = yes; then
24460 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24461 cross_root=`dirname $cross_root`
24462 cross_root=`dirname $cross_root`
24463
24464 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24465 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24466 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24467
24468 if test -z "$PKG_CONFIG_PATH"; then
24469 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24470 export PKG_CONFIG_PATH
24471 fi
24472
24473 if test -z "$x_includes" -o "$x_includes" = NONE; then
24474
24475ac_find_includes=
24476for ac_dir in $SEARCH_INCLUDE /usr/include;
24477 do
24478 if test -f "$ac_dir/X11/Intrinsic.h"; then
24479 ac_find_includes=$ac_dir
24480 break
24481 fi
24482 done
24483
24484 x_includes=$ac_find_includes
24485 fi
24486 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24487
0ad5d837
VZ
24488 ac_find_libraries=
24489 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24490 do
24491 for ac_extension in a so sl dylib dll.a; do
24492 if test -f "$ac_dir/libXt.$ac_extension"; then
24493 ac_find_libraries=$ac_dir
24494 break 2
24495 fi
24496 done
24497 done
24498
24499 x_libraries=$ac_find_libraries
24500 fi
24501 fi
24502fi
24503
a848cd7e
SC
24504
24505cat >confcache <<\_ACEOF
24506# This file is a shell script that caches the results of configure
24507# tests run on this system so they can be shared between configure
24508# scripts and configure runs, see configure's option --config-cache.
24509# It is not useful on other systems. If it contains results you don't
24510# want to keep, you may remove or edit it.
24511#
24512# config.status only pays attention to the cache file if you give it
24513# the --recheck option to rerun configure.
24514#
24515# `ac_cv_env_foo' variables (set or unset) will be overridden when
24516# loading this file, other *unset* `ac_cv_foo' will be assigned the
24517# following values.
24518
24519_ACEOF
24520
24521# The following way of writing the cache mishandles newlines in values,
24522# but we know of no workaround that is simple, portable, and efficient.
24523# So, don't put newlines in cache variables' values.
24524# Ultrix sh set writes to stderr and can't be redirected directly,
24525# and sets the high bit in the cache file unless we assign to the vars.
24526{
24527 (set) 2>&1 |
24528 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24529 *ac_space=\ *)
24530 # `set' does not quote correctly, so add quotes (double-quote
24531 # substitution turns \\\\ into \\, and sed turns \\ into \).
24532 sed -n \
ac1cb8d3
VS
24533 "s/'/'\\\\''/g;
24534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24535 ;;
24536 *)
24537 # `set' quotes correctly as required by POSIX, so do not add quotes.
24538 sed -n \
ac1cb8d3 24539 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24540 ;;
24541 esac;
24542} |
24543 sed '
24544 t clear
24545 : clear
24546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24547 t end
24548 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24549 : end' >>confcache
24550if diff $cache_file confcache >/dev/null 2>&1; then :; else
24551 if test -w $cache_file; then
24552 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24553 cat confcache >$cache_file
24554 else
24555 echo "not updating unwritable cache $cache_file"
24556 fi
24557fi
24558rm -f confcache
24559
24560if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24561 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24562echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24563if test "${wx_cv_lib_glibc21+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24565else
24566
24567 cat >conftest.$ac_ext <<_ACEOF
24568/* confdefs.h. */
24569_ACEOF
24570cat confdefs.h >>conftest.$ac_ext
24571cat >>conftest.$ac_ext <<_ACEOF
24572/* end confdefs.h. */
24573#include <features.h>
24574int
24575main ()
24576{
24577
24578 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24579 not glibc 2.1
a848cd7e
SC
24580 #endif
24581
24582 ;
24583 return 0;
24584}
24585_ACEOF
24586rm -f conftest.$ac_objext
24587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24588 (eval $ac_compile) 2>conftest.er1
a848cd7e 24589 ac_status=$?
ac1cb8d3
VS
24590 grep -v '^ *+' conftest.er1 >conftest.err
24591 rm -f conftest.er1
24592 cat conftest.err >&5
a848cd7e
SC
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } &&
6a5c9b3f
RR
24595 { ac_try='test -z "$ac_cxx_werror_flag"
24596 || test ! -s conftest.err'
ac1cb8d3
VS
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; } &&
24602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604 (eval $ac_try) 2>&5
24605 ac_status=$?
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; }; then
24608
24609 wx_cv_lib_glibc21=yes
24610
24611else
24612 echo "$as_me: failed program was:" >&5
24613sed 's/^/| /' conftest.$ac_ext >&5
24614
24615
24616 wx_cv_lib_glibc21=no
24617
24618
24619fi
ac1cb8d3 24620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24621
24622fi
24623echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24624echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24625 if test "$wx_cv_lib_glibc21" = "yes"; then
24626 cat >>confdefs.h <<\_ACEOF
24627#define wxHAVE_GLIBC2 1
24628_ACEOF
24629
24630 fi
24631fi
24632
24633if test "x$wx_cv_lib_glibc21" = "xyes"; then
24634 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24635 cat >>confdefs.h <<\_ACEOF
24636#define _GNU_SOURCE 1
24637_ACEOF
24638
24639 fi
24640fi
24641
5d7b7554
VZ
24642have_cos=0
24643have_floor=0
a848cd7e 24644
5d7b7554
VZ
24645for ac_func in cos
24646do
24647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24648echo "$as_me:$LINENO: checking for $ac_func" >&5
24649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24650if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24651 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24652else
5d7b7554 24653 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24654/* confdefs.h. */
24655_ACEOF
24656cat confdefs.h >>conftest.$ac_ext
24657cat >>conftest.$ac_ext <<_ACEOF
24658/* end confdefs.h. */
5d7b7554
VZ
24659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24661#define $ac_func innocuous_$ac_func
24662
24663/* System header to define __stub macros and hopefully few prototypes,
24664 which can conflict with char $ac_func (); below.
24665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24666 <limits.h> exists even on freestanding compilers. */
24667
24668#ifdef __STDC__
24669# include <limits.h>
24670#else
24671# include <assert.h>
24672#endif
24673
24674#undef $ac_func
24675
24676/* Override any gcc2 internal prototype to avoid an error. */
24677#ifdef __cplusplus
24678extern "C"
24679{
24680#endif
24681/* We use char because int might match the return type of a gcc2
24682 builtin and then its argument prototype would still apply. */
24683char $ac_func ();
24684/* The GNU C library defines this for functions which it implements
24685 to always fail with ENOSYS. Some functions are actually named
24686 something starting with __ and the normal name is an alias. */
24687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24688choke me
24689#else
24690char (*f) () = $ac_func;
24691#endif
24692#ifdef __cplusplus
24693}
24694#endif
24695
24696int
24697main ()
24698{
24699return f != $ac_func;
24700 ;
24701 return 0;
24702}
a848cd7e 24703_ACEOF
5d7b7554
VZ
24704rm -f conftest.$ac_objext conftest$ac_exeext
24705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24706 (eval $ac_link) 2>conftest.er1
a848cd7e 24707 ac_status=$?
ac1cb8d3
VS
24708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
a848cd7e
SC
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
6a5c9b3f
RR
24713 { ac_try='test -z "$ac_cxx_werror_flag"
24714 || test ! -s conftest.err'
ac1cb8d3
VS
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; } &&
5d7b7554 24720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; }; then
5d7b7554 24726 eval "$as_ac_var=yes"
a848cd7e
SC
24727else
24728 echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
5d7b7554 24731eval "$as_ac_var=no"
a848cd7e 24732fi
5d7b7554
VZ
24733rm -f conftest.err conftest.$ac_objext \
24734 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24735fi
5d7b7554
VZ
24736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24738if test `eval echo '${'$as_ac_var'}'` = yes; then
24739 cat >>confdefs.h <<_ACEOF
24740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24741_ACEOF
24742 have_cos=1
a848cd7e 24743fi
5d7b7554 24744done
a848cd7e 24745
ab0f0edd 24746
5d7b7554 24747for ac_func in floor
a848cd7e
SC
24748do
24749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24750echo "$as_me:$LINENO: checking for $ac_func" >&5
24751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24752if eval "test \"\${$as_ac_var+set}\" = set"; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24754else
24755 cat >conftest.$ac_ext <<_ACEOF
24756/* confdefs.h. */
24757_ACEOF
24758cat confdefs.h >>conftest.$ac_ext
24759cat >>conftest.$ac_ext <<_ACEOF
24760/* end confdefs.h. */
ac1cb8d3
VS
24761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24763#define $ac_func innocuous_$ac_func
24764
a848cd7e
SC
24765/* System header to define __stub macros and hopefully few prototypes,
24766 which can conflict with char $ac_func (); below.
24767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24768 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24769
a848cd7e
SC
24770#ifdef __STDC__
24771# include <limits.h>
24772#else
24773# include <assert.h>
24774#endif
ac1cb8d3
VS
24775
24776#undef $ac_func
24777
a848cd7e
SC
24778/* Override any gcc2 internal prototype to avoid an error. */
24779#ifdef __cplusplus
24780extern "C"
24781{
24782#endif
24783/* We use char because int might match the return type of a gcc2
24784 builtin and then its argument prototype would still apply. */
24785char $ac_func ();
24786/* The GNU C library defines this for functions which it implements
24787 to always fail with ENOSYS. Some functions are actually named
24788 something starting with __ and the normal name is an alias. */
24789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24790choke me
24791#else
24792char (*f) () = $ac_func;
24793#endif
24794#ifdef __cplusplus
24795}
24796#endif
24797
24798int
24799main ()
24800{
24801return f != $ac_func;
24802 ;
24803 return 0;
24804}
24805_ACEOF
24806rm -f conftest.$ac_objext conftest$ac_exeext
24807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24808 (eval $ac_link) 2>conftest.er1
a848cd7e 24809 ac_status=$?
ac1cb8d3
VS
24810 grep -v '^ *+' conftest.er1 >conftest.err
24811 rm -f conftest.er1
24812 cat conftest.err >&5
a848cd7e
SC
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } &&
6a5c9b3f
RR
24815 { ac_try='test -z "$ac_cxx_werror_flag"
24816 || test ! -s conftest.err'
5d7b7554
VZ
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; } &&
24822 { ac_try='test -s conftest$ac_exeext'
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 eval "$as_ac_var=yes"
24829else
24830 echo "$as_me: failed program was:" >&5
24831sed 's/^/| /' conftest.$ac_ext >&5
24832
24833eval "$as_ac_var=no"
24834fi
24835rm -f conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
24837fi
24838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24839echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24840if test `eval echo '${'$as_ac_var'}'` = yes; then
24841 cat >>confdefs.h <<_ACEOF
24842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24843_ACEOF
24844 have_floor=1
24845fi
24846done
24847
24848echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24849echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24850if test "$have_cos" = 1 -a "$have_floor" = 1; then
24851 echo "$as_me:$LINENO: result: yes" >&5
24852echo "${ECHO_T}yes" >&6
24853else
24854 echo "$as_me:$LINENO: result: no" >&5
24855echo "${ECHO_T}no" >&6
24856 LIBS="$LIBS -lm"
24857 # use different functions to avoid configure caching
24858 have_sin=0
24859 have_ceil=0
24860
24861for ac_func in sin
24862do
24863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24864echo "$as_me:$LINENO: checking for $ac_func" >&5
24865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24866if eval "test \"\${$as_ac_var+set}\" = set"; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24868else
24869 cat >conftest.$ac_ext <<_ACEOF
24870/* confdefs.h. */
24871_ACEOF
24872cat confdefs.h >>conftest.$ac_ext
24873cat >>conftest.$ac_ext <<_ACEOF
24874/* end confdefs.h. */
24875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24877#define $ac_func innocuous_$ac_func
24878
24879/* System header to define __stub macros and hopefully few prototypes,
24880 which can conflict with char $ac_func (); below.
24881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24882 <limits.h> exists even on freestanding compilers. */
24883
24884#ifdef __STDC__
24885# include <limits.h>
24886#else
24887# include <assert.h>
24888#endif
24889
24890#undef $ac_func
24891
24892/* Override any gcc2 internal prototype to avoid an error. */
24893#ifdef __cplusplus
24894extern "C"
24895{
24896#endif
24897/* We use char because int might match the return type of a gcc2
24898 builtin and then its argument prototype would still apply. */
24899char $ac_func ();
24900/* The GNU C library defines this for functions which it implements
24901 to always fail with ENOSYS. Some functions are actually named
24902 something starting with __ and the normal name is an alias. */
24903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24904choke me
24905#else
24906char (*f) () = $ac_func;
24907#endif
24908#ifdef __cplusplus
24909}
24910#endif
24911
24912int
24913main ()
24914{
24915return f != $ac_func;
24916 ;
24917 return 0;
24918}
24919_ACEOF
24920rm -f conftest.$ac_objext conftest$ac_exeext
24921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24922 (eval $ac_link) 2>conftest.er1
24923 ac_status=$?
24924 grep -v '^ *+' conftest.er1 >conftest.err
24925 rm -f conftest.er1
24926 cat conftest.err >&5
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } &&
6a5c9b3f
RR
24929 { ac_try='test -z "$ac_cxx_werror_flag"
24930 || test ! -s conftest.err'
5d7b7554
VZ
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; } &&
24936 { ac_try='test -s conftest$ac_exeext'
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
24942 eval "$as_ac_var=yes"
24943else
24944 echo "$as_me: failed program was:" >&5
24945sed 's/^/| /' conftest.$ac_ext >&5
24946
24947eval "$as_ac_var=no"
24948fi
24949rm -f conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
24951fi
24952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24953echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24954if test `eval echo '${'$as_ac_var'}'` = yes; then
24955 cat >>confdefs.h <<_ACEOF
24956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24957_ACEOF
24958 have_sin=1
24959fi
24960done
24961
24962
24963for ac_func in ceil
24964do
24965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24966echo "$as_me:$LINENO: checking for $ac_func" >&5
24967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24968if eval "test \"\${$as_ac_var+set}\" = set"; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24970else
24971 cat >conftest.$ac_ext <<_ACEOF
24972/* confdefs.h. */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h. */
24977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24979#define $ac_func innocuous_$ac_func
24980
24981/* System header to define __stub macros and hopefully few prototypes,
24982 which can conflict with char $ac_func (); below.
24983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24984 <limits.h> exists even on freestanding compilers. */
24985
24986#ifdef __STDC__
24987# include <limits.h>
24988#else
24989# include <assert.h>
24990#endif
24991
24992#undef $ac_func
24993
24994/* Override any gcc2 internal prototype to avoid an error. */
24995#ifdef __cplusplus
24996extern "C"
24997{
24998#endif
24999/* We use char because int might match the return type of a gcc2
25000 builtin and then its argument prototype would still apply. */
25001char $ac_func ();
25002/* The GNU C library defines this for functions which it implements
25003 to always fail with ENOSYS. Some functions are actually named
25004 something starting with __ and the normal name is an alias. */
25005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25006choke me
25007#else
25008char (*f) () = $ac_func;
25009#endif
25010#ifdef __cplusplus
25011}
25012#endif
25013
25014int
25015main ()
25016{
25017return f != $ac_func;
25018 ;
25019 return 0;
25020}
25021_ACEOF
25022rm -f conftest.$ac_objext conftest$ac_exeext
25023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25024 (eval $ac_link) 2>conftest.er1
25025 ac_status=$?
25026 grep -v '^ *+' conftest.er1 >conftest.err
25027 rm -f conftest.er1
25028 cat conftest.err >&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } &&
6a5c9b3f
RR
25031 { ac_try='test -z "$ac_cxx_werror_flag"
25032 || test ! -s conftest.err'
5d7b7554
VZ
25033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; } &&
25038 { ac_try='test -s 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 eval "$as_ac_var=yes"
25045else
25046 echo "$as_me: failed program was:" >&5
25047sed 's/^/| /' conftest.$ac_ext >&5
25048
25049eval "$as_ac_var=no"
25050fi
25051rm -f conftest.err conftest.$ac_objext \
25052 conftest$ac_exeext conftest.$ac_ext
25053fi
25054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25055echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25056if test `eval echo '${'$as_ac_var'}'` = yes; then
25057 cat >>confdefs.h <<_ACEOF
25058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25059_ACEOF
25060 have_ceil=1
25061fi
25062done
25063
25064 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25065echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25066 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25067 echo "$as_me:$LINENO: result: yes" >&5
25068echo "${ECHO_T}yes" >&6
25069 else
25070 echo "$as_me:$LINENO: result: no" >&5
25071echo "${ECHO_T}no" >&6
25072 # not sure we should warn the user, crash, etc.
25073 fi
25074fi
25075
25076
25077
25078if test "$wxUSE_REGEX" != "no"; then
25079 cat >>confdefs.h <<\_ACEOF
25080#define wxUSE_REGEX 1
25081_ACEOF
25082
25083
25084 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25085 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25086echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25087 wxUSE_REGEX=builtin
25088 fi
25089
25090 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25091 if test "${ac_cv_header_regex_h+set}" = set; then
25092 echo "$as_me:$LINENO: checking for regex.h" >&5
25093echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25094if test "${ac_cv_header_regex_h+set}" = set; then
25095 echo $ECHO_N "(cached) $ECHO_C" >&6
25096fi
25097echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25098echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25099else
25100 # Is the header compilable?
25101echo "$as_me:$LINENO: checking regex.h usability" >&5
25102echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25103cat >conftest.$ac_ext <<_ACEOF
25104/* confdefs.h. */
25105_ACEOF
25106cat confdefs.h >>conftest.$ac_ext
25107cat >>conftest.$ac_ext <<_ACEOF
25108/* end confdefs.h. */
25109$ac_includes_default
25110#include <regex.h>
25111_ACEOF
25112rm -f conftest.$ac_objext
25113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25114 (eval $ac_compile) 2>conftest.er1
25115 ac_status=$?
25116 grep -v '^ *+' conftest.er1 >conftest.err
25117 rm -f conftest.er1
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } &&
6a5c9b3f
RR
25121 { ac_try='test -z "$ac_cxx_werror_flag"
25122 || test ! -s conftest.err'
5d7b7554
VZ
25123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; } &&
25128 { ac_try='test -s conftest.$ac_objext'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_header_compiler=yes
25135else
25136 echo "$as_me: failed program was:" >&5
25137sed 's/^/| /' conftest.$ac_ext >&5
25138
25139ac_header_compiler=no
25140fi
25141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25143echo "${ECHO_T}$ac_header_compiler" >&6
25144
25145# Is the header present?
25146echo "$as_me:$LINENO: checking regex.h presence" >&5
25147echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25148cat >conftest.$ac_ext <<_ACEOF
25149/* confdefs.h. */
25150_ACEOF
25151cat confdefs.h >>conftest.$ac_ext
25152cat >>conftest.$ac_ext <<_ACEOF
25153/* end confdefs.h. */
25154#include <regex.h>
25155_ACEOF
25156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25158 ac_status=$?
25159 grep -v '^ *+' conftest.er1 >conftest.err
25160 rm -f conftest.er1
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } >/dev/null; then
25164 if test -s conftest.err; then
25165 ac_cpp_err=$ac_cxx_preproc_warn_flag
25166 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25167 else
25168 ac_cpp_err=
25169 fi
25170else
25171 ac_cpp_err=yes
25172fi
25173if test -z "$ac_cpp_err"; then
25174 ac_header_preproc=yes
25175else
25176 echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179 ac_header_preproc=no
25180fi
25181rm -f conftest.err conftest.$ac_ext
25182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25183echo "${ECHO_T}$ac_header_preproc" >&6
25184
25185# So? What about this header?
25186case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25187 yes:no: )
25188 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25189echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25190 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25191echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25192 ac_header_preproc=yes
25193 ;;
25194 no:yes:* )
25195 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25196echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25197 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25198echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25199 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25200echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25201 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25202echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25203 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25204echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25205 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25206echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25207 (
25208 cat <<\_ASBOX
25209## ----------------------------------------- ##
25210## Report this to wx-dev@lists.wxwidgets.org ##
25211## ----------------------------------------- ##
25212_ASBOX
25213 ) |
25214 sed "s/^/$as_me: WARNING: /" >&2
25215 ;;
25216esac
25217echo "$as_me:$LINENO: checking for regex.h" >&5
25218echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25219if test "${ac_cv_header_regex_h+set}" = set; then
25220 echo $ECHO_N "(cached) $ECHO_C" >&6
25221else
25222 ac_cv_header_regex_h=$ac_header_preproc
25223fi
25224echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25225echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25226
25227fi
25228if test $ac_cv_header_regex_h = yes; then
25229
25230
25231for ac_func in regcomp re_search
25232do
25233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25234echo "$as_me:$LINENO: checking for $ac_func" >&5
25235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25236if eval "test \"\${$as_ac_var+set}\" = set"; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25238else
25239 cat >conftest.$ac_ext <<_ACEOF
25240/* confdefs.h. */
25241_ACEOF
25242cat confdefs.h >>conftest.$ac_ext
25243cat >>conftest.$ac_ext <<_ACEOF
25244/* end confdefs.h. */
25245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25247#define $ac_func innocuous_$ac_func
25248
25249/* System header to define __stub macros and hopefully few prototypes,
25250 which can conflict with char $ac_func (); below.
25251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25252 <limits.h> exists even on freestanding compilers. */
25253
25254#ifdef __STDC__
25255# include <limits.h>
25256#else
25257# include <assert.h>
25258#endif
25259
25260#undef $ac_func
25261
25262/* Override any gcc2 internal prototype to avoid an error. */
25263#ifdef __cplusplus
25264extern "C"
25265{
25266#endif
25267/* We use char because int might match the return type of a gcc2
25268 builtin and then its argument prototype would still apply. */
25269char $ac_func ();
25270/* The GNU C library defines this for functions which it implements
25271 to always fail with ENOSYS. Some functions are actually named
25272 something starting with __ and the normal name is an alias. */
25273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25274choke me
25275#else
25276char (*f) () = $ac_func;
25277#endif
25278#ifdef __cplusplus
25279}
25280#endif
25281
25282int
25283main ()
25284{
25285return f != $ac_func;
25286 ;
25287 return 0;
25288}
25289_ACEOF
25290rm -f conftest.$ac_objext conftest$ac_exeext
25291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25292 (eval $ac_link) 2>conftest.er1
25293 ac_status=$?
25294 grep -v '^ *+' conftest.er1 >conftest.err
25295 rm -f conftest.er1
25296 cat conftest.err >&5
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); } &&
6a5c9b3f
RR
25299 { ac_try='test -z "$ac_cxx_werror_flag"
25300 || test ! -s conftest.err'
ac1cb8d3
VS
25301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; } &&
25306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312 eval "$as_ac_var=yes"
25313else
25314 echo "$as_me: failed program was:" >&5
25315sed 's/^/| /' conftest.$ac_ext >&5
25316
25317eval "$as_ac_var=no"
25318fi
ac1cb8d3
VS
25319rm -f conftest.err conftest.$ac_objext \
25320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25321fi
25322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25324if test `eval echo '${'$as_ac_var'}'` = yes; then
25325 cat >>confdefs.h <<_ACEOF
25326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25327_ACEOF
25328
25329fi
25330done
25331
25332fi
25333
25334
25335
25336 if test "x$ac_cv_func_regcomp" != "xyes"; then
25337 if test "$wxUSE_REGEX" = "sys" ; then
25338 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25339echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25340 { (exit 1); exit 1; }; }
25341 else
25342 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25343echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25344 wxUSE_REGEX=builtin
25345 fi
25346 else
25347 wxUSE_REGEX=sys
25348 cat >>confdefs.h <<\_ACEOF
25349#define WX_NO_REGEX_ADVANCED 1
25350_ACEOF
25351
25352 fi
25353 fi
25354fi
25355
25356
25357ZLIB_LINK=
25358if test "$wxUSE_ZLIB" != "no" ; then
25359 cat >>confdefs.h <<\_ACEOF
25360#define wxUSE_ZLIB 1
25361_ACEOF
25362
25363
25364 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25365 if test "$USE_DARWIN" = 1; then
25366 system_zlib_h_ok="yes"
25367 else
25368 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25369echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25370if test "${ac_cv_header_zlib_h+set}" = set; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25372else
25373 if test "$cross_compiling" = yes; then
25374 unset ac_cv_header_zlib_h
25375
25376else
25377 cat >conftest.$ac_ext <<_ACEOF
25378/* confdefs.h. */
25379_ACEOF
25380cat confdefs.h >>conftest.$ac_ext
25381cat >>conftest.$ac_ext <<_ACEOF
25382/* end confdefs.h. */
25383
25384 #include <zlib.h>
25385 #include <stdio.h>
25386
25387 int main()
25388 {
25389 FILE *f=fopen("conftestval", "w");
25390 if (!f) exit(1);
25391 fprintf(f, "%s",
25392 ZLIB_VERSION[0] == '1' &&
25393 (ZLIB_VERSION[2] > '1' ||
25394 (ZLIB_VERSION[2] == '1' &&
25395 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25396 exit(0);
25397 }
25398
25399_ACEOF
25400rm -f conftest$ac_exeext
25401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25402 (eval $ac_link) 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 ac_cv_header_zlib_h=`cat conftestval`
25412else
25413 echo "$as_me: program exited with status $ac_status" >&5
25414echo "$as_me: failed program was:" >&5
25415sed 's/^/| /' conftest.$ac_ext >&5
25416
25417( exit $ac_status )
25418ac_cv_header_zlib_h=no
25419fi
ac1cb8d3 25420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25421fi
25422
25423fi
25424echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25425echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25426 if test "${ac_cv_header_zlib_h+set}" = set; then
25427 echo "$as_me:$LINENO: checking for zlib.h" >&5
25428echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25429if test "${ac_cv_header_zlib_h+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25431fi
25432echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25433echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25434else
25435 # Is the header compilable?
25436echo "$as_me:$LINENO: checking zlib.h usability" >&5
25437echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25438cat >conftest.$ac_ext <<_ACEOF
25439/* confdefs.h. */
25440_ACEOF
25441cat confdefs.h >>conftest.$ac_ext
25442cat >>conftest.$ac_ext <<_ACEOF
25443/* end confdefs.h. */
25444$ac_includes_default
25445#include <zlib.h>
25446_ACEOF
25447rm -f conftest.$ac_objext
25448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25449 (eval $ac_compile) 2>conftest.er1
a848cd7e 25450 ac_status=$?
ac1cb8d3
VS
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
a848cd7e
SC
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
6a5c9b3f
RR
25456 { ac_try='test -z "$ac_cxx_werror_flag"
25457 || test ! -s conftest.err'
ac1cb8d3
VS
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; } &&
25463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 ac_header_compiler=yes
25470else
25471 echo "$as_me: failed program was:" >&5
25472sed 's/^/| /' conftest.$ac_ext >&5
25473
25474ac_header_compiler=no
25475fi
ac1cb8d3 25476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25478echo "${ECHO_T}$ac_header_compiler" >&6
25479
25480# Is the header present?
25481echo "$as_me:$LINENO: checking zlib.h presence" >&5
25482echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25483cat >conftest.$ac_ext <<_ACEOF
25484/* confdefs.h. */
25485_ACEOF
25486cat confdefs.h >>conftest.$ac_ext
25487cat >>conftest.$ac_ext <<_ACEOF
25488/* end confdefs.h. */
25489#include <zlib.h>
25490_ACEOF
25491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25493 ac_status=$?
25494 grep -v '^ *+' conftest.er1 >conftest.err
25495 rm -f conftest.er1
25496 cat conftest.err >&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } >/dev/null; then
25499 if test -s conftest.err; then
5d7b7554
VZ
25500 ac_cpp_err=$ac_cxx_preproc_warn_flag
25501 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25502 else
25503 ac_cpp_err=
25504 fi
25505else
25506 ac_cpp_err=yes
25507fi
25508if test -z "$ac_cpp_err"; then
25509 ac_header_preproc=yes
25510else
25511 echo "$as_me: failed program was:" >&5
25512sed 's/^/| /' conftest.$ac_ext >&5
25513
25514 ac_header_preproc=no
25515fi
25516rm -f conftest.err conftest.$ac_ext
25517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25518echo "${ECHO_T}$ac_header_preproc" >&6
25519
25520# So? What about this header?
5d7b7554 25521case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25522 yes:no: )
a848cd7e
SC
25523 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25524echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25525 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25526echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25527 ac_header_preproc=yes
a848cd7e 25528 ;;
ac1cb8d3 25529 no:yes:* )
a848cd7e
SC
25530 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25531echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25532 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25533echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25535echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25537echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25538 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25539echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25540 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25541echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25542 (
25543 cat <<\_ASBOX
ac1cb8d3
VS
25544## ----------------------------------------- ##
25545## Report this to wx-dev@lists.wxwidgets.org ##
25546## ----------------------------------------- ##
a848cd7e
SC
25547_ASBOX
25548 ) |
25549 sed "s/^/$as_me: WARNING: /" >&2
25550 ;;
25551esac
25552echo "$as_me:$LINENO: checking for zlib.h" >&5
25553echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25554if test "${ac_cv_header_zlib_h+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25556else
25557 ac_cv_header_zlib_h=$ac_header_preproc
25558fi
25559echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25560echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25561
25562fi
25563
25564
25565
25566 system_zlib_h_ok=$ac_cv_header_zlib_h
25567 fi
25568
25569 if test "$system_zlib_h_ok" = "yes"; then
25570 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25571echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25572if test "${ac_cv_lib_z_deflate+set}" = set; then
25573 echo $ECHO_N "(cached) $ECHO_C" >&6
25574else
25575 ac_check_lib_save_LIBS=$LIBS
25576LIBS="-lz $LIBS"
25577cat >conftest.$ac_ext <<_ACEOF
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
25583
25584/* Override any gcc2 internal prototype to avoid an error. */
25585#ifdef __cplusplus
25586extern "C"
25587#endif
25588/* We use char because int might match the return type of a gcc2
25589 builtin and then its argument prototype would still apply. */
25590char deflate ();
25591int
25592main ()
25593{
25594deflate ();
25595 ;
25596 return 0;
25597}
25598_ACEOF
25599rm -f conftest.$ac_objext conftest$ac_exeext
25600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25601 (eval $ac_link) 2>conftest.er1
a848cd7e 25602 ac_status=$?
ac1cb8d3
VS
25603 grep -v '^ *+' conftest.er1 >conftest.err
25604 rm -f conftest.er1
25605 cat conftest.err >&5
a848cd7e
SC
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } &&
6a5c9b3f
RR
25608 { ac_try='test -z "$ac_cxx_werror_flag"
25609 || test ! -s conftest.err'
ac1cb8d3
VS
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25612 ac_status=$?
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; } &&
25615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25618 ac_status=$?
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_lib_z_deflate=yes
25622else
25623 echo "$as_me: failed program was:" >&5
25624sed 's/^/| /' conftest.$ac_ext >&5
25625
25626ac_cv_lib_z_deflate=no
25627fi
ac1cb8d3
VS
25628rm -f conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25630LIBS=$ac_check_lib_save_LIBS
25631fi
25632echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25633echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25634if test $ac_cv_lib_z_deflate = yes; then
25635 ZLIB_LINK=" -lz"
25636fi
25637
25638 fi
25639
25640 if test "x$ZLIB_LINK" = "x" ; then
25641 if test "$wxUSE_ZLIB" = "sys" ; then
25642 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25643echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25644 { (exit 1); exit 1; }; }
25645 else
25646 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25647echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25648 wxUSE_ZLIB=builtin
25649 fi
25650 else
25651 wxUSE_ZLIB=sys
25652 fi
25653 fi
25654fi
25655
25656
25657PNG_LINK=
25658if test "$wxUSE_LIBPNG" != "no" ; then
25659 cat >>confdefs.h <<\_ACEOF
25660#define wxUSE_LIBPNG 1
25661_ACEOF
25662
25663
25664 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25665 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25666echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25667 wxUSE_LIBPNG=sys
25668 fi
25669
25670 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25671 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25672echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25673 wxUSE_LIBPNG=builtin
25674 fi
25675
25676 if test "$wxUSE_MGL" != 1 ; then
25677 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25678 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25679echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25680if test "${ac_cv_header_png_h+set}" = set; then
25681 echo $ECHO_N "(cached) $ECHO_C" >&6
25682else
25683 if test "$cross_compiling" = yes; then
25684 unset ac_cv_header_png_h
25685
25686else
25687 cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h. */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h. */
25693
25694 #include <png.h>
25695 #include <stdio.h>
25696
25697 int main()
25698 {
25699 FILE *f=fopen("conftestval", "w");
25700 if (!f) exit(1);
25701 fprintf(f, "%s",
25702 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25703 exit(0);
25704 }
25705
25706_ACEOF
25707rm -f conftest$ac_exeext
25708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25709 (eval $ac_link) 2>&5
25710 ac_status=$?
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; }; then
25718 ac_cv_header_png_h=`cat conftestval`
25719else
25720 echo "$as_me: program exited with status $ac_status" >&5
25721echo "$as_me: failed program was:" >&5
25722sed 's/^/| /' conftest.$ac_ext >&5
25723
25724( exit $ac_status )
25725ac_cv_header_png_h=no
25726fi
ac1cb8d3 25727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25728fi
25729
25730fi
25731echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25732echo "${ECHO_T}$ac_cv_header_png_h" >&6
25733 if test "${ac_cv_header_png_h+set}" = set; then
25734 echo "$as_me:$LINENO: checking for png.h" >&5
25735echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25736if test "${ac_cv_header_png_h+set}" = set; then
25737 echo $ECHO_N "(cached) $ECHO_C" >&6
25738fi
25739echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25740echo "${ECHO_T}$ac_cv_header_png_h" >&6
25741else
25742 # Is the header compilable?
25743echo "$as_me:$LINENO: checking png.h usability" >&5
25744echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25745cat >conftest.$ac_ext <<_ACEOF
25746/* confdefs.h. */
25747_ACEOF
25748cat confdefs.h >>conftest.$ac_ext
25749cat >>conftest.$ac_ext <<_ACEOF
25750/* end confdefs.h. */
25751$ac_includes_default
25752#include <png.h>
25753_ACEOF
25754rm -f conftest.$ac_objext
25755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25756 (eval $ac_compile) 2>conftest.er1
a848cd7e 25757 ac_status=$?
ac1cb8d3
VS
25758 grep -v '^ *+' conftest.er1 >conftest.err
25759 rm -f conftest.er1
25760 cat conftest.err >&5
a848cd7e
SC
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } &&
6a5c9b3f
RR
25763 { ac_try='test -z "$ac_cxx_werror_flag"
25764 || test ! -s conftest.err'
ac1cb8d3
VS
25765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; } &&
25770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; }; then
25776 ac_header_compiler=yes
25777else
25778 echo "$as_me: failed program was:" >&5
25779sed 's/^/| /' conftest.$ac_ext >&5
25780
25781ac_header_compiler=no
25782fi
ac1cb8d3 25783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25785echo "${ECHO_T}$ac_header_compiler" >&6
25786
25787# Is the header present?
25788echo "$as_me:$LINENO: checking png.h presence" >&5
25789echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25790cat >conftest.$ac_ext <<_ACEOF
25791/* confdefs.h. */
25792_ACEOF
25793cat confdefs.h >>conftest.$ac_ext
25794cat >>conftest.$ac_ext <<_ACEOF
25795/* end confdefs.h. */
25796#include <png.h>
25797_ACEOF
25798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25800 ac_status=$?
25801 grep -v '^ *+' conftest.er1 >conftest.err
25802 rm -f conftest.er1
25803 cat conftest.err >&5
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); } >/dev/null; then
25806 if test -s conftest.err; then
5d7b7554
VZ
25807 ac_cpp_err=$ac_cxx_preproc_warn_flag
25808 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25809 else
25810 ac_cpp_err=
25811 fi
25812else
25813 ac_cpp_err=yes
25814fi
25815if test -z "$ac_cpp_err"; then
25816 ac_header_preproc=yes
25817else
25818 echo "$as_me: failed program was:" >&5
25819sed 's/^/| /' conftest.$ac_ext >&5
25820
25821 ac_header_preproc=no
25822fi
25823rm -f conftest.err conftest.$ac_ext
25824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25825echo "${ECHO_T}$ac_header_preproc" >&6
25826
25827# So? What about this header?
5d7b7554 25828case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25829 yes:no: )
a848cd7e
SC
25830 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25831echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25832 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25833echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25834 ac_header_preproc=yes
a848cd7e 25835 ;;
ac1cb8d3 25836 no:yes:* )
a848cd7e
SC
25837 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25838echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25839 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25840echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25842echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25844echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25845 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25846echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25847 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25848echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25849 (
25850 cat <<\_ASBOX
ac1cb8d3
VS
25851## ----------------------------------------- ##
25852## Report this to wx-dev@lists.wxwidgets.org ##
25853## ----------------------------------------- ##
a848cd7e
SC
25854_ASBOX
25855 ) |
25856 sed "s/^/$as_me: WARNING: /" >&2
25857 ;;
25858esac
25859echo "$as_me:$LINENO: checking for png.h" >&5
25860echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25861if test "${ac_cv_header_png_h+set}" = set; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25863else
25864 ac_cv_header_png_h=$ac_header_preproc
25865fi
25866echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25867echo "${ECHO_T}$ac_cv_header_png_h" >&6
25868
25869fi
25870
25871
25872
25873 if test "$ac_cv_header_png_h" = "yes"; then
25874 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25875echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25876if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25878else
25879 ac_check_lib_save_LIBS=$LIBS
25880LIBS="-lpng -lz -lm $LIBS"
25881cat >conftest.$ac_ext <<_ACEOF
25882/* confdefs.h. */
25883_ACEOF
25884cat confdefs.h >>conftest.$ac_ext
25885cat >>conftest.$ac_ext <<_ACEOF
25886/* end confdefs.h. */
25887
25888/* Override any gcc2 internal prototype to avoid an error. */
25889#ifdef __cplusplus
25890extern "C"
25891#endif
25892/* We use char because int might match the return type of a gcc2
25893 builtin and then its argument prototype would still apply. */
25894char png_check_sig ();
25895int
25896main ()
25897{
25898png_check_sig ();
25899 ;
25900 return 0;
25901}
25902_ACEOF
25903rm -f conftest.$ac_objext conftest$ac_exeext
25904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25905 (eval $ac_link) 2>conftest.er1
a848cd7e 25906 ac_status=$?
ac1cb8d3
VS
25907 grep -v '^ *+' conftest.er1 >conftest.err
25908 rm -f conftest.er1
25909 cat conftest.err >&5
a848cd7e
SC
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } &&
6a5c9b3f
RR
25912 { ac_try='test -z "$ac_cxx_werror_flag"
25913 || test ! -s conftest.err'
ac1cb8d3
VS
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; } &&
25919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; }; then
25925 ac_cv_lib_png_png_check_sig=yes
25926else
25927 echo "$as_me: failed program was:" >&5
25928sed 's/^/| /' conftest.$ac_ext >&5
25929
25930ac_cv_lib_png_png_check_sig=no
25931fi
ac1cb8d3
VS
25932rm -f conftest.err conftest.$ac_objext \
25933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25934LIBS=$ac_check_lib_save_LIBS
25935fi
25936echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25937echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25938if test $ac_cv_lib_png_png_check_sig = yes; then
25939 PNG_LINK=" -lpng -lz"
25940fi
25941
25942 fi
25943
25944 if test "x$PNG_LINK" = "x" ; then
25945 if test "$wxUSE_LIBPNG" = "sys" ; then
25946 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25947echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25948 { (exit 1); exit 1; }; }
25949 else
25950 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25951echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25952 wxUSE_LIBPNG=builtin
25953 fi
25954 else
25955 wxUSE_LIBPNG=sys
25956 fi
25957 fi
25958 fi
25959
25960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25961fi
25962
25963
25964JPEG_LINK=
25965if test "$wxUSE_LIBJPEG" != "no" ; then
25966 cat >>confdefs.h <<\_ACEOF
25967#define wxUSE_LIBJPEG 1
25968_ACEOF
25969
25970
25971 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25972 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25973echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25974 wxUSE_LIBJPEG=sys
25975 fi
25976
25977 if test "$wxUSE_MGL" != 1 ; then
25978 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25979 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25980echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25981 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25982 echo $ECHO_N "(cached) $ECHO_C" >&6
25983else
25984 cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
25990
25991 #undef HAVE_STDLIB_H
25992 #include <stdio.h>
25993 #include <jpeglib.h>
25994
25995int
25996main ()
25997{
25998
25999
26000 ;
26001 return 0;
26002}
26003_ACEOF
26004rm -f conftest.$ac_objext
26005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26006 (eval $ac_compile) 2>conftest.er1
a848cd7e 26007 ac_status=$?
ac1cb8d3
VS
26008 grep -v '^ *+' conftest.er1 >conftest.err
26009 rm -f conftest.er1
26010 cat conftest.err >&5
a848cd7e
SC
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } &&
6a5c9b3f
RR
26013 { ac_try='test -z "$ac_cxx_werror_flag"
26014 || test ! -s conftest.err'
ac1cb8d3
VS
26015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016 (eval $ac_try) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; } &&
26020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026 ac_cv_header_jpeglib_h=yes
26027else
26028 echo "$as_me: failed program was:" >&5
26029sed 's/^/| /' conftest.$ac_ext >&5
26030
26031ac_cv_header_jpeglib_h=no
26032
26033fi
ac1cb8d3 26034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26035
26036fi
26037
26038 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26039echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26040
26041 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26042 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26043echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26044if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-ljpeg $LIBS"
26049cat >conftest.$ac_ext <<_ACEOF
26050/* confdefs.h. */
26051_ACEOF
26052cat confdefs.h >>conftest.$ac_ext
26053cat >>conftest.$ac_ext <<_ACEOF
26054/* end confdefs.h. */
26055
26056/* Override any gcc2 internal prototype to avoid an error. */
26057#ifdef __cplusplus
26058extern "C"
26059#endif
26060/* We use char because int might match the return type of a gcc2
26061 builtin and then its argument prototype would still apply. */
26062char jpeg_read_header ();
26063int
26064main ()
26065{
26066jpeg_read_header ();
26067 ;
26068 return 0;
26069}
26070_ACEOF
26071rm -f conftest.$ac_objext conftest$ac_exeext
26072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26073 (eval $ac_link) 2>conftest.er1
a848cd7e 26074 ac_status=$?
ac1cb8d3
VS
26075 grep -v '^ *+' conftest.er1 >conftest.err
26076 rm -f conftest.er1
26077 cat conftest.err >&5
a848cd7e
SC
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
6a5c9b3f
RR
26080 { ac_try='test -z "$ac_cxx_werror_flag"
26081 || test ! -s conftest.err'
ac1cb8d3
VS
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; } &&
26087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; }; then
26093 ac_cv_lib_jpeg_jpeg_read_header=yes
26094else
26095 echo "$as_me: failed program was:" >&5
26096sed 's/^/| /' conftest.$ac_ext >&5
26097
26098ac_cv_lib_jpeg_jpeg_read_header=no
26099fi
ac1cb8d3
VS
26100rm -f conftest.err conftest.$ac_objext \
26101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26102LIBS=$ac_check_lib_save_LIBS
26103fi
26104echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26105echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26106if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26107 JPEG_LINK=" -ljpeg"
26108fi
26109
26110 fi
26111
26112 if test "x$JPEG_LINK" = "x" ; then
26113 if test "$wxUSE_LIBJPEG" = "sys" ; then
26114 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26115echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26116 { (exit 1); exit 1; }; }
26117 else
26118 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26119echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26120 wxUSE_LIBJPEG=builtin
26121 fi
26122 else
26123 wxUSE_LIBJPEG=sys
26124 fi
26125 fi
26126 fi
26127fi
26128
26129
26130TIFF_LINK=
26131TIFF_PREREQ_LINKS=-lm
26132if test "$wxUSE_LIBTIFF" != "no" ; then
26133 cat >>confdefs.h <<\_ACEOF
26134#define wxUSE_LIBTIFF 1
26135_ACEOF
26136
26137
26138 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26139 if test "$wxUSE_LIBJPEG" = "sys"; then
26140 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26141 fi
26142 if test "$wxUSE_ZLIB" = "sys"; then
26143 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26144 fi
26145 if test "${ac_cv_header_tiffio_h+set}" = set; then
26146 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26147echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26148if test "${ac_cv_header_tiffio_h+set}" = set; then
26149 echo $ECHO_N "(cached) $ECHO_C" >&6
26150fi
26151echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26152echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26153else
26154 # Is the header compilable?
26155echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26156echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26157cat >conftest.$ac_ext <<_ACEOF
26158/* confdefs.h. */
26159_ACEOF
26160cat confdefs.h >>conftest.$ac_ext
26161cat >>conftest.$ac_ext <<_ACEOF
26162/* end confdefs.h. */
26163$ac_includes_default
26164#include <tiffio.h>
26165_ACEOF
26166rm -f conftest.$ac_objext
26167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26168 (eval $ac_compile) 2>conftest.er1
a848cd7e 26169 ac_status=$?
ac1cb8d3
VS
26170 grep -v '^ *+' conftest.er1 >conftest.err
26171 rm -f conftest.er1
26172 cat conftest.err >&5
a848cd7e
SC
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } &&
6a5c9b3f
RR
26175 { ac_try='test -z "$ac_cxx_werror_flag"
26176 || test ! -s conftest.err'
ac1cb8d3
VS
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } &&
26182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
26188 ac_header_compiler=yes
26189else
26190 echo "$as_me: failed program was:" >&5
26191sed 's/^/| /' conftest.$ac_ext >&5
26192
26193ac_header_compiler=no
26194fi
ac1cb8d3 26195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26197echo "${ECHO_T}$ac_header_compiler" >&6
26198
26199# Is the header present?
26200echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26201echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26202cat >conftest.$ac_ext <<_ACEOF
26203/* confdefs.h. */
26204_ACEOF
26205cat confdefs.h >>conftest.$ac_ext
26206cat >>conftest.$ac_ext <<_ACEOF
26207/* end confdefs.h. */
26208#include <tiffio.h>
26209_ACEOF
26210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26212 ac_status=$?
26213 grep -v '^ *+' conftest.er1 >conftest.err
26214 rm -f conftest.er1
26215 cat conftest.err >&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } >/dev/null; then
26218 if test -s conftest.err; then
5d7b7554
VZ
26219 ac_cpp_err=$ac_cxx_preproc_warn_flag
26220 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26221 else
26222 ac_cpp_err=
26223 fi
26224else
26225 ac_cpp_err=yes
26226fi
26227if test -z "$ac_cpp_err"; then
26228 ac_header_preproc=yes
26229else
26230 echo "$as_me: failed program was:" >&5
26231sed 's/^/| /' conftest.$ac_ext >&5
26232
26233 ac_header_preproc=no
26234fi
26235rm -f conftest.err conftest.$ac_ext
26236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26237echo "${ECHO_T}$ac_header_preproc" >&6
26238
26239# So? What about this header?
5d7b7554 26240case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26241 yes:no: )
a848cd7e
SC
26242 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26243echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26244 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26245echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26246 ac_header_preproc=yes
a848cd7e 26247 ;;
ac1cb8d3 26248 no:yes:* )
a848cd7e
SC
26249 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26250echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26251 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26252echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26253 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26254echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26255 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26256echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26257 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26258echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26259 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26260echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26261 (
26262 cat <<\_ASBOX
ac1cb8d3
VS
26263## ----------------------------------------- ##
26264## Report this to wx-dev@lists.wxwidgets.org ##
26265## ----------------------------------------- ##
a848cd7e
SC
26266_ASBOX
26267 ) |
26268 sed "s/^/$as_me: WARNING: /" >&2
26269 ;;
26270esac
26271echo "$as_me:$LINENO: checking for tiffio.h" >&5
26272echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26273if test "${ac_cv_header_tiffio_h+set}" = set; then
26274 echo $ECHO_N "(cached) $ECHO_C" >&6
26275else
26276 ac_cv_header_tiffio_h=$ac_header_preproc
26277fi
26278echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26279echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26280
26281fi
26282if test $ac_cv_header_tiffio_h = yes; then
26283
26284 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26285echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26286if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26288else
26289 ac_check_lib_save_LIBS=$LIBS
26290LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26291cat >conftest.$ac_ext <<_ACEOF
26292/* confdefs.h. */
26293_ACEOF
26294cat confdefs.h >>conftest.$ac_ext
26295cat >>conftest.$ac_ext <<_ACEOF
26296/* end confdefs.h. */
26297
26298/* Override any gcc2 internal prototype to avoid an error. */
26299#ifdef __cplusplus
26300extern "C"
26301#endif
26302/* We use char because int might match the return type of a gcc2
26303 builtin and then its argument prototype would still apply. */
26304char TIFFError ();
26305int
26306main ()
26307{
26308TIFFError ();
26309 ;
26310 return 0;
26311}
26312_ACEOF
26313rm -f conftest.$ac_objext conftest$ac_exeext
26314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26315 (eval $ac_link) 2>conftest.er1
a848cd7e 26316 ac_status=$?
ac1cb8d3
VS
26317 grep -v '^ *+' conftest.er1 >conftest.err
26318 rm -f conftest.er1
26319 cat conftest.err >&5
a848cd7e
SC
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
6a5c9b3f
RR
26322 { ac_try='test -z "$ac_cxx_werror_flag"
26323 || test ! -s conftest.err'
ac1cb8d3
VS
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26326 ac_status=$?
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; } &&
26329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26332 ac_status=$?
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 ac_cv_lib_tiff_TIFFError=yes
26336else
26337 echo "$as_me: failed program was:" >&5
26338sed 's/^/| /' conftest.$ac_ext >&5
26339
26340ac_cv_lib_tiff_TIFFError=no
26341fi
ac1cb8d3
VS
26342rm -f conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26344LIBS=$ac_check_lib_save_LIBS
26345fi
26346echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26347echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26348if test $ac_cv_lib_tiff_TIFFError = yes; then
26349 TIFF_LINK=" -ltiff"
26350fi
26351
26352
26353
26354fi
26355
26356
26357
26358 if test "x$TIFF_LINK" = "x" ; then
26359 if test "$wxUSE_LIBTIFF" = "sys" ; then
26360 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26361echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26362 { (exit 1); exit 1; }; }
26363 else
26364 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26365echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26366 wxUSE_LIBTIFF=builtin
26367 fi
26368 else
26369 wxUSE_LIBTIFF=sys
26370 fi
26371 fi
26372fi
26373
26374
47a7e797
MW
26375if test "$wxUSE_WCHAR_T" != "yes"; then
26376 if test "$wxUSE_EXPAT" != "no"; then
26377 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26378echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26379 wxUSE_EXPAT=no
26380 fi
26381 if test "$wxUSE_XML" != "no"; then
26382 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26383echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26384 wxUSE_XML=no
26385 fi
26386fi
26387
a848cd7e
SC
26388if test "$wxUSE_EXPAT" != "no"; then
26389 wxUSE_XML=yes
26390 cat >>confdefs.h <<\_ACEOF
26391#define wxUSE_EXPAT 1
26392_ACEOF
26393
26394 cat >>confdefs.h <<\_ACEOF
26395#define wxUSE_XML 1
26396_ACEOF
26397
26398
26399 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26400 if test "${ac_cv_header_expat_h+set}" = set; then
26401 echo "$as_me:$LINENO: checking for expat.h" >&5
26402echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26403if test "${ac_cv_header_expat_h+set}" = set; then
26404 echo $ECHO_N "(cached) $ECHO_C" >&6
26405fi
26406echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26407echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26408else
26409 # Is the header compilable?
26410echo "$as_me:$LINENO: checking expat.h usability" >&5
26411echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26412cat >conftest.$ac_ext <<_ACEOF
26413/* confdefs.h. */
26414_ACEOF
26415cat confdefs.h >>conftest.$ac_ext
26416cat >>conftest.$ac_ext <<_ACEOF
26417/* end confdefs.h. */
26418$ac_includes_default
26419#include <expat.h>
26420_ACEOF
26421rm -f conftest.$ac_objext
26422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26423 (eval $ac_compile) 2>conftest.er1
a848cd7e 26424 ac_status=$?
ac1cb8d3
VS
26425 grep -v '^ *+' conftest.er1 >conftest.err
26426 rm -f conftest.er1
26427 cat conftest.err >&5
a848cd7e
SC
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } &&
6a5c9b3f
RR
26430 { ac_try='test -z "$ac_cxx_werror_flag"
26431 || test ! -s conftest.err'
ac1cb8d3
VS
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; } &&
26437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439 (eval $ac_try) 2>&5
26440 ac_status=$?
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; }; then
26443 ac_header_compiler=yes
26444else
26445 echo "$as_me: failed program was:" >&5
26446sed 's/^/| /' conftest.$ac_ext >&5
26447
26448ac_header_compiler=no
26449fi
ac1cb8d3 26450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26452echo "${ECHO_T}$ac_header_compiler" >&6
26453
26454# Is the header present?
26455echo "$as_me:$LINENO: checking expat.h presence" >&5
26456echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26457cat >conftest.$ac_ext <<_ACEOF
26458/* confdefs.h. */
26459_ACEOF
26460cat confdefs.h >>conftest.$ac_ext
26461cat >>conftest.$ac_ext <<_ACEOF
26462/* end confdefs.h. */
26463#include <expat.h>
26464_ACEOF
26465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26467 ac_status=$?
26468 grep -v '^ *+' conftest.er1 >conftest.err
26469 rm -f conftest.er1
26470 cat conftest.err >&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } >/dev/null; then
26473 if test -s conftest.err; then
5d7b7554
VZ
26474 ac_cpp_err=$ac_cxx_preproc_warn_flag
26475 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26476 else
26477 ac_cpp_err=
26478 fi
26479else
26480 ac_cpp_err=yes
26481fi
26482if test -z "$ac_cpp_err"; then
26483 ac_header_preproc=yes
26484else
26485 echo "$as_me: failed program was:" >&5
26486sed 's/^/| /' conftest.$ac_ext >&5
26487
26488 ac_header_preproc=no
26489fi
26490rm -f conftest.err conftest.$ac_ext
26491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26492echo "${ECHO_T}$ac_header_preproc" >&6
26493
26494# So? What about this header?
5d7b7554 26495case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26496 yes:no: )
a848cd7e
SC
26497 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26498echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26499 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26500echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26501 ac_header_preproc=yes
a848cd7e 26502 ;;
ac1cb8d3 26503 no:yes:* )
a848cd7e
SC
26504 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26505echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26506 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26507echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26508 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26509echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26510 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26511echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26512 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26513echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26514 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26515echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26516 (
26517 cat <<\_ASBOX
ac1cb8d3
VS
26518## ----------------------------------------- ##
26519## Report this to wx-dev@lists.wxwidgets.org ##
26520## ----------------------------------------- ##
a848cd7e
SC
26521_ASBOX
26522 ) |
26523 sed "s/^/$as_me: WARNING: /" >&2
26524 ;;
26525esac
26526echo "$as_me:$LINENO: checking for expat.h" >&5
26527echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26528if test "${ac_cv_header_expat_h+set}" = set; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26530else
26531 ac_cv_header_expat_h=$ac_header_preproc
26532fi
26533echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26534echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26535
26536fi
26537if test $ac_cv_header_expat_h = yes; then
26538 found_expat_h=1
26539fi
26540
26541
26542 if test "x$found_expat_h" = "x1"; then
26543 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26544echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26545if test "${wx_cv_expat_is_not_broken+set}" = set; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26547else
26548
a848cd7e
SC
26549 cat >conftest.$ac_ext <<_ACEOF
26550/* confdefs.h. */
26551_ACEOF
26552cat confdefs.h >>conftest.$ac_ext
26553cat >>conftest.$ac_ext <<_ACEOF
26554/* end confdefs.h. */
26555#include <expat.h>
26556int
26557main ()
26558{
26559
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26566 (eval $ac_compile) 2>conftest.er1
a848cd7e 26567 ac_status=$?
ac1cb8d3
VS
26568 grep -v '^ *+' conftest.er1 >conftest.err
26569 rm -f conftest.er1
26570 cat conftest.err >&5
a848cd7e
SC
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
6a5c9b3f
RR
26573 { ac_try='test -z "$ac_cxx_werror_flag"
26574 || test ! -s conftest.err'
ac1cb8d3
VS
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26577 ac_status=$?
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; } &&
26580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 wx_cv_expat_is_not_broken=yes
26587else
26588 echo "$as_me: failed program was:" >&5
26589sed 's/^/| /' conftest.$ac_ext >&5
26590
26591wx_cv_expat_is_not_broken=no
26592
26593fi
ac1cb8d3 26594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26595
26596
26597fi
26598echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26599echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26600 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26601 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26602echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26603if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26605else
26606 ac_check_lib_save_LIBS=$LIBS
26607LIBS="-lexpat $LIBS"
26608cat >conftest.$ac_ext <<_ACEOF
26609/* confdefs.h. */
26610_ACEOF
26611cat confdefs.h >>conftest.$ac_ext
26612cat >>conftest.$ac_ext <<_ACEOF
26613/* end confdefs.h. */
26614
26615/* Override any gcc2 internal prototype to avoid an error. */
26616#ifdef __cplusplus
26617extern "C"
26618#endif
26619/* We use char because int might match the return type of a gcc2
26620 builtin and then its argument prototype would still apply. */
26621char XML_ParserCreate ();
26622int
26623main ()
26624{
26625XML_ParserCreate ();
26626 ;
26627 return 0;
26628}
26629_ACEOF
26630rm -f conftest.$ac_objext conftest$ac_exeext
26631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26632 (eval $ac_link) 2>conftest.er1
a848cd7e 26633 ac_status=$?
ac1cb8d3
VS
26634 grep -v '^ *+' conftest.er1 >conftest.err
26635 rm -f conftest.er1
26636 cat conftest.err >&5
a848cd7e
SC
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); } &&
6a5c9b3f
RR
26639 { ac_try='test -z "$ac_cxx_werror_flag"
26640 || test ! -s conftest.err'
ac1cb8d3
VS
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; } &&
26646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648 (eval $ac_try) 2>&5
26649 ac_status=$?
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652 ac_cv_lib_expat_XML_ParserCreate=yes
26653else
26654 echo "$as_me: failed program was:" >&5
26655sed 's/^/| /' conftest.$ac_ext >&5
26656
26657ac_cv_lib_expat_XML_ParserCreate=no
26658fi
ac1cb8d3
VS
26659rm -f conftest.err conftest.$ac_objext \
26660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26661LIBS=$ac_check_lib_save_LIBS
26662fi
26663echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26664echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26665if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26666 EXPAT_LINK=" -lexpat"
26667fi
26668
26669 fi
26670 fi
26671 if test "x$EXPAT_LINK" = "x" ; then
26672 if test "$wxUSE_EXPAT" = "sys" ; then
26673 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26674echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26675 { (exit 1); exit 1; }; }
26676 else
26677 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26678echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26679 wxUSE_EXPAT=builtin
26680 fi
26681 else
26682 wxUSE_EXPAT=sys
26683 fi
26684 fi
26685 if test "$wxUSE_EXPAT" = "builtin" ; then
26686
26687
26688subdirs="$subdirs src/expat"
26689
26690 fi
26691fi
26692
26693
26694
26695if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26696 if test "${ac_cv_header_mspack_h+set}" = set; then
26697 echo "$as_me:$LINENO: checking for mspack.h" >&5
26698echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26699if test "${ac_cv_header_mspack_h+set}" = set; then
26700 echo $ECHO_N "(cached) $ECHO_C" >&6
26701fi
26702echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26703echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26704else
26705 # Is the header compilable?
26706echo "$as_me:$LINENO: checking mspack.h usability" >&5
26707echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26708cat >conftest.$ac_ext <<_ACEOF
26709/* confdefs.h. */
26710_ACEOF
26711cat confdefs.h >>conftest.$ac_ext
26712cat >>conftest.$ac_ext <<_ACEOF
26713/* end confdefs.h. */
26714$ac_includes_default
26715#include <mspack.h>
26716_ACEOF
26717rm -f conftest.$ac_objext
26718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26719 (eval $ac_compile) 2>conftest.er1
a848cd7e 26720 ac_status=$?
ac1cb8d3
VS
26721 grep -v '^ *+' conftest.er1 >conftest.err
26722 rm -f conftest.er1
26723 cat conftest.err >&5
a848cd7e
SC
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } &&
6a5c9b3f
RR
26726 { ac_try='test -z "$ac_cxx_werror_flag"
26727 || test ! -s conftest.err'
ac1cb8d3
VS
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; } &&
26733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
26739 ac_header_compiler=yes
26740else
26741 echo "$as_me: failed program was:" >&5
26742sed 's/^/| /' conftest.$ac_ext >&5
26743
26744ac_header_compiler=no
26745fi
ac1cb8d3 26746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26748echo "${ECHO_T}$ac_header_compiler" >&6
26749
26750# Is the header present?
26751echo "$as_me:$LINENO: checking mspack.h presence" >&5
26752echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26753cat >conftest.$ac_ext <<_ACEOF
26754/* confdefs.h. */
26755_ACEOF
26756cat confdefs.h >>conftest.$ac_ext
26757cat >>conftest.$ac_ext <<_ACEOF
26758/* end confdefs.h. */
26759#include <mspack.h>
26760_ACEOF
26761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26763 ac_status=$?
26764 grep -v '^ *+' conftest.er1 >conftest.err
26765 rm -f conftest.er1
26766 cat conftest.err >&5
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } >/dev/null; then
26769 if test -s conftest.err; then
5d7b7554
VZ
26770 ac_cpp_err=$ac_cxx_preproc_warn_flag
26771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26772 else
26773 ac_cpp_err=
26774 fi
26775else
26776 ac_cpp_err=yes
26777fi
26778if test -z "$ac_cpp_err"; then
26779 ac_header_preproc=yes
26780else
26781 echo "$as_me: failed program was:" >&5
26782sed 's/^/| /' conftest.$ac_ext >&5
26783
26784 ac_header_preproc=no
26785fi
26786rm -f conftest.err conftest.$ac_ext
26787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26788echo "${ECHO_T}$ac_header_preproc" >&6
26789
26790# So? What about this header?
5d7b7554 26791case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26792 yes:no: )
a848cd7e
SC
26793 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26794echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26795 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26796echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26797 ac_header_preproc=yes
a848cd7e 26798 ;;
ac1cb8d3 26799 no:yes:* )
a848cd7e
SC
26800 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26801echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26802 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26803echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26804 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26805echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26806 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26807echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26808 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26809echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26810 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26811echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26812 (
26813 cat <<\_ASBOX
ac1cb8d3
VS
26814## ----------------------------------------- ##
26815## Report this to wx-dev@lists.wxwidgets.org ##
26816## ----------------------------------------- ##
a848cd7e
SC
26817_ASBOX
26818 ) |
26819 sed "s/^/$as_me: WARNING: /" >&2
26820 ;;
26821esac
26822echo "$as_me:$LINENO: checking for mspack.h" >&5
26823echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26824if test "${ac_cv_header_mspack_h+set}" = set; then
26825 echo $ECHO_N "(cached) $ECHO_C" >&6
26826else
26827 ac_cv_header_mspack_h=$ac_header_preproc
26828fi
26829echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26830echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26831
26832fi
26833if test $ac_cv_header_mspack_h = yes; then
26834 found_mspack_h=1
26835fi
26836
26837
26838 if test "x$found_mspack_h" = "x1"; then
26839 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26840echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26841if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26842 echo $ECHO_N "(cached) $ECHO_C" >&6
26843else
26844 ac_check_lib_save_LIBS=$LIBS
26845LIBS="-lmspack $LIBS"
26846cat >conftest.$ac_ext <<_ACEOF
26847/* confdefs.h. */
26848_ACEOF
26849cat confdefs.h >>conftest.$ac_ext
26850cat >>conftest.$ac_ext <<_ACEOF
26851/* end confdefs.h. */
26852
26853/* Override any gcc2 internal prototype to avoid an error. */
26854#ifdef __cplusplus
26855extern "C"
26856#endif
26857/* We use char because int might match the return type of a gcc2
26858 builtin and then its argument prototype would still apply. */
26859char mspack_create_chm_decompressor ();
26860int
26861main ()
26862{
26863mspack_create_chm_decompressor ();
26864 ;
26865 return 0;
26866}
26867_ACEOF
26868rm -f conftest.$ac_objext conftest$ac_exeext
26869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26870 (eval $ac_link) 2>conftest.er1
a848cd7e 26871 ac_status=$?
ac1cb8d3
VS
26872 grep -v '^ *+' conftest.er1 >conftest.err
26873 rm -f conftest.er1
26874 cat conftest.err >&5
a848cd7e
SC
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); } &&
6a5c9b3f
RR
26877 { ac_try='test -z "$ac_cxx_werror_flag"
26878 || test ! -s conftest.err'
ac1cb8d3
VS
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; } &&
26884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; }; then
26890 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26891else
26892 echo "$as_me: failed program was:" >&5
26893sed 's/^/| /' conftest.$ac_ext >&5
26894
26895ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26896fi
ac1cb8d3
VS
26897rm -f conftest.err conftest.$ac_objext \
26898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26899LIBS=$ac_check_lib_save_LIBS
26900fi
26901echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26902echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26903if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26904 MSPACK_LINK=" -lmspack"
26905fi
26906
26907 fi
26908 if test "x$MSPACK_LINK" = "x" ; then
26909 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26910 fi
26911fi
26912
26913if test "$wxUSE_LIBMSPACK" != "no"; then
26914 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26915#define wxUSE_LIBMSPACK 1
26916_ACEOF
26917
a848cd7e
SC
26918fi
26919
26920
26921
26922AFMINSTALL=
26923WIN32INSTALL=
26924
26925TOOLKIT=
26926TOOLKIT_INCLUDE=
26927WIDGET_SET=
26928
26929if test "$USE_WIN32" = 1 ; then
26930
26931for ac_header in w32api.h
26932do
26933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26934if eval "test \"\${$as_ac_Header+set}\" = set"; then
26935 echo "$as_me:$LINENO: checking for $ac_header" >&5
26936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26937if eval "test \"\${$as_ac_Header+set}\" = set"; then
26938 echo $ECHO_N "(cached) $ECHO_C" >&6
26939fi
26940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26942else
26943 # Is the header compilable?
26944echo "$as_me:$LINENO: checking $ac_header usability" >&5
26945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26946cat >conftest.$ac_ext <<_ACEOF
26947/* confdefs.h. */
26948_ACEOF
26949cat confdefs.h >>conftest.$ac_ext
26950cat >>conftest.$ac_ext <<_ACEOF
26951/* end confdefs.h. */
26952$ac_includes_default
26953#include <$ac_header>
26954_ACEOF
26955rm -f conftest.$ac_objext
26956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26957 (eval $ac_compile) 2>conftest.er1
a848cd7e 26958 ac_status=$?
ac1cb8d3
VS
26959 grep -v '^ *+' conftest.er1 >conftest.err
26960 rm -f conftest.er1
26961 cat conftest.err >&5
a848cd7e
SC
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
6a5c9b3f
RR
26964 { ac_try='test -z "$ac_cxx_werror_flag"
26965 || test ! -s conftest.err'
ac1cb8d3
VS
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_header_compiler=yes
26978else
26979 echo "$as_me: failed program was:" >&5
26980sed 's/^/| /' conftest.$ac_ext >&5
26981
26982ac_header_compiler=no
26983fi
ac1cb8d3 26984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26986echo "${ECHO_T}$ac_header_compiler" >&6
26987
26988# Is the header present?
26989echo "$as_me:$LINENO: checking $ac_header presence" >&5
26990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26991cat >conftest.$ac_ext <<_ACEOF
26992/* confdefs.h. */
26993_ACEOF
26994cat confdefs.h >>conftest.$ac_ext
26995cat >>conftest.$ac_ext <<_ACEOF
26996/* end confdefs.h. */
26997#include <$ac_header>
26998_ACEOF
26999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27001 ac_status=$?
27002 grep -v '^ *+' conftest.er1 >conftest.err
27003 rm -f conftest.er1
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } >/dev/null; then
27007 if test -s conftest.err; then
5d7b7554
VZ
27008 ac_cpp_err=$ac_cxx_preproc_warn_flag
27009 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27010 else
27011 ac_cpp_err=
27012 fi
27013else
27014 ac_cpp_err=yes
27015fi
27016if test -z "$ac_cpp_err"; then
27017 ac_header_preproc=yes
27018else
27019 echo "$as_me: failed program was:" >&5
27020sed 's/^/| /' conftest.$ac_ext >&5
27021
27022 ac_header_preproc=no
27023fi
27024rm -f conftest.err conftest.$ac_ext
27025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27026echo "${ECHO_T}$ac_header_preproc" >&6
27027
27028# So? What about this header?
5d7b7554 27029case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27030 yes:no: )
a848cd7e
SC
27031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27035 ac_header_preproc=yes
a848cd7e 27036 ;;
ac1cb8d3 27037 no:yes:* )
a848cd7e
SC
27038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27050 (
27051 cat <<\_ASBOX
ac1cb8d3
VS
27052## ----------------------------------------- ##
27053## Report this to wx-dev@lists.wxwidgets.org ##
27054## ----------------------------------------- ##
a848cd7e
SC
27055_ASBOX
27056 ) |
27057 sed "s/^/$as_me: WARNING: /" >&2
27058 ;;
27059esac
27060echo "$as_me:$LINENO: checking for $ac_header" >&5
27061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27062if eval "test \"\${$as_ac_Header+set}\" = set"; then
27063 echo $ECHO_N "(cached) $ECHO_C" >&6
27064else
ac1cb8d3 27065 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27066fi
27067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27069
27070fi
27071if test `eval echo '${'$as_ac_Header'}'` = yes; then
27072 cat >>confdefs.h <<_ACEOF
27073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27074_ACEOF
27075
27076fi
27077
27078done
27079
27080 if test "${ac_cv_header_windows_h+set}" = set; then
27081 echo "$as_me:$LINENO: checking for windows.h" >&5
27082echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27083if test "${ac_cv_header_windows_h+set}" = set; then
27084 echo $ECHO_N "(cached) $ECHO_C" >&6
27085fi
27086echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27087echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27088else
27089 # Is the header compilable?
27090echo "$as_me:$LINENO: checking windows.h usability" >&5
27091echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27092cat >conftest.$ac_ext <<_ACEOF
27093/* confdefs.h. */
27094_ACEOF
27095cat confdefs.h >>conftest.$ac_ext
27096cat >>conftest.$ac_ext <<_ACEOF
27097/* end confdefs.h. */
27098$ac_includes_default
27099#include <windows.h>
27100_ACEOF
27101rm -f conftest.$ac_objext
27102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27103 (eval $ac_compile) 2>conftest.er1
a848cd7e 27104 ac_status=$?
ac1cb8d3
VS
27105 grep -v '^ *+' conftest.er1 >conftest.err
27106 rm -f conftest.er1
27107 cat conftest.err >&5
a848cd7e
SC
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } &&
6a5c9b3f
RR
27110 { ac_try='test -z "$ac_cxx_werror_flag"
27111 || test ! -s conftest.err'
ac1cb8d3
VS
27112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113 (eval $ac_try) 2>&5
27114 ac_status=$?
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; } &&
27117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27119 (eval $ac_try) 2>&5
27120 ac_status=$?
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); }; }; then
27123 ac_header_compiler=yes
27124else
27125 echo "$as_me: failed program was:" >&5
27126sed 's/^/| /' conftest.$ac_ext >&5
27127
27128ac_header_compiler=no
27129fi
ac1cb8d3 27130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27132echo "${ECHO_T}$ac_header_compiler" >&6
27133
27134# Is the header present?
27135echo "$as_me:$LINENO: checking windows.h presence" >&5
27136echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27137cat >conftest.$ac_ext <<_ACEOF
27138/* confdefs.h. */
27139_ACEOF
27140cat confdefs.h >>conftest.$ac_ext
27141cat >>conftest.$ac_ext <<_ACEOF
27142/* end confdefs.h. */
27143#include <windows.h>
27144_ACEOF
27145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27147 ac_status=$?
27148 grep -v '^ *+' conftest.er1 >conftest.err
27149 rm -f conftest.er1
27150 cat conftest.err >&5
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } >/dev/null; then
27153 if test -s conftest.err; then
5d7b7554
VZ
27154 ac_cpp_err=$ac_cxx_preproc_warn_flag
27155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27156 else
27157 ac_cpp_err=
27158 fi
27159else
27160 ac_cpp_err=yes
27161fi
27162if test -z "$ac_cpp_err"; then
27163 ac_header_preproc=yes
27164else
27165 echo "$as_me: failed program was:" >&5
27166sed 's/^/| /' conftest.$ac_ext >&5
27167
27168 ac_header_preproc=no
27169fi
27170rm -f conftest.err conftest.$ac_ext
27171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27172echo "${ECHO_T}$ac_header_preproc" >&6
27173
27174# So? What about this header?
5d7b7554 27175case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27176 yes:no: )
a848cd7e
SC
27177 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27178echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27179 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27180echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27181 ac_header_preproc=yes
a848cd7e 27182 ;;
ac1cb8d3 27183 no:yes:* )
a848cd7e
SC
27184 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27185echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27186 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27187echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27188 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27189echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27191echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27192 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27193echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27194 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27195echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27196 (
27197 cat <<\_ASBOX
ac1cb8d3
VS
27198## ----------------------------------------- ##
27199## Report this to wx-dev@lists.wxwidgets.org ##
27200## ----------------------------------------- ##
a848cd7e
SC
27201_ASBOX
27202 ) |
27203 sed "s/^/$as_me: WARNING: /" >&2
27204 ;;
27205esac
27206echo "$as_me:$LINENO: checking for windows.h" >&5
27207echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27208if test "${ac_cv_header_windows_h+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27210else
27211 ac_cv_header_windows_h=$ac_header_preproc
27212fi
27213echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27214echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27215
27216fi
27217if test $ac_cv_header_windows_h = yes; then
27218 :
27219else
27220
27221 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27222echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27223 { (exit 1); exit 1; }; }
27224
27225fi
27226
27227
27228
27229 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27230
27231 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27232 LIBS="$LIBS -loleacc"
27233 fi
27234
27235 case "${host}" in
27236 *-*-cygwin* )
27237 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27238 esac
27239
27240 if test "$wxUSE_ODBC" = "sys" ; then
27241 wxUSE_ODBC = "yes"
27242 fi
27243 if test "$wxUSE_ODBC" = "yes" ; then
27244 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27245 cat >>confdefs.h <<\_ACEOF
27246#define wxUSE_ODBC 1
27247_ACEOF
27248
27249 fi
27250
370d2fd7 27251 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27252 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27253
004ee6da 27254 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27255
a848cd7e 27256 WIN32INSTALL=win32install
5f41d1bf
MW
27257
27258 echo "$as_me:$LINENO: checking for boolean" >&5
27259echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27260if test "${ac_cv_type_boolean+set}" = set; then
27261 echo $ECHO_N "(cached) $ECHO_C" >&6
27262else
27263 cat >conftest.$ac_ext <<_ACEOF
27264/* confdefs.h. */
27265_ACEOF
27266cat confdefs.h >>conftest.$ac_ext
27267cat >>conftest.$ac_ext <<_ACEOF
27268/* end confdefs.h. */
27269#include <windows.h>
27270
27271int
27272main ()
27273{
27274if ((boolean *) 0)
27275 return 0;
27276if (sizeof (boolean))
27277 return 0;
27278 ;
27279 return 0;
27280}
27281_ACEOF
27282rm -f conftest.$ac_objext
27283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27284 (eval $ac_compile) 2>conftest.er1
27285 ac_status=$?
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } &&
6a5c9b3f
RR
27291 { ac_try='test -z "$ac_cxx_werror_flag"
27292 || test ! -s conftest.err'
5f41d1bf
MW
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; } &&
27298 { ac_try='test -s conftest.$ac_objext'
27299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300 (eval $ac_try) 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; }; then
27304 ac_cv_type_boolean=yes
27305else
27306 echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309ac_cv_type_boolean=no
27310fi
27311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27312fi
27313echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27314echo "${ECHO_T}$ac_cv_type_boolean" >&6
27315if test $ac_cv_type_boolean = yes; then
27316
27317cat >>confdefs.h <<_ACEOF
27318#define HAVE_BOOLEAN 1
27319_ACEOF
27320
27321
27322fi
27323
dcfd4ac4
MW
27324
27325
27326for ac_header in pbt.h
27327do
27328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27329if eval "test \"\${$as_ac_Header+set}\" = set"; then
27330 echo "$as_me:$LINENO: checking for $ac_header" >&5
27331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27332if eval "test \"\${$as_ac_Header+set}\" = set"; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334fi
27335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27337else
27338 # Is the header compilable?
27339echo "$as_me:$LINENO: checking $ac_header usability" >&5
27340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27341cat >conftest.$ac_ext <<_ACEOF
27342/* confdefs.h. */
27343_ACEOF
27344cat confdefs.h >>conftest.$ac_ext
27345cat >>conftest.$ac_ext <<_ACEOF
27346/* end confdefs.h. */
27347$ac_includes_default
27348#include <$ac_header>
27349_ACEOF
27350rm -f conftest.$ac_objext
27351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27352 (eval $ac_compile) 2>conftest.er1
27353 ac_status=$?
27354 grep -v '^ *+' conftest.er1 >conftest.err
27355 rm -f conftest.er1
27356 cat conftest.err >&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } &&
6a5c9b3f
RR
27359 { ac_try='test -z "$ac_cxx_werror_flag"
27360 || test ! -s conftest.err'
dcfd4ac4
MW
27361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362 (eval $ac_try) 2>&5
27363 ac_status=$?
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; } &&
27366 { ac_try='test -s conftest.$ac_objext'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27369 ac_status=$?
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27372 ac_header_compiler=yes
27373else
27374 echo "$as_me: failed program was:" >&5
27375sed 's/^/| /' conftest.$ac_ext >&5
27376
27377ac_header_compiler=no
27378fi
27379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27381echo "${ECHO_T}$ac_header_compiler" >&6
27382
27383# Is the header present?
27384echo "$as_me:$LINENO: checking $ac_header presence" >&5
27385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27386cat >conftest.$ac_ext <<_ACEOF
27387/* confdefs.h. */
27388_ACEOF
27389cat confdefs.h >>conftest.$ac_ext
27390cat >>conftest.$ac_ext <<_ACEOF
27391/* end confdefs.h. */
27392#include <$ac_header>
27393_ACEOF
27394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27396 ac_status=$?
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } >/dev/null; then
27402 if test -s conftest.err; then
27403 ac_cpp_err=$ac_cxx_preproc_warn_flag
27404 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27405 else
27406 ac_cpp_err=
27407 fi
27408else
27409 ac_cpp_err=yes
27410fi
27411if test -z "$ac_cpp_err"; then
27412 ac_header_preproc=yes
27413else
27414 echo "$as_me: failed program was:" >&5
27415sed 's/^/| /' conftest.$ac_ext >&5
27416
27417 ac_header_preproc=no
27418fi
27419rm -f conftest.err conftest.$ac_ext
27420echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27421echo "${ECHO_T}$ac_header_preproc" >&6
27422
27423# So? What about this header?
27424case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27425 yes:no: )
27426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27430 ac_header_preproc=yes
27431 ;;
27432 no:yes:* )
27433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27436echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27440echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27445 (
27446 cat <<\_ASBOX
27447## ----------------------------------------- ##
27448## Report this to wx-dev@lists.wxwidgets.org ##
27449## ----------------------------------------- ##
27450_ASBOX
27451 ) |
27452 sed "s/^/$as_me: WARNING: /" >&2
27453 ;;
27454esac
27455echo "$as_me:$LINENO: checking for $ac_header" >&5
27456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27457if eval "test \"\${$as_ac_Header+set}\" = set"; then
27458 echo $ECHO_N "(cached) $ECHO_C" >&6
27459else
27460 eval "$as_ac_Header=\$ac_header_preproc"
27461fi
27462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27464
27465fi
27466if test `eval echo '${'$as_ac_Header'}'` = yes; then
27467 cat >>confdefs.h <<_ACEOF
27468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27469_ACEOF
27470
27471else
27472 cat >>confdefs.h <<\_ACEOF
27473#define NEED_PBT_H 1
27474_ACEOF
27475
27476fi
27477
27478done
27479
a848cd7e
SC
27480fi
27481
27482if test "$wxUSE_GUI" = "yes"; then
27483 USE_GUI=1
27484
27485 GUI_TK_LIBRARY=
27486
27487 WXGTK12=
27488 WXGTK127=
27489 WXGTK20=
27490 WXGPE=
27491
207bc66c
RN
27492 if test "$wxUSE_COCOA" = 1 ; then
27493 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27494 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27495echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27496 wxUSE_PRINTING_ARCHITECTURE=no
27497 fi
27498 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27499 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27500echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27501 wxUSE_DRAG_AND_DROP=no
27502 fi
27503 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27504 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27505echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27506 wxUSE_DRAGIMAGE=no
27507 fi
27508 fi
27509
a848cd7e
SC
27510 if test "$wxUSE_MSW" = 1 ; then
27511 TOOLKIT=MSW
27512 GUIDIST=MSW_DIST
27513
ceec2216 27514 case "${host}" in
a848cd7e
SC
27515 *-*-mingw32* )
27516 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27517 esac
27518 fi
27519
27520 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27521 ac_ext=c
27522ac_cpp='$CPP $CPPFLAGS'
27523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27525ac_compiler_gnu=$ac_cv_c_compiler_gnu
27526
27527
a848cd7e
SC
27528 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27529echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27530
27531 gtk_version_cached=1
27532 if test "${wx_cv_lib_gtk+set}" = set; then
27533 echo $ECHO_N "(cached) $ECHO_C" >&6
27534else
27535
27536 gtk_version_cached=0
27537 echo "$as_me:$LINENO: result: " >&5
27538echo "${ECHO_T}" >&6
27539
27540 GTK_MODULES=
27541 if test "$wxUSE_THREADS" = "yes"; then
27542 GTK_MODULES=gthread
27543 fi
27544
f597b41c 27545 wx_cv_lib_gtk=
5001df0d
MW
27546 if test "x$wxGTK_VERSION" != "x1"
27547 then
27548 case "${host}" in
27549 *-*-solaris2* )
27550 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27551 enable_gtktest=no
5001df0d
MW
27552 fi
27553 esac
27554
a848cd7e
SC
27555 # Check whether --enable-gtktest or --disable-gtktest was given.
27556if test "${enable_gtktest+set}" = set; then
27557 enableval="$enable_gtktest"
27558
27559else
27560 enable_gtktest=yes
27561fi;
27562
27563 pkg_config_args=gtk+-2.0
27564 for module in . $GTK_MODULES
27565 do
27566 case "$module" in
27567 gthread)
27568 pkg_config_args="$pkg_config_args gthread-2.0"
27569 ;;
27570 esac
27571 done
27572
27573 no_gtk=""
27574
27575 # Extract the first word of "pkg-config", so it can be a program name with args.
27576set dummy pkg-config; ac_word=$2
27577echo "$as_me:$LINENO: checking for $ac_word" >&5
27578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27579if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27580 echo $ECHO_N "(cached) $ECHO_C" >&6
27581else
27582 case $PKG_CONFIG in
27583 [\\/]* | ?:[\\/]*)
27584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27585 ;;
27586 *)
27587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27588for as_dir in $PATH
27589do
27590 IFS=$as_save_IFS
27591 test -z "$as_dir" && as_dir=.
27592 for ac_exec_ext in '' $ac_executable_extensions; do
27593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27596 break 2
27597 fi
27598done
27599done
27600
27601 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27602 ;;
27603esac
27604fi
27605PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27606
27607if test -n "$PKG_CONFIG"; then
27608 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27609echo "${ECHO_T}$PKG_CONFIG" >&6
27610else
27611 echo "$as_me:$LINENO: result: no" >&5
27612echo "${ECHO_T}no" >&6
27613fi
27614
27615
27616 if test x$PKG_CONFIG != xno ; then
27617 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27618 :
27619 else
c2218763 27620 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27621 no_gtk=yes
27622 PKG_CONFIG=no
27623 fi
27624 else
27625 no_gtk=yes
27626 fi
27627
27628 min_gtk_version=2.0.0
27629 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27630echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27631
27632 if test x$PKG_CONFIG != xno ; then
27633 ## don't try to run the test against uninstalled libtool libs
27634 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27635 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27636 enable_gtktest=no
27637 fi
27638
27639 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27640 :
27641 else
27642 no_gtk=yes
27643 fi
27644 fi
27645
27646 if test x"$no_gtk" = x ; then
27647 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27648 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27649 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27650 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27651 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27652 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27653 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27654 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27655 if test "x$enable_gtktest" = "xyes" ; then
27656 ac_save_CFLAGS="$CFLAGS"
27657 ac_save_LIBS="$LIBS"
27658 CFLAGS="$CFLAGS $GTK_CFLAGS"
27659 LIBS="$GTK_LIBS $LIBS"
27660 rm -f conf.gtktest
27661 if test "$cross_compiling" = yes; then
27662 echo $ac_n "cross compiling; assumed OK... $ac_c"
27663else
27664 cat >conftest.$ac_ext <<_ACEOF
27665/* confdefs.h. */
27666_ACEOF
27667cat confdefs.h >>conftest.$ac_ext
27668cat >>conftest.$ac_ext <<_ACEOF
27669/* end confdefs.h. */
27670
27671#include <gtk/gtk.h>
27672#include <stdio.h>
27673#include <stdlib.h>
27674
27675int
27676main ()
27677{
27678 int major, minor, micro;
27679 char *tmp_version;
27680
27681 system ("touch conf.gtktest");
27682
27683 /* HP/UX 9 (%@#!) writes to sscanf strings */
27684 tmp_version = g_strdup("$min_gtk_version");
27685 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27686 printf("%s, bad version string\n", "$min_gtk_version");
27687 exit(1);
27688 }
27689
27690 if ((gtk_major_version != $gtk_config_major_version) ||
27691 (gtk_minor_version != $gtk_config_minor_version) ||
27692 (gtk_micro_version != $gtk_config_micro_version))
27693 {
27694 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27695 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27696 gtk_major_version, gtk_minor_version, gtk_micro_version);
27697 printf ("*** was found! If pkg-config was correct, then it is best\n");
27698 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27699 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27700 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27701 printf("*** required on your system.\n");
27702 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27703 printf("*** to point to the correct configuration files\n");
27704 }
27705 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27706 (gtk_minor_version != GTK_MINOR_VERSION) ||
27707 (gtk_micro_version != GTK_MICRO_VERSION))
27708 {
27709 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27710 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27711 printf("*** library (version %d.%d.%d)\n",
27712 gtk_major_version, gtk_minor_version, gtk_micro_version);
27713 }
27714 else
27715 {
27716 if ((gtk_major_version > major) ||
27717 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27718 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27719 {
27720 return 0;
27721 }
27722 else
27723 {
27724 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27725 gtk_major_version, gtk_minor_version, gtk_micro_version);
27726 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27727 major, minor, micro);
27728 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27729 printf("***\n");
27730 printf("*** If you have already installed a sufficiently new version, this error\n");
27731 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27732 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27733 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27734 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27735 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27736 printf("*** so that the correct libraries are found at run-time))\n");
27737 }
27738 }
27739 return 1;
27740}
27741
27742_ACEOF
27743rm -f conftest$ac_exeext
27744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27745 (eval $ac_link) 2>&5
27746 ac_status=$?
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27751 ac_status=$?
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
27754 :
27755else
27756 echo "$as_me: program exited with status $ac_status" >&5
27757echo "$as_me: failed program was:" >&5
27758sed 's/^/| /' conftest.$ac_ext >&5
27759
27760( exit $ac_status )
27761no_gtk=yes
27762fi
ac1cb8d3 27763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27764fi
27765 CFLAGS="$ac_save_CFLAGS"
27766 LIBS="$ac_save_LIBS"
27767 fi
27768 fi
27769 if test "x$no_gtk" = x ; then
27770 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27771echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27772 wx_cv_lib_gtk=2.0
27773 else
27774 echo "$as_me:$LINENO: result: no" >&5
27775echo "${ECHO_T}no" >&6
27776 if test "$PKG_CONFIG" = "no" ; then
27777 echo "*** A new enough version of pkg-config was not found."
27778 echo "*** See http://pkgconfig.sourceforge.net"
27779 else
27780 if test -f conf.gtktest ; then
27781 :
27782 else
27783 echo "*** Could not run GTK+ test program, checking why..."
27784 ac_save_CFLAGS="$CFLAGS"
27785 ac_save_LIBS="$LIBS"
27786 CFLAGS="$CFLAGS $GTK_CFLAGS"
27787 LIBS="$LIBS $GTK_LIBS"
27788 cat >conftest.$ac_ext <<_ACEOF
27789/* confdefs.h. */
27790_ACEOF
27791cat confdefs.h >>conftest.$ac_ext
27792cat >>conftest.$ac_ext <<_ACEOF
27793/* end confdefs.h. */
27794
27795#include <gtk/gtk.h>
27796#include <stdio.h>
27797
27798int
27799main ()
27800{
27801 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27802 ;
27803 return 0;
27804}
27805_ACEOF
27806rm -f conftest.$ac_objext conftest$ac_exeext
27807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27808 (eval $ac_link) 2>conftest.er1
a848cd7e 27809 ac_status=$?
ac1cb8d3
VS
27810 grep -v '^ *+' conftest.er1 >conftest.err
27811 rm -f conftest.er1
27812 cat conftest.err >&5
a848cd7e
SC
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } &&
6a5c9b3f
RR
27815 { ac_try='test -z "$ac_c_werror_flag"
27816 || test ! -s conftest.err'
ac1cb8d3
VS
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; } &&
27822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27825 ac_status=$?
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; }; then
27828 echo "*** The test program compiled, but did not run. This usually means"
27829 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27830 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27831 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27832 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27833 echo "*** is required on your system"
27834 echo "***"
27835 echo "*** If you have an old version installed, it is best to remove it, although"
27836 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27837else
27838 echo "$as_me: failed program was:" >&5
27839sed 's/^/| /' conftest.$ac_ext >&5
27840
27841 echo "*** The test program failed to compile or link. See the file config.log for the"
27842 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27843fi
ac1cb8d3
VS
27844rm -f conftest.err conftest.$ac_objext \
27845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27846 CFLAGS="$ac_save_CFLAGS"
27847 LIBS="$ac_save_LIBS"
27848 fi
27849 fi
27850 GTK_CFLAGS=""
27851 GTK_LIBS=""
27852 :
27853 fi
27854
27855
27856 rm -f conf.gtktest
27857
5001df0d
MW
27858
27859 case "${host}" in
27860 *-*-solaris2* )
27861 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27862 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27863 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27864 fi
27865 if test "$wxUSE_SHARED" != "yes"; then
27866 GTK_LIBS="$GTK_LIBS -lX11"
27867 fi
27868 esac
f597b41c
MW
27869 fi
27870
f34ca037
MW
27871 if test -z "$wx_cv_lib_gtk"; then
27872 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27873
27874# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27875if test "${with_gtk_prefix+set}" = set; then
27876 withval="$with_gtk_prefix"
27877 gtk_config_prefix="$withval"
27878else
27879 gtk_config_prefix=""
27880fi;
27881
27882# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27883if test "${with_gtk_exec_prefix+set}" = set; then
27884 withval="$with_gtk_exec_prefix"
27885 gtk_config_exec_prefix="$withval"
27886else
27887 gtk_config_exec_prefix=""
27888fi;
27889# Check whether --enable-gtktest or --disable-gtktest was given.
27890if test "${enable_gtktest+set}" = set; then
27891 enableval="$enable_gtktest"
27892
27893else
27894 enable_gtktest=yes
27895fi;
27896
27897 for module in . $GTK_MODULES
27898 do
27899 case "$module" in
27900 gthread)
27901 gtk_config_args="$gtk_config_args gthread"
27902 ;;
27903 esac
27904 done
27905
27906 if test x$gtk_config_exec_prefix != x ; then
27907 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27908 if test x${GTK_CONFIG+set} != xset ; then
27909 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27910 fi
27911 fi
27912 if test x$gtk_config_prefix != x ; then
27913 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27914 if test x${GTK_CONFIG+set} != xset ; then
27915 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27916 fi
27917 fi
27918
27919 # Extract the first word of "gtk-config", so it can be a program name with args.
27920set dummy gtk-config; ac_word=$2
27921echo "$as_me:$LINENO: checking for $ac_word" >&5
27922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27923if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27924 echo $ECHO_N "(cached) $ECHO_C" >&6
27925else
27926 case $GTK_CONFIG in
27927 [\\/]* | ?:[\\/]*)
27928 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27929 ;;
27930 *)
27931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27932for as_dir in $PATH
27933do
27934 IFS=$as_save_IFS
27935 test -z "$as_dir" && as_dir=.
27936 for ac_exec_ext in '' $ac_executable_extensions; do
27937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27938 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27940 break 2
27941 fi
27942done
27943done
27944
27945 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27946 ;;
27947esac
27948fi
27949GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27950
27951if test -n "$GTK_CONFIG"; then
27952 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27953echo "${ECHO_T}$GTK_CONFIG" >&6
27954else
27955 echo "$as_me:$LINENO: result: no" >&5
27956echo "${ECHO_T}no" >&6
27957fi
27958
27959 min_gtk_version=1.2.7
27960 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27961echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27962 no_gtk=""
27963 if test "$GTK_CONFIG" = "no" ; then
27964 no_gtk=yes
27965 else
27966 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27967 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27968 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27969 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27970 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27971 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27972 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27973 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27974 if test "x$enable_gtktest" = "xyes" ; then
27975 ac_save_CFLAGS="$CFLAGS"
27976 ac_save_LIBS="$LIBS"
27977 CFLAGS="$CFLAGS $GTK_CFLAGS"
27978 LIBS="$GTK_LIBS $LIBS"
27979 rm -f conf.gtktest
27980 if test "$cross_compiling" = yes; then
27981 echo $ac_n "cross compiling; assumed OK... $ac_c"
27982else
27983 cat >conftest.$ac_ext <<_ACEOF
27984/* confdefs.h. */
27985_ACEOF
27986cat confdefs.h >>conftest.$ac_ext
27987cat >>conftest.$ac_ext <<_ACEOF
27988/* end confdefs.h. */
27989
27990#include <gtk/gtk.h>
27991#include <stdio.h>
27992#include <stdlib.h>
27993
27994int
27995main ()
27996{
27997 int major, minor, micro;
27998 char *tmp_version;
27999
28000 system ("touch conf.gtktest");
28001
28002 /* HP/UX 9 (%@#!) writes to sscanf strings */
28003 tmp_version = g_strdup("$min_gtk_version");
28004 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28005 printf("%s, bad version string\n", "$min_gtk_version");
28006 exit(1);
28007 }
28008
28009 if ((gtk_major_version != $gtk_config_major_version) ||
28010 (gtk_minor_version != $gtk_config_minor_version) ||
28011 (gtk_micro_version != $gtk_config_micro_version))
28012 {
28013 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28014 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28015 gtk_major_version, gtk_minor_version, gtk_micro_version);
28016 printf ("*** was found! If gtk-config was correct, then it is best\n");
28017 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28018 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28019 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28020 printf("*** required on your system.\n");
28021 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28022 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28023 printf("*** before re-running configure\n");
28024 }
28025#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28026 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28027 (gtk_minor_version != GTK_MINOR_VERSION) ||
28028 (gtk_micro_version != GTK_MICRO_VERSION))
28029 {
28030 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28031 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28032 printf("*** library (version %d.%d.%d)\n",
28033 gtk_major_version, gtk_minor_version, gtk_micro_version);
28034 }
28035#endif /* defined (GTK_MAJOR_VERSION) ... */
28036 else
28037 {
28038 if ((gtk_major_version > major) ||
28039 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28040 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28041 {
28042 return 0;
28043 }
28044 else
28045 {
28046 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28047 gtk_major_version, gtk_minor_version, gtk_micro_version);
28048 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28049 major, minor, micro);
28050 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28051 printf("***\n");
28052 printf("*** If you have already installed a sufficiently new version, this error\n");
28053 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28054 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28055 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28056 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28057 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28058 printf("*** so that the correct libraries are found at run-time))\n");
28059 }
28060 }
28061 return 1;
28062}
28063
28064_ACEOF
28065rm -f conftest$ac_exeext
28066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28067 (eval $ac_link) 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072 (eval $ac_try) 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; }; then
28076 :
28077else
28078 echo "$as_me: program exited with status $ac_status" >&5
28079echo "$as_me: failed program was:" >&5
28080sed 's/^/| /' conftest.$ac_ext >&5
28081
28082( exit $ac_status )
28083no_gtk=yes
28084fi
ac1cb8d3 28085rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28086fi
28087 CFLAGS="$ac_save_CFLAGS"
28088 LIBS="$ac_save_LIBS"
28089 fi
28090 fi
28091 if test "x$no_gtk" = x ; then
28092 echo "$as_me:$LINENO: result: yes" >&5
28093echo "${ECHO_T}yes" >&6
28094 wx_cv_lib_gtk=1.2.7
28095 else
28096 echo "$as_me:$LINENO: result: no" >&5
28097echo "${ECHO_T}no" >&6
28098 if test "$GTK_CONFIG" = "no" ; then
28099 echo "*** The gtk-config script installed by GTK could not be found"
28100 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28101 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28102 echo "*** full path to gtk-config."
28103 else
28104 if test -f conf.gtktest ; then
28105 :
28106 else
28107 echo "*** Could not run GTK test program, checking why..."
28108 CFLAGS="$CFLAGS $GTK_CFLAGS"
28109 LIBS="$LIBS $GTK_LIBS"
28110 cat >conftest.$ac_ext <<_ACEOF
28111/* confdefs.h. */
28112_ACEOF
28113cat confdefs.h >>conftest.$ac_ext
28114cat >>conftest.$ac_ext <<_ACEOF
28115/* end confdefs.h. */
28116
28117#include <gtk/gtk.h>
28118#include <stdio.h>
28119
28120int
28121main ()
28122{
28123 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28124 ;
28125 return 0;
28126}
28127_ACEOF
28128rm -f conftest.$ac_objext conftest$ac_exeext
28129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28130 (eval $ac_link) 2>conftest.er1
a848cd7e 28131 ac_status=$?
ac1cb8d3
VS
28132 grep -v '^ *+' conftest.er1 >conftest.err
28133 rm -f conftest.er1
28134 cat conftest.err >&5
a848cd7e
SC
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
6a5c9b3f
RR
28137 { ac_try='test -z "$ac_c_werror_flag"
28138 || test ! -s conftest.err'
ac1cb8d3
VS
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28141 ac_status=$?
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; } &&
28144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; }; then
28150 echo "*** The test program compiled, but did not run. This usually means"
28151 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28152 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28153 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28154 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28155 echo "*** is required on your system"
28156 echo "***"
28157 echo "*** If you have an old version installed, it is best to remove it, although"
28158 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28159 echo "***"
28160 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28161 echo "*** came with the system with the command"
28162 echo "***"
28163 echo "*** rpm --erase --nodeps gtk gtk-devel"
28164else
28165 echo "$as_me: failed program was:" >&5
28166sed 's/^/| /' conftest.$ac_ext >&5
28167
28168 echo "*** The test program failed to compile or link. See the file config.log for the"
28169 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28170 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28171 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28172fi
ac1cb8d3
VS
28173rm -f conftest.err conftest.$ac_objext \
28174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28175 CFLAGS="$ac_save_CFLAGS"
28176 LIBS="$ac_save_LIBS"
28177 fi
28178 fi
28179 GTK_CFLAGS=""
28180 GTK_LIBS=""
28181 :
28182 fi
28183
28184
28185 rm -f conf.gtktest
28186
28187
f34ca037 28188 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28189
28190# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28191if test "${with_gtk_prefix+set}" = set; then
28192 withval="$with_gtk_prefix"
28193 gtk_config_prefix="$withval"
28194else
28195 gtk_config_prefix=""
28196fi;
28197
28198# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28199if test "${with_gtk_exec_prefix+set}" = set; then
28200 withval="$with_gtk_exec_prefix"
28201 gtk_config_exec_prefix="$withval"
28202else
28203 gtk_config_exec_prefix=""
28204fi;
28205# Check whether --enable-gtktest or --disable-gtktest was given.
28206if test "${enable_gtktest+set}" = set; then
28207 enableval="$enable_gtktest"
28208
28209else
28210 enable_gtktest=yes
28211fi;
28212
28213 for module in . $GTK_MODULES
28214 do
28215 case "$module" in
28216 gthread)
28217 gtk_config_args="$gtk_config_args gthread"
28218 ;;
28219 esac
28220 done
28221
28222 if test x$gtk_config_exec_prefix != x ; then
28223 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28224 if test x${GTK_CONFIG+set} != xset ; then
28225 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28226 fi
28227 fi
28228 if test x$gtk_config_prefix != x ; then
28229 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28230 if test x${GTK_CONFIG+set} != xset ; then
28231 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28232 fi
28233 fi
28234
28235 # Extract the first word of "gtk-config", so it can be a program name with args.
28236set dummy gtk-config; ac_word=$2
28237echo "$as_me:$LINENO: checking for $ac_word" >&5
28238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28239if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242 case $GTK_CONFIG in
28243 [\\/]* | ?:[\\/]*)
28244 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28245 ;;
28246 *)
28247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28248for as_dir in $PATH
28249do
28250 IFS=$as_save_IFS
28251 test -z "$as_dir" && as_dir=.
28252 for ac_exec_ext in '' $ac_executable_extensions; do
28253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28254 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28256 break 2
28257 fi
28258done
28259done
28260
28261 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28262 ;;
28263esac
28264fi
28265GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28266
28267if test -n "$GTK_CONFIG"; then
28268 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28269echo "${ECHO_T}$GTK_CONFIG" >&6
28270else
28271 echo "$as_me:$LINENO: result: no" >&5
28272echo "${ECHO_T}no" >&6
28273fi
28274
28275 min_gtk_version=1.2.3
28276 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28277echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28278 no_gtk=""
28279 if test "$GTK_CONFIG" = "no" ; then
28280 no_gtk=yes
28281 else
28282 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28283 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28284 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28286 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28287 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28288 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28289 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28290 if test "x$enable_gtktest" = "xyes" ; then
28291 ac_save_CFLAGS="$CFLAGS"
28292 ac_save_LIBS="$LIBS"
28293 CFLAGS="$CFLAGS $GTK_CFLAGS"
28294 LIBS="$GTK_LIBS $LIBS"
28295 rm -f conf.gtktest
28296 if test "$cross_compiling" = yes; then
28297 echo $ac_n "cross compiling; assumed OK... $ac_c"
28298else
28299 cat >conftest.$ac_ext <<_ACEOF
28300/* confdefs.h. */
28301_ACEOF
28302cat confdefs.h >>conftest.$ac_ext
28303cat >>conftest.$ac_ext <<_ACEOF
28304/* end confdefs.h. */
28305
28306#include <gtk/gtk.h>
28307#include <stdio.h>
28308#include <stdlib.h>
28309
28310int
28311main ()
28312{
28313 int major, minor, micro;
28314 char *tmp_version;
28315
28316 system ("touch conf.gtktest");
28317
28318 /* HP/UX 9 (%@#!) writes to sscanf strings */
28319 tmp_version = g_strdup("$min_gtk_version");
28320 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28321 printf("%s, bad version string\n", "$min_gtk_version");
28322 exit(1);
28323 }
28324
28325 if ((gtk_major_version != $gtk_config_major_version) ||
28326 (gtk_minor_version != $gtk_config_minor_version) ||
28327 (gtk_micro_version != $gtk_config_micro_version))
28328 {
28329 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28330 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28331 gtk_major_version, gtk_minor_version, gtk_micro_version);
28332 printf ("*** was found! If gtk-config was correct, then it is best\n");
28333 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28334 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28335 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28336 printf("*** required on your system.\n");
28337 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28338 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28339 printf("*** before re-running configure\n");
28340 }
28341#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28342 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28343 (gtk_minor_version != GTK_MINOR_VERSION) ||
28344 (gtk_micro_version != GTK_MICRO_VERSION))
28345 {
28346 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28347 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28348 printf("*** library (version %d.%d.%d)\n",
28349 gtk_major_version, gtk_minor_version, gtk_micro_version);
28350 }
28351#endif /* defined (GTK_MAJOR_VERSION) ... */
28352 else
28353 {
28354 if ((gtk_major_version > major) ||
28355 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28356 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28357 {
28358 return 0;
28359 }
28360 else
28361 {
28362 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28363 gtk_major_version, gtk_minor_version, gtk_micro_version);
28364 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28365 major, minor, micro);
28366 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28367 printf("***\n");
28368 printf("*** If you have already installed a sufficiently new version, this error\n");
28369 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28370 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28371 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28372 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28373 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28374 printf("*** so that the correct libraries are found at run-time))\n");
28375 }
28376 }
28377 return 1;
28378}
28379
28380_ACEOF
28381rm -f conftest$ac_exeext
28382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28383 (eval $ac_link) 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; }; then
28392 :
28393else
28394 echo "$as_me: program exited with status $ac_status" >&5
28395echo "$as_me: failed program was:" >&5
28396sed 's/^/| /' conftest.$ac_ext >&5
28397
28398( exit $ac_status )
28399no_gtk=yes
28400fi
ac1cb8d3 28401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28402fi
28403 CFLAGS="$ac_save_CFLAGS"
28404 LIBS="$ac_save_LIBS"
28405 fi
28406 fi
28407 if test "x$no_gtk" = x ; then
28408 echo "$as_me:$LINENO: result: yes" >&5
28409echo "${ECHO_T}yes" >&6
28410 wx_cv_lib_gtk=1.2.3
28411 else
28412 echo "$as_me:$LINENO: result: no" >&5
28413echo "${ECHO_T}no" >&6
28414 if test "$GTK_CONFIG" = "no" ; then
28415 echo "*** The gtk-config script installed by GTK could not be found"
28416 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28417 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28418 echo "*** full path to gtk-config."
28419 else
28420 if test -f conf.gtktest ; then
28421 :
28422 else
28423 echo "*** Could not run GTK test program, checking why..."
28424 CFLAGS="$CFLAGS $GTK_CFLAGS"
28425 LIBS="$LIBS $GTK_LIBS"
28426 cat >conftest.$ac_ext <<_ACEOF
28427/* confdefs.h. */
28428_ACEOF
28429cat confdefs.h >>conftest.$ac_ext
28430cat >>conftest.$ac_ext <<_ACEOF
28431/* end confdefs.h. */
28432
28433#include <gtk/gtk.h>
28434#include <stdio.h>
28435
28436int
28437main ()
28438{
28439 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28440 ;
28441 return 0;
28442}
28443_ACEOF
28444rm -f conftest.$ac_objext conftest$ac_exeext
28445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28446 (eval $ac_link) 2>conftest.er1
a848cd7e 28447 ac_status=$?
ac1cb8d3
VS
28448 grep -v '^ *+' conftest.er1 >conftest.err
28449 rm -f conftest.er1
28450 cat conftest.err >&5
a848cd7e
SC
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } &&
6a5c9b3f
RR
28453 { ac_try='test -z "$ac_c_werror_flag"
28454 || test ! -s conftest.err'
ac1cb8d3
VS
28455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28456 (eval $ac_try) 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; } &&
28460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
28466 echo "*** The test program compiled, but did not run. This usually means"
28467 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28468 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28469 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28470 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28471 echo "*** is required on your system"
28472 echo "***"
28473 echo "*** If you have an old version installed, it is best to remove it, although"
28474 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28475 echo "***"
28476 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28477 echo "*** came with the system with the command"
28478 echo "***"
28479 echo "*** rpm --erase --nodeps gtk gtk-devel"
28480else
28481 echo "$as_me: failed program was:" >&5
28482sed 's/^/| /' conftest.$ac_ext >&5
28483
28484 echo "*** The test program failed to compile or link. See the file config.log for the"
28485 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28486 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28487 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28488fi
ac1cb8d3
VS
28489rm -f conftest.err conftest.$ac_objext \
28490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28491 CFLAGS="$ac_save_CFLAGS"
28492 LIBS="$ac_save_LIBS"
28493 fi
28494 fi
28495 GTK_CFLAGS=""
28496 GTK_LIBS=""
28497 :
28498 fi
28499
28500
28501 rm -f conf.gtktest
28502
f34ca037 28503 fi
a848cd7e
SC
28504 fi
28505 fi
28506
28507 if test -z "$wx_cv_lib_gtk"; then
28508 wx_cv_lib_gtk=none
28509 else
28510 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28511 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28512 fi
28513
28514
28515fi
28516
28517
28518 if test "$gtk_version_cached" = 1; then
28519 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28520echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28521 fi
28522
28523 case "$wx_cv_lib_gtk" in
28524 2.0) WXGTK20=1
28525 TOOLKIT_VERSION=2
28526 ;;
28527 1.2.7) WXGTK127=1
28528 WXGTK12=1
28529 ;;
28530 1.2.3) WXGTK12=1
28531 ;;
28532 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28533The development files for GTK+ were not found. For GTK+ 2, please
28534ensure that pkg-config is in the path and that gtk+-2.0.pc is
28535installed. For GTK+ 1.2 please check that gtk-config is in the path,
28536and that the version is 1.2.3 or above. Also check that the
28537libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28538--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28539 " >&5
28540echo "$as_me: error:
f597b41c
MW
28541The development files for GTK+ were not found. For GTK+ 2, please
28542ensure that pkg-config is in the path and that gtk+-2.0.pc is
28543installed. For GTK+ 1.2 please check that gtk-config is in the path,
28544and that the version is 1.2.3 or above. Also check that the
28545libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28546--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28547 " >&2;}
28548 { (exit 1); exit 1; }; }
28549 ;;
28550 esac
28551
28552 if test "$WXGTK20" = 1; then
6954625c 28553 save_CFLAGS="$CFLAGS"
304205f1 28554 save_LIBS="$LIBS"
6954625c 28555 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28556 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28557
58e65954
MW
28558 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28559echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28560if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28561 echo $ECHO_N "(cached) $ECHO_C" >&6
28562else
28563 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28564/* confdefs.h. */
28565_ACEOF
28566cat confdefs.h >>conftest.$ac_ext
28567cat >>conftest.$ac_ext <<_ACEOF
28568/* end confdefs.h. */
58e65954 28569#include <gtk/gtk.h>
304205f1 28570
d12aef51
VZ
28571int
28572main ()
28573{
58e65954
MW
28574#ifndef gtk_icon_size_lookup
28575 char *p = (char *) gtk_icon_size_lookup;
28576#endif
abc736fd
MW
28577
28578 ;
28579 return 0;
28580}
28581_ACEOF
28582rm -f conftest.$ac_objext
28583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28584 (eval $ac_compile) 2>conftest.er1
28585 ac_status=$?
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
6a5c9b3f
RR
28591 { ac_try='test -z "$ac_c_werror_flag"
28592 || test ! -s conftest.err'
abc736fd
MW
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28595 ac_status=$?
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; } &&
28598 { ac_try='test -s conftest.$ac_objext'
28599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 (eval $ac_try) 2>&5
28601 ac_status=$?
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; }; then
58e65954 28604 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28605else
28606 echo "$as_me: failed program was:" >&5
28607sed 's/^/| /' conftest.$ac_ext >&5
28608
58e65954
MW
28609ac_cv_have_decl_gtk_icon_size_lookup=no
28610fi
28611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28612fi
28613echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28614echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28615if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28616
58e65954
MW
28617cat >>confdefs.h <<_ACEOF
28618#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28619_ACEOF
28620
58e65954
MW
28621
28622else
28623 cat >>confdefs.h <<_ACEOF
28624#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28625_ACEOF
28626
28627cat >>confdefs.h <<\_ACEOF
28628#define NEED_GTK_ICON_SIZE_LOOKUP 1
28629_ACEOF
abc736fd
MW
28630
28631fi
58e65954
MW
28632
28633
abc736fd 28634
e9263684
VZ
28635 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28636echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28637 cat >conftest.$ac_ext <<_ACEOF
28638/* confdefs.h. */
28639_ACEOF
28640cat confdefs.h >>conftest.$ac_ext
28641cat >>conftest.$ac_ext <<_ACEOF
28642/* end confdefs.h. */
28643
28644 #include <gtk/gtk.h>
28645
28646int
28647main ()
28648{
28649
28650 #if !GTK_CHECK_VERSION(2,6,0)
28651 Not GTK+ 2.6
28652 #endif
28653
28654 ;
28655 return 0;
28656}
28657_ACEOF
28658rm -f conftest.$ac_objext
28659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28660 (eval $ac_compile) 2>conftest.er1
28661 ac_status=$?
28662 grep -v '^ *+' conftest.er1 >conftest.err
28663 rm -f conftest.er1
28664 cat conftest.err >&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); } &&
6a5c9b3f
RR
28667 { ac_try='test -z "$ac_c_werror_flag"
28668 || test ! -s conftest.err'
e9263684
VZ
28669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670 (eval $ac_try) 2>&5
28671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; } &&
28674 { ac_try='test -s conftest.$ac_objext'
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28677 ac_status=$?
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; }; then
28680
28681 cat >>confdefs.h <<\_ACEOF
28682#define __WXGTK26__ 1
28683_ACEOF
28684
28685 cat >>confdefs.h <<\_ACEOF
28686#define __WXGTK24__ 1
28687_ACEOF
28688
28689 echo "$as_me:$LINENO: result: yes" >&5
28690echo "${ECHO_T}yes" >&6
28691 ac_wxgtk26=1
28692
28693else
28694 echo "$as_me: failed program was:" >&5
28695sed 's/^/| /' conftest.$ac_ext >&5
28696
28697
28698 echo "$as_me:$LINENO: result: no" >&5
28699echo "${ECHO_T}no" >&6
28700 ac_wxgtk26=0
28701
28702fi
28703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28704
28705 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28706 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28707echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28708 cat >conftest.$ac_ext <<_ACEOF
28709/* confdefs.h. */
28710_ACEOF
28711cat confdefs.h >>conftest.$ac_ext
28712cat >>conftest.$ac_ext <<_ACEOF
28713/* end confdefs.h. */
28714
28715 #include <gtk/gtk.h>
28716
28717int
28718main ()
28719{
28720
28721 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28722 Not GTK+ 2.4
9755e73b
VS
28723 #endif
28724
28725 ;
28726 return 0;
28727}
28728_ACEOF
28729rm -f conftest.$ac_objext
28730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28731 (eval $ac_compile) 2>conftest.er1
28732 ac_status=$?
28733 grep -v '^ *+' conftest.er1 >conftest.err
28734 rm -f conftest.er1
28735 cat conftest.err >&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); } &&
6a5c9b3f
RR
28738 { ac_try='test -z "$ac_c_werror_flag"
28739 || test ! -s conftest.err'
9755e73b
VS
28740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28741 (eval $ac_try) 2>&5
28742 ac_status=$?
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; } &&
28745 { ac_try='test -s conftest.$ac_objext'
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28748 ac_status=$?
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; }; then
28751
28752 cat >>confdefs.h <<\_ACEOF
28753#define __WXGTK24__ 1
28754_ACEOF
28755
28756 echo "$as_me:$LINENO: result: yes" >&5
28757echo "${ECHO_T}yes" >&6
28758
28759else
28760 echo "$as_me: failed program was:" >&5
28761sed 's/^/| /' conftest.$ac_ext >&5
28762
28763
28764 echo "$as_me:$LINENO: result: no" >&5
28765echo "${ECHO_T}no" >&6
28766
28767fi
28768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28769 fi
9755e73b 28770
6954625c 28771 CFLAGS="$save_CFLAGS"
304205f1 28772 LIBS="$save_LIBS"
a848cd7e
SC
28773 else
28774 if test "$wxUSE_UNICODE" = "yes"; then
28775 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28776echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28777 wxUSE_UNICODE=no
28778 fi
28779 fi
28780
e56f4f9e
VZ
28781 ac_ext=cc
28782ac_cpp='$CXXCPP $CPPFLAGS'
28783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28786
28787
a848cd7e
SC
28788 if test "$USE_DARWIN" != 1; then
28789
28790for ac_func in poll
28791do
28792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28793echo "$as_me:$LINENO: checking for $ac_func" >&5
28794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28795if eval "test \"\${$as_ac_var+set}\" = set"; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28797else
28798 cat >conftest.$ac_ext <<_ACEOF
28799/* confdefs.h. */
28800_ACEOF
28801cat confdefs.h >>conftest.$ac_ext
28802cat >>conftest.$ac_ext <<_ACEOF
28803/* end confdefs.h. */
ac1cb8d3
VS
28804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28806#define $ac_func innocuous_$ac_func
28807
a848cd7e
SC
28808/* System header to define __stub macros and hopefully few prototypes,
28809 which can conflict with char $ac_func (); below.
28810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28811 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28812
a848cd7e
SC
28813#ifdef __STDC__
28814# include <limits.h>
28815#else
28816# include <assert.h>
28817#endif
ac1cb8d3
VS
28818
28819#undef $ac_func
28820
a848cd7e
SC
28821/* Override any gcc2 internal prototype to avoid an error. */
28822#ifdef __cplusplus
28823extern "C"
28824{
28825#endif
28826/* We use char because int might match the return type of a gcc2
28827 builtin and then its argument prototype would still apply. */
28828char $ac_func ();
28829/* The GNU C library defines this for functions which it implements
28830 to always fail with ENOSYS. Some functions are actually named
28831 something starting with __ and the normal name is an alias. */
28832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28833choke me
28834#else
28835char (*f) () = $ac_func;
28836#endif
28837#ifdef __cplusplus
28838}
28839#endif
28840
28841int
28842main ()
28843{
28844return f != $ac_func;
28845 ;
28846 return 0;
28847}
28848_ACEOF
28849rm -f conftest.$ac_objext conftest$ac_exeext
28850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28851 (eval $ac_link) 2>conftest.er1
a848cd7e 28852 ac_status=$?
ac1cb8d3
VS
28853 grep -v '^ *+' conftest.er1 >conftest.err
28854 rm -f conftest.er1
28855 cat conftest.err >&5
a848cd7e
SC
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } &&
6a5c9b3f
RR
28858 { ac_try='test -z "$ac_cxx_werror_flag"
28859 || test ! -s conftest.err'
ac1cb8d3
VS
28860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28861 (eval $ac_try) 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); }; } &&
28865 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; }; then
28871 eval "$as_ac_var=yes"
28872else
28873 echo "$as_me: failed program was:" >&5
28874sed 's/^/| /' conftest.$ac_ext >&5
28875
28876eval "$as_ac_var=no"
28877fi
ac1cb8d3
VS
28878rm -f conftest.err conftest.$ac_objext \
28879 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28880fi
28881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28883if test `eval echo '${'$as_ac_var'}'` = yes; then
28884 cat >>confdefs.h <<_ACEOF
28885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28886_ACEOF
28887
28888fi
28889done
28890
28891 fi
28892
28893 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28894 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28895
28896 AFMINSTALL=afminstall
28897 TOOLKIT=GTK
28898 GUIDIST=GTK_DIST
28899
28900 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28901echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28902if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28903 echo $ECHO_N "(cached) $ECHO_C" >&6
28904else
28905 ac_check_lib_save_LIBS=$LIBS
28906LIBS="-lgdk $LIBS"
28907cat >conftest.$ac_ext <<_ACEOF
28908/* confdefs.h. */
28909_ACEOF
28910cat confdefs.h >>conftest.$ac_ext
28911cat >>conftest.$ac_ext <<_ACEOF
28912/* end confdefs.h. */
28913
28914/* Override any gcc2 internal prototype to avoid an error. */
28915#ifdef __cplusplus
28916extern "C"
28917#endif
28918/* We use char because int might match the return type of a gcc2
28919 builtin and then its argument prototype would still apply. */
28920char gdk_im_open ();
28921int
28922main ()
28923{
28924gdk_im_open ();
28925 ;
28926 return 0;
28927}
28928_ACEOF
28929rm -f conftest.$ac_objext conftest$ac_exeext
28930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28931 (eval $ac_link) 2>conftest.er1
a848cd7e 28932 ac_status=$?
ac1cb8d3
VS
28933 grep -v '^ *+' conftest.er1 >conftest.err
28934 rm -f conftest.er1
28935 cat conftest.err >&5
a848cd7e
SC
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } &&
6a5c9b3f
RR
28938 { ac_try='test -z "$ac_cxx_werror_flag"
28939 || test ! -s conftest.err'
ac1cb8d3
VS
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947 (eval $ac_try) 2>&5
28948 ac_status=$?
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; }; then
28951 ac_cv_lib_gdk_gdk_im_open=yes
28952else
28953 echo "$as_me: failed program was:" >&5
28954sed 's/^/| /' conftest.$ac_ext >&5
28955
28956ac_cv_lib_gdk_gdk_im_open=no
28957fi
ac1cb8d3
VS
28958rm -f conftest.err conftest.$ac_objext \
28959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28960LIBS=$ac_check_lib_save_LIBS
28961fi
28962echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28963echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28964if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28965 cat >>confdefs.h <<\_ACEOF
28966#define HAVE_XIM 1
28967_ACEOF
28968
28969fi
28970
28971
28972
28973 if test "$wxUSE_GPE" = "yes"; then
28974 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28975echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28976
0ad5d837
VZ
28977 ac_find_libraries=
28978 for ac_dir in $SEARCH_LIB;
a848cd7e 28979 do
3eca31dc 28980 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28981 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28982 ac_find_libraries=$ac_dir
28983 break 2
28984 fi
28985 done
28986 done
28987
28988 if test "$ac_find_libraries" != "" ; then
28989
0ad5d837 28990 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28991 ac_path_to_link=""
28992 else
0ad5d837
VZ
28993 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28994 result=$?
28995 if test $result = 0; then
28996 ac_path_to_link=""
28997 else
28998 ac_path_to_link=" -L$ac_find_libraries"
28999 fi
a848cd7e
SC
29000 fi
29001
29002 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29003 WXGPE=1
0ad5d837
VZ
29004 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29005echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29006 else
29007 echo "$as_me:$LINENO: result: not found" >&5
29008echo "${ECHO_T}not found" >&6
29009 fi
29010
29011 fi
29012 fi
29013
29014 if test "$wxUSE_MGL" = 1; then
29015 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29016echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29017 if test "x$MGL_ROOT" = x ; then
29018 echo "$as_me:$LINENO: result: not found" >&5
29019echo "${ECHO_T}not found" >&6
29020 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29021echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29022 { (exit 1); exit 1; }; }
29023 else
29024 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29025echo "${ECHO_T}$MGL_ROOT" >&6
29026 fi
29027
29028 echo "$as_me:$LINENO: checking for libmgl location" >&5
29029echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29030 case "${host}" in
29031 *-*-linux* )
29032 if test "x$wxUSE_SHARED" = xyes ; then
29033 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29034 else
29035 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29036 fi
29037 ;;
29038 *-pc-msdosdjgpp )
29039 mgl_os_candidates="dos32/dj2"
29040 ;;
29041 *)
29042 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29043echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29044 { (exit 1); exit 1; }; }
29045 esac
29046
29047 mgl_lib_type=""
29048 mgl_os=""
29049
29050 for mgl_os_i in $mgl_os_candidates ; do
29051 if test "x$mgl_os" = x ; then
29052 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29053 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29054 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29055 mgl_lib_type=debug
29056 mgl_os=$mgl_os_i
29057 fi
29058 fi
29059 if test "x$mgl_lib_type" = x ; then
29060 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29061 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29062 mgl_lib_type=release
29063 mgl_os=$mgl_os_i
29064 fi
29065 fi
29066 fi
29067 done
29068
29069 if test "x$mgl_os" = x ; then
29070 echo "$as_me:$LINENO: result: not found" >&5
29071echo "${ECHO_T}not found" >&6
29072 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29073echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29074 { (exit 1); exit 1; }; }
29075 fi
29076 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29077echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29078
29079 wxUSE_UNIVERSAL="yes"
29080
29081 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29082 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29083
29084 AFMINSTALL=afminstall
29085 TOOLKIT=MGL
29086 GUIDIST=MGL_DIST
29087 fi
29088
b3c86150
VS
29089 if test "$wxUSE_DFB" = 1; then
29090
29091
29092if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29093 if test -n "$ac_tool_prefix"; then
29094 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29095set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29096echo "$as_me:$LINENO: checking for $ac_word" >&5
29097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29098if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29099 echo $ECHO_N "(cached) $ECHO_C" >&6
29100else
29101 case $PKG_CONFIG in
29102 [\\/]* | ?:[\\/]*)
29103 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29104 ;;
29105 *)
29106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29107for as_dir in $PATH
29108do
29109 IFS=$as_save_IFS
29110 test -z "$as_dir" && as_dir=.
29111 for ac_exec_ext in '' $ac_executable_extensions; do
29112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29113 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29115 break 2
29116 fi
29117done
29118done
29119
29120 ;;
29121esac
29122fi
29123PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29124
29125if test -n "$PKG_CONFIG"; then
29126 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29127echo "${ECHO_T}$PKG_CONFIG" >&6
29128else
29129 echo "$as_me:$LINENO: result: no" >&5
29130echo "${ECHO_T}no" >&6
29131fi
29132
29133fi
29134if test -z "$ac_cv_path_PKG_CONFIG"; then
29135 ac_pt_PKG_CONFIG=$PKG_CONFIG
29136 # Extract the first word of "pkg-config", so it can be a program name with args.
29137set dummy pkg-config; ac_word=$2
29138echo "$as_me:$LINENO: checking for $ac_word" >&5
29139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29140if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29142else
29143 case $ac_pt_PKG_CONFIG in
29144 [\\/]* | ?:[\\/]*)
29145 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29146 ;;
29147 *)
29148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29149for as_dir in $PATH
29150do
29151 IFS=$as_save_IFS
29152 test -z "$as_dir" && as_dir=.
29153 for ac_exec_ext in '' $ac_executable_extensions; do
29154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29155 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29157 break 2
29158 fi
29159done
29160done
29161
29162 ;;
29163esac
29164fi
29165ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29166
29167if test -n "$ac_pt_PKG_CONFIG"; then
29168 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29169echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29170else
29171 echo "$as_me:$LINENO: result: no" >&5
29172echo "${ECHO_T}no" >&6
29173fi
29174
29175 PKG_CONFIG=$ac_pt_PKG_CONFIG
29176else
29177 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29178fi
29179
29180fi
29181if test -n "$PKG_CONFIG"; then
29182 _pkg_min_version=0.9.0
29183 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29184echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29185 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29186 echo "$as_me:$LINENO: result: yes" >&5
29187echo "${ECHO_T}yes" >&6
29188 else
29189 echo "$as_me:$LINENO: result: no" >&5
29190echo "${ECHO_T}no" >&6
29191 PKG_CONFIG=""
29192 fi
29193
29194fi
29195
29196pkg_failed=no
29197echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29198echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29199
29200if test -n "$PKG_CONFIG"; then
29201 if test -n "$DIRECTFB_CFLAGS"; then
29202 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29203 else
29204 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29205 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29206 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; then
737d3175 29210 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29211else
29212 pkg_failed=yes
29213fi
29214 fi
29215else
29216 pkg_failed=untried
29217fi
29218if test -n "$PKG_CONFIG"; then
29219 if test -n "$DIRECTFB_LIBS"; then
29220 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29221 else
29222 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29223 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29224 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; then
737d3175 29228 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29229else
29230 pkg_failed=yes
29231fi
29232 fi
29233else
29234 pkg_failed=untried
29235fi
29236
29237
29238
29239if test $pkg_failed = yes; then
29240
29241if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29242 _pkg_short_errors_supported=yes
29243else
29244 _pkg_short_errors_supported=no
29245fi
29246 if test $_pkg_short_errors_supported = yes; then
737d3175 29247 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29248 else
737d3175 29249 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29250 fi
29251 # Put the nasty error message in config.log where it belongs
29252 echo "$DIRECTFB_PKG_ERRORS" >&5
29253
29254
29255 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29256echo "$as_me: error: DirectFB not found." >&2;}
29257 { (exit 1); exit 1; }; }
29258
29259
29260elif test $pkg_failed = untried; then
29261
29262 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29263echo "$as_me: error: DirectFB not found." >&2;}
29264 { (exit 1); exit 1; }; }
29265
29266
29267else
29268 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29269 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29270 echo "$as_me:$LINENO: result: yes" >&5
29271echo "${ECHO_T}yes" >&6
29272
29273 wxUSE_UNIVERSAL="yes"
29274 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29275 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29276 TOOLKIT=DFB
29277 GUIDIST=DFB_DIST
29278
29279fi
29280 fi
29281
a848cd7e
SC
29282 if test "$wxUSE_MICROWIN" = 1; then
29283 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29284echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29285 if test "x$MICROWINDOWS" = x ; then
29286 echo "$as_me:$LINENO: result: not found" >&5
29287echo "${ECHO_T}not found" >&6
29288 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29289echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29290 { (exit 1); exit 1; }; }
29291 else
29292 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29293echo "${ECHO_T}$MICROWINDOWS" >&6
29294 fi
29295
29296 if test -f $MICROWINDOWS/lib/libmwin.a; then
29297 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29298echo "${ECHO_T}MicroWindows' libraries found." >&6
29299 else
29300 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29301echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29302 { (exit 1); exit 1; }; }
29303 fi
29304
29305 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29306 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29307
29308 wxUSE_UNIVERSAL="yes"
29309
29310 AFMINSTALL=afminstall
29311 TOOLKIT=MICROWIN
29312 GUIDIST=MICROWIN_DIST
29313
29314 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29315 fi
29316
74b84332 29317 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6a5c9b3f 29318 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29319echo $ECHO_N "checking for X... $ECHO_C" >&6
29320
29321
29322# Check whether --with-x or --without-x was given.
29323if test "${with_x+set}" = set; then
29324 withval="$with_x"
29325
29326fi;
29327# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29328if test "x$with_x" = xno; then
29329 # The user explicitly disabled X.
29330 have_x=disabled
29331else
29332 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29333 # Both variables are already set.
29334 have_x=yes
29335 else
29336 if test "${ac_cv_have_x+set}" = set; then
29337 echo $ECHO_N "(cached) $ECHO_C" >&6
29338else
29339 # One or both of the vars are not set, and there is no cached value.
29340ac_x_includes=no ac_x_libraries=no
29341rm -fr conftest.dir
29342if mkdir conftest.dir; then
29343 cd conftest.dir
29344 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29345 cat >Imakefile <<'_ACEOF'
29346acfindx:
29347 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29348_ACEOF
29349 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29351 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29352 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29353 for ac_extension in a so sl; do
29354 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29355 test -f $ac_im_libdir/libX11.$ac_extension; then
29356 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29357 fi
29358 done
29359 # Screen out bogus values from the imake configuration. They are
29360 # bogus both because they are the default anyway, and because
29361 # using them would break gcc on systems where it needs fixed includes.
29362 case $ac_im_incroot in
29363 /usr/include) ;;
29364 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29365 esac
29366 case $ac_im_usrlibdir in
29367 /usr/lib | /lib) ;;
29368 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29369 esac
29370 fi
29371 cd ..
29372 rm -fr conftest.dir
29373fi
29374
29375# Standard set of common directories for X headers.
29376# Check X11 before X11Rn because it is often a symlink to the current release.
29377ac_x_header_dirs='
29378/usr/X11/include
29379/usr/X11R6/include
29380/usr/X11R5/include
29381/usr/X11R4/include
29382
29383/usr/include/X11
29384/usr/include/X11R6
29385/usr/include/X11R5
29386/usr/include/X11R4
29387
29388/usr/local/X11/include
29389/usr/local/X11R6/include
29390/usr/local/X11R5/include
29391/usr/local/X11R4/include
29392
29393/usr/local/include/X11
29394/usr/local/include/X11R6
29395/usr/local/include/X11R5
29396/usr/local/include/X11R4
29397
29398/usr/X386/include
29399/usr/x386/include
29400/usr/XFree86/include/X11
29401
29402/usr/include
29403/usr/local/include
29404/usr/unsupported/include
29405/usr/athena/include
29406/usr/local/x11r5/include
29407/usr/lpp/Xamples/include
29408
29409/usr/openwin/include
29410/usr/openwin/share/include'
29411
29412if test "$ac_x_includes" = no; then
6a5c9b3f 29413 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
29414 # First, try using that file with no special directory specified.
29415 cat >conftest.$ac_ext <<_ACEOF
29416/* confdefs.h. */
29417_ACEOF
29418cat confdefs.h >>conftest.$ac_ext
29419cat >>conftest.$ac_ext <<_ACEOF
29420/* end confdefs.h. */
5039a2df 29421#include <X11/Intrinsic.h>
a848cd7e
SC
29422_ACEOF
29423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29425 ac_status=$?
29426 grep -v '^ *+' conftest.er1 >conftest.err
29427 rm -f conftest.er1
29428 cat conftest.err >&5
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); } >/dev/null; then
29431 if test -s conftest.err; then
5d7b7554
VZ
29432 ac_cpp_err=$ac_cxx_preproc_warn_flag
29433 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29434 else
29435 ac_cpp_err=
29436 fi
29437else
29438 ac_cpp_err=yes
29439fi
29440if test -z "$ac_cpp_err"; then
29441 # We can compile using X headers with no special include directory.
29442ac_x_includes=
29443else
29444 echo "$as_me: failed program was:" >&5
29445sed 's/^/| /' conftest.$ac_ext >&5
29446
29447 for ac_dir in $ac_x_header_dirs; do
5039a2df 29448 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
29449 ac_x_includes=$ac_dir
29450 break
29451 fi
29452done
29453fi
29454rm -f conftest.err conftest.$ac_ext
29455fi # $ac_x_includes = no
29456
29457if test "$ac_x_libraries" = no; then
29458 # Check for the libraries.
29459 # See if we find them without any special options.
29460 # Don't add to $LIBS permanently.
29461 ac_save_LIBS=$LIBS
5039a2df 29462 LIBS="-lXt $LIBS"
a848cd7e
SC
29463 cat >conftest.$ac_ext <<_ACEOF
29464/* confdefs.h. */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h. */
5039a2df 29469#include <X11/Intrinsic.h>
a848cd7e
SC
29470int
29471main ()
29472{
5039a2df 29473XtMalloc (0)
a848cd7e
SC
29474 ;
29475 return 0;
29476}
29477_ACEOF
29478rm -f conftest.$ac_objext conftest$ac_exeext
29479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29480 (eval $ac_link) 2>conftest.er1
a848cd7e 29481 ac_status=$?
ac1cb8d3
VS
29482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
a848cd7e
SC
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
6a5c9b3f
RR
29487 { ac_try='test -z "$ac_cxx_werror_flag"
29488 || test ! -s conftest.err'
ac1cb8d3
VS
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500 LIBS=$ac_save_LIBS
29501# We can link X programs with no special library path.
29502ac_x_libraries=
29503else
29504 echo "$as_me: failed program was:" >&5
29505sed 's/^/| /' conftest.$ac_ext >&5
29506
29507LIBS=$ac_save_LIBS
29508for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29509do
29510 # Don't even attempt the hair of trying to link an X program!
29511 for ac_extension in a so sl; do
5039a2df 29512 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
29513 ac_x_libraries=$ac_dir
29514 break 2
29515 fi
29516 done
29517done
29518fi
ac1cb8d3
VS
29519rm -f conftest.err conftest.$ac_objext \
29520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29521fi # $ac_x_libraries = no
29522
29523if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29524 # Didn't find X anywhere. Cache the known absence of X.
29525 ac_cv_have_x="have_x=no"
29526else
29527 # Record where we found X for the cache.
29528 ac_cv_have_x="have_x=yes \
ac1cb8d3 29529 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29530fi
29531fi
29532
29533 fi
29534 eval "$ac_cv_have_x"
29535fi # $with_x != no
29536
29537if test "$have_x" != yes; then
29538 echo "$as_me:$LINENO: result: $have_x" >&5
29539echo "${ECHO_T}$have_x" >&6
29540 no_x=yes
29541else
29542 # If each of the values was on the command line, it overrides each guess.
29543 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29544 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29545 # Update the cache value to reflect the command line values.
29546 ac_cv_have_x="have_x=yes \
29547 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6a5c9b3f
RR
29548 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29549echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
29550fi
29551
29552if test "$no_x" = yes; then
29553 # Not all programs may use this symbol, but it does not hurt to define it.
29554
29555cat >>confdefs.h <<\_ACEOF
29556#define X_DISPLAY_MISSING 1
29557_ACEOF
29558
29559 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29560else
29561 if test -n "$x_includes"; then
29562 X_CFLAGS="$X_CFLAGS -I$x_includes"
29563 fi
29564
29565 # It would also be nice to do this for all -L options, not just this one.
29566 if test -n "$x_libraries"; then
29567 X_LIBS="$X_LIBS -L$x_libraries"
29568 # For Solaris; some versions of Sun CC require a space after -R and
29569 # others require no space. Words are not sufficient . . . .
29570 case `(uname -sr) 2>/dev/null` in
29571 "SunOS 5"*)
29572 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29573echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29574 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29575 cat >conftest.$ac_ext <<_ACEOF
29576/* confdefs.h. */
29577_ACEOF
29578cat confdefs.h >>conftest.$ac_ext
29579cat >>conftest.$ac_ext <<_ACEOF
29580/* end confdefs.h. */
29581
29582int
29583main ()
29584{
29585
29586 ;
29587 return 0;
29588}
29589_ACEOF
29590rm -f conftest.$ac_objext conftest$ac_exeext
29591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29592 (eval $ac_link) 2>conftest.er1
a848cd7e 29593 ac_status=$?
ac1cb8d3
VS
29594 grep -v '^ *+' conftest.er1 >conftest.err
29595 rm -f conftest.er1
29596 cat conftest.err >&5
a848cd7e
SC
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); } &&
6a5c9b3f
RR
29599 { ac_try='test -z "$ac_cxx_werror_flag"
29600 || test ! -s conftest.err'
ac1cb8d3
VS
29601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29602 (eval $ac_try) 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29608 (eval $ac_try) 2>&5
29609 ac_status=$?
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; }; then
29612 ac_R_nospace=yes
29613else
29614 echo "$as_me: failed program was:" >&5
29615sed 's/^/| /' conftest.$ac_ext >&5
29616
29617ac_R_nospace=no
29618fi
ac1cb8d3
VS
29619rm -f conftest.err conftest.$ac_objext \
29620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29621 if test $ac_R_nospace = yes; then
29622 echo "$as_me:$LINENO: result: no" >&5
29623echo "${ECHO_T}no" >&6
29624 X_LIBS="$X_LIBS -R$x_libraries"
29625 else
29626 LIBS="$ac_xsave_LIBS -R $x_libraries"
29627 cat >conftest.$ac_ext <<_ACEOF
29628/* confdefs.h. */
29629_ACEOF
29630cat confdefs.h >>conftest.$ac_ext
29631cat >>conftest.$ac_ext <<_ACEOF
29632/* end confdefs.h. */
29633
29634int
29635main ()
29636{
29637
29638 ;
29639 return 0;
29640}
29641_ACEOF
29642rm -f conftest.$ac_objext conftest$ac_exeext
29643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29644 (eval $ac_link) 2>conftest.er1
a848cd7e 29645 ac_status=$?
ac1cb8d3
VS
29646 grep -v '^ *+' conftest.er1 >conftest.err
29647 rm -f conftest.er1
29648 cat conftest.err >&5
a848cd7e
SC
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } &&
6a5c9b3f
RR
29651 { ac_try='test -z "$ac_cxx_werror_flag"
29652 || test ! -s conftest.err'
ac1cb8d3
VS
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; } &&
29658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660 (eval $ac_try) 2>&5
29661 ac_status=$?
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; }; then
29664 ac_R_space=yes
29665else
29666 echo "$as_me: failed program was:" >&5
29667sed 's/^/| /' conftest.$ac_ext >&5
29668
29669ac_R_space=no
29670fi
ac1cb8d3
VS
29671rm -f conftest.err conftest.$ac_objext \
29672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29673 if test $ac_R_space = yes; then
29674 echo "$as_me:$LINENO: result: yes" >&5
29675echo "${ECHO_T}yes" >&6
29676 X_LIBS="$X_LIBS -R $x_libraries"
29677 else
29678 echo "$as_me:$LINENO: result: neither works" >&5
29679echo "${ECHO_T}neither works" >&6
29680 fi
29681 fi
29682 LIBS=$ac_xsave_LIBS
29683 esac
29684 fi
29685
29686 # Check for system-dependent libraries X programs must link with.
29687 # Do this before checking for the system-independent R6 libraries
29688 # (-lICE), since we may need -lsocket or whatever for X linking.
29689
29690 if test "$ISC" = yes; then
29691 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29692 else
29693 # Martyn Johnson says this is needed for Ultrix, if the X
29694 # libraries were built with DECnet support. And Karl Berry says
29695 # the Alpha needs dnet_stub (dnet does not exist).
29696 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29697 cat >conftest.$ac_ext <<_ACEOF
29698/* confdefs.h. */
29699_ACEOF
29700cat confdefs.h >>conftest.$ac_ext
29701cat >>conftest.$ac_ext <<_ACEOF
29702/* end confdefs.h. */
29703
29704/* Override any gcc2 internal prototype to avoid an error. */
29705#ifdef __cplusplus
29706extern "C"
29707#endif
29708/* We use char because int might match the return type of a gcc2
29709 builtin and then its argument prototype would still apply. */
29710char XOpenDisplay ();
29711int
29712main ()
29713{
29714XOpenDisplay ();
29715 ;
29716 return 0;
29717}
29718_ACEOF
29719rm -f conftest.$ac_objext conftest$ac_exeext
29720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29721 (eval $ac_link) 2>conftest.er1
a848cd7e 29722 ac_status=$?
ac1cb8d3
VS
29723 grep -v '^ *+' conftest.er1 >conftest.err
29724 rm -f conftest.er1
29725 cat conftest.err >&5
a848cd7e
SC
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } &&
6a5c9b3f
RR
29728 { ac_try='test -z "$ac_cxx_werror_flag"
29729 || test ! -s conftest.err'
ac1cb8d3
VS
29730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29731 (eval $ac_try) 2>&5
29732 ac_status=$?
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; } &&
29735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737 (eval $ac_try) 2>&5
29738 ac_status=$?
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; }; then
29741 :
29742else
29743 echo "$as_me: failed program was:" >&5
29744sed 's/^/| /' conftest.$ac_ext >&5
29745
29746echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29747echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29748if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29749 echo $ECHO_N "(cached) $ECHO_C" >&6
29750else
29751 ac_check_lib_save_LIBS=$LIBS
29752LIBS="-ldnet $LIBS"
29753cat >conftest.$ac_ext <<_ACEOF
29754/* confdefs.h. */
29755_ACEOF
29756cat confdefs.h >>conftest.$ac_ext
29757cat >>conftest.$ac_ext <<_ACEOF
29758/* end confdefs.h. */
29759
29760/* Override any gcc2 internal prototype to avoid an error. */
29761#ifdef __cplusplus
29762extern "C"
29763#endif
29764/* We use char because int might match the return type of a gcc2
29765 builtin and then its argument prototype would still apply. */
29766char dnet_ntoa ();
29767int
29768main ()
29769{
29770dnet_ntoa ();
29771 ;
29772 return 0;
29773}
29774_ACEOF
29775rm -f conftest.$ac_objext conftest$ac_exeext
29776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29777 (eval $ac_link) 2>conftest.er1
a848cd7e 29778 ac_status=$?
ac1cb8d3
VS
29779 grep -v '^ *+' conftest.er1 >conftest.err
29780 rm -f conftest.er1
29781 cat conftest.err >&5
a848cd7e
SC
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
6a5c9b3f
RR
29784 { ac_try='test -z "$ac_cxx_werror_flag"
29785 || test ! -s conftest.err'
ac1cb8d3
VS
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; } &&
29791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29793 (eval $ac_try) 2>&5
29794 ac_status=$?
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; }; then
29797 ac_cv_lib_dnet_dnet_ntoa=yes
29798else
29799 echo "$as_me: failed program was:" >&5
29800sed 's/^/| /' conftest.$ac_ext >&5
29801
29802ac_cv_lib_dnet_dnet_ntoa=no
29803fi
ac1cb8d3
VS
29804rm -f conftest.err conftest.$ac_objext \
29805 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29806LIBS=$ac_check_lib_save_LIBS
29807fi
29808echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29809echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29810if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29812fi
29813
29814 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29815 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29816echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29817if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29819else
29820 ac_check_lib_save_LIBS=$LIBS
29821LIBS="-ldnet_stub $LIBS"
29822cat >conftest.$ac_ext <<_ACEOF
29823/* confdefs.h. */
29824_ACEOF
29825cat confdefs.h >>conftest.$ac_ext
29826cat >>conftest.$ac_ext <<_ACEOF
29827/* end confdefs.h. */
29828
29829/* Override any gcc2 internal prototype to avoid an error. */
29830#ifdef __cplusplus
29831extern "C"
29832#endif
29833/* We use char because int might match the return type of a gcc2
29834 builtin and then its argument prototype would still apply. */
29835char dnet_ntoa ();
29836int
29837main ()
29838{
29839dnet_ntoa ();
29840 ;
29841 return 0;
29842}
29843_ACEOF
29844rm -f conftest.$ac_objext conftest$ac_exeext
29845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29846 (eval $ac_link) 2>conftest.er1
a848cd7e 29847 ac_status=$?
ac1cb8d3
VS
29848 grep -v '^ *+' conftest.er1 >conftest.err
29849 rm -f conftest.er1
29850 cat conftest.err >&5
a848cd7e
SC
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } &&
6a5c9b3f
RR
29853 { ac_try='test -z "$ac_cxx_werror_flag"
29854 || test ! -s conftest.err'
ac1cb8d3
VS
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862 (eval $ac_try) 2>&5
29863 ac_status=$?
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; }; then
29866 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29867else
29868 echo "$as_me: failed program was:" >&5
29869sed 's/^/| /' conftest.$ac_ext >&5
29870
29871ac_cv_lib_dnet_stub_dnet_ntoa=no
29872fi
ac1cb8d3
VS
29873rm -f conftest.err conftest.$ac_objext \
29874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29875LIBS=$ac_check_lib_save_LIBS
29876fi
29877echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29878echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29879if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29880 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29881fi
29882
29883 fi
29884fi
ac1cb8d3
VS
29885rm -f conftest.err conftest.$ac_objext \
29886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29887 LIBS="$ac_xsave_LIBS"
29888
29889 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29890 # to get the SysV transport functions.
29891 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29892 # needs -lnsl.
29893 # The nsl library prevents programs from opening the X display
29894 # on Irix 5.2, according to T.E. Dickey.
29895 # The functions gethostbyname, getservbyname, and inet_addr are
29896 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29897 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29898echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29899if test "${ac_cv_func_gethostbyname+set}" = set; then
29900 echo $ECHO_N "(cached) $ECHO_C" >&6
29901else
29902 cat >conftest.$ac_ext <<_ACEOF
29903/* confdefs.h. */
29904_ACEOF
29905cat confdefs.h >>conftest.$ac_ext
29906cat >>conftest.$ac_ext <<_ACEOF
29907/* end confdefs.h. */
ac1cb8d3
VS
29908/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29910#define gethostbyname innocuous_gethostbyname
29911
a848cd7e
SC
29912/* System header to define __stub macros and hopefully few prototypes,
29913 which can conflict with char gethostbyname (); below.
29914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29915 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29916
a848cd7e
SC
29917#ifdef __STDC__
29918# include <limits.h>
29919#else
29920# include <assert.h>
29921#endif
ac1cb8d3
VS
29922
29923#undef gethostbyname
29924
a848cd7e
SC
29925/* Override any gcc2 internal prototype to avoid an error. */
29926#ifdef __cplusplus
29927extern "C"
29928{
29929#endif
29930/* We use char because int might match the return type of a gcc2
29931 builtin and then its argument prototype would still apply. */
29932char gethostbyname ();
29933/* The GNU C library defines this for functions which it implements
29934 to always fail with ENOSYS. Some functions are actually named
29935 something starting with __ and the normal name is an alias. */
29936#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29937choke me
29938#else
29939char (*f) () = gethostbyname;
29940#endif
29941#ifdef __cplusplus
29942}
29943#endif
29944
29945int
29946main ()
29947{
29948return f != gethostbyname;
29949 ;
29950 return 0;
29951}
29952_ACEOF
29953rm -f conftest.$ac_objext conftest$ac_exeext
29954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29955 (eval $ac_link) 2>conftest.er1
a848cd7e 29956 ac_status=$?
ac1cb8d3
VS
29957 grep -v '^ *+' conftest.er1 >conftest.err
29958 rm -f conftest.er1
29959 cat conftest.err >&5
a848cd7e
SC
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); } &&
6a5c9b3f
RR
29962 { ac_try='test -z "$ac_cxx_werror_flag"
29963 || test ! -s conftest.err'
ac1cb8d3
VS
29964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965 (eval $ac_try) 2>&5
29966 ac_status=$?
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); }; } &&
29969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; }; then
29975 ac_cv_func_gethostbyname=yes
29976else
29977 echo "$as_me: failed program was:" >&5
29978sed 's/^/| /' conftest.$ac_ext >&5
29979
29980ac_cv_func_gethostbyname=no
29981fi
ac1cb8d3
VS
29982rm -f conftest.err conftest.$ac_objext \
29983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29984fi
29985echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29986echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29987
29988 if test $ac_cv_func_gethostbyname = no; then
29989 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29990echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29991if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29992 echo $ECHO_N "(cached) $ECHO_C" >&6
29993else
29994 ac_check_lib_save_LIBS=$LIBS
29995LIBS="-lnsl $LIBS"
29996cat >conftest.$ac_ext <<_ACEOF
29997/* confdefs.h. */
29998_ACEOF
29999cat confdefs.h >>conftest.$ac_ext
30000cat >>conftest.$ac_ext <<_ACEOF
30001/* end confdefs.h. */
30002
30003/* Override any gcc2 internal prototype to avoid an error. */
30004#ifdef __cplusplus
30005extern "C"
30006#endif
30007/* We use char because int might match the return type of a gcc2
30008 builtin and then its argument prototype would still apply. */
30009char gethostbyname ();
30010int
30011main ()
30012{
30013gethostbyname ();
30014 ;
30015 return 0;
30016}
30017_ACEOF
30018rm -f conftest.$ac_objext conftest$ac_exeext
30019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30020 (eval $ac_link) 2>conftest.er1
30021 ac_status=$?
30022 grep -v '^ *+' conftest.er1 >conftest.err
30023 rm -f conftest.er1
30024 cat conftest.err >&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); } &&
6a5c9b3f
RR
30027 { ac_try='test -z "$ac_cxx_werror_flag"
30028 || test ! -s conftest.err'
ac1cb8d3
VS
30029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30030 (eval $ac_try) 2>&5
30031 ac_status=$?
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; } &&
30034 { ac_try='test -s conftest$ac_exeext'
30035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036 (eval $ac_try) 2>&5
30037 ac_status=$?
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); }; }; then
30040 ac_cv_lib_nsl_gethostbyname=yes
30041else
30042 echo "$as_me: failed program was:" >&5
30043sed 's/^/| /' conftest.$ac_ext >&5
30044
30045ac_cv_lib_nsl_gethostbyname=no
30046fi
30047rm -f conftest.err conftest.$ac_objext \
30048 conftest$ac_exeext conftest.$ac_ext
30049LIBS=$ac_check_lib_save_LIBS
30050fi
30051echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30052echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30053if test $ac_cv_lib_nsl_gethostbyname = yes; then
30054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30055fi
30056
30057 if test $ac_cv_lib_nsl_gethostbyname = no; then
30058 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30059echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30060if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30061 echo $ECHO_N "(cached) $ECHO_C" >&6
30062else
30063 ac_check_lib_save_LIBS=$LIBS
30064LIBS="-lbsd $LIBS"
30065cat >conftest.$ac_ext <<_ACEOF
30066/* confdefs.h. */
30067_ACEOF
30068cat confdefs.h >>conftest.$ac_ext
30069cat >>conftest.$ac_ext <<_ACEOF
30070/* end confdefs.h. */
30071
30072/* Override any gcc2 internal prototype to avoid an error. */
30073#ifdef __cplusplus
30074extern "C"
30075#endif
30076/* We use char because int might match the return type of a gcc2
30077 builtin and then its argument prototype would still apply. */
30078char gethostbyname ();
30079int
30080main ()
30081{
30082gethostbyname ();
30083 ;
30084 return 0;
30085}
30086_ACEOF
30087rm -f conftest.$ac_objext conftest$ac_exeext
30088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30089 (eval $ac_link) 2>conftest.er1
a848cd7e 30090 ac_status=$?
ac1cb8d3
VS
30091 grep -v '^ *+' conftest.er1 >conftest.err
30092 rm -f conftest.er1
30093 cat conftest.err >&5
a848cd7e
SC
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } &&
6a5c9b3f
RR
30096 { ac_try='test -z "$ac_cxx_werror_flag"
30097 || test ! -s conftest.err'
a848cd7e
SC
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30102 (exit $ac_status); }; } &&
30103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30105 (eval $ac_try) 2>&5
30106 ac_status=$?
30107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); }; }; then
30109 ac_cv_lib_bsd_gethostbyname=yes
30110else
30111 echo "$as_me: failed program was:" >&5
30112sed 's/^/| /' conftest.$ac_ext >&5
30113
30114ac_cv_lib_bsd_gethostbyname=no
30115fi
ac1cb8d3
VS
30116rm -f conftest.err conftest.$ac_objext \
30117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30118LIBS=$ac_check_lib_save_LIBS
30119fi
30120echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30121echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30122if test $ac_cv_lib_bsd_gethostbyname = yes; then
30123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30124fi
30125
30126 fi
30127 fi
30128
30129 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30130 # socket/setsockopt and other routines are undefined under SCO ODT
30131 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30132 # on later versions), says Simon Leinen: it contains gethostby*
30133 # variants that don't use the name server (or something). -lsocket
30134 # must be given before -lnsl if both are needed. We assume that
30135 # if connect needs -lnsl, so does gethostbyname.
30136 echo "$as_me:$LINENO: checking for connect" >&5
30137echo $ECHO_N "checking for connect... $ECHO_C" >&6
30138if test "${ac_cv_func_connect+set}" = set; then
30139 echo $ECHO_N "(cached) $ECHO_C" >&6
30140else
30141 cat >conftest.$ac_ext <<_ACEOF
30142/* confdefs.h. */
30143_ACEOF
30144cat confdefs.h >>conftest.$ac_ext
30145cat >>conftest.$ac_ext <<_ACEOF
30146/* end confdefs.h. */
ac1cb8d3
VS
30147/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30149#define connect innocuous_connect
30150
a848cd7e
SC
30151/* System header to define __stub macros and hopefully few prototypes,
30152 which can conflict with char connect (); below.
30153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30154 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30155
a848cd7e
SC
30156#ifdef __STDC__
30157# include <limits.h>
30158#else
30159# include <assert.h>
30160#endif
ac1cb8d3
VS
30161
30162#undef connect
30163
a848cd7e
SC
30164/* Override any gcc2 internal prototype to avoid an error. */
30165#ifdef __cplusplus
30166extern "C"
30167{
30168#endif
30169/* We use char because int might match the return type of a gcc2
30170 builtin and then its argument prototype would still apply. */
30171char connect ();
30172/* The GNU C library defines this for functions which it implements
30173 to always fail with ENOSYS. Some functions are actually named
30174 something starting with __ and the normal name is an alias. */
30175#if defined (__stub_connect) || defined (__stub___connect)
30176choke me
30177#else
30178char (*f) () = connect;
30179#endif
30180#ifdef __cplusplus
30181}
30182#endif
30183
30184int
30185main ()
30186{
30187return f != connect;
30188 ;
30189 return 0;
30190}
30191_ACEOF
30192rm -f conftest.$ac_objext conftest$ac_exeext
30193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30194 (eval $ac_link) 2>conftest.er1
a848cd7e 30195 ac_status=$?
ac1cb8d3
VS
30196 grep -v '^ *+' conftest.er1 >conftest.err
30197 rm -f conftest.er1
30198 cat conftest.err >&5
a848cd7e
SC
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); } &&
6a5c9b3f
RR
30201 { ac_try='test -z "$ac_cxx_werror_flag"
30202 || test ! -s conftest.err'
ac1cb8d3
VS
30203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30204 (eval $ac_try) 2>&5
30205 ac_status=$?
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); }; } &&
30208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210 (eval $ac_try) 2>&5
30211 ac_status=$?
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; }; then
30214 ac_cv_func_connect=yes
30215else
30216 echo "$as_me: failed program was:" >&5
30217sed 's/^/| /' conftest.$ac_ext >&5
30218
30219ac_cv_func_connect=no
30220fi
ac1cb8d3
VS
30221rm -f conftest.err conftest.$ac_objext \
30222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30223fi
30224echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30225echo "${ECHO_T}$ac_cv_func_connect" >&6
30226
30227 if test $ac_cv_func_connect = no; then
30228 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30229echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30230if test "${ac_cv_lib_socket_connect+set}" = set; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30232else
30233 ac_check_lib_save_LIBS=$LIBS
30234LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30235cat >conftest.$ac_ext <<_ACEOF
30236/* confdefs.h. */
30237_ACEOF
30238cat confdefs.h >>conftest.$ac_ext
30239cat >>conftest.$ac_ext <<_ACEOF
30240/* end confdefs.h. */
30241
30242/* Override any gcc2 internal prototype to avoid an error. */
30243#ifdef __cplusplus
30244extern "C"
30245#endif
30246/* We use char because int might match the return type of a gcc2
30247 builtin and then its argument prototype would still apply. */
30248char connect ();
30249int
30250main ()
30251{
30252connect ();
30253 ;
30254 return 0;
30255}
30256_ACEOF
30257rm -f conftest.$ac_objext conftest$ac_exeext
30258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30259 (eval $ac_link) 2>conftest.er1
a848cd7e 30260 ac_status=$?
ac1cb8d3
VS
30261 grep -v '^ *+' conftest.er1 >conftest.err
30262 rm -f conftest.er1
30263 cat conftest.err >&5
a848cd7e
SC
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } &&
6a5c9b3f
RR
30266 { ac_try='test -z "$ac_cxx_werror_flag"
30267 || test ! -s conftest.err'
ac1cb8d3
VS
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30270 ac_status=$?
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; } &&
30273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30279 ac_cv_lib_socket_connect=yes
30280else
30281 echo "$as_me: failed program was:" >&5
30282sed 's/^/| /' conftest.$ac_ext >&5
30283
30284ac_cv_lib_socket_connect=no
30285fi
ac1cb8d3
VS
30286rm -f conftest.err conftest.$ac_objext \
30287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30288LIBS=$ac_check_lib_save_LIBS
30289fi
30290echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30291echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30292if test $ac_cv_lib_socket_connect = yes; then
30293 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30294fi
30295
30296 fi
30297
30298 # Guillermo Gomez says -lposix is necessary on A/UX.
30299 echo "$as_me:$LINENO: checking for remove" >&5
30300echo $ECHO_N "checking for remove... $ECHO_C" >&6
30301if test "${ac_cv_func_remove+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303else
30304 cat >conftest.$ac_ext <<_ACEOF
30305/* confdefs.h. */
30306_ACEOF
30307cat confdefs.h >>conftest.$ac_ext
30308cat >>conftest.$ac_ext <<_ACEOF
30309/* end confdefs.h. */
ac1cb8d3
VS
30310/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30312#define remove innocuous_remove
30313
a848cd7e
SC
30314/* System header to define __stub macros and hopefully few prototypes,
30315 which can conflict with char remove (); below.
30316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30318
a848cd7e
SC
30319#ifdef __STDC__
30320# include <limits.h>
30321#else
30322# include <assert.h>
30323#endif
ac1cb8d3
VS
30324
30325#undef remove
30326
a848cd7e
SC
30327/* Override any gcc2 internal prototype to avoid an error. */
30328#ifdef __cplusplus
30329extern "C"
30330{
30331#endif
30332/* We use char because int might match the return type of a gcc2
30333 builtin and then its argument prototype would still apply. */
30334char remove ();
30335/* The GNU C library defines this for functions which it implements
30336 to always fail with ENOSYS. Some functions are actually named
30337 something starting with __ and the normal name is an alias. */
30338#if defined (__stub_remove) || defined (__stub___remove)
30339choke me
30340#else
30341char (*f) () = remove;
30342#endif
30343#ifdef __cplusplus
30344}
30345#endif
30346
30347int
30348main ()
30349{
30350return f != remove;
30351 ;
30352 return 0;
30353}
30354_ACEOF
30355rm -f conftest.$ac_objext conftest$ac_exeext
30356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30357 (eval $ac_link) 2>conftest.er1
a848cd7e 30358 ac_status=$?
ac1cb8d3
VS
30359 grep -v '^ *+' conftest.er1 >conftest.err
30360 rm -f conftest.er1
30361 cat conftest.err >&5
a848cd7e
SC
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
6a5c9b3f
RR
30364 { ac_try='test -z "$ac_cxx_werror_flag"
30365 || test ! -s conftest.err'
ac1cb8d3
VS
30366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30367 (eval $ac_try) 2>&5
30368 ac_status=$?
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); }; } &&
30371 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30373 (eval $ac_try) 2>&5
30374 ac_status=$?
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; }; then
30377 ac_cv_func_remove=yes
30378else
30379 echo "$as_me: failed program was:" >&5
30380sed 's/^/| /' conftest.$ac_ext >&5
30381
30382ac_cv_func_remove=no
30383fi
ac1cb8d3
VS
30384rm -f conftest.err conftest.$ac_objext \
30385 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30386fi
30387echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30388echo "${ECHO_T}$ac_cv_func_remove" >&6
30389
30390 if test $ac_cv_func_remove = no; then
30391 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30392echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30393if test "${ac_cv_lib_posix_remove+set}" = set; then
30394 echo $ECHO_N "(cached) $ECHO_C" >&6
30395else
30396 ac_check_lib_save_LIBS=$LIBS
30397LIBS="-lposix $LIBS"
30398cat >conftest.$ac_ext <<_ACEOF
30399/* confdefs.h. */
30400_ACEOF
30401cat confdefs.h >>conftest.$ac_ext
30402cat >>conftest.$ac_ext <<_ACEOF
30403/* end confdefs.h. */
30404
30405/* Override any gcc2 internal prototype to avoid an error. */
30406#ifdef __cplusplus
30407extern "C"
30408#endif
30409/* We use char because int might match the return type of a gcc2
30410 builtin and then its argument prototype would still apply. */
30411char remove ();
30412int
30413main ()
30414{
30415remove ();
30416 ;
30417 return 0;
30418}
30419_ACEOF
30420rm -f conftest.$ac_objext conftest$ac_exeext
30421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30422 (eval $ac_link) 2>conftest.er1
a848cd7e 30423 ac_status=$?
ac1cb8d3
VS
30424 grep -v '^ *+' conftest.er1 >conftest.err
30425 rm -f conftest.er1
30426 cat conftest.err >&5
a848cd7e
SC
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); } &&
6a5c9b3f
RR
30429 { ac_try='test -z "$ac_cxx_werror_flag"
30430 || test ! -s conftest.err'
ac1cb8d3
VS
30431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30432 (eval $ac_try) 2>&5
30433 ac_status=$?
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; } &&
30436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30438 (eval $ac_try) 2>&5
30439 ac_status=$?
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); }; }; then
30442 ac_cv_lib_posix_remove=yes
30443else
30444 echo "$as_me: failed program was:" >&5
30445sed 's/^/| /' conftest.$ac_ext >&5
30446
30447ac_cv_lib_posix_remove=no
30448fi
ac1cb8d3
VS
30449rm -f conftest.err conftest.$ac_objext \
30450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30451LIBS=$ac_check_lib_save_LIBS
30452fi
30453echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30454echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30455if test $ac_cv_lib_posix_remove = yes; then
30456 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30457fi
30458
30459 fi
30460
30461 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30462 echo "$as_me:$LINENO: checking for shmat" >&5
30463echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30464if test "${ac_cv_func_shmat+set}" = set; then
30465 echo $ECHO_N "(cached) $ECHO_C" >&6
30466else
30467 cat >conftest.$ac_ext <<_ACEOF
30468/* confdefs.h. */
30469_ACEOF
30470cat confdefs.h >>conftest.$ac_ext
30471cat >>conftest.$ac_ext <<_ACEOF
30472/* end confdefs.h. */
ac1cb8d3
VS
30473/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30475#define shmat innocuous_shmat
30476
a848cd7e
SC
30477/* System header to define __stub macros and hopefully few prototypes,
30478 which can conflict with char shmat (); below.
30479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30481
a848cd7e
SC
30482#ifdef __STDC__
30483# include <limits.h>
30484#else
30485# include <assert.h>
30486#endif
ac1cb8d3
VS
30487
30488#undef shmat
30489
a848cd7e
SC
30490/* Override any gcc2 internal prototype to avoid an error. */
30491#ifdef __cplusplus
30492extern "C"
30493{
30494#endif
30495/* We use char because int might match the return type of a gcc2
30496 builtin and then its argument prototype would still apply. */
30497char shmat ();
30498/* The GNU C library defines this for functions which it implements
30499 to always fail with ENOSYS. Some functions are actually named
30500 something starting with __ and the normal name is an alias. */
30501#if defined (__stub_shmat) || defined (__stub___shmat)
30502choke me
30503#else
30504char (*f) () = shmat;
30505#endif
30506#ifdef __cplusplus
30507}
30508#endif
30509
30510int
30511main ()
30512{
30513return f != shmat;
30514 ;
30515 return 0;
30516}
30517_ACEOF
30518rm -f conftest.$ac_objext conftest$ac_exeext
30519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30520 (eval $ac_link) 2>conftest.er1
a848cd7e 30521 ac_status=$?
ac1cb8d3
VS
30522 grep -v '^ *+' conftest.er1 >conftest.err
30523 rm -f conftest.er1
30524 cat conftest.err >&5
a848cd7e
SC
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); } &&
6a5c9b3f
RR
30527 { ac_try='test -z "$ac_cxx_werror_flag"
30528 || test ! -s conftest.err'
ac1cb8d3
VS
30529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530 (eval $ac_try) 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; } &&
30534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30536 (eval $ac_try) 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; }; then
30540 ac_cv_func_shmat=yes
30541else
30542 echo "$as_me: failed program was:" >&5
30543sed 's/^/| /' conftest.$ac_ext >&5
30544
30545ac_cv_func_shmat=no
30546fi
ac1cb8d3
VS
30547rm -f conftest.err conftest.$ac_objext \
30548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30549fi
30550echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30551echo "${ECHO_T}$ac_cv_func_shmat" >&6
30552
30553 if test $ac_cv_func_shmat = no; then
30554 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30555echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30556if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30557 echo $ECHO_N "(cached) $ECHO_C" >&6
30558else
30559 ac_check_lib_save_LIBS=$LIBS
30560LIBS="-lipc $LIBS"
30561cat >conftest.$ac_ext <<_ACEOF
30562/* confdefs.h. */
30563_ACEOF
30564cat confdefs.h >>conftest.$ac_ext
30565cat >>conftest.$ac_ext <<_ACEOF
30566/* end confdefs.h. */
30567
30568/* Override any gcc2 internal prototype to avoid an error. */
30569#ifdef __cplusplus
30570extern "C"
30571#endif
30572/* We use char because int might match the return type of a gcc2
30573 builtin and then its argument prototype would still apply. */
30574char shmat ();
30575int
30576main ()
30577{
30578shmat ();
30579 ;
30580 return 0;
30581}
30582_ACEOF
30583rm -f conftest.$ac_objext conftest$ac_exeext
30584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30585 (eval $ac_link) 2>conftest.er1
a848cd7e 30586 ac_status=$?
ac1cb8d3
VS
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
a848cd7e
SC
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } &&
6a5c9b3f
RR
30592 { ac_try='test -z "$ac_cxx_werror_flag"
30593 || test ! -s conftest.err'
ac1cb8d3
VS
30594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30595 (eval $ac_try) 2>&5
30596 ac_status=$?
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); }; } &&
30599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601 (eval $ac_try) 2>&5
30602 ac_status=$?
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); }; }; then
30605 ac_cv_lib_ipc_shmat=yes
30606else
30607 echo "$as_me: failed program was:" >&5
30608sed 's/^/| /' conftest.$ac_ext >&5
30609
30610ac_cv_lib_ipc_shmat=no
30611fi
ac1cb8d3
VS
30612rm -f conftest.err conftest.$ac_objext \
30613 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30614LIBS=$ac_check_lib_save_LIBS
30615fi
30616echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30617echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30618if test $ac_cv_lib_ipc_shmat = yes; then
30619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30620fi
30621
30622 fi
30623 fi
30624
30625 # Check for libraries that X11R6 Xt/Xaw programs need.
30626 ac_save_LDFLAGS=$LDFLAGS
30627 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30628 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30629 # check for ICE first), but we must link in the order -lSM -lICE or
30630 # we get undefined symbols. So assume we have SM if we have ICE.
30631 # These have to be linked with before -lX11, unlike the other
30632 # libraries we check for below, so use a different variable.
30633 # John Interrante, Karl Berry
30634 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30635echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30636if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30637 echo $ECHO_N "(cached) $ECHO_C" >&6
30638else
30639 ac_check_lib_save_LIBS=$LIBS
30640LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30641cat >conftest.$ac_ext <<_ACEOF
30642/* confdefs.h. */
30643_ACEOF
30644cat confdefs.h >>conftest.$ac_ext
30645cat >>conftest.$ac_ext <<_ACEOF
30646/* end confdefs.h. */
30647
30648/* Override any gcc2 internal prototype to avoid an error. */
30649#ifdef __cplusplus
30650extern "C"
30651#endif
30652/* We use char because int might match the return type of a gcc2
30653 builtin and then its argument prototype would still apply. */
30654char IceConnectionNumber ();
30655int
30656main ()
30657{
30658IceConnectionNumber ();
30659 ;
30660 return 0;
30661}
30662_ACEOF
30663rm -f conftest.$ac_objext conftest$ac_exeext
30664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30665 (eval $ac_link) 2>conftest.er1
a848cd7e 30666 ac_status=$?
ac1cb8d3
VS
30667 grep -v '^ *+' conftest.er1 >conftest.err
30668 rm -f conftest.er1
30669 cat conftest.err >&5
a848cd7e
SC
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } &&
6a5c9b3f
RR
30672 { ac_try='test -z "$ac_cxx_werror_flag"
30673 || test ! -s conftest.err'
ac1cb8d3
VS
30674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30675 (eval $ac_try) 2>&5
30676 ac_status=$?
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); }; } &&
30679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681 (eval $ac_try) 2>&5
30682 ac_status=$?
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; }; then
30685 ac_cv_lib_ICE_IceConnectionNumber=yes
30686else
30687 echo "$as_me: failed program was:" >&5
30688sed 's/^/| /' conftest.$ac_ext >&5
30689
30690ac_cv_lib_ICE_IceConnectionNumber=no
30691fi
ac1cb8d3
VS
30692rm -f conftest.err conftest.$ac_objext \
30693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30694LIBS=$ac_check_lib_save_LIBS
30695fi
30696echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30697echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30698if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30699 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30700fi
30701
30702 LDFLAGS=$ac_save_LDFLAGS
30703
30704fi
30705
30706
30707 if test "$no_x" = "yes"; then
89d90d6d
VZ
30708 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30709echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30710 { (exit 1); exit 1; }; }
a848cd7e
SC
30711 fi
30712
74b84332
VS
30713 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30714 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30715 AFMINSTALL=afminstall
30716 COMPILED_X_PROGRAM=0
30717
74b84332
VS
30718 fi
30719
30720 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30721 if test "$wxUSE_NANOX" = "yes"; then
30722 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30723echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30724 if test "x$MICROWIN" = x ; then
30725 echo "$as_me:$LINENO: result: not found" >&5
30726echo "${ECHO_T}not found" >&6
30727 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30728echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30729 { (exit 1); exit 1; }; }
30730 else
30731 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30732echo "${ECHO_T}$MICROWIN" >&6
30733 cat >>confdefs.h <<\_ACEOF
30734#define wxUSE_NANOX 1
30735_ACEOF
30736
30737 fi
30738 fi
30739
30740 if test "$wxUSE_UNICODE" = "yes"; then
30741
3ecd9f92
MW
30742pkg_failed=no
30743echo "$as_me:$LINENO: checking for PANGOX" >&5
30744echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30745
3ecd9f92
MW
30746if test -n "$PKG_CONFIG"; then
30747 if test -n "$PANGOX_CFLAGS"; then
30748 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30749 else
30750 if test -n "$PKG_CONFIG" && \
30751 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30752 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30753 ac_status=$?
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; then
30756 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30757else
30758 pkg_failed=yes
30759fi
30760 fi
30761else
30762 pkg_failed=untried
30763fi
30764if test -n "$PKG_CONFIG"; then
30765 if test -n "$PANGOX_LIBS"; then
30766 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30767 else
30768 if test -n "$PKG_CONFIG" && \
30769 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30770 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; then
30774 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30775else
30776 pkg_failed=yes
30777fi
30778 fi
30779else
30780 pkg_failed=untried
30781fi
30782
30783
30784
30785if test $pkg_failed = yes; then
30786
30787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30788 _pkg_short_errors_supported=yes
30789else
30790 _pkg_short_errors_supported=no
30791fi
30792 if test $_pkg_short_errors_supported = yes; then
30793 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30794 else
30795 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30796 fi
3ecd9f92
MW
30797 # Put the nasty error message in config.log where it belongs
30798 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30799
30800
3ecd9f92
MW
30801 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30802echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30803 { (exit 1); exit 1; }; }
a848cd7e 30804
a848cd7e 30805
3ecd9f92 30806elif test $pkg_failed = untried; then
a848cd7e 30807
3ecd9f92
MW
30808 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30809echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30810 { (exit 1); exit 1; }; }
30811
30812
30813else
30814 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30815 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30816 echo "$as_me:$LINENO: result: yes" >&5
30817echo "${ECHO_T}yes" >&6
30818
30819 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30820 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30821
30822fi
30823
30824pkg_failed=no
30825echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30826echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30827
30828if test -n "$PKG_CONFIG"; then
30829 if test -n "$PANGOFT2_CFLAGS"; then
30830 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30831 else
30832 if test -n "$PKG_CONFIG" && \
30833 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30834 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30835 ac_status=$?
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; then
30838 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30839else
30840 pkg_failed=yes
30841fi
30842 fi
30843else
30844 pkg_failed=untried
30845fi
30846if test -n "$PKG_CONFIG"; then
30847 if test -n "$PANGOFT2_LIBS"; then
30848 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30849 else
30850 if test -n "$PKG_CONFIG" && \
30851 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30852 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); }; then
30856 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30857else
30858 pkg_failed=yes
30859fi
30860 fi
30861else
30862 pkg_failed=untried
30863fi
30864
30865
30866
30867if test $pkg_failed = yes; then
30868
30869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30870 _pkg_short_errors_supported=yes
30871else
30872 _pkg_short_errors_supported=no
30873fi
30874 if test $_pkg_short_errors_supported = yes; then
30875 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30876 else
30877 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30878 fi
30879 # Put the nasty error message in config.log where it belongs
30880 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30881
a848cd7e
SC
30882
30883 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30884echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30885 wxUSE_PRINTING_ARCHITECTURE="no"
30886
30887
3ecd9f92 30888elif test $pkg_failed = untried; then
a848cd7e 30889
3ecd9f92
MW
30890 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30891echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30892 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30893
a848cd7e 30894
a848cd7e 30895else
3ecd9f92
MW
30896 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30897 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30898 echo "$as_me:$LINENO: result: yes" >&5
30899echo "${ECHO_T}yes" >&6
30900
30901 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30902 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30903
a848cd7e 30904fi
3ecd9f92
MW
30905
30906pkg_failed=no
30907echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30908echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30909
30910if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30911 if test -n "$PANGOXFT_CFLAGS"; then
30912 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30913 else
30914 if test -n "$PKG_CONFIG" && \
30915 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30916 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30917 ac_status=$?
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; then
30920 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30921else
3ecd9f92
MW
30922 pkg_failed=yes
30923fi
30924 fi
30925else
30926 pkg_failed=untried
30927fi
30928if test -n "$PKG_CONFIG"; then
30929 if test -n "$PANGOXFT_LIBS"; then
30930 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30931 else
30932 if test -n "$PKG_CONFIG" && \
30933 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30934 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30935 ac_status=$?
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; then
30938 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30939else
30940 pkg_failed=yes
30941fi
30942 fi
30943else
30944 pkg_failed=untried
a848cd7e
SC
30945fi
30946
a848cd7e 30947
a848cd7e 30948
3ecd9f92 30949if test $pkg_failed = yes; then
a848cd7e 30950
3ecd9f92
MW
30951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30952 _pkg_short_errors_supported=yes
30953else
30954 _pkg_short_errors_supported=no
30955fi
30956 if test $_pkg_short_errors_supported = yes; then
30957 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30958 else
30959 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30960 fi
3ecd9f92
MW
30961 # Put the nasty error message in config.log where it belongs
30962 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30963
30964
3ecd9f92
MW
30965 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30966echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30967
a848cd7e 30968
3ecd9f92 30969elif test $pkg_failed = untried; then
a848cd7e 30970
3ecd9f92
MW
30971 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30972echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30973
30974
30975else
30976 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30977 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30978 echo "$as_me:$LINENO: result: yes" >&5
30979echo "${ECHO_T}yes" >&6
a848cd7e 30980
4ae1af05
MB
30981 cat >>confdefs.h <<\_ACEOF
30982#define HAVE_PANGO_XFT 1
30983_ACEOF
30984
c92ad099 30985 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30986 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30987
3ecd9f92 30988fi
e56f4f9e 30989 save_CXXFLAGS="$CXXFLAGS"
304205f1 30990 save_LIBS="$LIBS"
e56f4f9e 30991 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30992 LIBS="$LIBS $PANGOX_LIBS"
30993
30994for ac_func in pango_font_family_is_monospace
30995do
30996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30997echo "$as_me:$LINENO: checking for $ac_func" >&5
30998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30999if eval "test \"\${$as_ac_var+set}\" = set"; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31001else
31002 cat >conftest.$ac_ext <<_ACEOF
31003/* confdefs.h. */
31004_ACEOF
31005cat confdefs.h >>conftest.$ac_ext
31006cat >>conftest.$ac_ext <<_ACEOF
31007/* end confdefs.h. */
31008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31010#define $ac_func innocuous_$ac_func
31011
31012/* System header to define __stub macros and hopefully few prototypes,
31013 which can conflict with char $ac_func (); below.
31014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31015 <limits.h> exists even on freestanding compilers. */
31016
31017#ifdef __STDC__
31018# include <limits.h>
31019#else
31020# include <assert.h>
31021#endif
31022
31023#undef $ac_func
31024
31025/* Override any gcc2 internal prototype to avoid an error. */
31026#ifdef __cplusplus
31027extern "C"
31028{
31029#endif
31030/* We use char because int might match the return type of a gcc2
31031 builtin and then its argument prototype would still apply. */
31032char $ac_func ();
31033/* The GNU C library defines this for functions which it implements
31034 to always fail with ENOSYS. Some functions are actually named
31035 something starting with __ and the normal name is an alias. */
31036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31037choke me
31038#else
31039char (*f) () = $ac_func;
31040#endif
31041#ifdef __cplusplus
31042}
31043#endif
31044
31045int
31046main ()
31047{
31048return f != $ac_func;
31049 ;
31050 return 0;
31051}
31052_ACEOF
31053rm -f conftest.$ac_objext conftest$ac_exeext
31054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31055 (eval $ac_link) 2>conftest.er1
31056 ac_status=$?
31057 grep -v '^ *+' conftest.er1 >conftest.err
31058 rm -f conftest.er1
31059 cat conftest.err >&5
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); } &&
6a5c9b3f
RR
31062 { ac_try='test -z "$ac_cxx_werror_flag"
31063 || test ! -s conftest.err'
304205f1
VS
31064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31065 (eval $ac_try) 2>&5
31066 ac_status=$?
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; } &&
31069 { ac_try='test -s conftest$ac_exeext'
31070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071 (eval $ac_try) 2>&5
31072 ac_status=$?
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; }; then
31075 eval "$as_ac_var=yes"
31076else
31077 echo "$as_me: failed program was:" >&5
31078sed 's/^/| /' conftest.$ac_ext >&5
31079
31080eval "$as_ac_var=no"
31081fi
31082rm -f conftest.err conftest.$ac_objext \
31083 conftest$ac_exeext conftest.$ac_ext
31084fi
31085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31087if test `eval echo '${'$as_ac_var'}'` = yes; then
31088 cat >>confdefs.h <<_ACEOF
31089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31090_ACEOF
31091
31092fi
31093done
31094
e56f4f9e 31095 CXXFLAGS="$save_CXXFLAGS"
304205f1 31096 LIBS="$save_LIBS"
a848cd7e
SC
31097 fi
31098
31099 wxUSE_UNIVERSAL="yes"
31100
31101 if test "$wxUSE_NANOX" = "yes"; then
31102 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31103 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"
31104 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31105 else
31106 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31107 fi
31108
a848cd7e
SC
31109 TOOLKIT=X11
31110 GUIDIST=X11_DIST
31111 fi
31112
31113 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31114 if test "$wxUSE_UNICODE" = "yes"; then
31115 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31116echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31117 { (exit 1); exit 1; }; }
31118 fi
31119
74b84332
VS
31120 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31121echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31122
74b84332
VS
31123ac_find_includes=
31124for ac_dir in $SEARCH_INCLUDE /usr/include;
31125 do
31126 if test -f "$ac_dir/Xm/Xm.h"; then
31127 ac_find_includes=$ac_dir
31128 break
31129 fi
31130 done
a848cd7e 31131
74b84332
VS
31132 if test "$ac_find_includes" != "" ; then
31133 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31134echo "${ECHO_T}found in $ac_find_includes" >&6
31135
31136 if test "x$ac_find_includes" = "x/usr/include"; then
31137 ac_path_to_include=""
31138 else
31139 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31140 result=$?
31141 if test $result = 0; then
31142 ac_path_to_include=""
31143 else
31144 ac_path_to_include=" -I$ac_find_includes"
31145 fi
a848cd7e
SC
31146 fi
31147
74b84332
VS
31148 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31149 else
e56f4f9e
VZ
31150 save_CXXFLAGS=$CXXFLAGS
31151 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31152
74b84332 31153 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31154/* confdefs.h. */
31155_ACEOF
31156cat confdefs.h >>conftest.$ac_ext
31157cat >>conftest.$ac_ext <<_ACEOF
31158/* end confdefs.h. */
31159
74b84332
VS
31160 #include <Xm/Xm.h>
31161
a848cd7e
SC
31162int
31163main ()
31164{
31165
74b84332
VS
31166 int version;
31167 version = xmUseVersion;
31168
a848cd7e
SC
31169 ;
31170 return 0;
31171}
31172_ACEOF
74b84332
VS
31173rm -f conftest.$ac_objext
31174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31175 (eval $ac_compile) 2>conftest.er1
a848cd7e 31176 ac_status=$?
ac1cb8d3
VS
31177 grep -v '^ *+' conftest.er1 >conftest.err
31178 rm -f conftest.er1
31179 cat conftest.err >&5
a848cd7e
SC
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } &&
6a5c9b3f
RR
31182 { ac_try='test -z "$ac_cxx_werror_flag"
31183 || test ! -s conftest.err'
ac1cb8d3
VS
31184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31185 (eval $ac_try) 2>&5
31186 ac_status=$?
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); }; } &&
74b84332 31189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
74b84332
VS
31195
31196 echo "$as_me:$LINENO: result: found in default search path" >&5
31197echo "${ECHO_T}found in default search path" >&6
31198 COMPILED_X_PROGRAM=1
31199
a848cd7e
SC
31200else
31201 echo "$as_me: failed program was:" >&5
31202sed 's/^/| /' conftest.$ac_ext >&5
31203
a848cd7e 31204
74b84332
VS
31205 echo "$as_me:$LINENO: result: no" >&5
31206echo "${ECHO_T}no" >&6
e051b34e
MW
31207 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31208echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31209 { (exit 1); exit 1; }; }
a848cd7e 31210
a848cd7e 31211
a848cd7e 31212fi
74b84332 31213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31214
e56f4f9e 31215 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31216 fi
31217
0ad5d837
VZ
31218
31219 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31220echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31221
0ad5d837
VZ
31222 ac_find_libraries=
31223 for ac_dir in $SEARCH_LIB;
74b84332 31224 do
3eca31dc 31225 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31226 if test -f "$ac_dir/libXm.$ac_extension"; then
31227 ac_find_libraries=$ac_dir
31228 break 2
a848cd7e 31229 fi
74b84332
VS
31230 done
31231 done
a848cd7e 31232
0ad5d837
VZ
31233
31234 if test "x$ac_find_libraries" != "x" ; then
31235 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31236echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31237
74b84332 31238
0ad5d837 31239 if test "$ac_find_libraries" = "default location"; then
74b84332 31240 ac_path_to_link=""
a848cd7e 31241 else
0ad5d837
VZ
31242 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31243 result=$?
31244 if test $result = 0; then
31245 ac_path_to_link=""
31246 else
31247 ac_path_to_link=" -L$ac_find_libraries"
31248 fi
74b84332
VS
31249 fi
31250
0ad5d837
VZ
31251 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31252 else
e56f4f9e
VZ
31253 save_CXXFLAGS=$CXXFLAGS
31254 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31255 save_LIBS="$LIBS"
31256 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31257
0ad5d837 31258 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31259/* confdefs.h. */
31260_ACEOF
31261cat confdefs.h >>conftest.$ac_ext
31262cat >>conftest.$ac_ext <<_ACEOF
31263/* end confdefs.h. */
31264
0ad5d837 31265 #include <Xm/Xm.h>
74b84332 31266
a848cd7e
SC
31267int
31268main ()
31269{
74b84332 31270
0ad5d837
VZ
31271 int version;
31272 version = xmUseVersion;
74b84332 31273
a848cd7e
SC
31274 ;
31275 return 0;
31276}
31277_ACEOF
0ad5d837
VZ
31278rm -f conftest.$ac_objext conftest$ac_exeext
31279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31280 (eval $ac_link) 2>conftest.er1
a848cd7e 31281 ac_status=$?
ac1cb8d3
VS
31282 grep -v '^ *+' conftest.er1 >conftest.err
31283 rm -f conftest.er1
31284 cat conftest.err >&5
a848cd7e
SC
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } &&
6a5c9b3f
RR
31287 { ac_try='test -z "$ac_cxx_werror_flag"
31288 || test ! -s conftest.err'
ac1cb8d3
VS
31289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290 (eval $ac_try) 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; } &&
0ad5d837 31294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31296 (eval $ac_try) 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
74b84332 31300
0ad5d837 31301 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31302echo "${ECHO_T}found in default search path" >&6
0ad5d837 31303 COMPILED_X_PROGRAM=1
74b84332 31304
a848cd7e
SC
31305else
31306 echo "$as_me: failed program was:" >&5
31307sed 's/^/| /' conftest.$ac_ext >&5
31308
74b84332 31309
6f9cf1e6 31310 echo "$as_me:$LINENO: result: no" >&5
74b84332 31311echo "${ECHO_T}no" >&6
6f9cf1e6 31312 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31313echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31314 { (exit 1); exit 1; }; }
31315
31316
31317fi
0ad5d837
VZ
31318rm -f conftest.err conftest.$ac_objext \
31319 conftest$ac_exeext conftest.$ac_ext
74b84332 31320
e56f4f9e 31321 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31322 LIBS="$save_LIBS"
74b84332
VS
31323 fi
31324
31325 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31326echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31327 libp_link=""
31328 libsm_ice_link=""
31329 libs_found=0
31330 for libp in "" " -lXp"; do
31331 if test "$libs_found" = "0"; then
31332 for libsm_ice in "" " -lSM -lICE"; do
31333 if test "$libs_found" = "0"; then
31334 save_LIBS="$LIBS"
31335 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31336 save_CXXFLAGS=$CXXFLAGS
31337 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31338
31339 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31340/* confdefs.h. */
31341_ACEOF
31342cat confdefs.h >>conftest.$ac_ext
31343cat >>conftest.$ac_ext <<_ACEOF
31344/* end confdefs.h. */
31345
74b84332
VS
31346 #include <Xm/Xm.h>
31347 #include <Xm/List.h>
31348
a848cd7e
SC
31349int
31350main ()
31351{
74b84332
VS
31352
31353 XmString string = NULL;
31354 Widget w = NULL;
31355 int position = 0;
31356 XmListAddItem(w, string, position);
31357
a848cd7e
SC
31358 ;
31359 return 0;
31360}
31361_ACEOF
31362rm -f conftest.$ac_objext conftest$ac_exeext
31363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31364 (eval $ac_link) 2>conftest.er1
a848cd7e 31365 ac_status=$?
ac1cb8d3
VS
31366 grep -v '^ *+' conftest.er1 >conftest.err
31367 rm -f conftest.er1
31368 cat conftest.err >&5
a848cd7e
SC
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370 (exit $ac_status); } &&
6a5c9b3f
RR
31371 { ac_try='test -z "$ac_cxx_werror_flag"
31372 || test ! -s conftest.err'
ac1cb8d3
VS
31373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31374 (eval $ac_try) 2>&5
31375 ac_status=$?
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; } &&
31378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; }; then
31384
31385 libp_link="$libp"
31386 libsm_ice_link="$libsm_ice"
31387 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31388echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31389 libs_found=1
31390
31391else
31392 echo "$as_me: failed program was:" >&5
31393sed 's/^/| /' conftest.$ac_ext >&5
31394
31395
31396
31397fi
ac1cb8d3
VS
31398rm -f conftest.err conftest.$ac_objext \
31399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31400
31401 LIBS="$save_LIBS"
e56f4f9e 31402 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31403 fi
31404 done
31405 fi
31406 done
31407
31408 if test "$libs_found" = "0"; then
31409 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31410echo "${ECHO_T}can't find the right libraries" >&6
31411 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31412echo "$as_me: error: can't link a simple motif program" >&2;}
31413 { (exit 1); exit 1; }; }
31414 fi
31415
62fa8b3a
MW
31416 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31417echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31418if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31419 echo $ECHO_N "(cached) $ECHO_C" >&6
31420else
31421 ac_check_lib_save_LIBS=$LIBS
31422LIBS="-lSgm $LIBS"
31423cat >conftest.$ac_ext <<_ACEOF
31424/* confdefs.h. */
31425_ACEOF
31426cat confdefs.h >>conftest.$ac_ext
31427cat >>conftest.$ac_ext <<_ACEOF
31428/* end confdefs.h. */
31429
31430/* Override any gcc2 internal prototype to avoid an error. */
31431#ifdef __cplusplus
31432extern "C"
31433#endif
31434/* We use char because int might match the return type of a gcc2
31435 builtin and then its argument prototype would still apply. */
31436char SgCreateList ();
31437int
31438main ()
31439{
31440SgCreateList ();
31441 ;
31442 return 0;
31443}
31444_ACEOF
31445rm -f conftest.$ac_objext conftest$ac_exeext
31446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31447 (eval $ac_link) 2>conftest.er1
31448 ac_status=$?
31449 grep -v '^ *+' conftest.er1 >conftest.err
31450 rm -f conftest.er1
31451 cat conftest.err >&5
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); } &&
6a5c9b3f
RR
31454 { ac_try='test -z "$ac_cxx_werror_flag"
31455 || test ! -s conftest.err'
62fa8b3a
MW
31456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457 (eval $ac_try) 2>&5
31458 ac_status=$?
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; } &&
31461 { ac_try='test -s conftest$ac_exeext'
31462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31463 (eval $ac_try) 2>&5
31464 ac_status=$?
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); }; }; then
31467 ac_cv_lib_Sgm_SgCreateList=yes
31468else
31469 echo "$as_me: failed program was:" >&5
31470sed 's/^/| /' conftest.$ac_ext >&5
31471
31472ac_cv_lib_Sgm_SgCreateList=no
31473fi
31474rm -f conftest.err conftest.$ac_objext \
31475 conftest$ac_exeext conftest.$ac_ext
31476LIBS=$ac_check_lib_save_LIBS
31477fi
31478echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31479echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31480if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31481 libsgm_link=" -lSgm"
31482fi
31483
31484
e56f4f9e
VZ
31485 save_CXXFLAGS=$CXXFLAGS
31486 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31487
a848cd7e
SC
31488 echo "$as_me:$LINENO: checking for Motif 2" >&5
31489echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31490if test "${wx_cv_lib_motif2+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31492else
31493 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31494/* confdefs.h. */
31495_ACEOF
31496cat confdefs.h >>conftest.$ac_ext
31497cat >>conftest.$ac_ext <<_ACEOF
31498/* end confdefs.h. */
31499
0ad5d837 31500 #include <Xm/Xm.h>
a848cd7e
SC
31501
31502int
31503main ()
31504{
31505
0ad5d837
VZ
31506 #if XmVersion < 2000
31507 Not Motif 2
31508 #endif
a848cd7e
SC
31509
31510 ;
31511 return 0;
31512}
31513_ACEOF
31514rm -f conftest.$ac_objext
31515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31516 (eval $ac_compile) 2>conftest.er1
a848cd7e 31517 ac_status=$?
ac1cb8d3
VS
31518 grep -v '^ *+' conftest.er1 >conftest.err
31519 rm -f conftest.er1
31520 cat conftest.err >&5
a848cd7e
SC
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); } &&
6a5c9b3f
RR
31523 { ac_try='test -z "$ac_cxx_werror_flag"
31524 || test ! -s conftest.err'
ac1cb8d3
VS
31525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31526 (eval $ac_try) 2>&5
31527 ac_status=$?
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); }; } &&
31530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31532 (eval $ac_try) 2>&5
31533 ac_status=$?
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; }; then
0ad5d837 31536 wx_cv_lib_motif2="yes"
a848cd7e
SC
31537else
31538 echo "$as_me: failed program was:" >&5
31539sed 's/^/| /' conftest.$ac_ext >&5
31540
0ad5d837
VZ
31541wx_cv_lib_motif2="no"
31542fi
31543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31544fi
31545echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31546echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31547 if test "$wx_cv_lib_motif2" = "yes"; then
31548 cat >>confdefs.h <<\_ACEOF
31549#define __WXMOTIF20__ 1
31550_ACEOF
a848cd7e 31551
0ad5d837
VZ
31552 else
31553 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31554#define __WXMOTIF20__ 0
31555_ACEOF
31556
0ad5d837 31557 fi
2113bc77
MW
31558
31559 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31560echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31561if test "${wx_cv_lib_lesstif+set}" = set; then
31562 echo $ECHO_N "(cached) $ECHO_C" >&6
31563else
31564 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31565/* confdefs.h. */
31566_ACEOF
31567cat confdefs.h >>conftest.$ac_ext
31568cat >>conftest.$ac_ext <<_ACEOF
31569/* end confdefs.h. */
31570
0ad5d837 31571 #include <Xm/Xm.h>
2113bc77
MW
31572
31573int
31574main ()
31575{
31576
0ad5d837
VZ
31577 #if !defined(LesstifVersion) || LesstifVersion <= 0
31578 Not Lesstif
31579 #endif
2113bc77
MW
31580
31581 ;
31582 return 0;
31583}
31584_ACEOF
31585rm -f conftest.$ac_objext
31586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31587 (eval $ac_compile) 2>conftest.er1
31588 ac_status=$?
31589 grep -v '^ *+' conftest.er1 >conftest.err
31590 rm -f conftest.er1
31591 cat conftest.err >&5
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); } &&
6a5c9b3f
RR
31594 { ac_try='test -z "$ac_cxx_werror_flag"
31595 || test ! -s conftest.err'
2113bc77
MW
31596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597 (eval $ac_try) 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; } &&
31601 { ac_try='test -s conftest.$ac_objext'
31602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603 (eval $ac_try) 2>&5
31604 ac_status=$?
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); }; }; then
0ad5d837 31607 wx_cv_lib_lesstif="yes"
2113bc77
MW
31608else
31609 echo "$as_me: failed program was:" >&5
31610sed 's/^/| /' conftest.$ac_ext >&5
31611
0ad5d837
VZ
31612wx_cv_lib_lesstif="no"
31613fi
31614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31615
0ad5d837
VZ
31616fi
31617echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31618echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31619 if test "$wx_cv_lib_lesstif" = "yes"; then
31620 cat >>confdefs.h <<\_ACEOF
31621#define __WXLESSTIF__ 1
31622_ACEOF
31623
31624 else
31625 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31626#define __WXLESSTIF__ 0
31627_ACEOF
31628
0ad5d837 31629 fi
2113bc77 31630
e56f4f9e 31631 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31632
62fa8b3a 31633 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31634 TOOLKIT=MOTIF
31635 GUIDIST=MOTIF_DIST
31636 fi
31637
74b84332 31638 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31639 if test "$wxUSE_LIBXPM" = "sys"; then
31640 echo "$as_me:$LINENO: checking for Xpm library" >&5
31641echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31642
0ad5d837
VZ
31643 ac_find_libraries=
31644 for ac_dir in $SEARCH_LIB;
a848cd7e 31645 do
3eca31dc 31646 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31647 if test -f "$ac_dir/libXpm.$ac_extension"; then
31648 ac_find_libraries=$ac_dir
31649 break 2
31650 fi
31651 done
31652 done
31653
31654 if test "$ac_find_libraries" != "" ; then
31655
0ad5d837 31656 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31657 ac_path_to_link=""
31658 else
0ad5d837
VZ
31659 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31660 result=$?
31661 if test $result = 0; then
31662 ac_path_to_link=""
31663 else
31664 ac_path_to_link=" -L$ac_find_libraries"
31665 fi
a848cd7e
SC
31666 fi
31667
31668 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31669 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31670echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31671
31672 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31673echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31674if test "${wx_cv_x11_xpm_h+set}" = set; then
31675 echo $ECHO_N "(cached) $ECHO_C" >&6
31676else
31677
e56f4f9e
VZ
31678 save_CXXFLAGS=$CXXFLAGS
31679 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31680
31681 cat >conftest.$ac_ext <<_ACEOF
31682/* confdefs.h. */
31683_ACEOF
31684cat confdefs.h >>conftest.$ac_ext
31685cat >>conftest.$ac_ext <<_ACEOF
31686/* end confdefs.h. */
31687
31688 #include <X11/xpm.h>
31689
31690int
31691main ()
31692{
31693
31694 int version;
31695 version = XpmLibraryVersion();
31696
31697 ;
31698 return 0;
31699}
31700_ACEOF
31701rm -f conftest.$ac_objext
31702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31703 (eval $ac_compile) 2>conftest.er1
a848cd7e 31704 ac_status=$?
ac1cb8d3
VS
31705 grep -v '^ *+' conftest.er1 >conftest.err
31706 rm -f conftest.er1
31707 cat conftest.err >&5
a848cd7e
SC
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } &&
6a5c9b3f
RR
31710 { ac_try='test -z "$ac_cxx_werror_flag"
31711 || test ! -s conftest.err'
ac1cb8d3
VS
31712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713 (eval $ac_try) 2>&5
31714 ac_status=$?
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); }; } &&
31717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31719 (eval $ac_try) 2>&5
31720 ac_status=$?
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); }; }; then
31723 wx_cv_x11_xpm_h=yes
31724else
31725 echo "$as_me: failed program was:" >&5
31726sed 's/^/| /' conftest.$ac_ext >&5
31727
31728wx_cv_x11_xpm_h=no
31729
31730fi
ac1cb8d3 31731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31732
e56f4f9e 31733 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31734
31735
31736fi
31737echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31738echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31739
31740 if test $wx_cv_x11_xpm_h = "yes"; then
31741 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31742 cat >>confdefs.h <<\_ACEOF
31743#define wxHAVE_LIB_XPM 1
31744_ACEOF
31745
31746 else
31747 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31748echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31749 fi
31750 fi
31751
31752 fi
31753
31754 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31755echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31756if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31757 echo $ECHO_N "(cached) $ECHO_C" >&6
31758else
31759 ac_check_lib_save_LIBS=$LIBS
31760LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31761cat >conftest.$ac_ext <<_ACEOF
31762/* confdefs.h. */
31763_ACEOF
31764cat confdefs.h >>conftest.$ac_ext
31765cat >>conftest.$ac_ext <<_ACEOF
31766/* end confdefs.h. */
31767
31768/* Override any gcc2 internal prototype to avoid an error. */
31769#ifdef __cplusplus
31770extern "C"
31771#endif
31772/* We use char because int might match the return type of a gcc2
31773 builtin and then its argument prototype would still apply. */
31774char XShapeQueryExtension ();
31775int
31776main ()
31777{
31778XShapeQueryExtension ();
31779 ;
31780 return 0;
31781}
31782_ACEOF
31783rm -f conftest.$ac_objext conftest$ac_exeext
31784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31785 (eval $ac_link) 2>conftest.er1
a848cd7e 31786 ac_status=$?
ac1cb8d3
VS
31787 grep -v '^ *+' conftest.er1 >conftest.err
31788 rm -f conftest.er1
31789 cat conftest.err >&5
a848cd7e
SC
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } &&
6a5c9b3f
RR
31792 { ac_try='test -z "$ac_cxx_werror_flag"
31793 || test ! -s conftest.err'
ac1cb8d3
VS
31794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31795 (eval $ac_try) 2>&5
31796 ac_status=$?
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); }; } &&
31799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31801 (eval $ac_try) 2>&5
31802 ac_status=$?
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
31805 ac_cv_lib_Xext_XShapeQueryExtension=yes
31806else
31807 echo "$as_me: failed program was:" >&5
31808sed 's/^/| /' conftest.$ac_ext >&5
31809
31810ac_cv_lib_Xext_XShapeQueryExtension=no
31811fi
ac1cb8d3
VS
31812rm -f conftest.err conftest.$ac_objext \
31813 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31814LIBS=$ac_check_lib_save_LIBS
31815fi
31816echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31817echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31818if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31819
31820 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31821 wxHAVE_XEXT_LIB=1
31822
31823fi
31824
31825
31826 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31827 save_CXXFLAGS="$CXXFLAGS"
31828 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31829
31830 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31831echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31832 cat >conftest.$ac_ext <<_ACEOF
31833/* confdefs.h. */
31834_ACEOF
31835cat confdefs.h >>conftest.$ac_ext
31836cat >>conftest.$ac_ext <<_ACEOF
31837/* end confdefs.h. */
31838
31839 #include <X11/Xlib.h>
31840 #include <X11/extensions/shape.h>
31841
31842int
31843main ()
31844{
31845
31846 int dummy1, dummy2;
31847 XShapeQueryExtension((Display*)NULL,
31848 (int*)NULL, (int*)NULL);
31849
31850 ;
31851 return 0;
31852}
31853_ACEOF
31854rm -f conftest.$ac_objext
31855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31856 (eval $ac_compile) 2>conftest.er1
a848cd7e 31857 ac_status=$?
ac1cb8d3
VS
31858 grep -v '^ *+' conftest.er1 >conftest.err
31859 rm -f conftest.er1
31860 cat conftest.err >&5
a848cd7e
SC
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); } &&
6a5c9b3f
RR
31863 { ac_try='test -z "$ac_cxx_werror_flag"
31864 || test ! -s conftest.err'
ac1cb8d3
VS
31865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31866 (eval $ac_try) 2>&5
31867 ac_status=$?
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); }; } &&
31870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31872 (eval $ac_try) 2>&5
31873 ac_status=$?
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); }; }; then
31876
31877 cat >>confdefs.h <<\_ACEOF
31878#define HAVE_XSHAPE 1
31879_ACEOF
31880
31881 echo "$as_me:$LINENO: result: found" >&5
31882echo "${ECHO_T}found" >&6
31883
31884else
31885 echo "$as_me: failed program was:" >&5
31886sed 's/^/| /' conftest.$ac_ext >&5
31887
31888
31889 echo "$as_me:$LINENO: result: not found" >&5
31890echo "${ECHO_T}not found" >&6
31891
31892fi
ac1cb8d3 31893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31894 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31895
31896 fi
31897 fi
31898
31899 if test "$wxUSE_MAC" = 1; then
31900 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31901echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31902 if test "$GCC" = yes; then
31903 echo "$as_me:$LINENO: result: gcc" >&5
31904echo "${ECHO_T}gcc" >&6
31905 CPPFLAGS_PASCAL="-fpascal-strings"
31906 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31907 echo "$as_me:$LINENO: result: xlc" >&5
31908echo "${ECHO_T}xlc" >&6
31909 CPPFLAGS_PASCAL="-qmacpstr"
31910 else
31911 echo "$as_me:$LINENO: result: none" >&5
31912echo "${ECHO_T}none" >&6
31913 fi
31914
1e9e8aba 31915 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31916 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31917 else
c92ad099 31918 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31919 fi
a848cd7e 31920
a848cd7e
SC
31921 TOOLKIT=MAC
31922 GUIDIST=MACX_DIST
dd21ced8 31923 WXBASEPORT="_carbon"
a848cd7e
SC
31924 fi
31925
31926 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31927 TOOLKIT=COCOA
31928 GUIDIST=COCOA_DIST
31929 fi
31930
31931 if test "$wxUSE_PM" = 1; then
31932 TOOLKIT=PM
de59c161
RD
31933 GUIDIST=PM_DIST
31934 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31935echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31936if test "${wx_cv_spbcdata+set}" = set; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31938else
31939
31940 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31941/* confdefs.h. */
31942_ACEOF
31943cat confdefs.h >>conftest.$ac_ext
31944cat >>conftest.$ac_ext <<_ACEOF
31945/* end confdefs.h. */
31946
31947 #define INCL_PM
31948 #include <os2.h>
31949
31950int
31951main ()
31952{
31953
31954 SPBCDATA test;
31955
31956 ;
31957 return 0;
31958}
31959_ACEOF
31960rm -f conftest.$ac_objext
31961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31962 (eval $ac_compile) 2>conftest.er1
de59c161 31963 ac_status=$?
ac1cb8d3
VS
31964 grep -v '^ *+' conftest.er1 >conftest.err
31965 rm -f conftest.er1
31966 cat conftest.err >&5
de59c161
RD
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); } &&
6a5c9b3f
RR
31969 { ac_try='test -z "$ac_cxx_werror_flag"
31970 || test ! -s conftest.err'
ac1cb8d3
VS
31971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31972 (eval $ac_try) 2>&5
31973 ac_status=$?
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); }; } &&
31976 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31978 (eval $ac_try) 2>&5
31979 ac_status=$?
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); }; }; then
31982 wx_cv_spbcdata=yes
31983else
31984 echo "$as_me: failed program was:" >&5
31985sed 's/^/| /' conftest.$ac_ext >&5
31986
31987wx_cv_spbcdata=no
31988
31989fi
ac1cb8d3 31990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31991
31992
31993fi
31994echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31995echo "${ECHO_T}$wx_cv_spbcdata" >&6
31996
31997 if test $wx_cv_spbcdata = "yes"; then
31998 cat >>confdefs.h <<\_ACEOF
31999#define HAVE_SPBCDATA 1
32000_ACEOF
32001
32002 fi
a848cd7e
SC
32003 fi
32004
32005 if test "$TOOLKIT" = "PM" ; then
32006 TOOLKIT_DIR="os2"
32007 else
32008 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32009 fi
32010
a848cd7e 32011 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32012 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32013 WIDGET_SET=univ
a848cd7e
SC
32014 fi
32015
32016 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32017 DISTDIR="wx\$(TOOLKIT)"
32018else
32019 USE_GUI=0
32020
32021 TOOLKIT_DIR="base"
32022
32023 if test "$USE_WIN32" = 1 ; then
a848cd7e 32024 TOOLKIT="MSW"
a848cd7e
SC
32025 fi
32026
a848cd7e
SC
32027 GUIDIST="BASE_DIST"
32028 DISTDIR="wxBase"
32029fi
32030
32031
d12aef51
VZ
32032if test "$wxUSE_GUI" = "yes"; then
32033 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32034
32035for ac_header in X11/Xlib.h
32036do
32037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32038if eval "test \"\${$as_ac_Header+set}\" = set"; then
32039 echo "$as_me:$LINENO: checking for $ac_header" >&5
32040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32041if eval "test \"\${$as_ac_Header+set}\" = set"; then
32042 echo $ECHO_N "(cached) $ECHO_C" >&6
32043fi
32044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32046else
32047 # Is the header compilable?
32048echo "$as_me:$LINENO: checking $ac_header usability" >&5
32049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32050cat >conftest.$ac_ext <<_ACEOF
32051/* confdefs.h. */
32052_ACEOF
32053cat confdefs.h >>conftest.$ac_ext
32054cat >>conftest.$ac_ext <<_ACEOF
32055/* end confdefs.h. */
32056$ac_includes_default
32057#include <$ac_header>
32058_ACEOF
32059rm -f conftest.$ac_objext
32060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32061 (eval $ac_compile) 2>conftest.er1
32062 ac_status=$?
32063 grep -v '^ *+' conftest.er1 >conftest.err
32064 rm -f conftest.er1
32065 cat conftest.err >&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); } &&
6a5c9b3f
RR
32068 { ac_try='test -z "$ac_cxx_werror_flag"
32069 || test ! -s conftest.err'
d12aef51
VZ
32070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071 (eval $ac_try) 2>&5
32072 ac_status=$?
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; } &&
32075 { ac_try='test -s conftest.$ac_objext'
32076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32077 (eval $ac_try) 2>&5
32078 ac_status=$?
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; }; then
32081 ac_header_compiler=yes
32082else
32083 echo "$as_me: failed program was:" >&5
32084sed 's/^/| /' conftest.$ac_ext >&5
32085
32086ac_header_compiler=no
32087fi
32088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32090echo "${ECHO_T}$ac_header_compiler" >&6
32091
32092# Is the header present?
32093echo "$as_me:$LINENO: checking $ac_header presence" >&5
32094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32095cat >conftest.$ac_ext <<_ACEOF
32096/* confdefs.h. */
32097_ACEOF
32098cat confdefs.h >>conftest.$ac_ext
32099cat >>conftest.$ac_ext <<_ACEOF
32100/* end confdefs.h. */
32101#include <$ac_header>
32102_ACEOF
32103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32105 ac_status=$?
32106 grep -v '^ *+' conftest.er1 >conftest.err
32107 rm -f conftest.er1
32108 cat conftest.err >&5
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); } >/dev/null; then
32111 if test -s conftest.err; then
5d7b7554
VZ
32112 ac_cpp_err=$ac_cxx_preproc_warn_flag
32113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32114 else
32115 ac_cpp_err=
32116 fi
32117else
32118 ac_cpp_err=yes
32119fi
32120if test -z "$ac_cpp_err"; then
32121 ac_header_preproc=yes
32122else
32123 echo "$as_me: failed program was:" >&5
32124sed 's/^/| /' conftest.$ac_ext >&5
32125
32126 ac_header_preproc=no
32127fi
32128rm -f conftest.err conftest.$ac_ext
32129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32130echo "${ECHO_T}$ac_header_preproc" >&6
32131
32132# So? What about this header?
5d7b7554 32133case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32134 yes:no: )
32135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32139 ac_header_preproc=yes
32140 ;;
32141 no:yes:* )
32142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32154 (
32155 cat <<\_ASBOX
32156## ----------------------------------------- ##
32157## Report this to wx-dev@lists.wxwidgets.org ##
32158## ----------------------------------------- ##
32159_ASBOX
32160 ) |
32161 sed "s/^/$as_me: WARNING: /" >&2
32162 ;;
32163esac
32164echo "$as_me:$LINENO: checking for $ac_header" >&5
32165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32166if eval "test \"\${$as_ac_Header+set}\" = set"; then
32167 echo $ECHO_N "(cached) $ECHO_C" >&6
32168else
32169 eval "$as_ac_Header=\$ac_header_preproc"
32170fi
32171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32173
32174fi
32175if test `eval echo '${'$as_ac_Header'}'` = yes; then
32176 cat >>confdefs.h <<_ACEOF
32177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32178_ACEOF
32179
32180fi
32181
32182done
32183
32184
32185for ac_header in X11/XKBlib.h
32186do
32187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32188echo "$as_me:$LINENO: checking for $ac_header" >&5
32189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32190if eval "test \"\${$as_ac_Header+set}\" = set"; then
32191 echo $ECHO_N "(cached) $ECHO_C" >&6
32192else
32193 cat >conftest.$ac_ext <<_ACEOF
32194/* confdefs.h. */
32195_ACEOF
32196cat confdefs.h >>conftest.$ac_ext
32197cat >>conftest.$ac_ext <<_ACEOF
32198/* end confdefs.h. */
32199
32200 #if HAVE_X11_XLIB_H
32201 #include <X11/Xlib.h>
32202 #endif
32203
32204
32205#include <$ac_header>
32206_ACEOF
32207rm -f conftest.$ac_objext
32208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32209 (eval $ac_compile) 2>conftest.er1
32210 ac_status=$?
32211 grep -v '^ *+' conftest.er1 >conftest.err
32212 rm -f conftest.er1
32213 cat conftest.err >&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); } &&
6a5c9b3f
RR
32216 { ac_try='test -z "$ac_cxx_werror_flag"
32217 || test ! -s conftest.err'
d12aef51
VZ
32218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32219 (eval $ac_try) 2>&5
32220 ac_status=$?
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); }; } &&
32223 { ac_try='test -s conftest.$ac_objext'
32224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225 (eval $ac_try) 2>&5
32226 ac_status=$?
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; }; then
32229 eval "$as_ac_Header=yes"
32230else
32231 echo "$as_me: failed program was:" >&5
32232sed 's/^/| /' conftest.$ac_ext >&5
32233
32234eval "$as_ac_Header=no"
32235fi
32236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32237fi
32238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32240if test `eval echo '${'$as_ac_Header'}'` = yes; then
32241 cat >>confdefs.h <<_ACEOF
32242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32243_ACEOF
32244
32245fi
32246
32247done
32248
32249 fi
32250fi
32251
a848cd7e
SC
32252
32253
32254IODBC_C_SRC=""
32255
32256
32257if test "$TOOLKIT" != "MSW" ; then
32258
32259 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32260
32261 if test "${ac_cv_header_sql_h+set}" = set; then
32262 echo "$as_me:$LINENO: checking for sql.h" >&5
32263echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32264if test "${ac_cv_header_sql_h+set}" = set; then
32265 echo $ECHO_N "(cached) $ECHO_C" >&6
32266fi
32267echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32268echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32269else
32270 # Is the header compilable?
32271echo "$as_me:$LINENO: checking sql.h usability" >&5
32272echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32273cat >conftest.$ac_ext <<_ACEOF
32274/* confdefs.h. */
32275_ACEOF
32276cat confdefs.h >>conftest.$ac_ext
32277cat >>conftest.$ac_ext <<_ACEOF
32278/* end confdefs.h. */
32279$ac_includes_default
32280#include <sql.h>
32281_ACEOF
32282rm -f conftest.$ac_objext
32283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32284 (eval $ac_compile) 2>conftest.er1
a848cd7e 32285 ac_status=$?
ac1cb8d3
VS
32286 grep -v '^ *+' conftest.er1 >conftest.err
32287 rm -f conftest.er1
32288 cat conftest.err >&5
a848cd7e
SC
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); } &&
6a5c9b3f
RR
32291 { ac_try='test -z "$ac_cxx_werror_flag"
32292 || test ! -s conftest.err'
ac1cb8d3
VS
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; } &&
32298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300 (eval $ac_try) 2>&5
32301 ac_status=$?
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; }; then
32304 ac_header_compiler=yes
32305else
32306 echo "$as_me: failed program was:" >&5
32307sed 's/^/| /' conftest.$ac_ext >&5
32308
32309ac_header_compiler=no
32310fi
ac1cb8d3 32311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32313echo "${ECHO_T}$ac_header_compiler" >&6
32314
32315# Is the header present?
32316echo "$as_me:$LINENO: checking sql.h presence" >&5
32317echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32318cat >conftest.$ac_ext <<_ACEOF
32319/* confdefs.h. */
32320_ACEOF
32321cat confdefs.h >>conftest.$ac_ext
32322cat >>conftest.$ac_ext <<_ACEOF
32323/* end confdefs.h. */
32324#include <sql.h>
32325_ACEOF
32326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32328 ac_status=$?
32329 grep -v '^ *+' conftest.er1 >conftest.err
32330 rm -f conftest.er1
32331 cat conftest.err >&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } >/dev/null; then
32334 if test -s conftest.err; then
5d7b7554
VZ
32335 ac_cpp_err=$ac_cxx_preproc_warn_flag
32336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32337 else
32338 ac_cpp_err=
32339 fi
32340else
32341 ac_cpp_err=yes
32342fi
32343if test -z "$ac_cpp_err"; then
32344 ac_header_preproc=yes
32345else
32346 echo "$as_me: failed program was:" >&5
32347sed 's/^/| /' conftest.$ac_ext >&5
32348
32349 ac_header_preproc=no
32350fi
32351rm -f conftest.err conftest.$ac_ext
32352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32353echo "${ECHO_T}$ac_header_preproc" >&6
32354
32355# So? What about this header?
5d7b7554 32356case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32357 yes:no: )
a848cd7e
SC
32358 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32359echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32360 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32361echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32362 ac_header_preproc=yes
a848cd7e 32363 ;;
ac1cb8d3 32364 no:yes:* )
a848cd7e
SC
32365 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32366echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32367 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32368echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32369 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32370echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32371 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32372echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32373 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32374echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32375 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32376echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32377 (
32378 cat <<\_ASBOX
ac1cb8d3
VS
32379## ----------------------------------------- ##
32380## Report this to wx-dev@lists.wxwidgets.org ##
32381## ----------------------------------------- ##
a848cd7e
SC
32382_ASBOX
32383 ) |
32384 sed "s/^/$as_me: WARNING: /" >&2
32385 ;;
32386esac
32387echo "$as_me:$LINENO: checking for sql.h" >&5
32388echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32389if test "${ac_cv_header_sql_h+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32391else
32392 ac_cv_header_sql_h=$ac_header_preproc
32393fi
32394echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32395echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32396
32397fi
32398if test $ac_cv_header_sql_h = yes; then
32399 found_sql_h=1
32400fi
32401
32402
32403 if test "x$found_sql_h" = "x1" ; then
32404 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32405echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32406if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32408else
32409 ac_check_lib_save_LIBS=$LIBS
32410LIBS="-liodbc $LIBS"
32411cat >conftest.$ac_ext <<_ACEOF
32412/* confdefs.h. */
32413_ACEOF
32414cat confdefs.h >>conftest.$ac_ext
32415cat >>conftest.$ac_ext <<_ACEOF
32416/* end confdefs.h. */
32417
32418/* Override any gcc2 internal prototype to avoid an error. */
32419#ifdef __cplusplus
32420extern "C"
32421#endif
32422/* We use char because int might match the return type of a gcc2
32423 builtin and then its argument prototype would still apply. */
32424char SQLAllocEnv ();
32425int
32426main ()
32427{
32428SQLAllocEnv ();
32429 ;
32430 return 0;
32431}
32432_ACEOF
32433rm -f conftest.$ac_objext conftest$ac_exeext
32434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32435 (eval $ac_link) 2>conftest.er1
a848cd7e 32436 ac_status=$?
ac1cb8d3
VS
32437 grep -v '^ *+' conftest.er1 >conftest.err
32438 rm -f conftest.er1
32439 cat conftest.err >&5
a848cd7e
SC
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); } &&
6a5c9b3f
RR
32442 { ac_try='test -z "$ac_cxx_werror_flag"
32443 || test ! -s conftest.err'
ac1cb8d3
VS
32444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32445 (eval $ac_try) 2>&5
32446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; } &&
32449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32451 (eval $ac_try) 2>&5
32452 ac_status=$?
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); }; }; then
32455 ac_cv_lib_iodbc_SQLAllocEnv=yes
32456else
32457 echo "$as_me: failed program was:" >&5
32458sed 's/^/| /' conftest.$ac_ext >&5
32459
32460ac_cv_lib_iodbc_SQLAllocEnv=no
32461fi
ac1cb8d3
VS
32462rm -f conftest.err conftest.$ac_objext \
32463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32464LIBS=$ac_check_lib_save_LIBS
32465fi
32466echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32467echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32468if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32469 ODBC_LINK=" -liodbc"
32470else
32471
32472 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32473echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32474if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32475 echo $ECHO_N "(cached) $ECHO_C" >&6
32476else
32477 ac_check_lib_save_LIBS=$LIBS
32478LIBS="-lunixodbc $LIBS"
32479cat >conftest.$ac_ext <<_ACEOF
32480/* confdefs.h. */
32481_ACEOF
32482cat confdefs.h >>conftest.$ac_ext
32483cat >>conftest.$ac_ext <<_ACEOF
32484/* end confdefs.h. */
32485
32486/* Override any gcc2 internal prototype to avoid an error. */
32487#ifdef __cplusplus
32488extern "C"
32489#endif
32490/* We use char because int might match the return type of a gcc2
32491 builtin and then its argument prototype would still apply. */
32492char SQLAllocEnv ();
32493int
32494main ()
32495{
32496SQLAllocEnv ();
32497 ;
32498 return 0;
32499}
32500_ACEOF
32501rm -f conftest.$ac_objext conftest$ac_exeext
32502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32503 (eval $ac_link) 2>conftest.er1
a848cd7e 32504 ac_status=$?
ac1cb8d3
VS
32505 grep -v '^ *+' conftest.er1 >conftest.err
32506 rm -f conftest.er1
32507 cat conftest.err >&5
a848cd7e
SC
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); } &&
6a5c9b3f
RR
32510 { ac_try='test -z "$ac_cxx_werror_flag"
32511 || test ! -s conftest.err'
ac1cb8d3
VS
32512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32513 (eval $ac_try) 2>&5
32514 ac_status=$?
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); }; } &&
32517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32519 (eval $ac_try) 2>&5
32520 ac_status=$?
32521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522 (exit $ac_status); }; }; then
32523 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32524else
32525 echo "$as_me: failed program was:" >&5
32526sed 's/^/| /' conftest.$ac_ext >&5
32527
32528ac_cv_lib_unixodbc_SQLAllocEnv=no
32529fi
ac1cb8d3
VS
32530rm -f conftest.err conftest.$ac_objext \
32531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32532LIBS=$ac_check_lib_save_LIBS
32533fi
32534echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32535echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32536if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32537 ODBC_LINK=" -lunixodbc"
32538else
32539
32540 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32541echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32542if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32543 echo $ECHO_N "(cached) $ECHO_C" >&6
32544else
32545 ac_check_lib_save_LIBS=$LIBS
32546LIBS="-lodbc $LIBS"
32547cat >conftest.$ac_ext <<_ACEOF
32548/* confdefs.h. */
32549_ACEOF
32550cat confdefs.h >>conftest.$ac_ext
32551cat >>conftest.$ac_ext <<_ACEOF
32552/* end confdefs.h. */
32553
32554/* Override any gcc2 internal prototype to avoid an error. */
32555#ifdef __cplusplus
32556extern "C"
32557#endif
32558/* We use char because int might match the return type of a gcc2
32559 builtin and then its argument prototype would still apply. */
32560char SQLAllocEnv ();
32561int
32562main ()
32563{
32564SQLAllocEnv ();
32565 ;
32566 return 0;
32567}
32568_ACEOF
32569rm -f conftest.$ac_objext conftest$ac_exeext
32570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32571 (eval $ac_link) 2>conftest.er1
a848cd7e 32572 ac_status=$?
ac1cb8d3
VS
32573 grep -v '^ *+' conftest.er1 >conftest.err
32574 rm -f conftest.er1
32575 cat conftest.err >&5
a848cd7e
SC
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); } &&
6a5c9b3f
RR
32578 { ac_try='test -z "$ac_cxx_werror_flag"
32579 || test ! -s conftest.err'
ac1cb8d3
VS
32580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581 (eval $ac_try) 2>&5
32582 ac_status=$?
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); }; } &&
32585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587 (eval $ac_try) 2>&5
32588 ac_status=$?
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); }; }; then
32591 ac_cv_lib_odbc_SQLAllocEnv=yes
32592else
32593 echo "$as_me: failed program was:" >&5
32594sed 's/^/| /' conftest.$ac_ext >&5
32595
32596ac_cv_lib_odbc_SQLAllocEnv=no
32597fi
ac1cb8d3
VS
32598rm -f conftest.err conftest.$ac_objext \
32599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32600LIBS=$ac_check_lib_save_LIBS
32601fi
32602echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32603echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32604if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32605 ODBC_LINK=" -lodbc"
32606fi
32607
32608
32609fi
32610
32611
32612fi
32613
32614 fi
32615 if test "x$ODBC_LINK" = "x" ; then
32616 if test "$wxUSE_ODBC" = "sys" ; then
32617 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32618echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32619 { (exit 1); exit 1; }; }
32620 else
32621 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32622echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32623 wxUSE_ODBC=builtin
32624 fi
32625 else
32626 wxUSE_ODBC=sys
32627 fi
32628 fi
a848cd7e 32629
2da0c077
RD
32630 if test "$wxUSE_ODBC" = "builtin" ; then
32631 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32632#define wxUSE_BUILTIN_IODBC 1
32633_ACEOF
32634
a848cd7e
SC
32635 fi
32636fi
32637
2da0c077
RD
32638if test "$wxUSE_ODBC" != "no" ; then
32639 cat >>confdefs.h <<\_ACEOF
32640#define wxUSE_ODBC 1
32641_ACEOF
32642
32643 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32644
5ff751d6 32645 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32646fi
a848cd7e 32647
01cb68df 32648
a848cd7e 32649if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32650 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32651 echo "$as_me:$LINENO: checking for Xinerama" >&5
32652echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32653
0ad5d837
VZ
32654 ac_find_libraries=
32655 for ac_dir in $SEARCH_LIB;
32656 do
32657 for ac_extension in a so sl dylib dll.a; do
32658 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32659 ac_find_libraries=$ac_dir
32660 break 2
32661 fi
32662 done
32663 done
32664
a848cd7e
SC
32665 if test "$ac_find_libraries" != "" ; then
32666
0ad5d837 32667 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32668 ac_path_to_link=""
32669 else
0ad5d837
VZ
32670 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32671 result=$?
32672 if test $result = 0; then
32673 ac_path_to_link=""
32674 else
32675 ac_path_to_link=" -L$ac_find_libraries"
32676 fi
a848cd7e
SC
32677 fi
32678
32679 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32680 LDFLAGS="$LDFLAGS $ac_path_to_link"
32681 fi
32682 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32683 echo "$as_me:$LINENO: result: yes" >&5
32684echo "${ECHO_T}yes" >&6
32685
32686 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32687echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32688
0ad5d837
VZ
32689 ac_find_libraries=
32690 for ac_dir in $SEARCH_LIB;
a848cd7e 32691 do
3eca31dc 32692 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32693 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32694 ac_find_libraries=$ac_dir
32695 break 2
32696 fi
32697 done
32698 done
32699
32700 if test "$ac_find_libraries" != "" ; then
32701 echo "$as_me:$LINENO: result: yes" >&5
32702echo "${ECHO_T}yes" >&6
32703
32704for ac_header in X11/extensions/xf86vmode.h
32705do
32706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32707echo "$as_me:$LINENO: checking for $ac_header" >&5
32708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32709if eval "test \"\${$as_ac_Header+set}\" = set"; then
32710 echo $ECHO_N "(cached) $ECHO_C" >&6
32711else
32712 cat >conftest.$ac_ext <<_ACEOF
32713/* confdefs.h. */
32714_ACEOF
32715cat confdefs.h >>conftest.$ac_ext
32716cat >>conftest.$ac_ext <<_ACEOF
32717/* end confdefs.h. */
32718
32719 #if HAVE_X11_XLIB_H
32720 #include <X11/Xlib.h>
32721 #endif
32722
32723
32724#include <$ac_header>
32725_ACEOF
32726rm -f conftest.$ac_objext
32727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32728 (eval $ac_compile) 2>conftest.er1
a848cd7e 32729 ac_status=$?
ac1cb8d3
VS
32730 grep -v '^ *+' conftest.er1 >conftest.err
32731 rm -f conftest.er1
32732 cat conftest.err >&5
a848cd7e
SC
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); } &&
6a5c9b3f
RR
32735 { ac_try='test -z "$ac_cxx_werror_flag"
32736 || test ! -s conftest.err'
ac1cb8d3
VS
32737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738 (eval $ac_try) 2>&5
32739 ac_status=$?
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); }; } &&
32742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32744 (eval $ac_try) 2>&5
32745 ac_status=$?
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; }; then
32748 eval "$as_ac_Header=yes"
32749else
32750 echo "$as_me: failed program was:" >&5
32751sed 's/^/| /' conftest.$ac_ext >&5
32752
32753eval "$as_ac_Header=no"
32754fi
ac1cb8d3 32755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32756fi
32757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32759if test `eval echo '${'$as_ac_Header'}'` = yes; then
32760 cat >>confdefs.h <<_ACEOF
32761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32762_ACEOF
32763
32764 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32765
32766fi
32767
32768done
32769
32770 else
32771 echo "$as_me:$LINENO: result: no" >&5
32772echo "${ECHO_T}no" >&6
32773 fi
32774
32775 else
32776 echo "$as_me:$LINENO: result: no" >&5
32777echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32778 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32779echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32780 wxUSE_DISPLAY="no"
32781 fi
01cb68df
RG
32782 elif test "$wxUSE_MSW" = 1; then
32783
e5efa97e 32784for ac_header in ddraw.h
01cb68df
RG
32785do
32786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32787echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32789if eval "test \"\${$as_ac_Header+set}\" = set"; then
32790 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32791else
5294a27e 32792 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32793/* confdefs.h. */
32794_ACEOF
32795cat confdefs.h >>conftest.$ac_ext
32796cat >>conftest.$ac_ext <<_ACEOF
32797/* end confdefs.h. */
5294a27e
VZ
32798#include <windows.h>
32799
01cb68df
RG
32800#include <$ac_header>
32801_ACEOF
32802rm -f conftest.$ac_objext
32803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32804 (eval $ac_compile) 2>conftest.er1
01cb68df 32805 ac_status=$?
ac1cb8d3
VS
32806 grep -v '^ *+' conftest.er1 >conftest.err
32807 rm -f conftest.er1
32808 cat conftest.err >&5
01cb68df
RG
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); } &&
6a5c9b3f
RR
32811 { ac_try='test -z "$ac_cxx_werror_flag"
32812 || test ! -s conftest.err'
ac1cb8d3
VS
32813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814 (eval $ac_try) 2>&5
32815 ac_status=$?
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; } &&
32818 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820 (eval $ac_try) 2>&5
32821 ac_status=$?
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; }; then
5294a27e 32824 eval "$as_ac_Header=yes"
01cb68df
RG
32825else
32826 echo "$as_me: failed program was:" >&5
32827sed 's/^/| /' conftest.$ac_ext >&5
32828
5294a27e 32829eval "$as_ac_Header=no"
01cb68df 32830fi
ac1cb8d3 32831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32832fi
32833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32835if test `eval echo '${'$as_ac_Header'}'` = yes; then
32836 cat >>confdefs.h <<_ACEOF
32837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32838_ACEOF
32839
01cb68df
RG
32840fi
32841
32842done
32843
a848cd7e
SC
32844 fi
32845fi
32846
32847
32848USE_OPENGL=0
32849if test "$wxUSE_OPENGL" = "yes"; then
32850 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32851 OPENGL_LIBS="-framework OpenGL -framework AGL"
32852 elif test "$wxUSE_MSW" = 1; then
32853 OPENGL_LIBS="-lopengl32 -lglu32"
32854 else
32855
32856
32857ac_find_includes=
32858for ac_dir in $SEARCH_INCLUDE /usr/include;
32859 do
32860 if test -f "$ac_dir/GL/gl.h"; then
32861 ac_find_includes=$ac_dir
32862 break
32863 fi
32864 done
32865
32866 if test "$ac_find_includes" != "" ; then
32867 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32868echo "${ECHO_T}found in $ac_find_includes" >&6
32869
32870 if test "x$ac_find_includes" = "x/usr/include"; then
32871 ac_path_to_include=""
32872 else
32873 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32874 result=$?
32875 if test $result = 0; then
32876 ac_path_to_include=""
32877 else
32878 ac_path_to_include=" -I$ac_find_includes"
32879 fi
32880 fi
32881
c92ad099 32882 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32883 fi
32884
32885 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32886 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32887echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32888if test "${ac_cv_header_GL_gl_h+set}" = set; then
32889 echo $ECHO_N "(cached) $ECHO_C" >&6
32890fi
32891echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32892echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32893else
32894 # Is the header compilable?
32895echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32896echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32897cat >conftest.$ac_ext <<_ACEOF
32898/* confdefs.h. */
32899_ACEOF
32900cat confdefs.h >>conftest.$ac_ext
32901cat >>conftest.$ac_ext <<_ACEOF
32902/* end confdefs.h. */
32903$ac_includes_default
32904#include <GL/gl.h>
32905_ACEOF
32906rm -f conftest.$ac_objext
32907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32908 (eval $ac_compile) 2>conftest.er1
a848cd7e 32909 ac_status=$?
ac1cb8d3
VS
32910 grep -v '^ *+' conftest.er1 >conftest.err
32911 rm -f conftest.er1
32912 cat conftest.err >&5
a848cd7e
SC
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); } &&
6a5c9b3f
RR
32915 { ac_try='test -z "$ac_cxx_werror_flag"
32916 || test ! -s conftest.err'
ac1cb8d3
VS
32917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918 (eval $ac_try) 2>&5
32919 ac_status=$?
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; } &&
32922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32924 (eval $ac_try) 2>&5
32925 ac_status=$?
32926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 (exit $ac_status); }; }; then
32928 ac_header_compiler=yes
32929else
32930 echo "$as_me: failed program was:" >&5
32931sed 's/^/| /' conftest.$ac_ext >&5
32932
32933ac_header_compiler=no
32934fi
ac1cb8d3 32935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32936echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32937echo "${ECHO_T}$ac_header_compiler" >&6
32938
32939# Is the header present?
32940echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32941echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32942cat >conftest.$ac_ext <<_ACEOF
32943/* confdefs.h. */
32944_ACEOF
32945cat confdefs.h >>conftest.$ac_ext
32946cat >>conftest.$ac_ext <<_ACEOF
32947/* end confdefs.h. */
32948#include <GL/gl.h>
32949_ACEOF
32950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32952 ac_status=$?
32953 grep -v '^ *+' conftest.er1 >conftest.err
32954 rm -f conftest.er1
32955 cat conftest.err >&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); } >/dev/null; then
32958 if test -s conftest.err; then
5d7b7554
VZ
32959 ac_cpp_err=$ac_cxx_preproc_warn_flag
32960 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32961 else
32962 ac_cpp_err=
32963 fi
32964else
32965 ac_cpp_err=yes
32966fi
32967if test -z "$ac_cpp_err"; then
32968 ac_header_preproc=yes
32969else
32970 echo "$as_me: failed program was:" >&5
32971sed 's/^/| /' conftest.$ac_ext >&5
32972
32973 ac_header_preproc=no
32974fi
32975rm -f conftest.err conftest.$ac_ext
32976echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32977echo "${ECHO_T}$ac_header_preproc" >&6
32978
32979# So? What about this header?
5d7b7554 32980case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32981 yes:no: )
a848cd7e
SC
32982 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32983echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32984 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32985echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32986 ac_header_preproc=yes
a848cd7e 32987 ;;
ac1cb8d3 32988 no:yes:* )
a848cd7e
SC
32989 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32990echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32991 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32992echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32993 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32994echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32995 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32996echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32997 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32998echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32999 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33000echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33001 (
33002 cat <<\_ASBOX
ac1cb8d3
VS
33003## ----------------------------------------- ##
33004## Report this to wx-dev@lists.wxwidgets.org ##
33005## ----------------------------------------- ##
a848cd7e
SC
33006_ASBOX
33007 ) |
33008 sed "s/^/$as_me: WARNING: /" >&2
33009 ;;
33010esac
33011echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33012echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33013if test "${ac_cv_header_GL_gl_h+set}" = set; then
33014 echo $ECHO_N "(cached) $ECHO_C" >&6
33015else
33016 ac_cv_header_GL_gl_h=$ac_header_preproc
33017fi
33018echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33019echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33020
33021fi
33022if test $ac_cv_header_GL_gl_h = yes; then
33023
33024 found_gl=0
33025
33026 echo "$as_me:$LINENO: checking for -lGL" >&5
33027echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33028
0ad5d837
VZ
33029 ac_find_libraries=
33030 for ac_dir in $SEARCH_LIB;
a848cd7e 33031 do
3eca31dc 33032 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33033 if test -f "$ac_dir/libGL.$ac_extension"; then
33034 ac_find_libraries=$ac_dir
33035 break 2
33036 fi
33037 done
33038 done
33039
33040 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33041 echo "$as_me:$LINENO: result: yes" >&5
33042echo "${ECHO_T}yes" >&6
33043
a848cd7e 33044
0ad5d837 33045 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33046 ac_path_to_link=""
33047 else
0ad5d837
VZ
33048 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33049 result=$?
33050 if test $result = 0; then
33051 ac_path_to_link=""
33052 else
33053 ac_path_to_link=" -L$ac_find_libraries"
33054 fi
a848cd7e
SC
33055 fi
33056
33057 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33058 LDFLAGS_GL="$ac_path_to_link"
33059 fi
33060
69120ee4
VZ
33061 echo "$as_me:$LINENO: checking for -lGLU" >&5
33062echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33063
0ad5d837
VZ
33064 ac_find_libraries=
33065 for ac_dir in $SEARCH_LIB;
33066 do
33067 for ac_extension in a so sl dylib dll.a; do
33068 if test -f "$ac_dir/libGLU.$ac_extension"; then
33069 ac_find_libraries=$ac_dir
33070 break 2
33071 fi
33072 done
33073 done
33074
a848cd7e
SC
33075 if test "$ac_find_libraries" != "" ; then
33076
0ad5d837 33077 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33078 ac_path_to_link=""
33079 else
0ad5d837
VZ
33080 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33081 result=$?
33082 if test $result = 0; then
33083 ac_path_to_link=""
33084 else
33085 ac_path_to_link=" -L$ac_find_libraries"
33086 fi
a848cd7e
SC
33087 fi
33088
33089 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33090 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33091 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33092 fi
33093
33094 found_gl=1
33095 OPENGL_LIBS="-lGL -lGLU"
33096 echo "$as_me:$LINENO: result: yes" >&5
33097echo "${ECHO_T}yes" >&6
69120ee4
VZ
33098 else
33099 echo "$as_me:$LINENO: result: no" >&5
33100echo "${ECHO_T}no" >&6
a848cd7e 33101 fi
69120ee4
VZ
33102 else
33103 echo "$as_me:$LINENO: result: no" >&5
33104echo "${ECHO_T}no" >&6
a848cd7e
SC
33105 fi
33106
33107 if test "$found_gl" != 1; then
a848cd7e
SC
33108 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33109echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33110
0ad5d837
VZ
33111 ac_find_libraries=
33112 for ac_dir in $SEARCH_LIB;
a848cd7e 33113 do
3eca31dc 33114 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33115 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33116 ac_find_libraries=$ac_dir
33117 break 2
33118 fi
33119 done
33120 done
33121
33122 if test "$ac_find_libraries" != "" ; then
33123
0ad5d837 33124 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33125 ac_path_to_link=""
33126 else
0ad5d837
VZ
33127 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33128 result=$?
33129 if test $result = 0; then
33130 ac_path_to_link=""
33131 else
33132 ac_path_to_link=" -L$ac_find_libraries"
33133 fi
a848cd7e
SC
33134 fi
33135
33136 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33137 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33138 echo "$as_me:$LINENO: result: yes" >&5
33139echo "${ECHO_T}yes" >&6
33140 else
33141 echo "$as_me:$LINENO: result: no" >&5
33142echo "${ECHO_T}no" >&6
33143 fi
33144 fi
33145
33146fi
33147
33148
33149
33150 if test "x$OPENGL_LIBS" = "x"; then
33151 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33152echo "$as_me: error: OpenGL libraries not available" >&2;}
33153 { (exit 1); exit 1; }; }
33154 fi
33155 fi
33156
33157 if test "$wxUSE_OPENGL" = "yes"; then
33158 USE_OPENGL=1
33159 cat >>confdefs.h <<\_ACEOF
33160#define wxUSE_OPENGL 1
33161_ACEOF
33162
33163 cat >>confdefs.h <<\_ACEOF
33164#define wxUSE_GLCANVAS 1
33165_ACEOF
33166
33167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33168 fi
33169fi
33170
a848cd7e
SC
33171
33172if test -n "$TOOLKIT" ; then
33173 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33174fi
33175
a848cd7e
SC
33176
33177
33178if test "$wxUSE_SHARED" = "yes"; then
33179 case "${host}" in
33180 *-pc-msdosdjgpp )
33181 wxUSE_SHARED=no
33182 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33183echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33184 ;;
33185 esac
33186fi
33187
a848cd7e 33188if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33189
33190
33191 found_versioning=no
33192
33193
33194 if test $found_versioning = no ; then
33195 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33196echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33197if test "${wx_cv_version_script+set}" = set; then
33198 echo $ECHO_N "(cached) $ECHO_C" >&6
33199else
33200
33201 echo "VER_1 { *; };" >conftest.sym
33202 echo "int main() { return 0; }" >conftest.cpp
33203
33204 if { ac_try='
33205 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33206 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208 (eval $ac_try) 2>&5
33209 ac_status=$?
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; } ; then
33212 if test -s conftest.stderr ; then
33213 wx_cv_version_script=no
33214 else
33215 wx_cv_version_script=yes
33216 fi
33217 else
33218 wx_cv_version_script=no
33219 fi
e5d4b470
MW
33220
33221 if test $wx_cv_version_script = yes
33222 then
33223 echo "struct B { virtual ~B() { } }; \
33224 struct D : public B { }; \
33225 void F() { D d; }" > conftest.cpp
33226
33227 if { ac_try='
33228 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33229 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33231 (eval $ac_try) 2>&5
33232 ac_status=$?
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); }; } &&
33235 { ac_try='
33236 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33237 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33239 (eval $ac_try) 2>&5
33240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }
33243 then
33244 if { ac_try='
33245 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33246 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248 (eval $ac_try) 2>&5
33249 ac_status=$?
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; }
33252 then
33253 wx_cv_version_script=yes
33254 else
33255 wx_cv_version_script=no
33256 fi
33257 fi
33258 fi
33259
a848cd7e 33260 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33261 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33262
33263fi
33264echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33265echo "${ECHO_T}$wx_cv_version_script" >&6
33266 if test $wx_cv_version_script = yes ; then
33267 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33268 fi
33269 fi
33270
33271
33272 case "${host}" in
33273 *-*-linux* | *-*-gnu* )
33274 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33275 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33276 ;;
a848cd7e
SC
33277
33278 *-*-solaris2* )
33279 if test "$GCC" = yes ; then
c92ad099 33280 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33281
33282 saveLdflags="$LDFLAGS"
33283 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33284 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33285echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33286 cat >conftest.$ac_ext <<_ACEOF
33287/* confdefs.h. */
33288_ACEOF
33289cat confdefs.h >>conftest.$ac_ext
33290cat >>conftest.$ac_ext <<_ACEOF
33291/* end confdefs.h. */
33292
33293int
33294main ()
33295{
33296
33297 ;
33298 return 0;
33299}
33300_ACEOF
33301rm -f conftest.$ac_objext conftest$ac_exeext
33302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33303 (eval $ac_link) 2>conftest.er1
a848cd7e 33304 ac_status=$?
ac1cb8d3
VS
33305 grep -v '^ *+' conftest.er1 >conftest.err
33306 rm -f conftest.er1
33307 cat conftest.err >&5
a848cd7e
SC
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); } &&
6a5c9b3f
RR
33310 { ac_try='test -z "$ac_cxx_werror_flag"
33311 || test ! -s conftest.err'
ac1cb8d3
VS
33312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313 (eval $ac_try) 2>&5
33314 ac_status=$?
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; } &&
33317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33319 (eval $ac_try) 2>&5
33320 ac_status=$?
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); }; }; then
33323
33324 echo "$as_me:$LINENO: result: yes" >&5
33325echo "${ECHO_T}yes" >&6
33326 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33327 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33328
33329else
33330 echo "$as_me: failed program was:" >&5
33331sed 's/^/| /' conftest.$ac_ext >&5
33332
33333
33334 echo "$as_me:$LINENO: result: no" >&5
33335echo "${ECHO_T}no" >&6
33336 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33337echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33338 LDFLAGS="$saveLdflags -Wl,-R,/"
33339 cat >conftest.$ac_ext <<_ACEOF
33340/* confdefs.h. */
33341_ACEOF
33342cat confdefs.h >>conftest.$ac_ext
33343cat >>conftest.$ac_ext <<_ACEOF
33344/* end confdefs.h. */
33345
33346int
33347main ()
33348{
33349
33350 ;
33351 return 0;
33352}
33353_ACEOF
33354rm -f conftest.$ac_objext conftest$ac_exeext
33355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33356 (eval $ac_link) 2>conftest.er1
a848cd7e 33357 ac_status=$?
ac1cb8d3
VS
33358 grep -v '^ *+' conftest.er1 >conftest.err
33359 rm -f conftest.er1
33360 cat conftest.err >&5
a848cd7e
SC
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } &&
6a5c9b3f
RR
33363 { ac_try='test -z "$ac_cxx_werror_flag"
33364 || test ! -s conftest.err'
ac1cb8d3
VS
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; } &&
33370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33372 (eval $ac_try) 2>&5
33373 ac_status=$?
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); }; }; then
33376
ffa0583f 33377 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33378echo "${ECHO_T}yes" >&6
ffa0583f
RL
33379 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33380 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33381
a848cd7e
SC
33382else
33383 echo "$as_me: failed program was:" >&5
33384sed 's/^/| /' conftest.$ac_ext >&5
33385
33386
33387 echo "$as_me:$LINENO: result: no" >&5
33388echo "${ECHO_T}no" >&6
33389
33390fi
ac1cb8d3
VS
33391rm -f conftest.err conftest.$ac_objext \
33392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33393
33394fi
ac1cb8d3
VS
33395rm -f conftest.err conftest.$ac_objext \
33396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33397 LDFLAGS="$saveLdflags"
33398 else
a848cd7e 33399 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33400 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33401 fi
33402 ;;
33403
cfda0ea8 33404 *-*-darwin* )
0caebc27
MW
33405 install_name_tool=`which install_name_tool`
33406 if test "$install_name_tool" -a -x "$install_name_tool"; then
33407 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33408 cat <<EOF >change-install-names
a848cd7e
SC
33409#!/bin/sh
33410libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33411inst_cmd="install_name_tool "
33412for i in \${libnames} ; do
33413 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33414done
33415\${inst_cmd} \${3}
33416EOF
0caebc27
MW
33417 chmod +x change-install-names
33418 fi
a848cd7e
SC
33419 ;;
33420
33421 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33422 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33423 ;;
a848cd7e 33424
81f90336
MW
33425 *-*-hpux* )
33426 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33427 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33428 ;;
81f90336 33429
a848cd7e 33430 esac
ceec2216 33431
ffa0583f
RL
33432 if test $wxUSE_RPATH = "no"; then
33433 SAMPLES_RPATH_FLAG=''
33434 SAMPLES_RPATH_POSTLINK=''
33435 WXCONFIG_RPATH=''
33436 fi
33437
33438 SHARED=1
33439
33440else
33441
ceec2216
RL
33442 config_linkage_component="-static"
33443 SHARED=0
ffa0583f 33444
ceec2216 33445fi
a848cd7e 33446
a848cd7e 33447
ceec2216
RL
33448UNICODE=0
33449lib_unicode_suffix=
33450WX_CHARTYPE="ansi"
33451if test "$wxUSE_UNICODE" = "yes"; then
33452 lib_unicode_suffix=u
33453 WX_CHARTYPE="unicode"
33454 UNICODE=1
a848cd7e
SC
33455fi
33456
ceec2216
RL
33457lib_debug_suffix=
33458WX_DEBUGTYPE="release"
33459DEBUG_FLAG=0
33460if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33461 lib_debug_suffix=d
33462 WX_DEBUGTYPE="debug"
33463 DEBUG_FLAG=1
33464fi
a848cd7e 33465
ceec2216
RL
33466WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33467WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33468
ceec2216
RL
33469DEBUG_INFO=0
33470if test "$wxUSE_DEBUG_INFO" = "yes"; then
33471 DEBUG_INFO=1
33472fi
a848cd7e 33473
ceec2216 33474WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33475
ceec2216 33476TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33477
ceec2216 33478TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33479
ceec2216
RL
33480if test "$cross_compiling" = "yes"; then
33481 HOST_SUFFIX="-$host_alias"
33482 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33483 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33484fi
33485
dd21ced8 33486WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33487if test "${TOOLKIT_DIR}" = "os2"; then
33488 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33489else
33490 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33491fi
ceec2216
RL
33492
33493
33494
1d1af5ea
DE
33495if test "$wxUSE_COCOA" = 1; then
33496
33497
33498 ac_ext=c
33499ac_cpp='$CPP $CPPFLAGS'
33500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33502ac_compiler_gnu=$ac_cv_c_compiler_gnu
33503
33504ac_ext=m
33505
33506 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33507echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33508 cat >conftest.$ac_ext <<_ACEOF
33509/* confdefs.h. */
33510_ACEOF
33511cat confdefs.h >>conftest.$ac_ext
33512cat >>conftest.$ac_ext <<_ACEOF
33513/* end confdefs.h. */
33514#include <AppKit/NSEvent.h>
33515#include <CoreFoundation/CoreFoundation.h>
33516
33517int
33518main ()
33519{
33520
33521 ;
33522 return 0;
33523}
33524_ACEOF
33525rm -f conftest.$ac_objext
33526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33527 (eval $ac_compile) 2>conftest.er1
33528 ac_status=$?
33529 grep -v '^ *+' conftest.er1 >conftest.err
33530 rm -f conftest.er1
33531 cat conftest.err >&5
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } &&
6a5c9b3f
RR
33534 { ac_try='test -z "$ac_c_werror_flag"
33535 || test ! -s conftest.err'
1d1af5ea
DE
33536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537 (eval $ac_try) 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; } &&
33541 { ac_try='test -s conftest.$ac_objext'
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33547 echo "$as_me:$LINENO: result: no" >&5
33548echo "${ECHO_T}no" >&6
33549else
33550 echo "$as_me: failed program was:" >&5
33551sed 's/^/| /' conftest.$ac_ext >&5
33552
33553echo "$as_me:$LINENO: result: yes" >&5
33554echo "${ECHO_T}yes" >&6
33555 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33556echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33557 cat >conftest.$ac_ext <<_ACEOF
33558/* confdefs.h. */
33559_ACEOF
33560cat confdefs.h >>conftest.$ac_ext
33561cat >>conftest.$ac_ext <<_ACEOF
33562/* end confdefs.h. */
33563#define __Point__ 1
33564#include <AppKit/NSEvent.h>
33565#include <CoreFoundation/CoreFoundation.h>
33566
33567int
33568main ()
33569{
33570
33571 ;
33572 return 0;
33573}
33574_ACEOF
33575rm -f conftest.$ac_objext
33576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33577 (eval $ac_compile) 2>conftest.er1
33578 ac_status=$?
33579 grep -v '^ *+' conftest.er1 >conftest.err
33580 rm -f conftest.er1
33581 cat conftest.err >&5
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); } &&
6a5c9b3f
RR
33584 { ac_try='test -z "$ac_c_werror_flag"
33585 || test ! -s conftest.err'
1d1af5ea
DE
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); }; } &&
33591 { ac_try='test -s conftest.$ac_objext'
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33594 ac_status=$?
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; }; then
33597 echo "$as_me:$LINENO: result: yes" >&5
33598echo "${ECHO_T}yes" >&6
33599 cat >>confdefs.h <<\_ACEOF
33600#define __Point__ 1
33601_ACEOF
33602
33603
33604else
33605 echo "$as_me: failed program was:" >&5
33606sed 's/^/| /' conftest.$ac_ext >&5
33607
33608{ { echo "$as_me:$LINENO: error: no
33609See \`config.log' for more details." >&5
33610echo "$as_me: error: no
33611See \`config.log' for more details." >&2;}
33612 { (exit 1); exit 1; }; }
33613
33614fi
33615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33616
33617fi
33618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33619 ac_ext=cc
33620ac_cpp='$CXXCPP $CPPFLAGS'
33621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33624
33625fi
33626
a848cd7e 33627if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33628 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33629 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33630
a848cd7e 33631 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33632
33633 # Extract the first word of "Rez", so it can be a program name with args.
33634set dummy Rez; ac_word=$2
33635echo "$as_me:$LINENO: checking for $ac_word" >&5
33636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33637if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33639else
8ced02f6
DE
33640 if test -n "$REZ"; then
33641 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33642else
33643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33644for as_dir in $PATH
33645do
33646 IFS=$as_save_IFS
33647 test -z "$as_dir" && as_dir=.
33648 for ac_exec_ext in '' $ac_executable_extensions; do
33649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33650 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33652 break 2
33653 fi
33654done
33655done
33656
8ced02f6 33657 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33658fi
33659fi
8ced02f6
DE
33660REZ=$ac_cv_prog_REZ
33661if test -n "$REZ"; then
33662 echo "$as_me:$LINENO: result: $REZ" >&5
33663echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33664else
33665 echo "$as_me:$LINENO: result: no" >&5
33666echo "${ECHO_T}no" >&6
33667fi
33668
33669 # Extract the first word of "DeRez", so it can be a program name with args.
33670set dummy DeRez; ac_word=$2
33671echo "$as_me:$LINENO: checking for $ac_word" >&5
33672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33673if test "${ac_cv_prog_DEREZ+set}" = set; then
33674 echo $ECHO_N "(cached) $ECHO_C" >&6
33675else
33676 if test -n "$DEREZ"; then
33677 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33678else
33679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33680for as_dir in $PATH
33681do
33682 IFS=$as_save_IFS
33683 test -z "$as_dir" && as_dir=.
33684 for ac_exec_ext in '' $ac_executable_extensions; do
33685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33686 ac_cv_prog_DEREZ="DeRez"
33687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33688 break 2
33689 fi
33690done
33691done
33692
33693 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33694fi
33695fi
33696DEREZ=$ac_cv_prog_DEREZ
33697if test -n "$DEREZ"; then
33698 echo "$as_me:$LINENO: result: $DEREZ" >&5
33699echo "${ECHO_T}$DEREZ" >&6
33700else
33701 echo "$as_me:$LINENO: result: no" >&5
33702echo "${ECHO_T}no" >&6
33703fi
33704
33705 # Extract the first word of "SetFile", so it can be a program name with args.
33706set dummy SetFile; ac_word=$2
33707echo "$as_me:$LINENO: checking for $ac_word" >&5
33708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33709if test "${ac_cv_prog_SETFILE+set}" = set; then
33710 echo $ECHO_N "(cached) $ECHO_C" >&6
33711else
33712 if test -n "$SETFILE"; then
33713 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33714else
33715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33716for as_dir in $PATH
33717do
33718 IFS=$as_save_IFS
33719 test -z "$as_dir" && as_dir=.
33720 for ac_exec_ext in '' $ac_executable_extensions; do
33721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33722 ac_cv_prog_SETFILE="SetFile"
33723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33724 break 2
33725 fi
33726done
33727done
33728
33729 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33730fi
33731fi
33732SETFILE=$ac_cv_prog_SETFILE
33733if test -n "$SETFILE"; then
33734 echo "$as_me:$LINENO: result: $SETFILE" >&5
33735echo "${ECHO_T}$SETFILE" >&6
33736else
33737 echo "$as_me:$LINENO: result: no" >&5
33738echo "${ECHO_T}no" >&6
33739fi
33740
33741
33742 MACSETFILE="\$(SETFILE)"
33743
33744 if test "$wxUSE_MAC" = 1; then
8ced02f6 33745 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33746 RESCOMP="$REZ"
33747 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33748 else
004ee6da
RL
33749 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33750 RESCOMP="echo -n \| $REZ"
33751 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33752 fi
004ee6da 33753
a848cd7e 33754else
ffa0583f 33755 MACSETFILE="@true"
a848cd7e 33756
8ced02f6 33757 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33758 RESCOMP="emxbind"
33759 WXCONFIG_RESFLAGS="-ep"
33760
33761 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33762 else
8ced02f6 33763 POSTLINK_COMMAND="@true"
a848cd7e 33764 fi
004ee6da 33765
a848cd7e
SC
33766fi
33767
33768
33769
33770echo "$as_me:$LINENO: checking for mode_t" >&5
33771echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33772if test "${ac_cv_type_mode_t+set}" = set; then
33773 echo $ECHO_N "(cached) $ECHO_C" >&6
33774else
33775 cat >conftest.$ac_ext <<_ACEOF
33776/* confdefs.h. */
33777_ACEOF
33778cat confdefs.h >>conftest.$ac_ext
33779cat >>conftest.$ac_ext <<_ACEOF
33780/* end confdefs.h. */
33781$ac_includes_default
33782int
33783main ()
33784{
33785if ((mode_t *) 0)
33786 return 0;
33787if (sizeof (mode_t))
33788 return 0;
33789 ;
33790 return 0;
33791}
33792_ACEOF
33793rm -f conftest.$ac_objext
33794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33795 (eval $ac_compile) 2>conftest.er1
a848cd7e 33796 ac_status=$?
ac1cb8d3
VS
33797 grep -v '^ *+' conftest.er1 >conftest.err
33798 rm -f conftest.er1
33799 cat conftest.err >&5
a848cd7e
SC
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
6a5c9b3f
RR
33802 { ac_try='test -z "$ac_cxx_werror_flag"
33803 || test ! -s conftest.err'
ac1cb8d3
VS
33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805 (eval $ac_try) 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } &&
33809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811 (eval $ac_try) 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; }; then
33815 ac_cv_type_mode_t=yes
33816else
33817 echo "$as_me: failed program was:" >&5
33818sed 's/^/| /' conftest.$ac_ext >&5
33819
33820ac_cv_type_mode_t=no
33821fi
ac1cb8d3 33822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33823fi
33824echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33825echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33826if test $ac_cv_type_mode_t = yes; then
33827 :
33828else
33829
33830cat >>confdefs.h <<_ACEOF
33831#define mode_t int
33832_ACEOF
33833
33834fi
33835
33836echo "$as_me:$LINENO: checking for off_t" >&5
33837echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33838if test "${ac_cv_type_off_t+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33840else
33841 cat >conftest.$ac_ext <<_ACEOF
33842/* confdefs.h. */
33843_ACEOF
33844cat confdefs.h >>conftest.$ac_ext
33845cat >>conftest.$ac_ext <<_ACEOF
33846/* end confdefs.h. */
33847$ac_includes_default
33848int
33849main ()
33850{
33851if ((off_t *) 0)
33852 return 0;
33853if (sizeof (off_t))
33854 return 0;
33855 ;
33856 return 0;
33857}
33858_ACEOF
33859rm -f conftest.$ac_objext
33860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33861 (eval $ac_compile) 2>conftest.er1
a848cd7e 33862 ac_status=$?
ac1cb8d3
VS
33863 grep -v '^ *+' conftest.er1 >conftest.err
33864 rm -f conftest.er1
33865 cat conftest.err >&5
a848cd7e
SC
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); } &&
6a5c9b3f
RR
33868 { ac_try='test -z "$ac_cxx_werror_flag"
33869 || test ! -s conftest.err'
ac1cb8d3
VS
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; } &&
33875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877 (eval $ac_try) 2>&5
33878 ac_status=$?
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); }; }; then
33881 ac_cv_type_off_t=yes
33882else
33883 echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886ac_cv_type_off_t=no
33887fi
ac1cb8d3 33888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33889fi
33890echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33891echo "${ECHO_T}$ac_cv_type_off_t" >&6
33892if test $ac_cv_type_off_t = yes; then
33893 :
33894else
33895
33896cat >>confdefs.h <<_ACEOF
33897#define off_t long
33898_ACEOF
33899
33900fi
33901
33902echo "$as_me:$LINENO: checking for pid_t" >&5
33903echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33904if test "${ac_cv_type_pid_t+set}" = set; then
33905 echo $ECHO_N "(cached) $ECHO_C" >&6
33906else
33907 cat >conftest.$ac_ext <<_ACEOF
33908/* confdefs.h. */
33909_ACEOF
33910cat confdefs.h >>conftest.$ac_ext
33911cat >>conftest.$ac_ext <<_ACEOF
33912/* end confdefs.h. */
33913$ac_includes_default
33914int
33915main ()
33916{
33917if ((pid_t *) 0)
33918 return 0;
33919if (sizeof (pid_t))
33920 return 0;
33921 ;
33922 return 0;
33923}
33924_ACEOF
33925rm -f conftest.$ac_objext
33926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33927 (eval $ac_compile) 2>conftest.er1
a848cd7e 33928 ac_status=$?
ac1cb8d3
VS
33929 grep -v '^ *+' conftest.er1 >conftest.err
33930 rm -f conftest.er1
33931 cat conftest.err >&5
a848cd7e
SC
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); } &&
6a5c9b3f
RR
33934 { ac_try='test -z "$ac_cxx_werror_flag"
33935 || test ! -s conftest.err'
ac1cb8d3
VS
33936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33937 (eval $ac_try) 2>&5
33938 ac_status=$?
33939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); }; } &&
33941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33943 (eval $ac_try) 2>&5
33944 ac_status=$?
33945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946 (exit $ac_status); }; }; then
33947 ac_cv_type_pid_t=yes
33948else
33949 echo "$as_me: failed program was:" >&5
33950sed 's/^/| /' conftest.$ac_ext >&5
33951
33952ac_cv_type_pid_t=no
33953fi
ac1cb8d3 33954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33955fi
33956echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33957echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33958if test $ac_cv_type_pid_t = yes; then
33959 :
33960else
33961
33962cat >>confdefs.h <<_ACEOF
33963#define pid_t int
33964_ACEOF
33965
33966fi
33967
33968echo "$as_me:$LINENO: checking for size_t" >&5
33969echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33970if test "${ac_cv_type_size_t+set}" = set; then
33971 echo $ECHO_N "(cached) $ECHO_C" >&6
33972else
33973 cat >conftest.$ac_ext <<_ACEOF
33974/* confdefs.h. */
33975_ACEOF
33976cat confdefs.h >>conftest.$ac_ext
33977cat >>conftest.$ac_ext <<_ACEOF
33978/* end confdefs.h. */
33979$ac_includes_default
33980int
33981main ()
33982{
33983if ((size_t *) 0)
33984 return 0;
33985if (sizeof (size_t))
33986 return 0;
33987 ;
33988 return 0;
33989}
33990_ACEOF
33991rm -f conftest.$ac_objext
33992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33993 (eval $ac_compile) 2>conftest.er1
a848cd7e 33994 ac_status=$?
ac1cb8d3
VS
33995 grep -v '^ *+' conftest.er1 >conftest.err
33996 rm -f conftest.er1
33997 cat conftest.err >&5
a848cd7e
SC
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); } &&
6a5c9b3f
RR
34000 { ac_try='test -z "$ac_cxx_werror_flag"
34001 || test ! -s conftest.err'
ac1cb8d3
VS
34002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34003 (eval $ac_try) 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; } &&
34007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34009 (eval $ac_try) 2>&5
34010 ac_status=$?
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); }; }; then
34013 ac_cv_type_size_t=yes
34014else
34015 echo "$as_me: failed program was:" >&5
34016sed 's/^/| /' conftest.$ac_ext >&5
34017
34018ac_cv_type_size_t=no
34019fi
ac1cb8d3 34020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34021fi
34022echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34023echo "${ECHO_T}$ac_cv_type_size_t" >&6
34024if test $ac_cv_type_size_t = yes; then
34025 :
34026else
34027
34028cat >>confdefs.h <<_ACEOF
34029#define size_t unsigned
34030_ACEOF
34031
34032fi
34033
34034echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34035echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34036if test "${ac_cv_type_uid_t+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038else
34039 cat >conftest.$ac_ext <<_ACEOF
34040/* confdefs.h. */
34041_ACEOF
34042cat confdefs.h >>conftest.$ac_ext
34043cat >>conftest.$ac_ext <<_ACEOF
34044/* end confdefs.h. */
34045#include <sys/types.h>
34046
34047_ACEOF
34048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34049 $EGREP "uid_t" >/dev/null 2>&1; then
34050 ac_cv_type_uid_t=yes
34051else
34052 ac_cv_type_uid_t=no
34053fi
34054rm -f conftest*
34055
34056fi
34057echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34058echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34059if test $ac_cv_type_uid_t = no; then
34060
34061cat >>confdefs.h <<\_ACEOF
34062#define uid_t int
34063_ACEOF
34064
34065
34066cat >>confdefs.h <<\_ACEOF
34067#define gid_t int
34068_ACEOF
34069
34070fi
34071
34072
d51253e8
RL
34073echo "$as_me:$LINENO: checking for ssize_t" >&5
34074echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34075if test "${ac_cv_type_ssize_t+set}" = set; then
34076 echo $ECHO_N "(cached) $ECHO_C" >&6
34077else
34078 cat >conftest.$ac_ext <<_ACEOF
34079/* confdefs.h. */
34080_ACEOF
34081cat confdefs.h >>conftest.$ac_ext
34082cat >>conftest.$ac_ext <<_ACEOF
34083/* end confdefs.h. */
34084$ac_includes_default
34085int
34086main ()
34087{
34088if ((ssize_t *) 0)
34089 return 0;
34090if (sizeof (ssize_t))
34091 return 0;
34092 ;
34093 return 0;
34094}
34095_ACEOF
34096rm -f conftest.$ac_objext
34097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34098 (eval $ac_compile) 2>conftest.er1
34099 ac_status=$?
34100 grep -v '^ *+' conftest.er1 >conftest.err
34101 rm -f conftest.er1
34102 cat conftest.err >&5
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); } &&
6a5c9b3f
RR
34105 { ac_try='test -z "$ac_cxx_werror_flag"
34106 || test ! -s conftest.err'
d51253e8
RL
34107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34108 (eval $ac_try) 2>&5
34109 ac_status=$?
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); }; } &&
34112 { ac_try='test -s conftest.$ac_objext'
34113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34114 (eval $ac_try) 2>&5
34115 ac_status=$?
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); }; }; then
34118 ac_cv_type_ssize_t=yes
34119else
34120 echo "$as_me: failed program was:" >&5
34121sed 's/^/| /' conftest.$ac_ext >&5
34122
34123ac_cv_type_ssize_t=no
34124fi
34125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34126fi
34127echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34128echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34129if test $ac_cv_type_ssize_t = yes; then
34130
34131cat >>confdefs.h <<_ACEOF
34132#define HAVE_SSIZE_T 1
34133_ACEOF
34134
34135
34136fi
34137
34138
a848cd7e
SC
34139echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34140echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34141if test "${wx_cv_size_t_is_uint+set}" = set; then
34142 echo $ECHO_N "(cached) $ECHO_C" >&6
34143else
34144
34145 cat >conftest.$ac_ext <<_ACEOF
34146/* confdefs.h. */
34147_ACEOF
34148cat confdefs.h >>conftest.$ac_ext
34149cat >>conftest.$ac_ext <<_ACEOF
34150/* end confdefs.h. */
34151#include <stddef.h>
34152int
34153main ()
34154{
34155
34156 return 0; }
34157
34158 struct Foo { void foo(size_t); void foo(unsigned int); };
34159
34160 int bar() {
34161
34162 ;
34163 return 0;
34164}
34165_ACEOF
34166rm -f conftest.$ac_objext
34167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34168 (eval $ac_compile) 2>conftest.er1
a848cd7e 34169 ac_status=$?
ac1cb8d3
VS
34170 grep -v '^ *+' conftest.er1 >conftest.err
34171 rm -f conftest.er1
34172 cat conftest.err >&5
a848cd7e
SC
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); } &&
6a5c9b3f
RR
34175 { ac_try='test -z "$ac_cxx_werror_flag"
34176 || test ! -s conftest.err'
ac1cb8d3
VS
34177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34178 (eval $ac_try) 2>&5
34179 ac_status=$?
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); }; } &&
34182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34184 (eval $ac_try) 2>&5
34185 ac_status=$?
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); }; }; then
34188 wx_cv_size_t_is_uint=no
34189else
34190 echo "$as_me: failed program was:" >&5
34191sed 's/^/| /' conftest.$ac_ext >&5
34192
34193wx_cv_size_t_is_uint=yes
34194
34195fi
ac1cb8d3 34196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34197
34198
34199fi
34200echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34201echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34202
34203if test "$wx_cv_size_t_is_uint" = "yes"; then
34204 cat >>confdefs.h <<\_ACEOF
34205#define wxSIZE_T_IS_UINT 1
34206_ACEOF
34207
34208else
34209 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34210echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34211if test "${wx_cv_size_t_is_ulong+set}" = set; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34213else
34214 cat >conftest.$ac_ext <<_ACEOF
34215/* confdefs.h. */
34216_ACEOF
34217cat confdefs.h >>conftest.$ac_ext
34218cat >>conftest.$ac_ext <<_ACEOF
34219/* end confdefs.h. */
34220#include <stddef.h>
34221int
34222main ()
34223{
34224
34225 return 0; }
34226
34227 struct Foo { void foo(size_t); void foo(unsigned long); };
34228
34229 int bar() {
34230
34231 ;
34232 return 0;
34233}
34234_ACEOF
34235rm -f conftest.$ac_objext
34236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34237 (eval $ac_compile) 2>conftest.er1
a848cd7e 34238 ac_status=$?
ac1cb8d3
VS
34239 grep -v '^ *+' conftest.er1 >conftest.err
34240 rm -f conftest.er1
34241 cat conftest.err >&5
a848cd7e
SC
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } &&
6a5c9b3f
RR
34244 { ac_try='test -z "$ac_cxx_werror_flag"
34245 || test ! -s conftest.err'
ac1cb8d3
VS
34246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247 (eval $ac_try) 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; } &&
34251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
34254 ac_status=$?
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; }; then
34257 wx_cv_size_t_is_ulong=no
34258else
34259 echo "$as_me: failed program was:" >&5
34260sed 's/^/| /' conftest.$ac_ext >&5
34261
34262wx_cv_size_t_is_ulong=yes
34263
34264fi
ac1cb8d3 34265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34266
34267fi
34268echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34269echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34270
34271 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34272 cat >>confdefs.h <<\_ACEOF
34273#define wxSIZE_T_IS_ULONG 1
34274_ACEOF
34275
34276 fi
34277fi
34278
a848cd7e
SC
34279
34280echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34281echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34282if test "${wx_cv_struct_pw_gecos+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
34284else
34285
34286 cat >conftest.$ac_ext <<_ACEOF
34287/* confdefs.h. */
34288_ACEOF
34289cat confdefs.h >>conftest.$ac_ext
34290cat >>conftest.$ac_ext <<_ACEOF
34291/* end confdefs.h. */
34292#include <pwd.h>
34293int
34294main ()
34295{
34296
34297 char *p;
34298 struct passwd *pw;
34299 p = pw->pw_gecos;
34300
34301 ;
34302 return 0;
34303}
34304_ACEOF
34305rm -f conftest.$ac_objext
34306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34307 (eval $ac_compile) 2>conftest.er1
a848cd7e 34308 ac_status=$?
ac1cb8d3
VS
34309 grep -v '^ *+' conftest.er1 >conftest.err
34310 rm -f conftest.er1
34311 cat conftest.err >&5
a848cd7e
SC
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); } &&
6a5c9b3f
RR
34314 { ac_try='test -z "$ac_cxx_werror_flag"
34315 || test ! -s conftest.err'
ac1cb8d3
VS
34316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317 (eval $ac_try) 2>&5
34318 ac_status=$?
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; } &&
34321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323 (eval $ac_try) 2>&5
34324 ac_status=$?
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); }; }; then
34327
34328 wx_cv_struct_pw_gecos=yes
34329
34330else
34331 echo "$as_me: failed program was:" >&5
34332sed 's/^/| /' conftest.$ac_ext >&5
34333
34334
34335 wx_cv_struct_pw_gecos=no
34336
34337
34338fi
ac1cb8d3 34339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34340
34341
34342fi
34343echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34344echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34345
34346if test "$wx_cv_struct_pw_gecos" = "yes"; then
34347 cat >>confdefs.h <<\_ACEOF
34348#define HAVE_PW_GECOS 1
34349_ACEOF
34350
34351fi
34352
34353
47a7e797 34354if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34355 cat >>confdefs.h <<\_ACEOF
34356#define wxUSE_WCHAR_T 1
34357_ACEOF
34358
34359
34360 WCSLEN_FOUND=0
34361 WCHAR_LINK=
34362
34363for ac_func in wcslen
34364do
34365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34366echo "$as_me:$LINENO: checking for $ac_func" >&5
34367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34368if eval "test \"\${$as_ac_var+set}\" = set"; then
34369 echo $ECHO_N "(cached) $ECHO_C" >&6
34370else
34371 cat >conftest.$ac_ext <<_ACEOF
34372/* confdefs.h. */
34373_ACEOF
34374cat confdefs.h >>conftest.$ac_ext
34375cat >>conftest.$ac_ext <<_ACEOF
34376/* end confdefs.h. */
ac1cb8d3
VS
34377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34379#define $ac_func innocuous_$ac_func
34380
a848cd7e
SC
34381/* System header to define __stub macros and hopefully few prototypes,
34382 which can conflict with char $ac_func (); below.
34383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34384 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34385
a848cd7e
SC
34386#ifdef __STDC__
34387# include <limits.h>
34388#else
34389# include <assert.h>
34390#endif
ac1cb8d3
VS
34391
34392#undef $ac_func
34393
a848cd7e
SC
34394/* Override any gcc2 internal prototype to avoid an error. */
34395#ifdef __cplusplus
34396extern "C"
34397{
34398#endif
34399/* We use char because int might match the return type of a gcc2
34400 builtin and then its argument prototype would still apply. */
34401char $ac_func ();
34402/* The GNU C library defines this for functions which it implements
34403 to always fail with ENOSYS. Some functions are actually named
34404 something starting with __ and the normal name is an alias. */
34405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34406choke me
34407#else
34408char (*f) () = $ac_func;
34409#endif
34410#ifdef __cplusplus
34411}
34412#endif
34413
34414int
34415main ()
34416{
34417return f != $ac_func;
34418 ;
34419 return 0;
34420}
34421_ACEOF
34422rm -f conftest.$ac_objext conftest$ac_exeext
34423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34424 (eval $ac_link) 2>conftest.er1
a848cd7e 34425 ac_status=$?
ac1cb8d3
VS
34426 grep -v '^ *+' conftest.er1 >conftest.err
34427 rm -f conftest.er1
34428 cat conftest.err >&5
a848cd7e
SC
34429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430 (exit $ac_status); } &&
6a5c9b3f
RR
34431 { ac_try='test -z "$ac_cxx_werror_flag"
34432 || test ! -s conftest.err'
ac1cb8d3
VS
34433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434 (eval $ac_try) 2>&5
34435 ac_status=$?
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); }; } &&
34438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34440 (eval $ac_try) 2>&5
34441 ac_status=$?
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); }; }; then
34444 eval "$as_ac_var=yes"
34445else
34446 echo "$as_me: failed program was:" >&5
34447sed 's/^/| /' conftest.$ac_ext >&5
34448
34449eval "$as_ac_var=no"
34450fi
ac1cb8d3
VS
34451rm -f conftest.err conftest.$ac_objext \
34452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34453fi
34454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34456if test `eval echo '${'$as_ac_var'}'` = yes; then
34457 cat >>confdefs.h <<_ACEOF
34458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34459_ACEOF
34460 WCSLEN_FOUND=1
34461fi
34462done
34463
34464
34465 if test "$WCSLEN_FOUND" = 0; then
34466 if test "$TOOLKIT" = "MSW"; then
34467 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34468echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34469if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34470 echo $ECHO_N "(cached) $ECHO_C" >&6
34471else
34472 ac_check_lib_save_LIBS=$LIBS
34473LIBS="-lmsvcrt $LIBS"
34474cat >conftest.$ac_ext <<_ACEOF
34475/* confdefs.h. */
34476_ACEOF
34477cat confdefs.h >>conftest.$ac_ext
34478cat >>conftest.$ac_ext <<_ACEOF
34479/* end confdefs.h. */
34480
34481/* Override any gcc2 internal prototype to avoid an error. */
34482#ifdef __cplusplus
34483extern "C"
34484#endif
34485/* We use char because int might match the return type of a gcc2
34486 builtin and then its argument prototype would still apply. */
34487char wcslen ();
34488int
34489main ()
34490{
34491wcslen ();
34492 ;
34493 return 0;
34494}
34495_ACEOF
34496rm -f conftest.$ac_objext conftest$ac_exeext
34497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34498 (eval $ac_link) 2>conftest.er1
a848cd7e 34499 ac_status=$?
ac1cb8d3
VS
34500 grep -v '^ *+' conftest.er1 >conftest.err
34501 rm -f conftest.er1
34502 cat conftest.err >&5
a848cd7e
SC
34503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504 (exit $ac_status); } &&
6a5c9b3f
RR
34505 { ac_try='test -z "$ac_cxx_werror_flag"
34506 || 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 ac_cv_lib_msvcrt_wcslen=yes
34519else
34520 echo "$as_me: failed program was:" >&5
34521sed 's/^/| /' conftest.$ac_ext >&5
34522
34523ac_cv_lib_msvcrt_wcslen=no
34524fi
ac1cb8d3
VS
34525rm -f conftest.err conftest.$ac_objext \
34526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34527LIBS=$ac_check_lib_save_LIBS
34528fi
34529echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34530echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34531if test $ac_cv_lib_msvcrt_wcslen = yes; then
34532 WCHAR_OK=1
34533fi
34534
34535 else
34536 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34537echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34538if test "${ac_cv_lib_w_wcslen+set}" = set; then
34539 echo $ECHO_N "(cached) $ECHO_C" >&6
34540else
34541 ac_check_lib_save_LIBS=$LIBS
34542LIBS="-lw $LIBS"
34543cat >conftest.$ac_ext <<_ACEOF
34544/* confdefs.h. */
34545_ACEOF
34546cat confdefs.h >>conftest.$ac_ext
34547cat >>conftest.$ac_ext <<_ACEOF
34548/* end confdefs.h. */
34549
34550/* Override any gcc2 internal prototype to avoid an error. */
34551#ifdef __cplusplus
34552extern "C"
34553#endif
34554/* We use char because int might match the return type of a gcc2
34555 builtin and then its argument prototype would still apply. */
34556char wcslen ();
34557int
34558main ()
34559{
34560wcslen ();
34561 ;
34562 return 0;
34563}
34564_ACEOF
34565rm -f conftest.$ac_objext conftest$ac_exeext
34566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34567 (eval $ac_link) 2>conftest.er1
a848cd7e 34568 ac_status=$?
ac1cb8d3
VS
34569 grep -v '^ *+' conftest.er1 >conftest.err
34570 rm -f conftest.er1
34571 cat conftest.err >&5
a848cd7e
SC
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); } &&
6a5c9b3f
RR
34574 { ac_try='test -z "$ac_cxx_werror_flag"
34575 || test ! -s conftest.err'
ac1cb8d3
VS
34576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577 (eval $ac_try) 2>&5
34578 ac_status=$?
34579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 (exit $ac_status); }; } &&
34581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34583 (eval $ac_try) 2>&5
34584 ac_status=$?
34585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586 (exit $ac_status); }; }; then
34587 ac_cv_lib_w_wcslen=yes
34588else
34589 echo "$as_me: failed program was:" >&5
34590sed 's/^/| /' conftest.$ac_ext >&5
34591
34592ac_cv_lib_w_wcslen=no
34593fi
ac1cb8d3
VS
34594rm -f conftest.err conftest.$ac_objext \
34595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34596LIBS=$ac_check_lib_save_LIBS
34597fi
34598echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34599echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34600if test $ac_cv_lib_w_wcslen = yes; then
34601
34602 WCHAR_LINK=" -lw"
34603 WCSLEN_FOUND=1
34604
34605fi
34606
34607 fi
34608 fi
34609
34610 if test "$WCSLEN_FOUND" = 1; then
34611 cat >>confdefs.h <<\_ACEOF
34612#define HAVE_WCSLEN 1
34613_ACEOF
34614
34615 fi
34616
efdf6afe 34617 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34618 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34619 fi
34620
efdf6afe
VZ
34621 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34622echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34623if test "${ac_cv_type_mbstate_t+set}" = set; then
34624 echo $ECHO_N "(cached) $ECHO_C" >&6
34625else
34626 cat >conftest.$ac_ext <<_ACEOF
34627/* confdefs.h. */
34628_ACEOF
34629cat confdefs.h >>conftest.$ac_ext
34630cat >>conftest.$ac_ext <<_ACEOF
34631/* end confdefs.h. */
34632#include <wchar.h>
34633
34634int
34635main ()
34636{
34637if ((mbstate_t *) 0)
34638 return 0;
34639if (sizeof (mbstate_t))
34640 return 0;
34641 ;
34642 return 0;
34643}
34644_ACEOF
34645rm -f conftest.$ac_objext
34646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34647 (eval $ac_compile) 2>conftest.er1
34648 ac_status=$?
34649 grep -v '^ *+' conftest.er1 >conftest.err
34650 rm -f conftest.er1
34651 cat conftest.err >&5
34652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); } &&
6a5c9b3f
RR
34654 { ac_try='test -z "$ac_cxx_werror_flag"
34655 || test ! -s conftest.err'
efdf6afe
VZ
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; } &&
34661 { ac_try='test -s conftest.$ac_objext'
34662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34663 (eval $ac_try) 2>&5
34664 ac_status=$?
34665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); }; }; then
34667 ac_cv_type_mbstate_t=yes
34668else
34669 echo "$as_me: failed program was:" >&5
34670sed 's/^/| /' conftest.$ac_ext >&5
34671
34672ac_cv_type_mbstate_t=no
34673fi
34674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34675fi
34676echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34677echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34678if test $ac_cv_type_mbstate_t = yes; then
34679
34680cat >>confdefs.h <<_ACEOF
34681#define HAVE_MBSTATE_T 1
34682_ACEOF
34683
a848cd7e
SC
34684
34685for ac_func in wcsrtombs
34686do
34687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34688echo "$as_me:$LINENO: checking for $ac_func" >&5
34689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34690if eval "test \"\${$as_ac_var+set}\" = set"; then
34691 echo $ECHO_N "(cached) $ECHO_C" >&6
34692else
34693 cat >conftest.$ac_ext <<_ACEOF
34694/* confdefs.h. */
34695_ACEOF
34696cat confdefs.h >>conftest.$ac_ext
34697cat >>conftest.$ac_ext <<_ACEOF
34698/* end confdefs.h. */
ac1cb8d3
VS
34699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34701#define $ac_func innocuous_$ac_func
34702
a848cd7e
SC
34703/* System header to define __stub macros and hopefully few prototypes,
34704 which can conflict with char $ac_func (); below.
34705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34706 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34707
a848cd7e
SC
34708#ifdef __STDC__
34709# include <limits.h>
34710#else
34711# include <assert.h>
34712#endif
ac1cb8d3
VS
34713
34714#undef $ac_func
34715
a848cd7e
SC
34716/* Override any gcc2 internal prototype to avoid an error. */
34717#ifdef __cplusplus
34718extern "C"
34719{
34720#endif
34721/* We use char because int might match the return type of a gcc2
34722 builtin and then its argument prototype would still apply. */
34723char $ac_func ();
34724/* The GNU C library defines this for functions which it implements
34725 to always fail with ENOSYS. Some functions are actually named
34726 something starting with __ and the normal name is an alias. */
34727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34728choke me
34729#else
34730char (*f) () = $ac_func;
34731#endif
34732#ifdef __cplusplus
34733}
34734#endif
34735
34736int
34737main ()
34738{
34739return f != $ac_func;
34740 ;
34741 return 0;
34742}
34743_ACEOF
34744rm -f conftest.$ac_objext conftest$ac_exeext
34745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34746 (eval $ac_link) 2>conftest.er1
a848cd7e 34747 ac_status=$?
ac1cb8d3
VS
34748 grep -v '^ *+' conftest.er1 >conftest.err
34749 rm -f conftest.er1
34750 cat conftest.err >&5
a848cd7e
SC
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
6a5c9b3f
RR
34753 { ac_try='test -z "$ac_cxx_werror_flag"
34754 || test ! -s conftest.err'
ac1cb8d3
VS
34755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34756 (eval $ac_try) 2>&5
34757 ac_status=$?
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); }; } &&
34760 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762 (eval $ac_try) 2>&5
34763 ac_status=$?
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); }; }; then
34766 eval "$as_ac_var=yes"
34767else
34768 echo "$as_me: failed program was:" >&5
34769sed 's/^/| /' conftest.$ac_ext >&5
34770
34771eval "$as_ac_var=no"
34772fi
ac1cb8d3
VS
34773rm -f conftest.err conftest.$ac_objext \
34774 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34775fi
34776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34778if test `eval echo '${'$as_ac_var'}'` = yes; then
34779 cat >>confdefs.h <<_ACEOF
34780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34781_ACEOF
34782
34783fi
34784done
34785
efdf6afe
VZ
34786fi
34787
a848cd7e
SC
34788else
34789 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34790echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34791fi
34792
a848cd7e 34793
4a767dd5
VZ
34794
34795for ac_func in snprintf vsnprintf
a848cd7e
SC
34796do
34797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34798echo "$as_me:$LINENO: checking for $ac_func" >&5
34799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34800if eval "test \"\${$as_ac_var+set}\" = set"; then
34801 echo $ECHO_N "(cached) $ECHO_C" >&6
34802else
34803 cat >conftest.$ac_ext <<_ACEOF
34804/* confdefs.h. */
34805_ACEOF
34806cat confdefs.h >>conftest.$ac_ext
34807cat >>conftest.$ac_ext <<_ACEOF
34808/* end confdefs.h. */
ac1cb8d3
VS
34809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34811#define $ac_func innocuous_$ac_func
34812
a848cd7e
SC
34813/* System header to define __stub macros and hopefully few prototypes,
34814 which can conflict with char $ac_func (); below.
34815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34816 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34817
a848cd7e
SC
34818#ifdef __STDC__
34819# include <limits.h>
34820#else
34821# include <assert.h>
34822#endif
ac1cb8d3
VS
34823
34824#undef $ac_func
34825
a848cd7e
SC
34826/* Override any gcc2 internal prototype to avoid an error. */
34827#ifdef __cplusplus
34828extern "C"
34829{
34830#endif
34831/* We use char because int might match the return type of a gcc2
34832 builtin and then its argument prototype would still apply. */
34833char $ac_func ();
34834/* The GNU C library defines this for functions which it implements
34835 to always fail with ENOSYS. Some functions are actually named
34836 something starting with __ and the normal name is an alias. */
34837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34838choke me
34839#else
34840char (*f) () = $ac_func;
34841#endif
34842#ifdef __cplusplus
34843}
34844#endif
34845
34846int
34847main ()
34848{
34849return f != $ac_func;
34850 ;
34851 return 0;
34852}
34853_ACEOF
34854rm -f conftest.$ac_objext conftest$ac_exeext
34855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34856 (eval $ac_link) 2>conftest.er1
a848cd7e 34857 ac_status=$?
ac1cb8d3
VS
34858 grep -v '^ *+' conftest.er1 >conftest.err
34859 rm -f conftest.er1
34860 cat conftest.err >&5
a848cd7e
SC
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } &&
6a5c9b3f
RR
34863 { ac_try='test -z "$ac_cxx_werror_flag"
34864 || test ! -s conftest.err'
ac1cb8d3
VS
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; } &&
34870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; }; then
34876 eval "$as_ac_var=yes"
34877else
34878 echo "$as_me: failed program was:" >&5
34879sed 's/^/| /' conftest.$ac_ext >&5
34880
34881eval "$as_ac_var=no"
34882fi
ac1cb8d3
VS
34883rm -f conftest.err conftest.$ac_objext \
34884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34885fi
34886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34888if test `eval echo '${'$as_ac_var'}'` = yes; then
34889 cat >>confdefs.h <<_ACEOF
34890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34891_ACEOF
34892
34893fi
34894done
34895
34896
34897if test "$ac_cv_func_vsnprintf" = "yes"; then
34898 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34899echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34900if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34901 echo $ECHO_N "(cached) $ECHO_C" >&6
34902else
34903
efdf6afe 34904 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34905/* confdefs.h. */
34906_ACEOF
34907cat confdefs.h >>conftest.$ac_ext
34908cat >>conftest.$ac_ext <<_ACEOF
34909/* end confdefs.h. */
34910
34911 #include <stdio.h>
34912 #include <stdarg.h>
efdf6afe
VZ
34913 #ifdef __MSL__
34914 #if __MSL__ >= 0x6000
34915 namespace std {}
34916 using namespace std;
34917 #endif
34918 #endif
a848cd7e
SC
34919
34920int
34921main ()
34922{
34923
34924 char *buf;
34925 va_list ap;
62fa8b3a 34926 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34927
34928 ;
34929 return 0;
34930}
34931_ACEOF
34932rm -f conftest.$ac_objext
34933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34934 (eval $ac_compile) 2>conftest.er1
34935 ac_status=$?
34936 grep -v '^ *+' conftest.er1 >conftest.err
34937 rm -f conftest.er1
34938 cat conftest.err >&5
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); } &&
6a5c9b3f
RR
34941 { ac_try='test -z "$ac_cxx_werror_flag"
34942 || test ! -s conftest.err'
c122b164
DE
34943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944 (eval $ac_try) 2>&5
34945 ac_status=$?
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; } &&
34948 { ac_try='test -s conftest.$ac_objext'
34949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34950 (eval $ac_try) 2>&5
34951 ac_status=$?
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); }; }; then
34954 wx_cv_func_vsnprintf_decl=yes
34955else
34956 echo "$as_me: failed program was:" >&5
34957sed 's/^/| /' conftest.$ac_ext >&5
34958
a848cd7e
SC
34959wx_cv_func_vsnprintf_decl=no
34960
34961fi
ac1cb8d3 34962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34963
34964
34965fi
34966echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34967echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34968
34969 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34970 cat >>confdefs.h <<\_ACEOF
34971#define HAVE_VSNPRINTF_DECL 1
34972_ACEOF
34973
62fa8b3a
MW
34974
34975 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34976echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34977if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34978 echo $ECHO_N "(cached) $ECHO_C" >&6
34979else
34980
34981 cat >conftest.$ac_ext <<_ACEOF
34982/* confdefs.h. */
34983_ACEOF
34984cat confdefs.h >>conftest.$ac_ext
34985cat >>conftest.$ac_ext <<_ACEOF
34986/* end confdefs.h. */
34987
34988 #include <stdio.h>
34989 #include <stdarg.h>
34990 #ifdef __MSL__
34991 #if __MSL__ >= 0x6000
34992 namespace std {}
34993 using namespace std;
34994 #endif
34995 #endif
34996
34997int
34998main ()
34999{
35000
35001 char *buf;
35002 va_list ap;
35003 const char *fmt = "%s";
35004 vsnprintf(buf, 10u, fmt, ap);
35005
35006 ;
35007 return 0;
35008}
35009_ACEOF
35010rm -f conftest.$ac_objext
35011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35012 (eval $ac_compile) 2>conftest.er1
35013 ac_status=$?
35014 grep -v '^ *+' conftest.er1 >conftest.err
35015 rm -f conftest.er1
35016 cat conftest.err >&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } &&
6a5c9b3f
RR
35019 { ac_try='test -z "$ac_cxx_werror_flag"
35020 || test ! -s conftest.err'
62fa8b3a
MW
35021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35022 (eval $ac_try) 2>&5
35023 ac_status=$?
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); }; } &&
35026 { ac_try='test -s conftest.$ac_objext'
35027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35028 (eval $ac_try) 2>&5
35029 ac_status=$?
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); }; }; then
35032 wx_cv_func_broken_vsnprintf_decl=no
35033else
35034 echo "$as_me: failed program was:" >&5
35035sed 's/^/| /' conftest.$ac_ext >&5
35036
35037wx_cv_func_broken_vsnprintf_decl=yes
35038
35039fi
35040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35041
35042
35043fi
35044echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35045echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35046
35047 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35048 cat >>confdefs.h <<\_ACEOF
35049#define HAVE_BROKEN_VSNPRINTF_DECL 1
35050_ACEOF
35051
35052 fi
a848cd7e
SC
35053 fi
35054fi
35055
4a767dd5
VZ
35056if test "$ac_cv_func_snprintf" = "yes"; then
35057 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35058echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35059if test "${wx_cv_func_snprintf_decl+set}" = set; then
35060 echo $ECHO_N "(cached) $ECHO_C" >&6
35061else
35062
35063 cat >conftest.$ac_ext <<_ACEOF
35064/* confdefs.h. */
35065_ACEOF
35066cat confdefs.h >>conftest.$ac_ext
35067cat >>conftest.$ac_ext <<_ACEOF
35068/* end confdefs.h. */
35069
35070 #include <stdio.h>
35071 #include <stdarg.h>
35072 #ifdef __MSL__
35073 #if __MSL__ >= 0x6000
35074 namespace std {}
35075 using namespace std;
35076 #endif
35077 #endif
35078
35079int
35080main ()
35081{
35082
35083 char *buf;
62fa8b3a 35084 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35085
35086 ;
35087 return 0;
35088}
35089_ACEOF
35090rm -f conftest.$ac_objext
35091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35092 (eval $ac_compile) 2>conftest.er1
35093 ac_status=$?
35094 grep -v '^ *+' conftest.er1 >conftest.err
35095 rm -f conftest.er1
35096 cat conftest.err >&5
35097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098 (exit $ac_status); } &&
6a5c9b3f
RR
35099 { ac_try='test -z "$ac_cxx_werror_flag"
35100 || test ! -s conftest.err'
4a767dd5
VZ
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; } &&
35106 { ac_try='test -s conftest.$ac_objext'
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; }; then
35112 wx_cv_func_snprintf_decl=yes
35113else
35114 echo "$as_me: failed program was:" >&5
35115sed 's/^/| /' conftest.$ac_ext >&5
35116
35117wx_cv_func_snprintf_decl=no
35118
35119fi
35120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35121
35122
35123fi
35124echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35125echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35126
35127 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35128 cat >>confdefs.h <<\_ACEOF
35129#define HAVE_SNPRINTF_DECL 1
35130_ACEOF
35131
62fa8b3a
MW
35132
35133 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35134echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35135if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35136 echo $ECHO_N "(cached) $ECHO_C" >&6
35137else
35138
35139 cat >conftest.$ac_ext <<_ACEOF
35140/* confdefs.h. */
35141_ACEOF
35142cat confdefs.h >>conftest.$ac_ext
35143cat >>conftest.$ac_ext <<_ACEOF
35144/* end confdefs.h. */
35145
35146 #include <stdio.h>
35147 #include <stdarg.h>
35148 #ifdef __MSL__
35149 #if __MSL__ >= 0x6000
35150 namespace std {}
35151 using namespace std;
35152 #endif
35153 #endif
35154
35155int
35156main ()
35157{
35158
35159 char *buf;
35160 const char *fmt = "%s";
35161 snprintf(buf, 10u, fmt, "wx");
35162
35163 ;
35164 return 0;
35165}
35166_ACEOF
35167rm -f conftest.$ac_objext
35168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35169 (eval $ac_compile) 2>conftest.er1
35170 ac_status=$?
35171 grep -v '^ *+' conftest.er1 >conftest.err
35172 rm -f conftest.er1
35173 cat conftest.err >&5
35174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175 (exit $ac_status); } &&
6a5c9b3f
RR
35176 { ac_try='test -z "$ac_cxx_werror_flag"
35177 || test ! -s conftest.err'
62fa8b3a
MW
35178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35179 (eval $ac_try) 2>&5
35180 ac_status=$?
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); }; } &&
35183 { ac_try='test -s conftest.$ac_objext'
35184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35185 (eval $ac_try) 2>&5
35186 ac_status=$?
35187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35188 (exit $ac_status); }; }; then
35189 wx_cv_func_broken_snprintf_decl=no
35190else
35191 echo "$as_me: failed program was:" >&5
35192sed 's/^/| /' conftest.$ac_ext >&5
35193
35194wx_cv_func_broken_snprintf_decl=yes
35195
35196fi
35197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35198
35199
35200fi
35201echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35202echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35203
35204 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35205 cat >>confdefs.h <<\_ACEOF
35206#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35207_ACEOF
35208
35209 fi
35210 fi
35211
35212 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35213
35214 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35215echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35216if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35218else
35219
35220 if test "$cross_compiling" = yes; then
5039a2df
VZ
35221
35222 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35223define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35224echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35225define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35226 wx_cv_func_snprintf_pos_params=no
35227
35228
8b6682b9
JS
35229else
35230 cat >conftest.$ac_ext <<_ACEOF
35231/* confdefs.h. */
35232_ACEOF
35233cat confdefs.h >>conftest.$ac_ext
35234cat >>conftest.$ac_ext <<_ACEOF
35235/* end confdefs.h. */
35236
35237 #include <stdio.h>
35238
35239 int main (void)
35240 {
35241 char buffer[128];
35242 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35243 if (strcmp ("2 3 1", buffer) == 0)
35244 exit (0);
35245 exit (1);
35246 }
35247
35248_ACEOF
35249rm -f conftest$ac_exeext
35250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35251 (eval $ac_link) 2>&5
35252 ac_status=$?
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35256 (eval $ac_try) 2>&5
35257 ac_status=$?
35258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259 (exit $ac_status); }; }; then
35260 wx_cv_func_snprintf_pos_params=no
35261else
35262 echo "$as_me: program exited with status $ac_status" >&5
35263echo "$as_me: failed program was:" >&5
35264sed 's/^/| /' conftest.$ac_ext >&5
35265
35266( exit $ac_status )
35267wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35268fi
35269rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35270fi
35271
35272
35273fi
35274echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35275echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35276
35277 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35278 cat >>confdefs.h <<\_ACEOF
35279#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35280_ACEOF
35281
35282 fi
4a767dd5
VZ
35283 fi
35284fi
35285
a848cd7e
SC
35286if test "$wxUSE_UNICODE" = yes; then
35287
35288
6a5c9b3f
RR
35289for ac_func in swprintf
35290do
35291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35292echo "$as_me:$LINENO: checking for $ac_func" >&5
35293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35294if eval "test \"\${$as_ac_var+set}\" = set"; then
35295 echo $ECHO_N "(cached) $ECHO_C" >&6
35296else
35297 cat >conftest.$ac_ext <<_ACEOF
35298/* confdefs.h. */
35299_ACEOF
35300cat confdefs.h >>conftest.$ac_ext
35301cat >>conftest.$ac_ext <<_ACEOF
35302/* end confdefs.h. */
35303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35305#define $ac_func innocuous_$ac_func
35306
35307/* System header to define __stub macros and hopefully few prototypes,
35308 which can conflict with char $ac_func (); below.
35309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35310 <limits.h> exists even on freestanding compilers. */
35311
35312#ifdef __STDC__
35313# include <limits.h>
35314#else
35315# include <assert.h>
35316#endif
35317
35318#undef $ac_func
35319
35320/* Override any gcc2 internal prototype to avoid an error. */
35321#ifdef __cplusplus
35322extern "C"
35323{
35324#endif
35325/* We use char because int might match the return type of a gcc2
35326 builtin and then its argument prototype would still apply. */
35327char $ac_func ();
35328/* The GNU C library defines this for functions which it implements
35329 to always fail with ENOSYS. Some functions are actually named
35330 something starting with __ and the normal name is an alias. */
35331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35332choke me
35333#else
35334char (*f) () = $ac_func;
35335#endif
35336#ifdef __cplusplus
35337}
35338#endif
35339
35340int
35341main ()
35342{
35343return f != $ac_func;
35344 ;
35345 return 0;
35346}
35347_ACEOF
35348rm -f conftest.$ac_objext conftest$ac_exeext
35349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35350 (eval $ac_link) 2>conftest.er1
35351 ac_status=$?
35352 grep -v '^ *+' conftest.er1 >conftest.err
35353 rm -f conftest.er1
35354 cat conftest.err >&5
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); } &&
35357 { ac_try='test -z "$ac_cxx_werror_flag"
35358 || test ! -s conftest.err'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35361 ac_status=$?
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; } &&
35364 { ac_try='test -s conftest$ac_exeext'
35365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366 (eval $ac_try) 2>&5
35367 ac_status=$?
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); }; }; then
35370 eval "$as_ac_var=yes"
35371else
35372 echo "$as_me: failed program was:" >&5
35373sed 's/^/| /' conftest.$ac_ext >&5
35374
35375eval "$as_ac_var=no"
35376fi
35377rm -f conftest.err conftest.$ac_objext \
35378 conftest$ac_exeext conftest.$ac_ext
35379fi
35380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35382if test `eval echo '${'$as_ac_var'}'` = yes; then
35383 cat >>confdefs.h <<_ACEOF
35384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35385_ACEOF
35386
35387fi
35388done
35389
35390
35391 if test "$ac_cv_func_swprintf" = "yes"; then
35392 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35393echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35394if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35395 echo $ECHO_N "(cached) $ECHO_C" >&6
35396else
35397
35398 cat >conftest.$ac_ext <<_ACEOF
35399/* confdefs.h. */
35400_ACEOF
35401cat confdefs.h >>conftest.$ac_ext
35402cat >>conftest.$ac_ext <<_ACEOF
35403/* end confdefs.h. */
35404
35405 #include <stdio.h>
35406 #include <stdarg.h>
35407 #include <wchar.h>
35408
35409int
35410main ()
35411{
35412
35413 wchar_t *buf;
35414 const wchar_t *fmt = L"test";
35415 swprintf(buf, 10u, fmt);
35416
35417 ;
35418 return 0;
35419}
35420_ACEOF
35421rm -f conftest.$ac_objext
35422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35423 (eval $ac_compile) 2>conftest.er1
35424 ac_status=$?
35425 grep -v '^ *+' conftest.er1 >conftest.err
35426 rm -f conftest.er1
35427 cat conftest.err >&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); } &&
35430 { ac_try='test -z "$ac_cxx_werror_flag"
35431 || test ! -s conftest.err'
35432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433 (eval $ac_try) 2>&5
35434 ac_status=$?
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; } &&
35437 { ac_try='test -s conftest.$ac_objext'
35438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35439 (eval $ac_try) 2>&5
35440 ac_status=$?
35441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442 (exit $ac_status); }; }; then
35443 wx_cv_func_broken_swprintf_decl=no
35444else
35445 echo "$as_me: failed program was:" >&5
35446sed 's/^/| /' conftest.$ac_ext >&5
35447
35448wx_cv_func_broken_swprintf_decl=yes
35449
35450fi
35451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35452
35453
35454fi
35455echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35456echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35457
35458 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35459 cat >>confdefs.h <<\_ACEOF
35460#define HAVE_BROKEN_SWPRINTF_DECL 1
35461_ACEOF
35462
35463 fi
35464 fi
35465
35466
35467
a848cd7e 35468
fbe47c7b
VS
35469
35470
35471
35472for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35473do
35474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35475echo "$as_me:$LINENO: checking for $ac_func" >&5
35476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35477if eval "test \"\${$as_ac_var+set}\" = set"; then
35478 echo $ECHO_N "(cached) $ECHO_C" >&6
35479else
35480 cat >conftest.$ac_ext <<_ACEOF
35481/* confdefs.h. */
35482_ACEOF
35483cat confdefs.h >>conftest.$ac_ext
35484cat >>conftest.$ac_ext <<_ACEOF
35485/* end confdefs.h. */
ac1cb8d3
VS
35486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35488#define $ac_func innocuous_$ac_func
35489
a848cd7e
SC
35490/* System header to define __stub macros and hopefully few prototypes,
35491 which can conflict with char $ac_func (); below.
35492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35493 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35494
a848cd7e
SC
35495#ifdef __STDC__
35496# include <limits.h>
35497#else
35498# include <assert.h>
35499#endif
ac1cb8d3
VS
35500
35501#undef $ac_func
35502
a848cd7e
SC
35503/* Override any gcc2 internal prototype to avoid an error. */
35504#ifdef __cplusplus
35505extern "C"
35506{
35507#endif
35508/* We use char because int might match the return type of a gcc2
35509 builtin and then its argument prototype would still apply. */
35510char $ac_func ();
35511/* The GNU C library defines this for functions which it implements
35512 to always fail with ENOSYS. Some functions are actually named
35513 something starting with __ and the normal name is an alias. */
35514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35515choke me
35516#else
35517char (*f) () = $ac_func;
35518#endif
35519#ifdef __cplusplus
35520}
35521#endif
35522
35523int
35524main ()
35525{
35526return f != $ac_func;
35527 ;
35528 return 0;
35529}
35530_ACEOF
35531rm -f conftest.$ac_objext conftest$ac_exeext
35532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35533 (eval $ac_link) 2>conftest.er1
a848cd7e 35534 ac_status=$?
ac1cb8d3
VS
35535 grep -v '^ *+' conftest.er1 >conftest.err
35536 rm -f conftest.er1
35537 cat conftest.err >&5
a848cd7e
SC
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); } &&
6a5c9b3f
RR
35540 { ac_try='test -z "$ac_cxx_werror_flag"
35541 || test ! -s conftest.err'
ac1cb8d3
VS
35542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35543 (eval $ac_try) 2>&5
35544 ac_status=$?
35545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 (exit $ac_status); }; } &&
35547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35549 (eval $ac_try) 2>&5
35550 ac_status=$?
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); }; }; then
35553 eval "$as_ac_var=yes"
35554else
35555 echo "$as_me: failed program was:" >&5
35556sed 's/^/| /' conftest.$ac_ext >&5
35557
35558eval "$as_ac_var=no"
35559fi
ac1cb8d3
VS
35560rm -f conftest.err conftest.$ac_objext \
35561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35562fi
35563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35565if test `eval echo '${'$as_ac_var'}'` = yes; then
35566 cat >>confdefs.h <<_ACEOF
35567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35568_ACEOF
35569
35570fi
35571done
35572
35573
35574 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35575echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35576 cat >conftest.$ac_ext <<_ACEOF
35577/* confdefs.h. */
35578_ACEOF
35579cat confdefs.h >>conftest.$ac_ext
35580cat >>conftest.$ac_ext <<_ACEOF
35581/* end confdefs.h. */
35582#include <wchar.h>
35583int
35584main ()
35585{
35586&_vsnwprintf;
35587 ;
35588 return 0;
35589}
35590_ACEOF
35591rm -f conftest.$ac_objext
35592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35593 (eval $ac_compile) 2>conftest.er1
a848cd7e 35594 ac_status=$?
ac1cb8d3
VS
35595 grep -v '^ *+' conftest.er1 >conftest.err
35596 rm -f conftest.er1
35597 cat conftest.err >&5
a848cd7e
SC
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); } &&
6a5c9b3f
RR
35600 { ac_try='test -z "$ac_cxx_werror_flag"
35601 || test ! -s conftest.err'
ac1cb8d3
VS
35602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35603 (eval $ac_try) 2>&5
35604 ac_status=$?
35605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606 (exit $ac_status); }; } &&
35607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35609 (eval $ac_try) 2>&5
35610 ac_status=$?
35611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612 (exit $ac_status); }; }; then
35613 echo "$as_me:$LINENO: result: yes" >&5
35614echo "${ECHO_T}yes" >&6
35615 cat >>confdefs.h <<\_ACEOF
35616#define HAVE__VSNWPRINTF 1
35617_ACEOF
35618
35619else
35620 echo "$as_me: failed program was:" >&5
35621sed 's/^/| /' conftest.$ac_ext >&5
35622
35623echo "$as_me:$LINENO: result: no" >&5
35624echo "${ECHO_T}no" >&6
35625fi
ac1cb8d3 35626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35627fi
35628
6ebeb4c7
VZ
35629if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35630
35631for ac_func in fnmatch
35632do
35633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35634echo "$as_me:$LINENO: checking for $ac_func" >&5
35635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35636if eval "test \"\${$as_ac_var+set}\" = set"; then
35637 echo $ECHO_N "(cached) $ECHO_C" >&6
35638else
35639 cat >conftest.$ac_ext <<_ACEOF
35640/* confdefs.h. */
35641_ACEOF
35642cat confdefs.h >>conftest.$ac_ext
35643cat >>conftest.$ac_ext <<_ACEOF
35644/* end confdefs.h. */
35645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35647#define $ac_func innocuous_$ac_func
35648
35649/* System header to define __stub macros and hopefully few prototypes,
35650 which can conflict with char $ac_func (); below.
35651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35652 <limits.h> exists even on freestanding compilers. */
35653
35654#ifdef __STDC__
35655# include <limits.h>
35656#else
35657# include <assert.h>
35658#endif
35659
35660#undef $ac_func
35661
35662/* Override any gcc2 internal prototype to avoid an error. */
35663#ifdef __cplusplus
35664extern "C"
35665{
35666#endif
35667/* We use char because int might match the return type of a gcc2
35668 builtin and then its argument prototype would still apply. */
35669char $ac_func ();
35670/* The GNU C library defines this for functions which it implements
35671 to always fail with ENOSYS. Some functions are actually named
35672 something starting with __ and the normal name is an alias. */
35673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35674choke me
35675#else
35676char (*f) () = $ac_func;
35677#endif
35678#ifdef __cplusplus
35679}
35680#endif
35681
35682int
35683main ()
35684{
35685return f != $ac_func;
35686 ;
35687 return 0;
35688}
35689_ACEOF
35690rm -f conftest.$ac_objext conftest$ac_exeext
35691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35692 (eval $ac_link) 2>conftest.er1
35693 ac_status=$?
35694 grep -v '^ *+' conftest.er1 >conftest.err
35695 rm -f conftest.er1
35696 cat conftest.err >&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); } &&
6a5c9b3f
RR
35699 { ac_try='test -z "$ac_cxx_werror_flag"
35700 || test ! -s conftest.err'
6ebeb4c7
VZ
35701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35702 (eval $ac_try) 2>&5
35703 ac_status=$?
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); }; } &&
35706 { ac_try='test -s conftest$ac_exeext'
35707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35708 (eval $ac_try) 2>&5
35709 ac_status=$?
35710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711 (exit $ac_status); }; }; then
35712 eval "$as_ac_var=yes"
35713else
35714 echo "$as_me: failed program was:" >&5
35715sed 's/^/| /' conftest.$ac_ext >&5
35716
35717eval "$as_ac_var=no"
35718fi
35719rm -f conftest.err conftest.$ac_objext \
35720 conftest$ac_exeext conftest.$ac_ext
35721fi
35722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35724if test `eval echo '${'$as_ac_var'}'` = yes; then
35725 cat >>confdefs.h <<_ACEOF
35726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35727_ACEOF
35728
35729fi
35730done
35731
35732fi
35733
35734if test "$wxUSE_FILE" = "yes"; then
35735
35736for ac_func in fsync
35737do
35738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35739echo "$as_me:$LINENO: checking for $ac_func" >&5
35740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35741if eval "test \"\${$as_ac_var+set}\" = set"; then
35742 echo $ECHO_N "(cached) $ECHO_C" >&6
35743else
35744 cat >conftest.$ac_ext <<_ACEOF
35745/* confdefs.h. */
35746_ACEOF
35747cat confdefs.h >>conftest.$ac_ext
35748cat >>conftest.$ac_ext <<_ACEOF
35749/* end confdefs.h. */
35750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35752#define $ac_func innocuous_$ac_func
35753
35754/* System header to define __stub macros and hopefully few prototypes,
35755 which can conflict with char $ac_func (); below.
35756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35757 <limits.h> exists even on freestanding compilers. */
35758
35759#ifdef __STDC__
35760# include <limits.h>
35761#else
35762# include <assert.h>
35763#endif
35764
35765#undef $ac_func
35766
35767/* Override any gcc2 internal prototype to avoid an error. */
35768#ifdef __cplusplus
35769extern "C"
35770{
35771#endif
35772/* We use char because int might match the return type of a gcc2
35773 builtin and then its argument prototype would still apply. */
35774char $ac_func ();
35775/* The GNU C library defines this for functions which it implements
35776 to always fail with ENOSYS. Some functions are actually named
35777 something starting with __ and the normal name is an alias. */
35778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35779choke me
35780#else
35781char (*f) () = $ac_func;
35782#endif
35783#ifdef __cplusplus
35784}
35785#endif
35786
35787int
35788main ()
35789{
35790return f != $ac_func;
35791 ;
35792 return 0;
35793}
35794_ACEOF
35795rm -f conftest.$ac_objext conftest$ac_exeext
35796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35797 (eval $ac_link) 2>conftest.er1
35798 ac_status=$?
35799 grep -v '^ *+' conftest.er1 >conftest.err
35800 rm -f conftest.er1
35801 cat conftest.err >&5
35802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803 (exit $ac_status); } &&
6a5c9b3f
RR
35804 { ac_try='test -z "$ac_cxx_werror_flag"
35805 || test ! -s conftest.err'
6ebeb4c7
VZ
35806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807 (eval $ac_try) 2>&5
35808 ac_status=$?
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); }; } &&
35811 { ac_try='test -s conftest$ac_exeext'
35812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35813 (eval $ac_try) 2>&5
35814 ac_status=$?
35815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; }; then
35817 eval "$as_ac_var=yes"
35818else
35819 echo "$as_me: failed program was:" >&5
35820sed 's/^/| /' conftest.$ac_ext >&5
35821
35822eval "$as_ac_var=no"
35823fi
35824rm -f conftest.err conftest.$ac_objext \
35825 conftest$ac_exeext conftest.$ac_ext
35826fi
35827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35828echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35829if test `eval echo '${'$as_ac_var'}'` = yes; then
35830 cat >>confdefs.h <<_ACEOF
35831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35832_ACEOF
35833
35834fi
35835done
35836
35837fi
a848cd7e
SC
35838
35839
c2e9ada4
VZ
35840for ac_func in round
35841do
35842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35843echo "$as_me:$LINENO: checking for $ac_func" >&5
35844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35845if eval "test \"\${$as_ac_var+set}\" = set"; then
35846 echo $ECHO_N "(cached) $ECHO_C" >&6
35847else
35848 cat >conftest.$ac_ext <<_ACEOF
35849/* confdefs.h. */
35850_ACEOF
35851cat confdefs.h >>conftest.$ac_ext
35852cat >>conftest.$ac_ext <<_ACEOF
35853/* end confdefs.h. */
35854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35856#define $ac_func innocuous_$ac_func
35857
35858/* System header to define __stub macros and hopefully few prototypes,
35859 which can conflict with char $ac_func (); below.
35860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35861 <limits.h> exists even on freestanding compilers. */
35862
35863#ifdef __STDC__
35864# include <limits.h>
35865#else
35866# include <assert.h>
35867#endif
35868
35869#undef $ac_func
35870
35871/* Override any gcc2 internal prototype to avoid an error. */
35872#ifdef __cplusplus
35873extern "C"
35874{
35875#endif
35876/* We use char because int might match the return type of a gcc2
35877 builtin and then its argument prototype would still apply. */
35878char $ac_func ();
35879/* The GNU C library defines this for functions which it implements
35880 to always fail with ENOSYS. Some functions are actually named
35881 something starting with __ and the normal name is an alias. */
35882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35883choke me
35884#else
35885char (*f) () = $ac_func;
35886#endif
35887#ifdef __cplusplus
35888}
35889#endif
35890
35891int
35892main ()
35893{
35894return f != $ac_func;
35895 ;
35896 return 0;
35897}
35898_ACEOF
35899rm -f conftest.$ac_objext conftest$ac_exeext
35900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35901 (eval $ac_link) 2>conftest.er1
35902 ac_status=$?
35903 grep -v '^ *+' conftest.er1 >conftest.err
35904 rm -f conftest.er1
35905 cat conftest.err >&5
35906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); } &&
6a5c9b3f
RR
35908 { ac_try='test -z "$ac_cxx_werror_flag"
35909 || test ! -s conftest.err'
c2e9ada4
VZ
35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911 (eval $ac_try) 2>&5
35912 ac_status=$?
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); }; } &&
35915 { ac_try='test -s conftest$ac_exeext'
35916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35917 (eval $ac_try) 2>&5
35918 ac_status=$?
35919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920 (exit $ac_status); }; }; then
35921 eval "$as_ac_var=yes"
35922else
35923 echo "$as_me: failed program was:" >&5
35924sed 's/^/| /' conftest.$ac_ext >&5
35925
35926eval "$as_ac_var=no"
35927fi
35928rm -f conftest.err conftest.$ac_objext \
35929 conftest$ac_exeext conftest.$ac_ext
35930fi
35931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35933if test `eval echo '${'$as_ac_var'}'` = yes; then
35934 cat >>confdefs.h <<_ACEOF
35935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35936_ACEOF
35937
35938fi
35939done
35940
35941if test "$ac_cv_func_round" = yes; then
35942 echo "$as_me:$LINENO: checking whether round is declared" >&5
35943echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35944if test "${ac_cv_have_decl_round+set}" = set; then
35945 echo $ECHO_N "(cached) $ECHO_C" >&6
35946else
35947 cat >conftest.$ac_ext <<_ACEOF
35948/* confdefs.h. */
35949_ACEOF
35950cat confdefs.h >>conftest.$ac_ext
35951cat >>conftest.$ac_ext <<_ACEOF
35952/* end confdefs.h. */
35953#include <math.h>
35954
35955int
35956main ()
35957{
35958#ifndef round
35959 char *p = (char *) round;
35960#endif
35961
35962 ;
35963 return 0;
35964}
35965_ACEOF
35966rm -f conftest.$ac_objext
35967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35968 (eval $ac_compile) 2>conftest.er1
35969 ac_status=$?
35970 grep -v '^ *+' conftest.er1 >conftest.err
35971 rm -f conftest.er1
35972 cat conftest.err >&5
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } &&
6a5c9b3f
RR
35975 { ac_try='test -z "$ac_cxx_werror_flag"
35976 || test ! -s conftest.err'
c2e9ada4
VZ
35977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978 (eval $ac_try) 2>&5
35979 ac_status=$?
35980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 (exit $ac_status); }; } &&
35982 { ac_try='test -s conftest.$ac_objext'
35983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35984 (eval $ac_try) 2>&5
35985 ac_status=$?
35986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987 (exit $ac_status); }; }; then
35988 ac_cv_have_decl_round=yes
35989else
35990 echo "$as_me: failed program was:" >&5
35991sed 's/^/| /' conftest.$ac_ext >&5
35992
35993ac_cv_have_decl_round=no
35994fi
35995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35996fi
35997echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35998echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35999if test $ac_cv_have_decl_round = yes; then
36000
36001cat >>confdefs.h <<_ACEOF
36002#define HAVE_DECL_ROUND 1
36003_ACEOF
36004
36005
36006else
36007 cat >>confdefs.h <<_ACEOF
36008#define HAVE_DECL_ROUND 0
36009_ACEOF
36010
36011
36012fi
36013
36014
36015fi
36016
36017
a848cd7e
SC
36018if test "$TOOLKIT" != "MSW"; then
36019
36020
a848cd7e
SC
36021
36022
36023
36024# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36025if test "${with_libiconv_prefix+set}" = set; then
36026 withval="$with_libiconv_prefix"
36027
36028 for dir in `echo "$withval" | tr : ' '`; do
36029 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36030 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36031 done
36032
36033fi;
36034
36035 echo "$as_me:$LINENO: checking for iconv" >&5
36036echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36037if test "${am_cv_func_iconv+set}" = set; then
36038 echo $ECHO_N "(cached) $ECHO_C" >&6
36039else
36040
36041 am_cv_func_iconv="no, consider installing GNU libiconv"
36042 am_cv_lib_iconv=no
36043 cat >conftest.$ac_ext <<_ACEOF
36044/* confdefs.h. */
36045_ACEOF
36046cat confdefs.h >>conftest.$ac_ext
36047cat >>conftest.$ac_ext <<_ACEOF
36048/* end confdefs.h. */
36049#include <stdlib.h>
36050#include <iconv.h>
36051int
36052main ()
36053{
36054iconv_t cd = iconv_open("","");
36055 iconv(cd,NULL,NULL,NULL,NULL);
36056 iconv_close(cd);
36057 ;
36058 return 0;
36059}
36060_ACEOF
36061rm -f conftest.$ac_objext conftest$ac_exeext
36062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36063 (eval $ac_link) 2>conftest.er1
a848cd7e 36064 ac_status=$?
ac1cb8d3
VS
36065 grep -v '^ *+' conftest.er1 >conftest.err
36066 rm -f conftest.er1
36067 cat conftest.err >&5
a848cd7e
SC
36068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069 (exit $ac_status); } &&
6a5c9b3f
RR
36070 { ac_try='test -z "$ac_cxx_werror_flag"
36071 || test ! -s conftest.err'
ac1cb8d3
VS
36072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36073 (eval $ac_try) 2>&5
36074 ac_status=$?
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); }; } &&
36077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079 (eval $ac_try) 2>&5
36080 ac_status=$?
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; }; then
36083 am_cv_func_iconv=yes
36084else
36085 echo "$as_me: failed program was:" >&5
36086sed 's/^/| /' conftest.$ac_ext >&5
36087
36088fi
ac1cb8d3
VS
36089rm -f conftest.err conftest.$ac_objext \
36090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36091 if test "$am_cv_func_iconv" != yes; then
36092 am_save_LIBS="$LIBS"
36093 LIBS="$LIBS -liconv"
36094 cat >conftest.$ac_ext <<_ACEOF
36095/* confdefs.h. */
36096_ACEOF
36097cat confdefs.h >>conftest.$ac_ext
36098cat >>conftest.$ac_ext <<_ACEOF
36099/* end confdefs.h. */
36100#include <stdlib.h>
36101#include <iconv.h>
36102int
36103main ()
36104{
36105iconv_t cd = iconv_open("","");
36106 iconv(cd,NULL,NULL,NULL,NULL);
36107 iconv_close(cd);
36108 ;
36109 return 0;
36110}
36111_ACEOF
36112rm -f conftest.$ac_objext conftest$ac_exeext
36113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36114 (eval $ac_link) 2>conftest.er1
a848cd7e 36115 ac_status=$?
ac1cb8d3
VS
36116 grep -v '^ *+' conftest.er1 >conftest.err
36117 rm -f conftest.er1
36118 cat conftest.err >&5
a848cd7e
SC
36119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120 (exit $ac_status); } &&
6a5c9b3f
RR
36121 { ac_try='test -z "$ac_cxx_werror_flag"
36122 || test ! -s conftest.err'
ac1cb8d3
VS
36123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36124 (eval $ac_try) 2>&5
36125 ac_status=$?
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); }; } &&
36128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; }; then
36134 am_cv_lib_iconv=yes
36135 am_cv_func_iconv=yes
36136else
36137 echo "$as_me: failed program was:" >&5
36138sed 's/^/| /' conftest.$ac_ext >&5
36139
36140fi
ac1cb8d3
VS
36141rm -f conftest.err conftest.$ac_objext \
36142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36143 LIBS="$am_save_LIBS"
36144 fi
36145
36146fi
36147echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36148echo "${ECHO_T}$am_cv_func_iconv" >&6
36149 if test "$am_cv_func_iconv" = yes; then
36150
36151cat >>confdefs.h <<\_ACEOF
36152#define HAVE_ICONV 1
36153_ACEOF
36154
36155 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36156echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36157if test "${wx_cv_func_iconv_const+set}" = set; then
36158 echo $ECHO_N "(cached) $ECHO_C" >&6
36159else
36160 cat >conftest.$ac_ext <<_ACEOF
36161/* confdefs.h. */
36162_ACEOF
36163cat confdefs.h >>conftest.$ac_ext
36164cat >>conftest.$ac_ext <<_ACEOF
36165/* end confdefs.h. */
36166
36167#include <stdlib.h>
36168#include <iconv.h>
36169extern
36170#ifdef __cplusplus
36171"C"
36172#endif
36173#if defined(__STDC__) || defined(__cplusplus)
36174size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36175#else
36176size_t iconv();
36177#endif
36178
36179int
36180main ()
36181{
36182
36183 ;
36184 return 0;
36185}
36186_ACEOF
36187rm -f conftest.$ac_objext
36188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36189 (eval $ac_compile) 2>conftest.er1
a848cd7e 36190 ac_status=$?
ac1cb8d3
VS
36191 grep -v '^ *+' conftest.er1 >conftest.err
36192 rm -f conftest.er1
36193 cat conftest.err >&5
a848cd7e
SC
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); } &&
6a5c9b3f
RR
36196 { ac_try='test -z "$ac_cxx_werror_flag"
36197 || test ! -s conftest.err'
ac1cb8d3
VS
36198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 (eval $ac_try) 2>&5
36200 ac_status=$?
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); }; } &&
36203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36205 (eval $ac_try) 2>&5
36206 ac_status=$?
36207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 (exit $ac_status); }; }; then
36209 wx_cv_func_iconv_const="no"
36210else
36211 echo "$as_me: failed program was:" >&5
36212sed 's/^/| /' conftest.$ac_ext >&5
36213
36214wx_cv_func_iconv_const="yes"
36215
36216fi
ac1cb8d3 36217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36218
36219fi
36220echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36221echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36222
36223 iconv_const=
36224 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36225 iconv_const="const"
36226 fi
36227
36228
36229cat >>confdefs.h <<_ACEOF
36230#define ICONV_CONST $iconv_const
36231_ACEOF
36232
36233 fi
36234 LIBICONV=
36235 if test "$am_cv_lib_iconv" = yes; then
36236 LIBICONV="-liconv"
36237 fi
36238
36239
36240LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36241
36242if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36243
36244for ac_func in sigaction
36245do
36246as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36247echo "$as_me:$LINENO: checking for $ac_func" >&5
36248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36249if eval "test \"\${$as_ac_var+set}\" = set"; then
36250 echo $ECHO_N "(cached) $ECHO_C" >&6
36251else
36252 cat >conftest.$ac_ext <<_ACEOF
36253/* confdefs.h. */
36254_ACEOF
36255cat confdefs.h >>conftest.$ac_ext
36256cat >>conftest.$ac_ext <<_ACEOF
36257/* end confdefs.h. */
ac1cb8d3
VS
36258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36260#define $ac_func innocuous_$ac_func
36261
a848cd7e
SC
36262/* System header to define __stub macros and hopefully few prototypes,
36263 which can conflict with char $ac_func (); below.
36264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36265 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36266
a848cd7e
SC
36267#ifdef __STDC__
36268# include <limits.h>
36269#else
36270# include <assert.h>
36271#endif
ac1cb8d3
VS
36272
36273#undef $ac_func
36274
a848cd7e
SC
36275/* Override any gcc2 internal prototype to avoid an error. */
36276#ifdef __cplusplus
36277extern "C"
36278{
36279#endif
36280/* We use char because int might match the return type of a gcc2
36281 builtin and then its argument prototype would still apply. */
36282char $ac_func ();
36283/* The GNU C library defines this for functions which it implements
36284 to always fail with ENOSYS. Some functions are actually named
36285 something starting with __ and the normal name is an alias. */
36286#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36287choke me
36288#else
36289char (*f) () = $ac_func;
36290#endif
36291#ifdef __cplusplus
36292}
36293#endif
36294
36295int
36296main ()
36297{
36298return f != $ac_func;
36299 ;
36300 return 0;
36301}
36302_ACEOF
36303rm -f conftest.$ac_objext conftest$ac_exeext
36304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36305 (eval $ac_link) 2>conftest.er1
a848cd7e 36306 ac_status=$?
ac1cb8d3
VS
36307 grep -v '^ *+' conftest.er1 >conftest.err
36308 rm -f conftest.er1
36309 cat conftest.err >&5
a848cd7e
SC
36310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311 (exit $ac_status); } &&
6a5c9b3f
RR
36312 { ac_try='test -z "$ac_cxx_werror_flag"
36313 || test ! -s conftest.err'
ac1cb8d3
VS
36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315 (eval $ac_try) 2>&5
36316 ac_status=$?
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; } &&
36319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36321 (eval $ac_try) 2>&5
36322 ac_status=$?
36323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324 (exit $ac_status); }; }; then
36325 eval "$as_ac_var=yes"
36326else
36327 echo "$as_me: failed program was:" >&5
36328sed 's/^/| /' conftest.$ac_ext >&5
36329
36330eval "$as_ac_var=no"
36331fi
ac1cb8d3
VS
36332rm -f conftest.err conftest.$ac_objext \
36333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36334fi
36335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36336echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36337if test `eval echo '${'$as_ac_var'}'` = yes; then
36338 cat >>confdefs.h <<_ACEOF
36339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36340_ACEOF
36341
36342fi
36343done
36344
36345
36346 if test "$ac_cv_func_sigaction" = "no"; then
36347 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36348echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36349 wxUSE_ON_FATAL_EXCEPTION=no
36350 fi
36351
36352 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36353 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36354echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36355if test "${wx_cv_type_sa_handler+set}" = set; then
36356 echo $ECHO_N "(cached) $ECHO_C" >&6
36357else
36358
36359 cat >conftest.$ac_ext <<_ACEOF
36360/* confdefs.h. */
36361_ACEOF
36362cat confdefs.h >>conftest.$ac_ext
36363cat >>conftest.$ac_ext <<_ACEOF
36364/* end confdefs.h. */
36365#include <signal.h>
36366int
36367main ()
36368{
36369
36370 extern void testSigHandler(int);
36371
36372 struct sigaction sa;
36373 sa.sa_handler = testSigHandler;
36374
36375 ;
36376 return 0;
36377}
36378_ACEOF
36379rm -f conftest.$ac_objext
36380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36381 (eval $ac_compile) 2>conftest.er1
a848cd7e 36382 ac_status=$?
ac1cb8d3
VS
36383 grep -v '^ *+' conftest.er1 >conftest.err
36384 rm -f conftest.er1
36385 cat conftest.err >&5
a848cd7e
SC
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); } &&
6a5c9b3f
RR
36388 { ac_try='test -z "$ac_cxx_werror_flag"
36389 || test ! -s conftest.err'
ac1cb8d3
VS
36390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36391 (eval $ac_try) 2>&5
36392 ac_status=$?
36393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36394 (exit $ac_status); }; } &&
36395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36397 (eval $ac_try) 2>&5
36398 ac_status=$?
36399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; }; then
36401
36402 wx_cv_type_sa_handler=int
36403
36404else
36405 echo "$as_me: failed program was:" >&5
36406sed 's/^/| /' conftest.$ac_ext >&5
36407
36408
36409 wx_cv_type_sa_handler=void
36410
36411fi
ac1cb8d3 36412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36413
36414fi
36415echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36416echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36417
a848cd7e
SC
36418 cat >>confdefs.h <<_ACEOF
36419#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36420_ACEOF
36421
36422 fi
36423fi
36424
eaff0f0d 36425if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36426 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36427echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36428if test "${wx_cv_func_backtrace+set}" = set; then
36429 echo $ECHO_N "(cached) $ECHO_C" >&6
36430else
36431
36432 cat >conftest.$ac_ext <<_ACEOF
36433/* confdefs.h. */
36434_ACEOF
36435cat confdefs.h >>conftest.$ac_ext
36436cat >>conftest.$ac_ext <<_ACEOF
36437/* end confdefs.h. */
36438#include <execinfo.h>
36439int
36440main ()
36441{
36442
36443 void *trace[1];
36444 char **messages;
36445
36446 backtrace(trace, 1);
36447 messages = backtrace_symbols(trace, 1);
36448
36449 ;
36450 return 0;
36451}
36452_ACEOF
36453rm -f conftest.$ac_objext
36454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36455 (eval $ac_compile) 2>conftest.er1
36456 ac_status=$?
36457 grep -v '^ *+' conftest.er1 >conftest.err
36458 rm -f conftest.er1
36459 cat conftest.err >&5
36460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461 (exit $ac_status); } &&
6a5c9b3f
RR
36462 { ac_try='test -z "$ac_cxx_werror_flag"
36463 || test ! -s conftest.err'
eaff0f0d
VZ
36464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465 (eval $ac_try) 2>&5
36466 ac_status=$?
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); }; } &&
36469 { ac_try='test -s conftest.$ac_objext'
36470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471 (eval $ac_try) 2>&5
36472 ac_status=$?
36473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474 (exit $ac_status); }; }; then
36475 wx_cv_func_backtrace=yes
36476else
36477 echo "$as_me: failed program was:" >&5
36478sed 's/^/| /' conftest.$ac_ext >&5
36479
36480wx_cv_func_backtrace=no
36481
36482fi
36483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36484
36485
36486fi
36487echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36488echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36489
36490
36491 if test "$wx_cv_func_backtrace" = "no"; then
36492 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36493echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36494 wxUSE_STACKWALKER=no
36495 else
36496 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36497echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36498if test "${wx_cv_func_cxa_demangle+set}" = set; then
36499 echo $ECHO_N "(cached) $ECHO_C" >&6
36500else
36501
36502 cat >conftest.$ac_ext <<_ACEOF
36503/* confdefs.h. */
36504_ACEOF
36505cat confdefs.h >>conftest.$ac_ext
36506cat >>conftest.$ac_ext <<_ACEOF
36507/* end confdefs.h. */
36508#include <cxxabi.h>
36509int
36510main ()
36511{
36512
36513 int rc;
36514 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36515
36516 ;
36517 return 0;
36518}
36519_ACEOF
dfe0c803
JS
36520rm -f conftest.$ac_objext conftest$ac_exeext
36521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36522 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36523 ac_status=$?
36524 grep -v '^ *+' conftest.er1 >conftest.err
36525 rm -f conftest.er1
36526 cat conftest.err >&5
36527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528 (exit $ac_status); } &&
6a5c9b3f
RR
36529 { ac_try='test -z "$ac_cxx_werror_flag"
36530 || test ! -s conftest.err'
eaff0f0d
VZ
36531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36532 (eval $ac_try) 2>&5
36533 ac_status=$?
36534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36535 (exit $ac_status); }; } &&
dfe0c803 36536 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36538 (eval $ac_try) 2>&5
36539 ac_status=$?
36540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); }; }; then
36542 wx_cv_func_cxa_demangle=yes
36543else
36544 echo "$as_me: failed program was:" >&5
36545sed 's/^/| /' conftest.$ac_ext >&5
36546
36547wx_cv_func_cxa_demangle=no
36548
36549fi
dfe0c803
JS
36550rm -f conftest.err conftest.$ac_objext \
36551 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36552
36553
36554fi
36555echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36556echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36557
36558 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36559 cat >>confdefs.h <<\_ACEOF
36560#define HAVE_CXA_DEMANGLE 1
36561_ACEOF
36562
36563 fi
36564 fi
eaff0f0d
VZ
36565fi
36566
898beab1
DE
36567if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36568 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36569echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36570 wxUSE_STACKWALKER=no
36571fi
36572
36573
a848cd7e
SC
36574
36575
36576for ac_func in mkstemp mktemp
36577do
36578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36579echo "$as_me:$LINENO: checking for $ac_func" >&5
36580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36581if eval "test \"\${$as_ac_var+set}\" = set"; then
36582 echo $ECHO_N "(cached) $ECHO_C" >&6
36583else
36584 cat >conftest.$ac_ext <<_ACEOF
36585/* confdefs.h. */
36586_ACEOF
36587cat confdefs.h >>conftest.$ac_ext
36588cat >>conftest.$ac_ext <<_ACEOF
36589/* end confdefs.h. */
ac1cb8d3
VS
36590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36592#define $ac_func innocuous_$ac_func
36593
a848cd7e
SC
36594/* System header to define __stub macros and hopefully few prototypes,
36595 which can conflict with char $ac_func (); below.
36596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36597 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36598
a848cd7e
SC
36599#ifdef __STDC__
36600# include <limits.h>
36601#else
36602# include <assert.h>
36603#endif
ac1cb8d3
VS
36604
36605#undef $ac_func
36606
a848cd7e
SC
36607/* Override any gcc2 internal prototype to avoid an error. */
36608#ifdef __cplusplus
36609extern "C"
36610{
36611#endif
36612/* We use char because int might match the return type of a gcc2
36613 builtin and then its argument prototype would still apply. */
36614char $ac_func ();
36615/* The GNU C library defines this for functions which it implements
36616 to always fail with ENOSYS. Some functions are actually named
36617 something starting with __ and the normal name is an alias. */
36618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36619choke me
36620#else
36621char (*f) () = $ac_func;
36622#endif
36623#ifdef __cplusplus
36624}
36625#endif
36626
36627int
36628main ()
36629{
36630return f != $ac_func;
36631 ;
36632 return 0;
36633}
36634_ACEOF
36635rm -f conftest.$ac_objext conftest$ac_exeext
36636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36637 (eval $ac_link) 2>conftest.er1
a848cd7e 36638 ac_status=$?
ac1cb8d3
VS
36639 grep -v '^ *+' conftest.er1 >conftest.err
36640 rm -f conftest.er1
36641 cat conftest.err >&5
a848cd7e
SC
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); } &&
6a5c9b3f
RR
36644 { ac_try='test -z "$ac_cxx_werror_flag"
36645 || test ! -s conftest.err'
ac1cb8d3
VS
36646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36647 (eval $ac_try) 2>&5
36648 ac_status=$?
36649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 (exit $ac_status); }; } &&
36651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36653 (eval $ac_try) 2>&5
36654 ac_status=$?
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); }; }; then
36657 eval "$as_ac_var=yes"
36658else
36659 echo "$as_me: failed program was:" >&5
36660sed 's/^/| /' conftest.$ac_ext >&5
36661
36662eval "$as_ac_var=no"
36663fi
ac1cb8d3
VS
36664rm -f conftest.err conftest.$ac_objext \
36665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36666fi
36667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36669if test `eval echo '${'$as_ac_var'}'` = yes; then
36670 cat >>confdefs.h <<_ACEOF
36671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36672_ACEOF
36673 break
36674fi
36675done
36676
36677
36678echo "$as_me:$LINENO: checking for statfs" >&5
36679echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36680if test "${wx_cv_func_statfs+set}" = set; then
36681 echo $ECHO_N "(cached) $ECHO_C" >&6
36682else
36683 cat >conftest.$ac_ext <<_ACEOF
36684/* confdefs.h. */
36685_ACEOF
36686cat confdefs.h >>conftest.$ac_ext
36687cat >>conftest.$ac_ext <<_ACEOF
36688/* end confdefs.h. */
36689
36690 #if defined(__BSD__)
84ae7ca4
VZ
36691 #include <sys/param.h>
36692 #include <sys/mount.h>
a848cd7e 36693 #else
84ae7ca4 36694 #include <sys/vfs.h>
a848cd7e
SC
36695 #endif
36696
36697int
36698main ()
36699{
36700
36701 long l;
36702 struct statfs fs;
36703 statfs("/", &fs);
36704 l = fs.f_bsize;
36705 l += fs.f_blocks;
36706 l += fs.f_bavail;
36707
36708 ;
36709 return 0;
36710}
36711_ACEOF
36712rm -f conftest.$ac_objext
36713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36714 (eval $ac_compile) 2>conftest.er1
a848cd7e 36715 ac_status=$?
ac1cb8d3
VS
36716 grep -v '^ *+' conftest.er1 >conftest.err
36717 rm -f conftest.er1
36718 cat conftest.err >&5
a848cd7e
SC
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); } &&
6a5c9b3f
RR
36721 { ac_try='test -z "$ac_cxx_werror_flag"
36722 || test ! -s conftest.err'
ac1cb8d3
VS
36723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724 (eval $ac_try) 2>&5
36725 ac_status=$?
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); }; } &&
36728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36730 (eval $ac_try) 2>&5
36731 ac_status=$?
36732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733 (exit $ac_status); }; }; then
84ae7ca4 36734 wx_cv_func_statfs=yes
a848cd7e
SC
36735else
36736 echo "$as_me: failed program was:" >&5
36737sed 's/^/| /' conftest.$ac_ext >&5
36738
84ae7ca4 36739wx_cv_func_statfs=no
a848cd7e
SC
36740
36741fi
ac1cb8d3 36742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36743
36744fi
36745echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36746echo "${ECHO_T}$wx_cv_func_statfs" >&6
36747
36748if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36749 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36750echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36751if test "${wx_cv_func_statfs_decl+set}" = set; then
36752 echo $ECHO_N "(cached) $ECHO_C" >&6
36753else
0683aca6
VZ
36754 cat >conftest.$ac_ext <<_ACEOF
36755/* confdefs.h. */
36756_ACEOF
36757cat confdefs.h >>conftest.$ac_ext
36758cat >>conftest.$ac_ext <<_ACEOF
36759/* end confdefs.h. */
84ae7ca4 36760
0683aca6
VZ
36761 #if defined(__BSD__)
36762 #include <sys/param.h>
36763 #include <sys/mount.h>
36764 #else
36765 #include <sys/vfs.h>
36766 #endif
36767
36768int
36769main ()
36770{
36771
36772 struct statfs fs;
36773 statfs("", &fs);
36774
36775 ;
36776 return 0;
36777}
36778_ACEOF
36779rm -f conftest.$ac_objext
36780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36781 (eval $ac_compile) 2>conftest.er1
36782 ac_status=$?
36783 grep -v '^ *+' conftest.er1 >conftest.err
36784 rm -f conftest.er1
36785 cat conftest.err >&5
36786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36787 (exit $ac_status); } &&
6a5c9b3f
RR
36788 { ac_try='test -z "$ac_cxx_werror_flag"
36789 || test ! -s conftest.err'
0683aca6
VZ
36790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36791 (eval $ac_try) 2>&5
36792 ac_status=$?
36793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794 (exit $ac_status); }; } &&
36795 { ac_try='test -s conftest.$ac_objext'
36796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36797 (eval $ac_try) 2>&5
36798 ac_status=$?
36799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800 (exit $ac_status); }; }; then
36801 wx_cv_func_statfs_decl=yes
36802else
36803 echo "$as_me: failed program was:" >&5
36804sed 's/^/| /' conftest.$ac_ext >&5
36805
36806wx_cv_func_statfs_decl=no
36807
36808fi
36809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36810
36811fi
36812echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36813echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36814
36815 if test "$wx_cv_func_statfs_decl" = "yes"; then
36816 cat >>confdefs.h <<\_ACEOF
36817#define HAVE_STATFS_DECL 1
36818_ACEOF
36819
36820 fi
36821
a848cd7e
SC
36822 wx_cv_type_statvfs_t="struct statfs"
36823 cat >>confdefs.h <<\_ACEOF
36824#define HAVE_STATFS 1
36825_ACEOF
36826
36827else
36828 echo "$as_me:$LINENO: checking for statvfs" >&5
36829echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36830if test "${wx_cv_func_statvfs+set}" = set; then
36831 echo $ECHO_N "(cached) $ECHO_C" >&6
36832else
36833 cat >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
36840 #include <stddef.h>
36841 #include <sys/statvfs.h>
36842
36843int
36844main ()
36845{
36846
36847 statvfs("/", NULL);
36848
36849 ;
36850 return 0;
36851}
36852_ACEOF
36853rm -f conftest.$ac_objext
36854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36855 (eval $ac_compile) 2>conftest.er1
a848cd7e 36856 ac_status=$?
ac1cb8d3
VS
36857 grep -v '^ *+' conftest.er1 >conftest.err
36858 rm -f conftest.er1
36859 cat conftest.err >&5
a848cd7e
SC
36860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36861 (exit $ac_status); } &&
6a5c9b3f
RR
36862 { ac_try='test -z "$ac_cxx_werror_flag"
36863 || test ! -s conftest.err'
ac1cb8d3
VS
36864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36865 (eval $ac_try) 2>&5
36866 ac_status=$?
36867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868 (exit $ac_status); }; } &&
36869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871 (eval $ac_try) 2>&5
36872 ac_status=$?
36873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 (exit $ac_status); }; }; then
36875 wx_cv_func_statvfs=yes
36876else
36877 echo "$as_me: failed program was:" >&5
36878sed 's/^/| /' conftest.$ac_ext >&5
36879
36880wx_cv_func_statvfs=no
36881
36882fi
ac1cb8d3 36883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36884
36885fi
36886echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36887echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36888
36889 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36890 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36891echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36892if test "${wx_cv_type_statvfs_t+set}" = set; then
36893 echo $ECHO_N "(cached) $ECHO_C" >&6
36894else
36895 cat >conftest.$ac_ext <<_ACEOF
36896/* confdefs.h. */
36897_ACEOF
36898cat confdefs.h >>conftest.$ac_ext
36899cat >>conftest.$ac_ext <<_ACEOF
36900/* end confdefs.h. */
36901
36902 #include <sys/statvfs.h>
36903
36904int
36905main ()
36906{
36907
36908 long l;
36909 statvfs_t fs;
36910 statvfs("/", &fs);
36911 l = fs.f_bsize;
36912 l += fs.f_blocks;
36913 l += fs.f_bavail;
36914
36915 ;
36916 return 0;
36917}
36918_ACEOF
36919rm -f conftest.$ac_objext
36920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36921 (eval $ac_compile) 2>conftest.er1
a848cd7e 36922 ac_status=$?
ac1cb8d3
VS
36923 grep -v '^ *+' conftest.er1 >conftest.err
36924 rm -f conftest.er1
36925 cat conftest.err >&5
a848cd7e
SC
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 (exit $ac_status); } &&
6a5c9b3f
RR
36928 { ac_try='test -z "$ac_cxx_werror_flag"
36929 || test ! -s conftest.err'
ac1cb8d3
VS
36930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931 (eval $ac_try) 2>&5
36932 ac_status=$?
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); }; } &&
36935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36937 (eval $ac_try) 2>&5
36938 ac_status=$?
36939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940 (exit $ac_status); }; }; then
36941 wx_cv_type_statvfs_t=statvfs_t
36942else
36943 echo "$as_me: failed program was:" >&5
36944sed 's/^/| /' conftest.$ac_ext >&5
36945
36946
36947 cat >conftest.$ac_ext <<_ACEOF
36948/* confdefs.h. */
36949_ACEOF
36950cat confdefs.h >>conftest.$ac_ext
36951cat >>conftest.$ac_ext <<_ACEOF
36952/* end confdefs.h. */
36953
36954 #include <sys/statvfs.h>
36955
36956int
36957main ()
36958{
36959
36960 long l;
36961 struct statvfs fs;
36962 statvfs("/", &fs);
36963 l = fs.f_bsize;
36964 l += fs.f_blocks;
36965 l += fs.f_bavail;
36966
36967 ;
36968 return 0;
36969}
36970_ACEOF
36971rm -f conftest.$ac_objext
36972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36973 (eval $ac_compile) 2>conftest.er1
a848cd7e 36974 ac_status=$?
ac1cb8d3
VS
36975 grep -v '^ *+' conftest.er1 >conftest.err
36976 rm -f conftest.er1
36977 cat conftest.err >&5
a848cd7e
SC
36978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979 (exit $ac_status); } &&
6a5c9b3f
RR
36980 { ac_try='test -z "$ac_cxx_werror_flag"
36981 || test ! -s conftest.err'
ac1cb8d3
VS
36982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36983 (eval $ac_try) 2>&5
36984 ac_status=$?
36985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36986 (exit $ac_status); }; } &&
36987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36989 (eval $ac_try) 2>&5
36990 ac_status=$?
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); }; }; then
36993 wx_cv_type_statvfs_t="struct statvfs"
36994else
36995 echo "$as_me: failed program was:" >&5
36996sed 's/^/| /' conftest.$ac_ext >&5
36997
36998wx_cv_type_statvfs_t="unknown"
36999
37000fi
ac1cb8d3 37001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37002
37003
37004fi
ac1cb8d3 37005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37006
37007fi
37008echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37009echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37010
a848cd7e
SC
37011 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37012 cat >>confdefs.h <<\_ACEOF
37013#define HAVE_STATVFS 1
37014_ACEOF
37015
37016 fi
37017 else
37018 wx_cv_type_statvfs_t="unknown"
37019 fi
37020fi
37021
37022if test "$wx_cv_type_statvfs_t" != "unknown"; then
37023 cat >>confdefs.h <<_ACEOF
37024#define WX_STATFS_T $wx_cv_type_statvfs_t
37025_ACEOF
37026
37027else
37028 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37029echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37030fi
37031
37032if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37033
37034
37035for ac_func in fcntl flock
37036do
37037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37038echo "$as_me:$LINENO: checking for $ac_func" >&5
37039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37040if eval "test \"\${$as_ac_var+set}\" = set"; then
37041 echo $ECHO_N "(cached) $ECHO_C" >&6
37042else
37043 cat >conftest.$ac_ext <<_ACEOF
37044/* confdefs.h. */
37045_ACEOF
37046cat confdefs.h >>conftest.$ac_ext
37047cat >>conftest.$ac_ext <<_ACEOF
37048/* end confdefs.h. */
ac1cb8d3
VS
37049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37051#define $ac_func innocuous_$ac_func
37052
a848cd7e
SC
37053/* System header to define __stub macros and hopefully few prototypes,
37054 which can conflict with char $ac_func (); below.
37055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37056 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37057
a848cd7e
SC
37058#ifdef __STDC__
37059# include <limits.h>
37060#else
37061# include <assert.h>
37062#endif
ac1cb8d3
VS
37063
37064#undef $ac_func
37065
a848cd7e
SC
37066/* Override any gcc2 internal prototype to avoid an error. */
37067#ifdef __cplusplus
37068extern "C"
37069{
37070#endif
37071/* We use char because int might match the return type of a gcc2
37072 builtin and then its argument prototype would still apply. */
37073char $ac_func ();
37074/* The GNU C library defines this for functions which it implements
37075 to always fail with ENOSYS. Some functions are actually named
37076 something starting with __ and the normal name is an alias. */
37077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37078choke me
37079#else
37080char (*f) () = $ac_func;
37081#endif
37082#ifdef __cplusplus
37083}
37084#endif
37085
37086int
37087main ()
37088{
37089return f != $ac_func;
37090 ;
37091 return 0;
37092}
37093_ACEOF
37094rm -f conftest.$ac_objext conftest$ac_exeext
37095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37096 (eval $ac_link) 2>conftest.er1
a848cd7e 37097 ac_status=$?
ac1cb8d3
VS
37098 grep -v '^ *+' conftest.er1 >conftest.err
37099 rm -f conftest.er1
37100 cat conftest.err >&5
a848cd7e
SC
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); } &&
6a5c9b3f
RR
37103 { ac_try='test -z "$ac_cxx_werror_flag"
37104 || test ! -s conftest.err'
ac1cb8d3
VS
37105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37106 (eval $ac_try) 2>&5
37107 ac_status=$?
37108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109 (exit $ac_status); }; } &&
37110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112 (eval $ac_try) 2>&5
37113 ac_status=$?
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); }; }; then
37116 eval "$as_ac_var=yes"
37117else
37118 echo "$as_me: failed program was:" >&5
37119sed 's/^/| /' conftest.$ac_ext >&5
37120
37121eval "$as_ac_var=no"
37122fi
ac1cb8d3
VS
37123rm -f conftest.err conftest.$ac_objext \
37124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37125fi
37126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37128if test `eval echo '${'$as_ac_var'}'` = yes; then
37129 cat >>confdefs.h <<_ACEOF
37130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37131_ACEOF
37132 break
37133fi
37134done
37135
37136
37137 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37138 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37139echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37140 wxUSE_SNGLINST_CHECKER=no
37141 fi
37142fi
37143
37144
37145for ac_func in timegm
37146do
37147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37148echo "$as_me:$LINENO: checking for $ac_func" >&5
37149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37150if eval "test \"\${$as_ac_var+set}\" = set"; then
37151 echo $ECHO_N "(cached) $ECHO_C" >&6
37152else
37153 cat >conftest.$ac_ext <<_ACEOF
37154/* confdefs.h. */
37155_ACEOF
37156cat confdefs.h >>conftest.$ac_ext
37157cat >>conftest.$ac_ext <<_ACEOF
37158/* end confdefs.h. */
ac1cb8d3
VS
37159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37161#define $ac_func innocuous_$ac_func
37162
a848cd7e
SC
37163/* System header to define __stub macros and hopefully few prototypes,
37164 which can conflict with char $ac_func (); below.
37165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37166 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37167
a848cd7e
SC
37168#ifdef __STDC__
37169# include <limits.h>
37170#else
37171# include <assert.h>
37172#endif
ac1cb8d3
VS
37173
37174#undef $ac_func
37175
a848cd7e
SC
37176/* Override any gcc2 internal prototype to avoid an error. */
37177#ifdef __cplusplus
37178extern "C"
37179{
37180#endif
37181/* We use char because int might match the return type of a gcc2
37182 builtin and then its argument prototype would still apply. */
37183char $ac_func ();
37184/* The GNU C library defines this for functions which it implements
37185 to always fail with ENOSYS. Some functions are actually named
37186 something starting with __ and the normal name is an alias. */
37187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37188choke me
37189#else
37190char (*f) () = $ac_func;
37191#endif
37192#ifdef __cplusplus
37193}
37194#endif
37195
37196int
37197main ()
37198{
37199return f != $ac_func;
37200 ;
37201 return 0;
37202}
37203_ACEOF
37204rm -f conftest.$ac_objext conftest$ac_exeext
37205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37206 (eval $ac_link) 2>conftest.er1
a848cd7e 37207 ac_status=$?
ac1cb8d3
VS
37208 grep -v '^ *+' conftest.er1 >conftest.err
37209 rm -f conftest.er1
37210 cat conftest.err >&5
a848cd7e
SC
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); } &&
6a5c9b3f
RR
37213 { ac_try='test -z "$ac_cxx_werror_flag"
37214 || test ! -s conftest.err'
ac1cb8d3
VS
37215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216 (eval $ac_try) 2>&5
37217 ac_status=$?
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); }; } &&
37220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37222 (eval $ac_try) 2>&5
37223 ac_status=$?
37224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225 (exit $ac_status); }; }; then
37226 eval "$as_ac_var=yes"
37227else
37228 echo "$as_me: failed program was:" >&5
37229sed 's/^/| /' conftest.$ac_ext >&5
37230
37231eval "$as_ac_var=no"
37232fi
ac1cb8d3
VS
37233rm -f conftest.err conftest.$ac_objext \
37234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37235fi
37236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37237echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37238if test `eval echo '${'$as_ac_var'}'` = yes; then
37239 cat >>confdefs.h <<_ACEOF
37240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37241_ACEOF
37242
37243fi
37244done
37245
37246
37247
37248
37249for ac_func in putenv setenv
37250do
37251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37252echo "$as_me:$LINENO: checking for $ac_func" >&5
37253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37254if eval "test \"\${$as_ac_var+set}\" = set"; then
37255 echo $ECHO_N "(cached) $ECHO_C" >&6
37256else
37257 cat >conftest.$ac_ext <<_ACEOF
37258/* confdefs.h. */
37259_ACEOF
37260cat confdefs.h >>conftest.$ac_ext
37261cat >>conftest.$ac_ext <<_ACEOF
37262/* end confdefs.h. */
ac1cb8d3
VS
37263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37265#define $ac_func innocuous_$ac_func
37266
a848cd7e
SC
37267/* System header to define __stub macros and hopefully few prototypes,
37268 which can conflict with char $ac_func (); below.
37269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37270 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37271
a848cd7e
SC
37272#ifdef __STDC__
37273# include <limits.h>
37274#else
37275# include <assert.h>
37276#endif
ac1cb8d3
VS
37277
37278#undef $ac_func
37279
a848cd7e
SC
37280/* Override any gcc2 internal prototype to avoid an error. */
37281#ifdef __cplusplus
37282extern "C"
37283{
37284#endif
37285/* We use char because int might match the return type of a gcc2
37286 builtin and then its argument prototype would still apply. */
37287char $ac_func ();
37288/* The GNU C library defines this for functions which it implements
37289 to always fail with ENOSYS. Some functions are actually named
37290 something starting with __ and the normal name is an alias. */
37291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37292choke me
37293#else
37294char (*f) () = $ac_func;
37295#endif
37296#ifdef __cplusplus
37297}
37298#endif
37299
37300int
37301main ()
37302{
37303return f != $ac_func;
37304 ;
37305 return 0;
37306}
37307_ACEOF
37308rm -f conftest.$ac_objext conftest$ac_exeext
37309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37310 (eval $ac_link) 2>conftest.er1
a848cd7e 37311 ac_status=$?
ac1cb8d3
VS
37312 grep -v '^ *+' conftest.er1 >conftest.err
37313 rm -f conftest.er1
37314 cat conftest.err >&5
a848cd7e
SC
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); } &&
6a5c9b3f
RR
37317 { ac_try='test -z "$ac_cxx_werror_flag"
37318 || test ! -s conftest.err'
ac1cb8d3
VS
37319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37320 (eval $ac_try) 2>&5
37321 ac_status=$?
37322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); }; } &&
37324 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37326 (eval $ac_try) 2>&5
37327 ac_status=$?
37328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329 (exit $ac_status); }; }; then
37330 eval "$as_ac_var=yes"
37331else
37332 echo "$as_me: failed program was:" >&5
37333sed 's/^/| /' conftest.$ac_ext >&5
37334
37335eval "$as_ac_var=no"
37336fi
ac1cb8d3
VS
37337rm -f conftest.err conftest.$ac_objext \
37338 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37339fi
37340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37342if test `eval echo '${'$as_ac_var'}'` = yes; then
37343 cat >>confdefs.h <<_ACEOF
37344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37345_ACEOF
37346 break
37347fi
37348done
37349
37350
37351HAVE_SOME_SLEEP_FUNC=0
37352if test "$USE_BEOS" = 1; then
37353 cat >>confdefs.h <<\_ACEOF
37354#define HAVE_SLEEP 1
37355_ACEOF
37356
37357 HAVE_SOME_SLEEP_FUNC=1
37358fi
37359
37360if test "$USE_DARWIN" = 1; then
37361 cat >>confdefs.h <<\_ACEOF
37362#define HAVE_USLEEP 1
37363_ACEOF
37364
37365 HAVE_SOME_SLEEP_FUNC=1
37366fi
37367
37368if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37369 POSIX4_LINK=
37370
37371for ac_func in nanosleep
37372do
37373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37374echo "$as_me:$LINENO: checking for $ac_func" >&5
37375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37376if eval "test \"\${$as_ac_var+set}\" = set"; then
37377 echo $ECHO_N "(cached) $ECHO_C" >&6
37378else
37379 cat >conftest.$ac_ext <<_ACEOF
37380/* confdefs.h. */
37381_ACEOF
37382cat confdefs.h >>conftest.$ac_ext
37383cat >>conftest.$ac_ext <<_ACEOF
37384/* end confdefs.h. */
ac1cb8d3
VS
37385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37387#define $ac_func innocuous_$ac_func
37388
a848cd7e
SC
37389/* System header to define __stub macros and hopefully few prototypes,
37390 which can conflict with char $ac_func (); below.
37391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37392 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37393
a848cd7e
SC
37394#ifdef __STDC__
37395# include <limits.h>
37396#else
37397# include <assert.h>
37398#endif
ac1cb8d3
VS
37399
37400#undef $ac_func
37401
a848cd7e
SC
37402/* Override any gcc2 internal prototype to avoid an error. */
37403#ifdef __cplusplus
37404extern "C"
37405{
37406#endif
37407/* We use char because int might match the return type of a gcc2
37408 builtin and then its argument prototype would still apply. */
37409char $ac_func ();
37410/* The GNU C library defines this for functions which it implements
37411 to always fail with ENOSYS. Some functions are actually named
37412 something starting with __ and the normal name is an alias. */
37413#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37414choke me
37415#else
37416char (*f) () = $ac_func;
37417#endif
37418#ifdef __cplusplus
37419}
37420#endif
37421
37422int
37423main ()
37424{
37425return f != $ac_func;
37426 ;
37427 return 0;
37428}
37429_ACEOF
37430rm -f conftest.$ac_objext conftest$ac_exeext
37431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37432 (eval $ac_link) 2>conftest.er1
a848cd7e 37433 ac_status=$?
ac1cb8d3
VS
37434 grep -v '^ *+' conftest.er1 >conftest.err
37435 rm -f conftest.er1
37436 cat conftest.err >&5
a848cd7e
SC
37437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); } &&
6a5c9b3f
RR
37439 { ac_try='test -z "$ac_cxx_werror_flag"
37440 || test ! -s conftest.err'
ac1cb8d3
VS
37441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442 (eval $ac_try) 2>&5
37443 ac_status=$?
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); }; } &&
37446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37449 ac_status=$?
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; }; then
37452 eval "$as_ac_var=yes"
37453else
37454 echo "$as_me: failed program was:" >&5
37455sed 's/^/| /' conftest.$ac_ext >&5
37456
37457eval "$as_ac_var=no"
37458fi
ac1cb8d3
VS
37459rm -f conftest.err conftest.$ac_objext \
37460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37461fi
37462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37464if test `eval echo '${'$as_ac_var'}'` = yes; then
37465 cat >>confdefs.h <<_ACEOF
37466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37467_ACEOF
37468 cat >>confdefs.h <<\_ACEOF
37469#define HAVE_NANOSLEEP 1
37470_ACEOF
37471
37472else
37473
37474 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37475echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37476if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37477 echo $ECHO_N "(cached) $ECHO_C" >&6
37478else
37479 ac_check_lib_save_LIBS=$LIBS
37480LIBS="-lposix4 $LIBS"
37481cat >conftest.$ac_ext <<_ACEOF
37482/* confdefs.h. */
37483_ACEOF
37484cat confdefs.h >>conftest.$ac_ext
37485cat >>conftest.$ac_ext <<_ACEOF
37486/* end confdefs.h. */
37487
37488/* Override any gcc2 internal prototype to avoid an error. */
37489#ifdef __cplusplus
37490extern "C"
37491#endif
37492/* We use char because int might match the return type of a gcc2
37493 builtin and then its argument prototype would still apply. */
37494char nanosleep ();
37495int
37496main ()
37497{
37498nanosleep ();
37499 ;
37500 return 0;
37501}
37502_ACEOF
37503rm -f conftest.$ac_objext conftest$ac_exeext
37504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37505 (eval $ac_link) 2>conftest.er1
a848cd7e 37506 ac_status=$?
ac1cb8d3
VS
37507 grep -v '^ *+' conftest.er1 >conftest.err
37508 rm -f conftest.er1
37509 cat conftest.err >&5
a848cd7e
SC
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); } &&
6a5c9b3f
RR
37512 { ac_try='test -z "$ac_cxx_werror_flag"
37513 || test ! -s conftest.err'
ac1cb8d3
VS
37514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37515 (eval $ac_try) 2>&5
37516 ac_status=$?
37517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518 (exit $ac_status); }; } &&
37519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37521 (eval $ac_try) 2>&5
37522 ac_status=$?
37523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524 (exit $ac_status); }; }; then
37525 ac_cv_lib_posix4_nanosleep=yes
37526else
37527 echo "$as_me: failed program was:" >&5
37528sed 's/^/| /' conftest.$ac_ext >&5
37529
37530ac_cv_lib_posix4_nanosleep=no
37531fi
ac1cb8d3
VS
37532rm -f conftest.err conftest.$ac_objext \
37533 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37534LIBS=$ac_check_lib_save_LIBS
37535fi
37536echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37537echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37538if test $ac_cv_lib_posix4_nanosleep = yes; then
37539
37540 cat >>confdefs.h <<\_ACEOF
37541#define HAVE_NANOSLEEP 1
37542_ACEOF
37543
37544 POSIX4_LINK=" -lposix4"
37545
37546else
37547
37548
37549for ac_func in usleep
37550do
37551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37552echo "$as_me:$LINENO: checking for $ac_func" >&5
37553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37554if eval "test \"\${$as_ac_var+set}\" = set"; then
37555 echo $ECHO_N "(cached) $ECHO_C" >&6
37556else
37557 cat >conftest.$ac_ext <<_ACEOF
37558/* confdefs.h. */
37559_ACEOF
37560cat confdefs.h >>conftest.$ac_ext
37561cat >>conftest.$ac_ext <<_ACEOF
37562/* end confdefs.h. */
ac1cb8d3
VS
37563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37565#define $ac_func innocuous_$ac_func
37566
a848cd7e
SC
37567/* System header to define __stub macros and hopefully few prototypes,
37568 which can conflict with char $ac_func (); below.
37569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37571
a848cd7e
SC
37572#ifdef __STDC__
37573# include <limits.h>
37574#else
37575# include <assert.h>
37576#endif
ac1cb8d3
VS
37577
37578#undef $ac_func
37579
a848cd7e
SC
37580/* Override any gcc2 internal prototype to avoid an error. */
37581#ifdef __cplusplus
37582extern "C"
37583{
37584#endif
37585/* We use char because int might match the return type of a gcc2
37586 builtin and then its argument prototype would still apply. */
37587char $ac_func ();
37588/* The GNU C library defines this for functions which it implements
37589 to always fail with ENOSYS. Some functions are actually named
37590 something starting with __ and the normal name is an alias. */
37591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37592choke me
37593#else
37594char (*f) () = $ac_func;
37595#endif
37596#ifdef __cplusplus
37597}
37598#endif
37599
37600int
37601main ()
37602{
37603return f != $ac_func;
37604 ;
37605 return 0;
37606}
37607_ACEOF
37608rm -f conftest.$ac_objext conftest$ac_exeext
37609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37610 (eval $ac_link) 2>conftest.er1
a848cd7e 37611 ac_status=$?
ac1cb8d3
VS
37612 grep -v '^ *+' conftest.er1 >conftest.err
37613 rm -f conftest.er1
37614 cat conftest.err >&5
a848cd7e
SC
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); } &&
6a5c9b3f
RR
37617 { ac_try='test -z "$ac_cxx_werror_flag"
37618 || test ! -s conftest.err'
ac1cb8d3
VS
37619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620 (eval $ac_try) 2>&5
37621 ac_status=$?
37622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623 (exit $ac_status); }; } &&
37624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626 (eval $ac_try) 2>&5
37627 ac_status=$?
37628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629 (exit $ac_status); }; }; then
37630 eval "$as_ac_var=yes"
37631else
37632 echo "$as_me: failed program was:" >&5
37633sed 's/^/| /' conftest.$ac_ext >&5
37634
37635eval "$as_ac_var=no"
37636fi
ac1cb8d3
VS
37637rm -f conftest.err conftest.$ac_objext \
37638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37639fi
37640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37642if test `eval echo '${'$as_ac_var'}'` = yes; then
37643 cat >>confdefs.h <<_ACEOF
37644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37645_ACEOF
37646 cat >>confdefs.h <<\_ACEOF
37647#define HAVE_USLEEP 1
37648_ACEOF
37649
37650else
37651 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37652echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37653
37654fi
37655done
37656
37657
37658
37659fi
37660
37661
37662
37663fi
37664done
37665
37666fi
37667
37668
37669
37670for ac_func in uname gethostname
37671do
37672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37673echo "$as_me:$LINENO: checking for $ac_func" >&5
37674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37675if eval "test \"\${$as_ac_var+set}\" = set"; then
37676 echo $ECHO_N "(cached) $ECHO_C" >&6
37677else
37678 cat >conftest.$ac_ext <<_ACEOF
37679/* confdefs.h. */
37680_ACEOF
37681cat confdefs.h >>conftest.$ac_ext
37682cat >>conftest.$ac_ext <<_ACEOF
37683/* end confdefs.h. */
ac1cb8d3
VS
37684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37686#define $ac_func innocuous_$ac_func
37687
a848cd7e
SC
37688/* System header to define __stub macros and hopefully few prototypes,
37689 which can conflict with char $ac_func (); below.
37690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37691 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37692
a848cd7e
SC
37693#ifdef __STDC__
37694# include <limits.h>
37695#else
37696# include <assert.h>
37697#endif
ac1cb8d3
VS
37698
37699#undef $ac_func
37700
a848cd7e
SC
37701/* Override any gcc2 internal prototype to avoid an error. */
37702#ifdef __cplusplus
37703extern "C"
37704{
37705#endif
37706/* We use char because int might match the return type of a gcc2
37707 builtin and then its argument prototype would still apply. */
37708char $ac_func ();
37709/* The GNU C library defines this for functions which it implements
37710 to always fail with ENOSYS. Some functions are actually named
37711 something starting with __ and the normal name is an alias. */
37712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37713choke me
37714#else
37715char (*f) () = $ac_func;
37716#endif
37717#ifdef __cplusplus
37718}
37719#endif
37720
37721int
37722main ()
37723{
37724return f != $ac_func;
37725 ;
37726 return 0;
37727}
37728_ACEOF
37729rm -f conftest.$ac_objext conftest$ac_exeext
37730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37731 (eval $ac_link) 2>conftest.er1
a848cd7e 37732 ac_status=$?
ac1cb8d3
VS
37733 grep -v '^ *+' conftest.er1 >conftest.err
37734 rm -f conftest.er1
37735 cat conftest.err >&5
a848cd7e
SC
37736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37737 (exit $ac_status); } &&
6a5c9b3f
RR
37738 { ac_try='test -z "$ac_cxx_werror_flag"
37739 || test ! -s conftest.err'
ac1cb8d3
VS
37740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741 (eval $ac_try) 2>&5
37742 ac_status=$?
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; } &&
37745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37747 (eval $ac_try) 2>&5
37748 ac_status=$?
37749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750 (exit $ac_status); }; }; then
37751 eval "$as_ac_var=yes"
37752else
37753 echo "$as_me: failed program was:" >&5
37754sed 's/^/| /' conftest.$ac_ext >&5
37755
37756eval "$as_ac_var=no"
37757fi
ac1cb8d3
VS
37758rm -f conftest.err conftest.$ac_objext \
37759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37760fi
37761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37763if test `eval echo '${'$as_ac_var'}'` = yes; then
37764 cat >>confdefs.h <<_ACEOF
37765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37766_ACEOF
37767 break
37768fi
37769done
37770
37771
56632e81
MW
37772
37773 for wx_func in strtok_r
37774 do
37775 echo "$as_me:$LINENO: checking for $wx_func" >&5
37776echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37777if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37778 echo $ECHO_N "(cached) $ECHO_C" >&6
37779else
56632e81
MW
37780
37781 cat >conftest.$ac_ext <<_ACEOF
37782
37783 /* confdefs.h. */
a848cd7e
SC
37784_ACEOF
37785cat confdefs.h >>conftest.$ac_ext
37786cat >>conftest.$ac_ext <<_ACEOF
37787/* end confdefs.h. */
56632e81
MW
37788
37789 #define _REENTRANT
37790 $ac_includes_default
37791
a848cd7e
SC
37792int
37793main ()
37794{
56632e81
MW
37795
37796 #ifndef $wx_func
37797 &$wx_func;
37798 #endif
37799
5acfd58d 37800
a848cd7e
SC
37801 ;
37802 return 0;
37803}
56632e81 37804
a848cd7e 37805_ACEOF
56632e81
MW
37806rm -f conftest.$ac_objext conftest$ac_exeext
37807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37808 (eval $ac_link) 2>conftest.er1
a848cd7e 37809 ac_status=$?
ac1cb8d3
VS
37810 grep -v '^ *+' conftest.er1 >conftest.err
37811 rm -f conftest.er1
37812 cat conftest.err >&5
a848cd7e
SC
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); } &&
6a5c9b3f
RR
37815 { ac_try='test -z "$ac_cxx_werror_flag"
37816 || test ! -s conftest.err'
ac1cb8d3
VS
37817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818 (eval $ac_try) 2>&5
37819 ac_status=$?
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); }; } &&
56632e81 37822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824 (eval $ac_try) 2>&5
37825 ac_status=$?
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); }; }; then
56632e81 37828 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37829else
37830 echo "$as_me: failed program was:" >&5
37831sed 's/^/| /' conftest.$ac_ext >&5
37832
56632e81 37833eval wx_cv_func_$wx_func=no
a848cd7e 37834fi
56632e81
MW
37835rm -f conftest.err conftest.$ac_objext \
37836 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37837
56632e81
MW
37838fi
37839echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37840echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 37841
56632e81
MW
37842 if eval test \$wx_cv_func_$wx_func = yes
37843 then
37844 cat >>confdefs.h <<_ACEOF
37845#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
37846_ACEOF
37847
37848
56632e81
MW
37849 else
37850 :
5acfd58d 37851
56632e81
MW
37852 fi
37853 done
5acfd58d 37854
a848cd7e 37855
a848cd7e
SC
37856INET_LINK=
37857
37858for ac_func in inet_addr
37859do
37860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37861echo "$as_me:$LINENO: checking for $ac_func" >&5
37862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37863if eval "test \"\${$as_ac_var+set}\" = set"; then
37864 echo $ECHO_N "(cached) $ECHO_C" >&6
37865else
37866 cat >conftest.$ac_ext <<_ACEOF
37867/* confdefs.h. */
37868_ACEOF
37869cat confdefs.h >>conftest.$ac_ext
37870cat >>conftest.$ac_ext <<_ACEOF
37871/* end confdefs.h. */
ac1cb8d3
VS
37872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37874#define $ac_func innocuous_$ac_func
37875
a848cd7e
SC
37876/* System header to define __stub macros and hopefully few prototypes,
37877 which can conflict with char $ac_func (); below.
37878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37879 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37880
a848cd7e
SC
37881#ifdef __STDC__
37882# include <limits.h>
37883#else
37884# include <assert.h>
37885#endif
ac1cb8d3
VS
37886
37887#undef $ac_func
37888
a848cd7e
SC
37889/* Override any gcc2 internal prototype to avoid an error. */
37890#ifdef __cplusplus
37891extern "C"
37892{
37893#endif
37894/* We use char because int might match the return type of a gcc2
37895 builtin and then its argument prototype would still apply. */
37896char $ac_func ();
37897/* The GNU C library defines this for functions which it implements
37898 to always fail with ENOSYS. Some functions are actually named
37899 something starting with __ and the normal name is an alias. */
37900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37901choke me
37902#else
37903char (*f) () = $ac_func;
37904#endif
37905#ifdef __cplusplus
37906}
37907#endif
37908
37909int
37910main ()
37911{
37912return f != $ac_func;
37913 ;
37914 return 0;
37915}
37916_ACEOF
37917rm -f conftest.$ac_objext conftest$ac_exeext
37918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37919 (eval $ac_link) 2>conftest.er1
a848cd7e 37920 ac_status=$?
ac1cb8d3
VS
37921 grep -v '^ *+' conftest.er1 >conftest.err
37922 rm -f conftest.er1
37923 cat conftest.err >&5
a848cd7e
SC
37924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925 (exit $ac_status); } &&
6a5c9b3f
RR
37926 { ac_try='test -z "$ac_cxx_werror_flag"
37927 || test ! -s conftest.err'
ac1cb8d3
VS
37928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37929 (eval $ac_try) 2>&5
37930 ac_status=$?
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); }; } &&
37933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37935 (eval $ac_try) 2>&5
37936 ac_status=$?
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); }; }; then
37939 eval "$as_ac_var=yes"
37940else
37941 echo "$as_me: failed program was:" >&5
37942sed 's/^/| /' conftest.$ac_ext >&5
37943
37944eval "$as_ac_var=no"
37945fi
ac1cb8d3
VS
37946rm -f conftest.err conftest.$ac_objext \
37947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37948fi
37949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37950echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37951if test `eval echo '${'$as_ac_var'}'` = yes; then
37952 cat >>confdefs.h <<_ACEOF
37953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37954_ACEOF
37955 cat >>confdefs.h <<\_ACEOF
37956#define HAVE_INET_ADDR 1
37957_ACEOF
37958
37959else
37960
37961 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37962echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37963if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37964 echo $ECHO_N "(cached) $ECHO_C" >&6
37965else
37966 ac_check_lib_save_LIBS=$LIBS
37967LIBS="-lnsl $LIBS"
37968cat >conftest.$ac_ext <<_ACEOF
37969/* confdefs.h. */
37970_ACEOF
37971cat confdefs.h >>conftest.$ac_ext
37972cat >>conftest.$ac_ext <<_ACEOF
37973/* end confdefs.h. */
37974
37975/* Override any gcc2 internal prototype to avoid an error. */
37976#ifdef __cplusplus
37977extern "C"
37978#endif
37979/* We use char because int might match the return type of a gcc2
37980 builtin and then its argument prototype would still apply. */
37981char inet_addr ();
37982int
37983main ()
37984{
37985inet_addr ();
37986 ;
37987 return 0;
37988}
37989_ACEOF
37990rm -f conftest.$ac_objext conftest$ac_exeext
37991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37992 (eval $ac_link) 2>conftest.er1
a848cd7e 37993 ac_status=$?
ac1cb8d3
VS
37994 grep -v '^ *+' conftest.er1 >conftest.err
37995 rm -f conftest.er1
37996 cat conftest.err >&5
a848cd7e
SC
37997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998 (exit $ac_status); } &&
6a5c9b3f
RR
37999 { ac_try='test -z "$ac_cxx_werror_flag"
38000 || test ! -s conftest.err'
ac1cb8d3
VS
38001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38002 (eval $ac_try) 2>&5
38003 ac_status=$?
38004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38005 (exit $ac_status); }; } &&
38006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38008 (eval $ac_try) 2>&5
38009 ac_status=$?
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); }; }; then
38012 ac_cv_lib_nsl_inet_addr=yes
38013else
38014 echo "$as_me: failed program was:" >&5
38015sed 's/^/| /' conftest.$ac_ext >&5
38016
38017ac_cv_lib_nsl_inet_addr=no
38018fi
ac1cb8d3
VS
38019rm -f conftest.err conftest.$ac_objext \
38020 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38021LIBS=$ac_check_lib_save_LIBS
38022fi
38023echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38024echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38025if test $ac_cv_lib_nsl_inet_addr = yes; then
38026 INET_LINK="nsl"
38027else
38028
38029 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38030echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38031if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38032 echo $ECHO_N "(cached) $ECHO_C" >&6
38033else
38034 ac_check_lib_save_LIBS=$LIBS
38035LIBS="-lresolv $LIBS"
38036cat >conftest.$ac_ext <<_ACEOF
38037/* confdefs.h. */
38038_ACEOF
38039cat confdefs.h >>conftest.$ac_ext
38040cat >>conftest.$ac_ext <<_ACEOF
38041/* end confdefs.h. */
38042
38043/* Override any gcc2 internal prototype to avoid an error. */
38044#ifdef __cplusplus
38045extern "C"
38046#endif
38047/* We use char because int might match the return type of a gcc2
38048 builtin and then its argument prototype would still apply. */
38049char inet_addr ();
38050int
38051main ()
38052{
38053inet_addr ();
38054 ;
38055 return 0;
38056}
38057_ACEOF
38058rm -f conftest.$ac_objext conftest$ac_exeext
38059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38060 (eval $ac_link) 2>conftest.er1
a848cd7e 38061 ac_status=$?
ac1cb8d3
VS
38062 grep -v '^ *+' conftest.er1 >conftest.err
38063 rm -f conftest.er1
38064 cat conftest.err >&5
a848cd7e
SC
38065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); } &&
6a5c9b3f
RR
38067 { ac_try='test -z "$ac_cxx_werror_flag"
38068 || test ! -s conftest.err'
ac1cb8d3
VS
38069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070 (eval $ac_try) 2>&5
38071 ac_status=$?
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); }; } &&
38074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38076 (eval $ac_try) 2>&5
38077 ac_status=$?
38078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); }; }; then
38080 ac_cv_lib_resolv_inet_addr=yes
38081else
38082 echo "$as_me: failed program was:" >&5
38083sed 's/^/| /' conftest.$ac_ext >&5
38084
38085ac_cv_lib_resolv_inet_addr=no
38086fi
ac1cb8d3
VS
38087rm -f conftest.err conftest.$ac_objext \
38088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38089LIBS=$ac_check_lib_save_LIBS
38090fi
38091echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38092echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38093if test $ac_cv_lib_resolv_inet_addr = yes; then
38094 INET_LINK="resolv"
38095else
38096
38097 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38098echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38099if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38100 echo $ECHO_N "(cached) $ECHO_C" >&6
38101else
38102 ac_check_lib_save_LIBS=$LIBS
38103LIBS="-lsocket $LIBS"
38104cat >conftest.$ac_ext <<_ACEOF
38105/* confdefs.h. */
38106_ACEOF
38107cat confdefs.h >>conftest.$ac_ext
38108cat >>conftest.$ac_ext <<_ACEOF
38109/* end confdefs.h. */
38110
38111/* Override any gcc2 internal prototype to avoid an error. */
38112#ifdef __cplusplus
38113extern "C"
38114#endif
38115/* We use char because int might match the return type of a gcc2
38116 builtin and then its argument prototype would still apply. */
38117char inet_addr ();
38118int
38119main ()
38120{
38121inet_addr ();
38122 ;
38123 return 0;
38124}
38125_ACEOF
38126rm -f conftest.$ac_objext conftest$ac_exeext
38127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38128 (eval $ac_link) 2>conftest.er1
a848cd7e 38129 ac_status=$?
ac1cb8d3
VS
38130 grep -v '^ *+' conftest.er1 >conftest.err
38131 rm -f conftest.er1
38132 cat conftest.err >&5
a848cd7e
SC
38133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134 (exit $ac_status); } &&
6a5c9b3f
RR
38135 { ac_try='test -z "$ac_cxx_werror_flag"
38136 || test ! -s conftest.err'
ac1cb8d3
VS
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38139 ac_status=$?
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; } &&
38142 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144 (eval $ac_try) 2>&5
38145 ac_status=$?
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); }; }; then
38148 ac_cv_lib_socket_inet_addr=yes
38149else
38150 echo "$as_me: failed program was:" >&5
38151sed 's/^/| /' conftest.$ac_ext >&5
38152
38153ac_cv_lib_socket_inet_addr=no
38154fi
ac1cb8d3
VS
38155rm -f conftest.err conftest.$ac_objext \
38156 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38157LIBS=$ac_check_lib_save_LIBS
38158fi
38159echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38160echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38161if test $ac_cv_lib_socket_inet_addr = yes; then
38162 INET_LINK="socket"
38163
38164fi
38165
38166
38167
38168fi
38169
38170
38171
38172fi
38173
38174
38175
38176fi
38177done
38178
38179
38180
38181for ac_func in inet_aton
38182do
38183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38184echo "$as_me:$LINENO: checking for $ac_func" >&5
38185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38186if eval "test \"\${$as_ac_var+set}\" = set"; then
38187 echo $ECHO_N "(cached) $ECHO_C" >&6
38188else
38189 cat >conftest.$ac_ext <<_ACEOF
38190/* confdefs.h. */
38191_ACEOF
38192cat confdefs.h >>conftest.$ac_ext
38193cat >>conftest.$ac_ext <<_ACEOF
38194/* end confdefs.h. */
ac1cb8d3
VS
38195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38197#define $ac_func innocuous_$ac_func
38198
a848cd7e
SC
38199/* System header to define __stub macros and hopefully few prototypes,
38200 which can conflict with char $ac_func (); below.
38201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38202 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38203
a848cd7e
SC
38204#ifdef __STDC__
38205# include <limits.h>
38206#else
38207# include <assert.h>
38208#endif
ac1cb8d3
VS
38209
38210#undef $ac_func
38211
a848cd7e
SC
38212/* Override any gcc2 internal prototype to avoid an error. */
38213#ifdef __cplusplus
38214extern "C"
38215{
38216#endif
38217/* We use char because int might match the return type of a gcc2
38218 builtin and then its argument prototype would still apply. */
38219char $ac_func ();
38220/* The GNU C library defines this for functions which it implements
38221 to always fail with ENOSYS. Some functions are actually named
38222 something starting with __ and the normal name is an alias. */
38223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38224choke me
38225#else
38226char (*f) () = $ac_func;
38227#endif
38228#ifdef __cplusplus
38229}
38230#endif
38231
38232int
38233main ()
38234{
38235return f != $ac_func;
38236 ;
38237 return 0;
38238}
38239_ACEOF
38240rm -f conftest.$ac_objext conftest$ac_exeext
38241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38242 (eval $ac_link) 2>conftest.er1
a848cd7e 38243 ac_status=$?
ac1cb8d3
VS
38244 grep -v '^ *+' conftest.er1 >conftest.err
38245 rm -f conftest.er1
38246 cat conftest.err >&5
a848cd7e
SC
38247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248 (exit $ac_status); } &&
6a5c9b3f
RR
38249 { ac_try='test -z "$ac_cxx_werror_flag"
38250 || test ! -s conftest.err'
ac1cb8d3
VS
38251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38252 (eval $ac_try) 2>&5
38253 ac_status=$?
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); }; } &&
38256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38258 (eval $ac_try) 2>&5
38259 ac_status=$?
38260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261 (exit $ac_status); }; }; then
38262 eval "$as_ac_var=yes"
38263else
38264 echo "$as_me: failed program was:" >&5
38265sed 's/^/| /' conftest.$ac_ext >&5
38266
38267eval "$as_ac_var=no"
38268fi
ac1cb8d3
VS
38269rm -f conftest.err conftest.$ac_objext \
38270 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38271fi
38272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38274if test `eval echo '${'$as_ac_var'}'` = yes; then
38275 cat >>confdefs.h <<_ACEOF
38276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38277_ACEOF
38278 cat >>confdefs.h <<\_ACEOF
38279#define HAVE_INET_ATON 1
38280_ACEOF
38281
38282else
38283
38284 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38285echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38286echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38287if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38288 echo $ECHO_N "(cached) $ECHO_C" >&6
38289else
38290 ac_check_lib_save_LIBS=$LIBS
38291LIBS="-l$INET_LINK $LIBS"
38292cat >conftest.$ac_ext <<_ACEOF
38293/* confdefs.h. */
38294_ACEOF
38295cat confdefs.h >>conftest.$ac_ext
38296cat >>conftest.$ac_ext <<_ACEOF
38297/* end confdefs.h. */
38298
38299/* Override any gcc2 internal prototype to avoid an error. */
38300#ifdef __cplusplus
38301extern "C"
38302#endif
38303/* We use char because int might match the return type of a gcc2
38304 builtin and then its argument prototype would still apply. */
38305char inet_aton ();
38306int
38307main ()
38308{
38309inet_aton ();
38310 ;
38311 return 0;
38312}
38313_ACEOF
38314rm -f conftest.$ac_objext conftest$ac_exeext
38315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38316 (eval $ac_link) 2>conftest.er1
a848cd7e 38317 ac_status=$?
ac1cb8d3
VS
38318 grep -v '^ *+' conftest.er1 >conftest.err
38319 rm -f conftest.er1
38320 cat conftest.err >&5
a848cd7e
SC
38321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38322 (exit $ac_status); } &&
6a5c9b3f
RR
38323 { ac_try='test -z "$ac_cxx_werror_flag"
38324 || test ! -s conftest.err'
ac1cb8d3
VS
38325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38326 (eval $ac_try) 2>&5
38327 ac_status=$?
38328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38329 (exit $ac_status); }; } &&
38330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38332 (eval $ac_try) 2>&5
38333 ac_status=$?
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); }; }; then
38336 eval "$as_ac_Lib=yes"
38337else
38338 echo "$as_me: failed program was:" >&5
38339sed 's/^/| /' conftest.$ac_ext >&5
38340
38341eval "$as_ac_Lib=no"
38342fi
ac1cb8d3
VS
38343rm -f conftest.err conftest.$ac_objext \
38344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38345LIBS=$ac_check_lib_save_LIBS
38346fi
38347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38348echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38349if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38350 cat >>confdefs.h <<\_ACEOF
38351#define HAVE_INET_ATON 1
38352_ACEOF
38353
38354fi
38355
38356
38357fi
38358done
38359
38360
38361if test "x$INET_LINK" != "x"; then
38362 cat >>confdefs.h <<\_ACEOF
38363#define HAVE_INET_ADDR 1
38364_ACEOF
38365
38366 INET_LINK=" -l$INET_LINK"
38367fi
38368
38369fi
38370
38371
38372
38373EXTRALIBS_ESD=
38374echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38375echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38376if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38377 echo $ECHO_N "(cached) $ECHO_C" >&6
38378else
38379 ac_check_lib_save_LIBS=$LIBS
38380LIBS="-lesd $LIBS"
38381cat >conftest.$ac_ext <<_ACEOF
38382/* confdefs.h. */
38383_ACEOF
38384cat confdefs.h >>conftest.$ac_ext
38385cat >>conftest.$ac_ext <<_ACEOF
38386/* end confdefs.h. */
38387
38388/* Override any gcc2 internal prototype to avoid an error. */
38389#ifdef __cplusplus
38390extern "C"
38391#endif
38392/* We use char because int might match the return type of a gcc2
38393 builtin and then its argument prototype would still apply. */
38394char esd_close ();
38395int
38396main ()
38397{
38398esd_close ();
38399 ;
38400 return 0;
38401}
38402_ACEOF
38403rm -f conftest.$ac_objext conftest$ac_exeext
38404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38405 (eval $ac_link) 2>conftest.er1
a848cd7e 38406 ac_status=$?
ac1cb8d3
VS
38407 grep -v '^ *+' conftest.er1 >conftest.err
38408 rm -f conftest.er1
38409 cat conftest.err >&5
a848cd7e
SC
38410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411 (exit $ac_status); } &&
6a5c9b3f
RR
38412 { ac_try='test -z "$ac_cxx_werror_flag"
38413 || test ! -s conftest.err'
ac1cb8d3
VS
38414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415 (eval $ac_try) 2>&5
38416 ac_status=$?
38417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418 (exit $ac_status); }; } &&
38419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38421 (eval $ac_try) 2>&5
38422 ac_status=$?
38423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); }; }; then
38425 ac_cv_lib_esd_esd_close=yes
38426else
38427 echo "$as_me: failed program was:" >&5
38428sed 's/^/| /' conftest.$ac_ext >&5
38429
38430ac_cv_lib_esd_esd_close=no
38431fi
ac1cb8d3
VS
38432rm -f conftest.err conftest.$ac_objext \
38433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38434LIBS=$ac_check_lib_save_LIBS
38435fi
38436echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38437echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38438if test $ac_cv_lib_esd_esd_close = yes; then
38439
38440
38441for ac_header in esd.h
38442do
38443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38444if eval "test \"\${$as_ac_Header+set}\" = set"; then
38445 echo "$as_me:$LINENO: checking for $ac_header" >&5
38446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38447if eval "test \"\${$as_ac_Header+set}\" = set"; then
38448 echo $ECHO_N "(cached) $ECHO_C" >&6
38449fi
38450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38452else
38453 # Is the header compilable?
38454echo "$as_me:$LINENO: checking $ac_header usability" >&5
38455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38456cat >conftest.$ac_ext <<_ACEOF
38457/* confdefs.h. */
38458_ACEOF
38459cat confdefs.h >>conftest.$ac_ext
38460cat >>conftest.$ac_ext <<_ACEOF
38461/* end confdefs.h. */
38462$ac_includes_default
38463#include <$ac_header>
38464_ACEOF
38465rm -f conftest.$ac_objext
38466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38467 (eval $ac_compile) 2>conftest.er1
a848cd7e 38468 ac_status=$?
ac1cb8d3
VS
38469 grep -v '^ *+' conftest.er1 >conftest.err
38470 rm -f conftest.er1
38471 cat conftest.err >&5
a848cd7e
SC
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); } &&
6a5c9b3f
RR
38474 { ac_try='test -z "$ac_cxx_werror_flag"
38475 || test ! -s conftest.err'
ac1cb8d3
VS
38476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38477 (eval $ac_try) 2>&5
38478 ac_status=$?
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); }; } &&
38481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38483 (eval $ac_try) 2>&5
38484 ac_status=$?
38485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486 (exit $ac_status); }; }; then
38487 ac_header_compiler=yes
38488else
38489 echo "$as_me: failed program was:" >&5
38490sed 's/^/| /' conftest.$ac_ext >&5
38491
38492ac_header_compiler=no
38493fi
ac1cb8d3 38494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38496echo "${ECHO_T}$ac_header_compiler" >&6
38497
38498# Is the header present?
38499echo "$as_me:$LINENO: checking $ac_header presence" >&5
38500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38501cat >conftest.$ac_ext <<_ACEOF
38502/* confdefs.h. */
38503_ACEOF
38504cat confdefs.h >>conftest.$ac_ext
38505cat >>conftest.$ac_ext <<_ACEOF
38506/* end confdefs.h. */
38507#include <$ac_header>
38508_ACEOF
38509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38511 ac_status=$?
38512 grep -v '^ *+' conftest.er1 >conftest.err
38513 rm -f conftest.er1
38514 cat conftest.err >&5
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); } >/dev/null; then
38517 if test -s conftest.err; then
5d7b7554
VZ
38518 ac_cpp_err=$ac_cxx_preproc_warn_flag
38519 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38520 else
38521 ac_cpp_err=
38522 fi
38523else
38524 ac_cpp_err=yes
38525fi
38526if test -z "$ac_cpp_err"; then
38527 ac_header_preproc=yes
38528else
38529 echo "$as_me: failed program was:" >&5
38530sed 's/^/| /' conftest.$ac_ext >&5
38531
38532 ac_header_preproc=no
38533fi
38534rm -f conftest.err conftest.$ac_ext
38535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38536echo "${ECHO_T}$ac_header_preproc" >&6
38537
38538# So? What about this header?
5d7b7554 38539case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38540 yes:no: )
a848cd7e
SC
38541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38545 ac_header_preproc=yes
a848cd7e 38546 ;;
ac1cb8d3 38547 no:yes:* )
a848cd7e
SC
38548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38560 (
38561 cat <<\_ASBOX
ac1cb8d3
VS
38562## ----------------------------------------- ##
38563## Report this to wx-dev@lists.wxwidgets.org ##
38564## ----------------------------------------- ##
a848cd7e
SC
38565_ASBOX
38566 ) |
38567 sed "s/^/$as_me: WARNING: /" >&2
38568 ;;
38569esac
38570echo "$as_me:$LINENO: checking for $ac_header" >&5
38571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38572if eval "test \"\${$as_ac_Header+set}\" = set"; then
38573 echo $ECHO_N "(cached) $ECHO_C" >&6
38574else
ac1cb8d3 38575 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38576fi
38577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38579
38580fi
38581if test `eval echo '${'$as_ac_Header'}'` = yes; then
38582 cat >>confdefs.h <<_ACEOF
38583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38584_ACEOF
38585
38586 EXTRALIBS_ESD="-lesd"
38587
38588fi
38589
38590done
38591
38592
38593fi
38594
38595
38596
38597echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38598echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38599cat >conftest.$ac_ext <<_ACEOF
38600/* confdefs.h. */
38601_ACEOF
38602cat confdefs.h >>conftest.$ac_ext
38603cat >>conftest.$ac_ext <<_ACEOF
38604/* end confdefs.h. */
38605#ifdef __linux__
38606 #include <linux/cdrom.h>
38607 #else
38608 /* For Solaris */
38609 #include <sys/cdio.h>
38610 #endif
38611
38612int
38613main ()
38614{
38615struct cdrom_tocentry entry, old_entry;
38616 ;
38617 return 0;
38618}
38619_ACEOF
38620rm -f conftest.$ac_objext
38621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38622 (eval $ac_compile) 2>conftest.er1
a848cd7e 38623 ac_status=$?
ac1cb8d3
VS
38624 grep -v '^ *+' conftest.er1 >conftest.err
38625 rm -f conftest.er1
38626 cat conftest.err >&5
a848cd7e
SC
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); } &&
6a5c9b3f
RR
38629 { ac_try='test -z "$ac_cxx_werror_flag"
38630 || test ! -s conftest.err'
ac1cb8d3
VS
38631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38632 (eval $ac_try) 2>&5
38633 ac_status=$?
38634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38635 (exit $ac_status); }; } &&
38636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38638 (eval $ac_try) 2>&5
38639 ac_status=$?
38640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641 (exit $ac_status); }; }; then
38642 echo "$as_me:$LINENO: result: yes" >&5
38643echo "${ECHO_T}yes" >&6
38644 cat >>confdefs.h <<\_ACEOF
38645#define HAVE_KNOWN_CDROM_INTERFACE 1
38646_ACEOF
38647
38648else
38649 echo "$as_me: failed program was:" >&5
38650sed 's/^/| /' conftest.$ac_ext >&5
38651
38652echo "$as_me:$LINENO: result: no" >&5
38653echo "${ECHO_T}no" >&6
38654fi
ac1cb8d3 38655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38656
38657
38658cat >confcache <<\_ACEOF
38659# This file is a shell script that caches the results of configure
38660# tests run on this system so they can be shared between configure
38661# scripts and configure runs, see configure's option --config-cache.
38662# It is not useful on other systems. If it contains results you don't
38663# want to keep, you may remove or edit it.
38664#
38665# config.status only pays attention to the cache file if you give it
38666# the --recheck option to rerun configure.
38667#
38668# `ac_cv_env_foo' variables (set or unset) will be overridden when
38669# loading this file, other *unset* `ac_cv_foo' will be assigned the
38670# following values.
38671
38672_ACEOF
38673
38674# The following way of writing the cache mishandles newlines in values,
38675# but we know of no workaround that is simple, portable, and efficient.
38676# So, don't put newlines in cache variables' values.
38677# Ultrix sh set writes to stderr and can't be redirected directly,
38678# and sets the high bit in the cache file unless we assign to the vars.
38679{
38680 (set) 2>&1 |
38681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38682 *ac_space=\ *)
38683 # `set' does not quote correctly, so add quotes (double-quote
38684 # substitution turns \\\\ into \\, and sed turns \\ into \).
38685 sed -n \
ac1cb8d3
VS
38686 "s/'/'\\\\''/g;
38687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38688 ;;
38689 *)
38690 # `set' quotes correctly as required by POSIX, so do not add quotes.
38691 sed -n \
ac1cb8d3 38692 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38693 ;;
38694 esac;
38695} |
38696 sed '
38697 t clear
38698 : clear
38699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38700 t end
38701 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38702 : end' >>confcache
38703if diff $cache_file confcache >/dev/null 2>&1; then :; else
38704 if test -w $cache_file; then
38705 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38706 cat confcache >$cache_file
38707 else
38708 echo "not updating unwritable cache $cache_file"
38709 fi
38710fi
38711rm -f confcache
38712
38713
a848cd7e
SC
38714if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38715
38716
38717 THREADS_LINK=
e56f4f9e 38718 THREADS_CXXFLAGS=
a848cd7e
SC
38719
38720 if test "$wxUSE_THREADS" = "yes" ; then
38721 if test "$USE_BEOS" = 1; then
38722 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38723echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38724 wxUSE_THREADS="no"
38725 fi
38726 fi
38727
38728 if test "$wxUSE_THREADS" = "yes" ; then
38729
38730
38731 THREAD_OPTS="-pthread"
38732 case "${host}" in
38733 *-*-solaris2* | *-*-sunos4* )
38734 if test "x$GCC" = "xyes"; then
38735 THREAD_OPTS="-pthreads $THREAD_OPTS"
38736 else
38737 THREAD_OPTS="-mt $THREAD_OPTS"
38738 fi
38739 ;;
38740 *-*-freebsd*)
38741 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38742 ;;
38743 *-*-darwin* | *-*-cygwin* )
38744 THREAD_OPTS=""
38745 ;;
38746 *-*-aix*)
38747 THREAD_OPTS="pthreads"
38748 ;;
38749 *-hp-hpux* )
00421666
MW
38750 if test "x$GCC" = "xyes"; then
38751 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38752 THREAD_OPTS=""
38753 else
0093c2fc 38754 THREAD_OPTS="-mt"
a848cd7e
SC
38755 fi
38756 ;;
38757
38758 *-*-irix* )
38759 if test "x$GCC" = "xyes"; then
38760 THREAD_OPTS=""
38761 fi
38762 ;;
38763
38764 *-*-*UnixWare*)
38765 if test "x$GCC" != "xyes"; then
38766 THREAD_OPTS="-Ethread"
38767 fi
38768 ;;
38769 esac
38770
38771 THREAD_OPTS="$THREAD_OPTS pthread none"
38772
38773 THREADS_OK=no
38774 for flag in $THREAD_OPTS; do
38775 case $flag in
38776 none)
38777 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38778echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38779 ;;
38780
38781 -*)
38782 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38783echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38784 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38785 ;;
38786
38787 *)
38788 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38789echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38790 THREADS_LINK="-l$flag"
38791 ;;
38792 esac
38793
38794 save_LIBS="$LIBS"
e56f4f9e 38795 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38796 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38797 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38798
38799 cat >conftest.$ac_ext <<_ACEOF
38800/* confdefs.h. */
38801_ACEOF
38802cat confdefs.h >>conftest.$ac_ext
38803cat >>conftest.$ac_ext <<_ACEOF
38804/* end confdefs.h. */
38805#include <pthread.h>
38806int
38807main ()
38808{
38809pthread_create(0,0,0,0);
38810 ;
38811 return 0;
38812}
38813_ACEOF
38814rm -f conftest.$ac_objext conftest$ac_exeext
38815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38816 (eval $ac_link) 2>conftest.er1
a848cd7e 38817 ac_status=$?
ac1cb8d3
VS
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
a848cd7e
SC
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
6a5c9b3f
RR
38823 { ac_try='test -z "$ac_cxx_werror_flag"
38824 || test ! -s conftest.err'
ac1cb8d3
VS
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38827 ac_status=$?
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; } &&
38830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38832 (eval $ac_try) 2>&5
38833 ac_status=$?
38834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835 (exit $ac_status); }; }; then
38836 THREADS_OK=yes
38837else
38838 echo "$as_me: failed program was:" >&5
38839sed 's/^/| /' conftest.$ac_ext >&5
38840
38841fi
ac1cb8d3
VS
38842rm -f conftest.err conftest.$ac_objext \
38843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38844
38845 LIBS="$save_LIBS"
e56f4f9e 38846 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38847
38848 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38849echo "${ECHO_T}$THREADS_OK" >&6
38850 if test "x$THREADS_OK" = "xyes"; then
38851 break;
38852 fi
38853
38854 THREADS_LINK=""
e56f4f9e 38855 THREADS_CXXFLAGS=""
a848cd7e
SC
38856 done
38857
38858 if test "x$THREADS_OK" != "xyes"; then
38859 wxUSE_THREADS=no
38860 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38861echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38862 else
e56f4f9e 38863 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38864 LIBS="$THREADS_LINK $LIBS"
38865
38866 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38867echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38868 flag=no
38869 case "${host}" in
38870 *-aix*)
38871 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38872 flag="-D_THREAD_SAFE"
38873 ;;
38874 *-freebsd*)
38875 flag="-D_THREAD_SAFE"
38876 ;;
38877 *-hp-hpux* )
38878 flag="-D_REENTRANT"
38879 if test "x$GCC" != "xyes"; then
38880 flag="$flag -D_RWSTD_MULTI_THREAD"
38881 fi
38882 ;;
38883 *solaris* | alpha*-osf*)
38884 flag="-D_REENTRANT"
38885 ;;
38886 esac
38887 echo "$as_me:$LINENO: result: ${flag}" >&5
38888echo "${ECHO_T}${flag}" >&6
38889 if test "x$flag" != xno; then
e56f4f9e 38890 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38891 fi
38892
e56f4f9e 38893 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38894 fi
38895 fi
38896
38897 if test "$wxUSE_THREADS" = "yes" ; then
38898
38899for ac_func in thr_setconcurrency
38900do
38901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38902echo "$as_me:$LINENO: checking for $ac_func" >&5
38903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38904if eval "test \"\${$as_ac_var+set}\" = set"; then
38905 echo $ECHO_N "(cached) $ECHO_C" >&6
38906else
38907 cat >conftest.$ac_ext <<_ACEOF
38908/* confdefs.h. */
38909_ACEOF
38910cat confdefs.h >>conftest.$ac_ext
38911cat >>conftest.$ac_ext <<_ACEOF
38912/* end confdefs.h. */
ac1cb8d3
VS
38913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38915#define $ac_func innocuous_$ac_func
38916
a848cd7e
SC
38917/* System header to define __stub macros and hopefully few prototypes,
38918 which can conflict with char $ac_func (); below.
38919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38920 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38921
a848cd7e
SC
38922#ifdef __STDC__
38923# include <limits.h>
38924#else
38925# include <assert.h>
38926#endif
ac1cb8d3
VS
38927
38928#undef $ac_func
38929
a848cd7e
SC
38930/* Override any gcc2 internal prototype to avoid an error. */
38931#ifdef __cplusplus
38932extern "C"
38933{
38934#endif
38935/* We use char because int might match the return type of a gcc2
38936 builtin and then its argument prototype would still apply. */
38937char $ac_func ();
38938/* The GNU C library defines this for functions which it implements
38939 to always fail with ENOSYS. Some functions are actually named
38940 something starting with __ and the normal name is an alias. */
38941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38942choke me
38943#else
38944char (*f) () = $ac_func;
38945#endif
38946#ifdef __cplusplus
38947}
38948#endif
38949
38950int
38951main ()
38952{
38953return f != $ac_func;
38954 ;
38955 return 0;
38956}
38957_ACEOF
38958rm -f conftest.$ac_objext conftest$ac_exeext
38959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38960 (eval $ac_link) 2>conftest.er1
a848cd7e 38961 ac_status=$?
ac1cb8d3
VS
38962 grep -v '^ *+' conftest.er1 >conftest.err
38963 rm -f conftest.er1
38964 cat conftest.err >&5
a848cd7e
SC
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); } &&
6a5c9b3f
RR
38967 { ac_try='test -z "$ac_cxx_werror_flag"
38968 || test ! -s conftest.err'
ac1cb8d3
VS
38969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38970 (eval $ac_try) 2>&5
38971 ac_status=$?
38972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973 (exit $ac_status); }; } &&
38974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38976 (eval $ac_try) 2>&5
38977 ac_status=$?
38978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979 (exit $ac_status); }; }; then
38980 eval "$as_ac_var=yes"
38981else
38982 echo "$as_me: failed program was:" >&5
38983sed 's/^/| /' conftest.$ac_ext >&5
38984
38985eval "$as_ac_var=no"
38986fi
ac1cb8d3
VS
38987rm -f conftest.err conftest.$ac_objext \
38988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38989fi
38990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38992if test `eval echo '${'$as_ac_var'}'` = yes; then
38993 cat >>confdefs.h <<_ACEOF
38994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38995_ACEOF
38996
38997fi
38998done
38999
39000
6ebeb4c7
VZ
39001 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39002echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39003if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39004 echo $ECHO_N "(cached) $ECHO_C" >&6
39005else
39006
39007 cat >conftest.$ac_ext <<_ACEOF
39008/* confdefs.h. */
39009_ACEOF
39010cat confdefs.h >>conftest.$ac_ext
39011cat >>conftest.$ac_ext <<_ACEOF
39012/* end confdefs.h. */
39013#include <pthread.h>
39014 void ThreadCleanupFunc(void *p);
39015
39016int
39017main ()
39018{
39019
39020 void *p;
39021 pthread_cleanup_push(ThreadCleanupFunc, p);
39022 pthread_cleanup_pop(0);
39023
39024 ;
39025 return 0;
39026}
39027_ACEOF
39028rm -f conftest.$ac_objext
39029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39030 (eval $ac_compile) 2>conftest.er1
39031 ac_status=$?
39032 grep -v '^ *+' conftest.er1 >conftest.err
39033 rm -f conftest.er1
39034 cat conftest.err >&5
39035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39036 (exit $ac_status); } &&
6a5c9b3f
RR
39037 { ac_try='test -z "$ac_cxx_werror_flag"
39038 || test ! -s conftest.err'
6ebeb4c7
VZ
39039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39040 (eval $ac_try) 2>&5
39041 ac_status=$?
39042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39043 (exit $ac_status); }; } &&
39044 { ac_try='test -s conftest.$ac_objext'
39045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39046 (eval $ac_try) 2>&5
39047 ac_status=$?
39048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049 (exit $ac_status); }; }; then
39050
39051 wx_cv_func_pthread_cleanup=yes
39052
39053else
39054 echo "$as_me: failed program was:" >&5
39055sed 's/^/| /' conftest.$ac_ext >&5
39056
39057
39058 wx_cv_func_pthread_cleanup=no
39059
39060
39061fi
39062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39063
39064fi
39065echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39066echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39067 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39068 cat >>confdefs.h <<\_ACEOF
39069#define wxHAVE_PTHREAD_CLEANUP 1
39070_ACEOF
39071
39072 fi
39073
a848cd7e
SC
39074
39075for ac_header in sched.h
39076do
39077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39078if eval "test \"\${$as_ac_Header+set}\" = set"; then
39079 echo "$as_me:$LINENO: checking for $ac_header" >&5
39080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39081if eval "test \"\${$as_ac_Header+set}\" = set"; then
39082 echo $ECHO_N "(cached) $ECHO_C" >&6
39083fi
39084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39086else
39087 # Is the header compilable?
39088echo "$as_me:$LINENO: checking $ac_header usability" >&5
39089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39090cat >conftest.$ac_ext <<_ACEOF
39091/* confdefs.h. */
39092_ACEOF
39093cat confdefs.h >>conftest.$ac_ext
39094cat >>conftest.$ac_ext <<_ACEOF
39095/* end confdefs.h. */
39096$ac_includes_default
39097#include <$ac_header>
39098_ACEOF
39099rm -f conftest.$ac_objext
39100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39101 (eval $ac_compile) 2>conftest.er1
a848cd7e 39102 ac_status=$?
ac1cb8d3
VS
39103 grep -v '^ *+' conftest.er1 >conftest.err
39104 rm -f conftest.er1
39105 cat conftest.err >&5
a848cd7e
SC
39106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39107 (exit $ac_status); } &&
6a5c9b3f
RR
39108 { ac_try='test -z "$ac_cxx_werror_flag"
39109 || test ! -s conftest.err'
ac1cb8d3
VS
39110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39111 (eval $ac_try) 2>&5
39112 ac_status=$?
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); }; } &&
39115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39117 (eval $ac_try) 2>&5
39118 ac_status=$?
39119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); }; }; then
39121 ac_header_compiler=yes
39122else
39123 echo "$as_me: failed program was:" >&5
39124sed 's/^/| /' conftest.$ac_ext >&5
39125
39126ac_header_compiler=no
39127fi
ac1cb8d3 39128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39130echo "${ECHO_T}$ac_header_compiler" >&6
39131
39132# Is the header present?
39133echo "$as_me:$LINENO: checking $ac_header presence" >&5
39134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39135cat >conftest.$ac_ext <<_ACEOF
39136/* confdefs.h. */
39137_ACEOF
39138cat confdefs.h >>conftest.$ac_ext
39139cat >>conftest.$ac_ext <<_ACEOF
39140/* end confdefs.h. */
39141#include <$ac_header>
39142_ACEOF
39143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39145 ac_status=$?
39146 grep -v '^ *+' conftest.er1 >conftest.err
39147 rm -f conftest.er1
39148 cat conftest.err >&5
39149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); } >/dev/null; then
39151 if test -s conftest.err; then
5d7b7554
VZ
39152 ac_cpp_err=$ac_cxx_preproc_warn_flag
39153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39154 else
39155 ac_cpp_err=
39156 fi
39157else
39158 ac_cpp_err=yes
39159fi
39160if test -z "$ac_cpp_err"; then
39161 ac_header_preproc=yes
39162else
39163 echo "$as_me: failed program was:" >&5
39164sed 's/^/| /' conftest.$ac_ext >&5
39165
39166 ac_header_preproc=no
39167fi
39168rm -f conftest.err conftest.$ac_ext
39169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39170echo "${ECHO_T}$ac_header_preproc" >&6
39171
39172# So? What about this header?
5d7b7554 39173case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39174 yes:no: )
a848cd7e
SC
39175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39179 ac_header_preproc=yes
a848cd7e 39180 ;;
ac1cb8d3 39181 no:yes:* )
a848cd7e
SC
39182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39194 (
39195 cat <<\_ASBOX
ac1cb8d3
VS
39196## ----------------------------------------- ##
39197## Report this to wx-dev@lists.wxwidgets.org ##
39198## ----------------------------------------- ##
a848cd7e
SC
39199_ASBOX
39200 ) |
39201 sed "s/^/$as_me: WARNING: /" >&2
39202 ;;
39203esac
39204echo "$as_me:$LINENO: checking for $ac_header" >&5
39205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39206if eval "test \"\${$as_ac_Header+set}\" = set"; then
39207 echo $ECHO_N "(cached) $ECHO_C" >&6
39208else
ac1cb8d3 39209 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39210fi
39211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39213
39214fi
39215if test `eval echo '${'$as_ac_Header'}'` = yes; then
39216 cat >>confdefs.h <<_ACEOF
39217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39218_ACEOF
39219
39220fi
39221
39222done
39223
39224 if test "$ac_cv_header_sched_h" = "yes"; then
39225 echo "$as_me:$LINENO: checking for sched_yield" >&5
39226echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39227if test "${ac_cv_func_sched_yield+set}" = set; then
39228 echo $ECHO_N "(cached) $ECHO_C" >&6
39229else
39230 cat >conftest.$ac_ext <<_ACEOF
39231/* confdefs.h. */
39232_ACEOF
39233cat confdefs.h >>conftest.$ac_ext
39234cat >>conftest.$ac_ext <<_ACEOF
39235/* end confdefs.h. */
ac1cb8d3
VS
39236/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39238#define sched_yield innocuous_sched_yield
39239
a848cd7e
SC
39240/* System header to define __stub macros and hopefully few prototypes,
39241 which can conflict with char sched_yield (); below.
39242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39244
a848cd7e
SC
39245#ifdef __STDC__
39246# include <limits.h>
39247#else
39248# include <assert.h>
39249#endif
ac1cb8d3
VS
39250
39251#undef sched_yield
39252
a848cd7e
SC
39253/* Override any gcc2 internal prototype to avoid an error. */
39254#ifdef __cplusplus
39255extern "C"
39256{
39257#endif
39258/* We use char because int might match the return type of a gcc2
39259 builtin and then its argument prototype would still apply. */
39260char sched_yield ();
39261/* The GNU C library defines this for functions which it implements
39262 to always fail with ENOSYS. Some functions are actually named
39263 something starting with __ and the normal name is an alias. */
39264#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39265choke me
39266#else
39267char (*f) () = sched_yield;
39268#endif
39269#ifdef __cplusplus
39270}
39271#endif
39272
39273int
39274main ()
39275{
39276return f != sched_yield;
39277 ;
39278 return 0;
39279}
39280_ACEOF
39281rm -f conftest.$ac_objext conftest$ac_exeext
39282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39283 (eval $ac_link) 2>conftest.er1
a848cd7e 39284 ac_status=$?
ac1cb8d3
VS
39285 grep -v '^ *+' conftest.er1 >conftest.err
39286 rm -f conftest.er1
39287 cat conftest.err >&5
a848cd7e
SC
39288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289 (exit $ac_status); } &&
6a5c9b3f
RR
39290 { ac_try='test -z "$ac_cxx_werror_flag"
39291 || test ! -s conftest.err'
ac1cb8d3
VS
39292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39293 (eval $ac_try) 2>&5
39294 ac_status=$?
39295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39296 (exit $ac_status); }; } &&
39297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39299 (eval $ac_try) 2>&5
39300 ac_status=$?
39301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302 (exit $ac_status); }; }; then
39303 ac_cv_func_sched_yield=yes
39304else
39305 echo "$as_me: failed program was:" >&5
39306sed 's/^/| /' conftest.$ac_ext >&5
39307
39308ac_cv_func_sched_yield=no
39309fi
ac1cb8d3
VS
39310rm -f conftest.err conftest.$ac_objext \
39311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39312fi
39313echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39314echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39315if test $ac_cv_func_sched_yield = yes; then
39316 cat >>confdefs.h <<\_ACEOF
39317#define HAVE_SCHED_YIELD 1
39318_ACEOF
39319
39320else
39321
39322 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39323echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39324if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39325 echo $ECHO_N "(cached) $ECHO_C" >&6
39326else
39327 ac_check_lib_save_LIBS=$LIBS
39328LIBS="-lposix4 $LIBS"
39329cat >conftest.$ac_ext <<_ACEOF
39330/* confdefs.h. */
39331_ACEOF
39332cat confdefs.h >>conftest.$ac_ext
39333cat >>conftest.$ac_ext <<_ACEOF
39334/* end confdefs.h. */
39335
39336/* Override any gcc2 internal prototype to avoid an error. */
39337#ifdef __cplusplus
39338extern "C"
39339#endif
39340/* We use char because int might match the return type of a gcc2
39341 builtin and then its argument prototype would still apply. */
39342char sched_yield ();
39343int
39344main ()
39345{
39346sched_yield ();
39347 ;
39348 return 0;
39349}
39350_ACEOF
39351rm -f conftest.$ac_objext conftest$ac_exeext
39352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39353 (eval $ac_link) 2>conftest.er1
a848cd7e 39354 ac_status=$?
ac1cb8d3
VS
39355 grep -v '^ *+' conftest.er1 >conftest.err
39356 rm -f conftest.er1
39357 cat conftest.err >&5
a848cd7e
SC
39358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359 (exit $ac_status); } &&
6a5c9b3f
RR
39360 { ac_try='test -z "$ac_cxx_werror_flag"
39361 || test ! -s conftest.err'
ac1cb8d3
VS
39362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363 (eval $ac_try) 2>&5
39364 ac_status=$?
39365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); }; } &&
39367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39369 (eval $ac_try) 2>&5
39370 ac_status=$?
39371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372 (exit $ac_status); }; }; then
39373 ac_cv_lib_posix4_sched_yield=yes
39374else
39375 echo "$as_me: failed program was:" >&5
39376sed 's/^/| /' conftest.$ac_ext >&5
39377
39378ac_cv_lib_posix4_sched_yield=no
39379fi
ac1cb8d3
VS
39380rm -f conftest.err conftest.$ac_objext \
39381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39382LIBS=$ac_check_lib_save_LIBS
39383fi
39384echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39385echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39386if test $ac_cv_lib_posix4_sched_yield = yes; then
39387 cat >>confdefs.h <<\_ACEOF
39388#define HAVE_SCHED_YIELD 1
39389_ACEOF
39390 POSIX4_LINK=" -lposix4"
39391else
39392 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39393echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39394
39395fi
39396
39397
39398
39399fi
39400
39401 fi
39402
39403 HAVE_PRIOR_FUNCS=0
39404 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39405echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39406if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39407 echo $ECHO_N "(cached) $ECHO_C" >&6
39408else
39409 cat >conftest.$ac_ext <<_ACEOF
39410/* confdefs.h. */
39411_ACEOF
39412cat confdefs.h >>conftest.$ac_ext
39413cat >>conftest.$ac_ext <<_ACEOF
39414/* end confdefs.h. */
ac1cb8d3
VS
39415/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39417#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39418
a848cd7e
SC
39419/* System header to define __stub macros and hopefully few prototypes,
39420 which can conflict with char pthread_attr_getschedpolicy (); below.
39421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39422 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39423
a848cd7e
SC
39424#ifdef __STDC__
39425# include <limits.h>
39426#else
39427# include <assert.h>
39428#endif
ac1cb8d3
VS
39429
39430#undef pthread_attr_getschedpolicy
39431
a848cd7e
SC
39432/* Override any gcc2 internal prototype to avoid an error. */
39433#ifdef __cplusplus
39434extern "C"
39435{
39436#endif
39437/* We use char because int might match the return type of a gcc2
39438 builtin and then its argument prototype would still apply. */
39439char pthread_attr_getschedpolicy ();
39440/* The GNU C library defines this for functions which it implements
39441 to always fail with ENOSYS. Some functions are actually named
39442 something starting with __ and the normal name is an alias. */
39443#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39444choke me
39445#else
39446char (*f) () = pthread_attr_getschedpolicy;
39447#endif
39448#ifdef __cplusplus
39449}
39450#endif
39451
39452int
39453main ()
39454{
39455return f != pthread_attr_getschedpolicy;
39456 ;
39457 return 0;
39458}
39459_ACEOF
39460rm -f conftest.$ac_objext conftest$ac_exeext
39461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39462 (eval $ac_link) 2>conftest.er1
a848cd7e 39463 ac_status=$?
ac1cb8d3
VS
39464 grep -v '^ *+' conftest.er1 >conftest.err
39465 rm -f conftest.er1
39466 cat conftest.err >&5
a848cd7e
SC
39467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); } &&
6a5c9b3f
RR
39469 { ac_try='test -z "$ac_cxx_werror_flag"
39470 || test ! -s conftest.err'
ac1cb8d3
VS
39471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472 (eval $ac_try) 2>&5
39473 ac_status=$?
39474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475 (exit $ac_status); }; } &&
39476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478 (eval $ac_try) 2>&5
39479 ac_status=$?
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); }; }; then
39482 ac_cv_func_pthread_attr_getschedpolicy=yes
39483else
39484 echo "$as_me: failed program was:" >&5
39485sed 's/^/| /' conftest.$ac_ext >&5
39486
39487ac_cv_func_pthread_attr_getschedpolicy=no
39488fi
ac1cb8d3
VS
39489rm -f conftest.err conftest.$ac_objext \
39490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39491fi
39492echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39493echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39494if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39495 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39496echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39497if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39498 echo $ECHO_N "(cached) $ECHO_C" >&6
39499else
39500 cat >conftest.$ac_ext <<_ACEOF
39501/* confdefs.h. */
39502_ACEOF
39503cat confdefs.h >>conftest.$ac_ext
39504cat >>conftest.$ac_ext <<_ACEOF
39505/* end confdefs.h. */
ac1cb8d3
VS
39506/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39508#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39509
a848cd7e
SC
39510/* System header to define __stub macros and hopefully few prototypes,
39511 which can conflict with char pthread_attr_setschedparam (); below.
39512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39513 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39514
a848cd7e
SC
39515#ifdef __STDC__
39516# include <limits.h>
39517#else
39518# include <assert.h>
39519#endif
ac1cb8d3
VS
39520
39521#undef pthread_attr_setschedparam
39522
a848cd7e
SC
39523/* Override any gcc2 internal prototype to avoid an error. */
39524#ifdef __cplusplus
39525extern "C"
39526{
39527#endif
39528/* We use char because int might match the return type of a gcc2
39529 builtin and then its argument prototype would still apply. */
39530char pthread_attr_setschedparam ();
39531/* The GNU C library defines this for functions which it implements
39532 to always fail with ENOSYS. Some functions are actually named
39533 something starting with __ and the normal name is an alias. */
39534#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39535choke me
39536#else
39537char (*f) () = pthread_attr_setschedparam;
39538#endif
39539#ifdef __cplusplus
39540}
39541#endif
39542
39543int
39544main ()
39545{
39546return f != pthread_attr_setschedparam;
39547 ;
39548 return 0;
39549}
39550_ACEOF
39551rm -f conftest.$ac_objext conftest$ac_exeext
39552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39553 (eval $ac_link) 2>conftest.er1
a848cd7e 39554 ac_status=$?
ac1cb8d3
VS
39555 grep -v '^ *+' conftest.er1 >conftest.err
39556 rm -f conftest.er1
39557 cat conftest.err >&5
a848cd7e
SC
39558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559 (exit $ac_status); } &&
6a5c9b3f
RR
39560 { ac_try='test -z "$ac_cxx_werror_flag"
39561 || test ! -s conftest.err'
ac1cb8d3
VS
39562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39563 (eval $ac_try) 2>&5
39564 ac_status=$?
39565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39566 (exit $ac_status); }; } &&
39567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39569 (eval $ac_try) 2>&5
39570 ac_status=$?
39571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39572 (exit $ac_status); }; }; then
39573 ac_cv_func_pthread_attr_setschedparam=yes
39574else
39575 echo "$as_me: failed program was:" >&5
39576sed 's/^/| /' conftest.$ac_ext >&5
39577
39578ac_cv_func_pthread_attr_setschedparam=no
39579fi
ac1cb8d3
VS
39580rm -f conftest.err conftest.$ac_objext \
39581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39582fi
39583echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39584echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39585if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39586 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39587echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39588if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39589 echo $ECHO_N "(cached) $ECHO_C" >&6
39590else
39591 cat >conftest.$ac_ext <<_ACEOF
39592/* confdefs.h. */
39593_ACEOF
39594cat confdefs.h >>conftest.$ac_ext
39595cat >>conftest.$ac_ext <<_ACEOF
39596/* end confdefs.h. */
ac1cb8d3
VS
39597/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39599#define sched_get_priority_max innocuous_sched_get_priority_max
39600
a848cd7e
SC
39601/* System header to define __stub macros and hopefully few prototypes,
39602 which can conflict with char sched_get_priority_max (); below.
39603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39604 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39605
a848cd7e
SC
39606#ifdef __STDC__
39607# include <limits.h>
39608#else
39609# include <assert.h>
39610#endif
ac1cb8d3
VS
39611
39612#undef sched_get_priority_max
39613
a848cd7e
SC
39614/* Override any gcc2 internal prototype to avoid an error. */
39615#ifdef __cplusplus
39616extern "C"
39617{
39618#endif
39619/* We use char because int might match the return type of a gcc2
39620 builtin and then its argument prototype would still apply. */
39621char sched_get_priority_max ();
39622/* The GNU C library defines this for functions which it implements
39623 to always fail with ENOSYS. Some functions are actually named
39624 something starting with __ and the normal name is an alias. */
39625#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39626choke me
39627#else
39628char (*f) () = sched_get_priority_max;
39629#endif
39630#ifdef __cplusplus
39631}
39632#endif
39633
39634int
39635main ()
39636{
39637return f != sched_get_priority_max;
39638 ;
39639 return 0;
39640}
39641_ACEOF
39642rm -f conftest.$ac_objext conftest$ac_exeext
39643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39644 (eval $ac_link) 2>conftest.er1
a848cd7e 39645 ac_status=$?
ac1cb8d3
VS
39646 grep -v '^ *+' conftest.er1 >conftest.err
39647 rm -f conftest.er1
39648 cat conftest.err >&5
a848cd7e
SC
39649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650 (exit $ac_status); } &&
6a5c9b3f
RR
39651 { ac_try='test -z "$ac_cxx_werror_flag"
39652 || test ! -s conftest.err'
ac1cb8d3
VS
39653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654 (eval $ac_try) 2>&5
39655 ac_status=$?
39656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657 (exit $ac_status); }; } &&
39658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660 (eval $ac_try) 2>&5
39661 ac_status=$?
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); }; }; then
39664 ac_cv_func_sched_get_priority_max=yes
39665else
39666 echo "$as_me: failed program was:" >&5
39667sed 's/^/| /' conftest.$ac_ext >&5
39668
39669ac_cv_func_sched_get_priority_max=no
39670fi
ac1cb8d3
VS
39671rm -f conftest.err conftest.$ac_objext \
39672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39673fi
39674echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39675echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39676if test $ac_cv_func_sched_get_priority_max = yes; then
39677 HAVE_PRIOR_FUNCS=1
39678else
39679 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39680echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39681if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39682 echo $ECHO_N "(cached) $ECHO_C" >&6
39683else
39684 ac_check_lib_save_LIBS=$LIBS
39685LIBS="-lposix4 $LIBS"
39686cat >conftest.$ac_ext <<_ACEOF
39687/* confdefs.h. */
39688_ACEOF
39689cat confdefs.h >>conftest.$ac_ext
39690cat >>conftest.$ac_ext <<_ACEOF
39691/* end confdefs.h. */
39692
39693/* Override any gcc2 internal prototype to avoid an error. */
39694#ifdef __cplusplus
39695extern "C"
39696#endif
39697/* We use char because int might match the return type of a gcc2
39698 builtin and then its argument prototype would still apply. */
39699char sched_get_priority_max ();
39700int
39701main ()
39702{
39703sched_get_priority_max ();
39704 ;
39705 return 0;
39706}
39707_ACEOF
39708rm -f conftest.$ac_objext conftest$ac_exeext
39709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39710 (eval $ac_link) 2>conftest.er1
a848cd7e 39711 ac_status=$?
ac1cb8d3
VS
39712 grep -v '^ *+' conftest.er1 >conftest.err
39713 rm -f conftest.er1
39714 cat conftest.err >&5
a848cd7e
SC
39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716 (exit $ac_status); } &&
6a5c9b3f
RR
39717 { ac_try='test -z "$ac_cxx_werror_flag"
39718 || test ! -s conftest.err'
ac1cb8d3
VS
39719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39720 (eval $ac_try) 2>&5
39721 ac_status=$?
39722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723 (exit $ac_status); }; } &&
39724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39726 (eval $ac_try) 2>&5
39727 ac_status=$?
39728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729 (exit $ac_status); }; }; then
39730 ac_cv_lib_posix4_sched_get_priority_max=yes
39731else
39732 echo "$as_me: failed program was:" >&5
39733sed 's/^/| /' conftest.$ac_ext >&5
39734
39735ac_cv_lib_posix4_sched_get_priority_max=no
39736fi
ac1cb8d3
VS
39737rm -f conftest.err conftest.$ac_objext \
39738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39739LIBS=$ac_check_lib_save_LIBS
39740fi
39741echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39742echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39743if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39744
39745 HAVE_PRIOR_FUNCS=1
39746 POSIX4_LINK=" -lposix4"
39747
39748fi
39749
39750
39751fi
39752
39753
39754fi
39755
39756
39757fi
39758
39759
39760 if test "$HAVE_PRIOR_FUNCS" = 1; then
39761 cat >>confdefs.h <<\_ACEOF
39762#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39763_ACEOF
39764
39765 else
39766 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39767echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39768 fi
39769
39770 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39771echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39772if test "${ac_cv_func_pthread_cancel+set}" = set; then
39773 echo $ECHO_N "(cached) $ECHO_C" >&6
39774else
39775 cat >conftest.$ac_ext <<_ACEOF
39776/* confdefs.h. */
39777_ACEOF
39778cat confdefs.h >>conftest.$ac_ext
39779cat >>conftest.$ac_ext <<_ACEOF
39780/* end confdefs.h. */
ac1cb8d3
VS
39781/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39783#define pthread_cancel innocuous_pthread_cancel
39784
a848cd7e
SC
39785/* System header to define __stub macros and hopefully few prototypes,
39786 which can conflict with char pthread_cancel (); below.
39787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39788 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39789
a848cd7e
SC
39790#ifdef __STDC__
39791# include <limits.h>
39792#else
39793# include <assert.h>
39794#endif
ac1cb8d3
VS
39795
39796#undef pthread_cancel
39797
a848cd7e
SC
39798/* Override any gcc2 internal prototype to avoid an error. */
39799#ifdef __cplusplus
39800extern "C"
39801{
39802#endif
39803/* We use char because int might match the return type of a gcc2
39804 builtin and then its argument prototype would still apply. */
39805char pthread_cancel ();
39806/* The GNU C library defines this for functions which it implements
39807 to always fail with ENOSYS. Some functions are actually named
39808 something starting with __ and the normal name is an alias. */
39809#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39810choke me
39811#else
39812char (*f) () = pthread_cancel;
39813#endif
39814#ifdef __cplusplus
39815}
39816#endif
39817
39818int
39819main ()
39820{
39821return f != pthread_cancel;
39822 ;
39823 return 0;
39824}
39825_ACEOF
39826rm -f conftest.$ac_objext conftest$ac_exeext
39827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39828 (eval $ac_link) 2>conftest.er1
a848cd7e 39829 ac_status=$?
ac1cb8d3
VS
39830 grep -v '^ *+' conftest.er1 >conftest.err
39831 rm -f conftest.er1
39832 cat conftest.err >&5
a848cd7e
SC
39833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834 (exit $ac_status); } &&
6a5c9b3f
RR
39835 { ac_try='test -z "$ac_cxx_werror_flag"
39836 || test ! -s conftest.err'
ac1cb8d3
VS
39837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39838 (eval $ac_try) 2>&5
39839 ac_status=$?
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); }; } &&
39842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39844 (eval $ac_try) 2>&5
39845 ac_status=$?
39846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39847 (exit $ac_status); }; }; then
39848 ac_cv_func_pthread_cancel=yes
39849else
39850 echo "$as_me: failed program was:" >&5
39851sed 's/^/| /' conftest.$ac_ext >&5
39852
39853ac_cv_func_pthread_cancel=no
39854fi
ac1cb8d3
VS
39855rm -f conftest.err conftest.$ac_objext \
39856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39857fi
39858echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39859echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39860if test $ac_cv_func_pthread_cancel = yes; then
39861 cat >>confdefs.h <<\_ACEOF
39862#define HAVE_PTHREAD_CANCEL 1
39863_ACEOF
39864
39865else
39866 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39867echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39868fi
39869
39870
abc736fd
MW
39871 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39872echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39873if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39874 echo $ECHO_N "(cached) $ECHO_C" >&6
39875else
39876 cat >conftest.$ac_ext <<_ACEOF
39877/* confdefs.h. */
39878_ACEOF
39879cat confdefs.h >>conftest.$ac_ext
39880cat >>conftest.$ac_ext <<_ACEOF
39881/* end confdefs.h. */
39882/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39884#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39885
39886/* System header to define __stub macros and hopefully few prototypes,
39887 which can conflict with char pthread_attr_setstacksize (); below.
39888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39889 <limits.h> exists even on freestanding compilers. */
39890
39891#ifdef __STDC__
39892# include <limits.h>
39893#else
39894# include <assert.h>
39895#endif
39896
39897#undef pthread_attr_setstacksize
39898
39899/* Override any gcc2 internal prototype to avoid an error. */
39900#ifdef __cplusplus
39901extern "C"
39902{
39903#endif
39904/* We use char because int might match the return type of a gcc2
39905 builtin and then its argument prototype would still apply. */
39906char pthread_attr_setstacksize ();
39907/* The GNU C library defines this for functions which it implements
39908 to always fail with ENOSYS. Some functions are actually named
39909 something starting with __ and the normal name is an alias. */
39910#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39911choke me
39912#else
39913char (*f) () = pthread_attr_setstacksize;
39914#endif
39915#ifdef __cplusplus
39916}
39917#endif
39918
39919int
39920main ()
39921{
39922return f != pthread_attr_setstacksize;
39923 ;
39924 return 0;
39925}
39926_ACEOF
39927rm -f conftest.$ac_objext conftest$ac_exeext
39928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39929 (eval $ac_link) 2>conftest.er1
39930 ac_status=$?
39931 grep -v '^ *+' conftest.er1 >conftest.err
39932 rm -f conftest.er1
39933 cat conftest.err >&5
39934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935 (exit $ac_status); } &&
6a5c9b3f
RR
39936 { ac_try='test -z "$ac_cxx_werror_flag"
39937 || test ! -s conftest.err'
abc736fd
MW
39938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39939 (eval $ac_try) 2>&5
39940 ac_status=$?
39941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39942 (exit $ac_status); }; } &&
39943 { ac_try='test -s conftest$ac_exeext'
39944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39945 (eval $ac_try) 2>&5
39946 ac_status=$?
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); }; }; then
39949 ac_cv_func_pthread_attr_setstacksize=yes
39950else
39951 echo "$as_me: failed program was:" >&5
39952sed 's/^/| /' conftest.$ac_ext >&5
39953
39954ac_cv_func_pthread_attr_setstacksize=no
39955fi
39956rm -f conftest.err conftest.$ac_objext \
39957 conftest$ac_exeext conftest.$ac_ext
39958fi
39959echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39960echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39961if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39962 cat >>confdefs.h <<\_ACEOF
39963#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39964_ACEOF
39965
39966fi
39967
a848cd7e
SC
39968
39969
39970 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39971echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39972if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39973 echo $ECHO_N "(cached) $ECHO_C" >&6
39974else
39975
39976 cat >conftest.$ac_ext <<_ACEOF
39977/* confdefs.h. */
39978_ACEOF
39979cat confdefs.h >>conftest.$ac_ext
39980cat >>conftest.$ac_ext <<_ACEOF
39981/* end confdefs.h. */
39982#include <pthread.h>
39983int
39984main ()
39985{
39986
39987 pthread_mutexattr_t attr;
39988 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39989
39990 ;
39991 return 0;
39992}
39993_ACEOF
39994rm -f conftest.$ac_objext
39995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39996 (eval $ac_compile) 2>conftest.er1
a848cd7e 39997 ac_status=$?
ac1cb8d3
VS
39998 grep -v '^ *+' conftest.er1 >conftest.err
39999 rm -f conftest.er1
40000 cat conftest.err >&5
a848cd7e
SC
40001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002 (exit $ac_status); } &&
6a5c9b3f
RR
40003 { ac_try='test -z "$ac_cxx_werror_flag"
40004 || test ! -s conftest.err'
ac1cb8d3
VS
40005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40006 (eval $ac_try) 2>&5
40007 ac_status=$?
40008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40009 (exit $ac_status); }; } &&
40010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40012 (eval $ac_try) 2>&5
40013 ac_status=$?
40014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015 (exit $ac_status); }; }; then
123dca7d 40016 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40017else
40018 echo "$as_me: failed program was:" >&5
40019sed 's/^/| /' conftest.$ac_ext >&5
40020
123dca7d 40021wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40022
40023fi
ac1cb8d3 40024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40025
40026fi
40027echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40028echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40029
40030 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40031 cat >>confdefs.h <<\_ACEOF
40032#define HAVE_PTHREAD_MUTEXATTR_T 1
40033_ACEOF
40034
123dca7d
VZ
40035
40036 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40037echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40038if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40039 echo $ECHO_N "(cached) $ECHO_C" >&6
40040else
40041
40042 cat >conftest.$ac_ext <<_ACEOF
40043/* confdefs.h. */
40044_ACEOF
40045cat confdefs.h >>conftest.$ac_ext
40046cat >>conftest.$ac_ext <<_ACEOF
40047/* end confdefs.h. */
40048#include <pthread.h>
40049int
40050main ()
40051{
40052
40053 pthread_mutexattr_t attr;
40054 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40055
40056 ;
40057 return 0;
40058}
40059_ACEOF
40060rm -f conftest.$ac_objext
40061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40062 (eval $ac_compile) 2>conftest.er1
40063 ac_status=$?
40064 grep -v '^ *+' conftest.er1 >conftest.err
40065 rm -f conftest.er1
40066 cat conftest.err >&5
40067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068 (exit $ac_status); } &&
6a5c9b3f
RR
40069 { ac_try='test -z "$ac_cxx_werror_flag"
40070 || test ! -s conftest.err'
123dca7d
VZ
40071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40072 (eval $ac_try) 2>&5
40073 ac_status=$?
40074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075 (exit $ac_status); }; } &&
40076 { ac_try='test -s conftest.$ac_objext'
40077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40078 (eval $ac_try) 2>&5
40079 ac_status=$?
40080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40081 (exit $ac_status); }; }; then
40082 wx_cv_func_pthread_mutexattr_settype_decl=yes
40083else
40084 echo "$as_me: failed program was:" >&5
40085sed 's/^/| /' conftest.$ac_ext >&5
40086
40087wx_cv_func_pthread_mutexattr_settype_decl=no
40088
40089fi
40090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40091
40092fi
40093echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40094echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40095 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40096 cat >>confdefs.h <<\_ACEOF
40097#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40098_ACEOF
40099
40100 fi
a848cd7e
SC
40101 else
40102 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40103echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40104if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40105 echo $ECHO_N "(cached) $ECHO_C" >&6
40106else
40107
40108 cat >conftest.$ac_ext <<_ACEOF
40109/* confdefs.h. */
40110_ACEOF
40111cat confdefs.h >>conftest.$ac_ext
40112cat >>conftest.$ac_ext <<_ACEOF
40113/* end confdefs.h. */
40114#include <pthread.h>
40115int
40116main ()
40117{
40118
40119 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40120
40121 ;
40122 return 0;
40123}
40124_ACEOF
40125rm -f conftest.$ac_objext
40126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40127 (eval $ac_compile) 2>conftest.er1
a848cd7e 40128 ac_status=$?
ac1cb8d3
VS
40129 grep -v '^ *+' conftest.er1 >conftest.err
40130 rm -f conftest.er1
40131 cat conftest.err >&5
a848cd7e
SC
40132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40133 (exit $ac_status); } &&
6a5c9b3f
RR
40134 { ac_try='test -z "$ac_cxx_werror_flag"
40135 || test ! -s conftest.err'
ac1cb8d3
VS
40136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40137 (eval $ac_try) 2>&5
40138 ac_status=$?
40139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140 (exit $ac_status); }; } &&
40141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40143 (eval $ac_try) 2>&5
40144 ac_status=$?
40145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40146 (exit $ac_status); }; }; then
40147
40148 wx_cv_type_pthread_rec_mutex_init=yes
40149
40150else
40151 echo "$as_me: failed program was:" >&5
40152sed 's/^/| /' conftest.$ac_ext >&5
40153
40154
40155 wx_cv_type_pthread_rec_mutex_init=no
40156
40157
40158fi
ac1cb8d3 40159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40160
40161fi
40162echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40163echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40164 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40165 cat >>confdefs.h <<\_ACEOF
40166#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40167_ACEOF
40168
40169 else
40170 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40171echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40172 fi
40173 fi
40174 fi
40175
40176else
40177 if test "$wxUSE_THREADS" = "yes" ; then
40178 case "${host}" in
40179 *-*-mingw32* )
40180 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40181echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40182if test "${wx_cv_cflags_mthread+set}" = set; then
40183 echo $ECHO_N "(cached) $ECHO_C" >&6
40184else
40185
e56f4f9e
VZ
40186 CXXFLAGS_OLD="$CXXFLAGS"
40187 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40188 cat >conftest.$ac_ext <<_ACEOF
40189/* confdefs.h. */
40190_ACEOF
40191cat confdefs.h >>conftest.$ac_ext
40192cat >>conftest.$ac_ext <<_ACEOF
40193/* end confdefs.h. */
40194
40195int
40196main ()
40197{
40198
40199 ;
40200 return 0;
40201}
40202_ACEOF
40203rm -f conftest.$ac_objext
40204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40205 (eval $ac_compile) 2>conftest.er1
a848cd7e 40206 ac_status=$?
ac1cb8d3
VS
40207 grep -v '^ *+' conftest.er1 >conftest.err
40208 rm -f conftest.er1
40209 cat conftest.err >&5
a848cd7e
SC
40210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40211 (exit $ac_status); } &&
6a5c9b3f
RR
40212 { ac_try='test -z "$ac_cxx_werror_flag"
40213 || test ! -s conftest.err'
ac1cb8d3
VS
40214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40215 (eval $ac_try) 2>&5
40216 ac_status=$?
40217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40218 (exit $ac_status); }; } &&
40219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40221 (eval $ac_try) 2>&5
40222 ac_status=$?
40223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224 (exit $ac_status); }; }; then
40225 wx_cv_cflags_mthread=yes
40226else
40227 echo "$as_me: failed program was:" >&5
40228sed 's/^/| /' conftest.$ac_ext >&5
40229
40230wx_cv_cflags_mthread=no
40231
40232fi
ac1cb8d3 40233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40234
40235
40236fi
40237echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40238echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40239
40240 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40241 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40242 LDFLAGS="$LDFLAGS -mthreads"
40243 else
e56f4f9e 40244 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40245 fi
40246 ;;
40247 *-pc-os2*emx )
5ff751d6
VZ
40248 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40249 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40250 LDFLAGS="$LDFLAGS -Zmt"
40251 ;;
40252 esac
40253 fi
40254fi
40255
004ee6da
RL
40256echo "$as_me:$LINENO: checking for localtime_r" >&5
40257echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40258if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40260else
40261 cat >conftest.$ac_ext <<_ACEOF
40262/* confdefs.h. */
40263_ACEOF
40264cat confdefs.h >>conftest.$ac_ext
40265cat >>conftest.$ac_ext <<_ACEOF
40266/* end confdefs.h. */
004ee6da 40267/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40269#define localtime_r innocuous_localtime_r
ac1cb8d3 40270
a848cd7e 40271/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40272 which can conflict with char localtime_r (); below.
a848cd7e
SC
40273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40274 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40275
a848cd7e
SC
40276#ifdef __STDC__
40277# include <limits.h>
40278#else
40279# include <assert.h>
40280#endif
ac1cb8d3 40281
004ee6da 40282#undef localtime_r
ac1cb8d3 40283
a848cd7e
SC
40284/* Override any gcc2 internal prototype to avoid an error. */
40285#ifdef __cplusplus
40286extern "C"
40287{
40288#endif
40289/* We use char because int might match the return type of a gcc2
40290 builtin and then its argument prototype would still apply. */
004ee6da 40291char localtime_r ();
a848cd7e
SC
40292/* The GNU C library defines this for functions which it implements
40293 to always fail with ENOSYS. Some functions are actually named
40294 something starting with __ and the normal name is an alias. */
004ee6da 40295#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40296choke me
40297#else
004ee6da 40298char (*f) () = localtime_r;
a848cd7e
SC
40299#endif
40300#ifdef __cplusplus
40301}
40302#endif
40303
40304int
40305main ()
40306{
004ee6da
RL
40307return f != localtime_r;
40308 ;
40309 return 0;
40310}
40311_ACEOF
40312rm -f conftest.$ac_objext conftest$ac_exeext
40313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40314 (eval $ac_link) 2>conftest.er1
40315 ac_status=$?
40316 grep -v '^ *+' conftest.er1 >conftest.err
40317 rm -f conftest.er1
40318 cat conftest.err >&5
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); } &&
6a5c9b3f
RR
40321 { ac_try='test -z "$ac_cxx_werror_flag"
40322 || test ! -s conftest.err'
004ee6da
RL
40323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40324 (eval $ac_try) 2>&5
40325 ac_status=$?
40326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40327 (exit $ac_status); }; } &&
40328 { ac_try='test -s conftest$ac_exeext'
40329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40330 (eval $ac_try) 2>&5
40331 ac_status=$?
40332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40333 (exit $ac_status); }; }; then
40334 ac_cv_func_localtime_r=yes
40335else
40336 echo "$as_me: failed program was:" >&5
40337sed 's/^/| /' conftest.$ac_ext >&5
40338
40339ac_cv_func_localtime_r=no
40340fi
40341rm -f conftest.err conftest.$ac_objext \
40342 conftest$ac_exeext conftest.$ac_ext
40343fi
40344echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40345echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40346if test $ac_cv_func_localtime_r = yes; then
40347 cat >>confdefs.h <<\_ACEOF
40348#define HAVE_LOCALTIME_R 1
40349_ACEOF
40350
40351fi
40352
40353echo "$as_me:$LINENO: checking for gmtime_r" >&5
40354echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40355if test "${ac_cv_func_gmtime_r+set}" = set; then
40356 echo $ECHO_N "(cached) $ECHO_C" >&6
40357else
40358 cat >conftest.$ac_ext <<_ACEOF
40359/* confdefs.h. */
40360_ACEOF
40361cat confdefs.h >>conftest.$ac_ext
40362cat >>conftest.$ac_ext <<_ACEOF
40363/* end confdefs.h. */
40364/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40366#define gmtime_r innocuous_gmtime_r
40367
40368/* System header to define __stub macros and hopefully few prototypes,
40369 which can conflict with char gmtime_r (); below.
40370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40371 <limits.h> exists even on freestanding compilers. */
40372
40373#ifdef __STDC__
40374# include <limits.h>
40375#else
40376# include <assert.h>
40377#endif
40378
40379#undef gmtime_r
40380
40381/* Override any gcc2 internal prototype to avoid an error. */
40382#ifdef __cplusplus
40383extern "C"
40384{
40385#endif
40386/* We use char because int might match the return type of a gcc2
40387 builtin and then its argument prototype would still apply. */
40388char gmtime_r ();
40389/* The GNU C library defines this for functions which it implements
40390 to always fail with ENOSYS. Some functions are actually named
40391 something starting with __ and the normal name is an alias. */
40392#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40393choke me
40394#else
40395char (*f) () = gmtime_r;
40396#endif
40397#ifdef __cplusplus
40398}
40399#endif
40400
40401int
40402main ()
40403{
40404return f != gmtime_r;
40405 ;
40406 return 0;
40407}
40408_ACEOF
40409rm -f conftest.$ac_objext conftest$ac_exeext
40410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40411 (eval $ac_link) 2>conftest.er1
40412 ac_status=$?
40413 grep -v '^ *+' conftest.er1 >conftest.err
40414 rm -f conftest.er1
40415 cat conftest.err >&5
40416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417 (exit $ac_status); } &&
6a5c9b3f
RR
40418 { ac_try='test -z "$ac_cxx_werror_flag"
40419 || test ! -s conftest.err'
004ee6da
RL
40420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40421 (eval $ac_try) 2>&5
40422 ac_status=$?
40423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40424 (exit $ac_status); }; } &&
40425 { ac_try='test -s conftest$ac_exeext'
40426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40427 (eval $ac_try) 2>&5
40428 ac_status=$?
40429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430 (exit $ac_status); }; }; then
40431 ac_cv_func_gmtime_r=yes
40432else
40433 echo "$as_me: failed program was:" >&5
40434sed 's/^/| /' conftest.$ac_ext >&5
40435
40436ac_cv_func_gmtime_r=no
40437fi
40438rm -f conftest.err conftest.$ac_objext \
40439 conftest$ac_exeext conftest.$ac_ext
40440fi
40441echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40442echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40443if test $ac_cv_func_gmtime_r = yes; then
40444 cat >>confdefs.h <<\_ACEOF
40445#define HAVE_GMTIME_R 1
40446_ACEOF
40447
40448fi
40449
40450echo "$as_me:$LINENO: checking for readdir_r" >&5
40451echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40452if test "${ac_cv_func_readdir_r+set}" = set; then
40453 echo $ECHO_N "(cached) $ECHO_C" >&6
40454else
40455 cat >conftest.$ac_ext <<_ACEOF
40456/* confdefs.h. */
40457_ACEOF
40458cat confdefs.h >>conftest.$ac_ext
40459cat >>conftest.$ac_ext <<_ACEOF
40460/* end confdefs.h. */
40461/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40463#define readdir_r innocuous_readdir_r
40464
40465/* System header to define __stub macros and hopefully few prototypes,
40466 which can conflict with char readdir_r (); below.
40467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40468 <limits.h> exists even on freestanding compilers. */
40469
40470#ifdef __STDC__
40471# include <limits.h>
40472#else
40473# include <assert.h>
40474#endif
40475
40476#undef readdir_r
40477
40478/* Override any gcc2 internal prototype to avoid an error. */
40479#ifdef __cplusplus
40480extern "C"
40481{
40482#endif
40483/* We use char because int might match the return type of a gcc2
40484 builtin and then its argument prototype would still apply. */
40485char readdir_r ();
40486/* The GNU C library defines this for functions which it implements
40487 to always fail with ENOSYS. Some functions are actually named
40488 something starting with __ and the normal name is an alias. */
40489#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40490choke me
40491#else
40492char (*f) () = readdir_r;
40493#endif
40494#ifdef __cplusplus
40495}
40496#endif
40497
40498int
40499main ()
40500{
40501return f != readdir_r;
40502 ;
40503 return 0;
40504}
40505_ACEOF
40506rm -f conftest.$ac_objext conftest$ac_exeext
40507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40508 (eval $ac_link) 2>conftest.er1
40509 ac_status=$?
40510 grep -v '^ *+' conftest.er1 >conftest.err
40511 rm -f conftest.er1
40512 cat conftest.err >&5
40513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514 (exit $ac_status); } &&
6a5c9b3f
RR
40515 { ac_try='test -z "$ac_cxx_werror_flag"
40516 || test ! -s conftest.err'
004ee6da
RL
40517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40518 (eval $ac_try) 2>&5
40519 ac_status=$?
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); }; } &&
40522 { ac_try='test -s conftest$ac_exeext'
40523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40524 (eval $ac_try) 2>&5
40525 ac_status=$?
40526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40527 (exit $ac_status); }; }; then
40528 ac_cv_func_readdir_r=yes
40529else
40530 echo "$as_me: failed program was:" >&5
40531sed 's/^/| /' conftest.$ac_ext >&5
40532
40533ac_cv_func_readdir_r=no
40534fi
40535rm -f conftest.err conftest.$ac_objext \
40536 conftest$ac_exeext conftest.$ac_ext
40537fi
40538echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40539echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40540if test $ac_cv_func_readdir_r = yes; then
40541 cat >>confdefs.h <<\_ACEOF
40542#define HAVE_READDIR_R 1
40543_ACEOF
40544
40545fi
40546
004ee6da 40547
004ee6da
RL
40548
40549
40550 ac_ext=c
40551ac_cpp='$CPP $CPPFLAGS'
40552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40554ac_compiler_gnu=$ac_cv_c_compiler_gnu
40555
40556 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40557echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40558
40559 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40560 echo $ECHO_N "(cached) $ECHO_C" >&6
40561else
40562
40563
2f6c5bb5 40564################################################################
004ee6da
RL
40565
40566ac_cv_func_which_gethostbyname_r=unknown
40567
40568#
40569# ONE ARGUMENT (sanity check)
40570#
40571
40572# This should fail, as there is no variant of gethostbyname_r() that takes
40573# a single argument. If it actually compiles, then we can assume that
40574# netdb.h is not declaring the function, and the compiler is thereby
40575# assuming an implicit prototype. In which case, we're out of luck.
40576#
40577cat >conftest.$ac_ext <<_ACEOF
40578/* confdefs.h. */
40579_ACEOF
40580cat confdefs.h >>conftest.$ac_ext
40581cat >>conftest.$ac_ext <<_ACEOF
40582/* end confdefs.h. */
40583#include <netdb.h>
40584int
40585main ()
40586{
40587
40588 char *name = "www.gnu.org";
40589 (void)gethostbyname_r(name) /* ; */
40590
40591 ;
40592 return 0;
40593}
40594_ACEOF
40595rm -f conftest.$ac_objext
40596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40597 (eval $ac_compile) 2>conftest.er1
40598 ac_status=$?
40599 grep -v '^ *+' conftest.er1 >conftest.err
40600 rm -f conftest.er1
40601 cat conftest.err >&5
40602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603 (exit $ac_status); } &&
6a5c9b3f
RR
40604 { ac_try='test -z "$ac_c_werror_flag"
40605 || test ! -s conftest.err'
004ee6da
RL
40606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40607 (eval $ac_try) 2>&5
40608 ac_status=$?
40609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40610 (exit $ac_status); }; } &&
40611 { ac_try='test -s conftest.$ac_objext'
40612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40613 (eval $ac_try) 2>&5
40614 ac_status=$?
40615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616 (exit $ac_status); }; }; then
40617 ac_cv_func_which_gethostbyname_r=no
40618else
40619 echo "$as_me: failed program was:" >&5
40620sed 's/^/| /' conftest.$ac_ext >&5
40621
40622fi
40623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40624
40625#
40626# SIX ARGUMENTS
40627# (e.g. Linux)
40628#
40629
40630if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40631
40632cat >conftest.$ac_ext <<_ACEOF
40633/* confdefs.h. */
40634_ACEOF
40635cat confdefs.h >>conftest.$ac_ext
40636cat >>conftest.$ac_ext <<_ACEOF
40637/* end confdefs.h. */
40638#include <netdb.h>
40639int
40640main ()
40641{
40642
40643 char *name = "www.gnu.org";
40644 struct hostent ret, *retp;
40645 char buf[1024];
40646 int buflen = 1024;
40647 int my_h_errno;
40648 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40649
40650 ;
40651 return 0;
40652}
40653_ACEOF
40654rm -f conftest.$ac_objext
40655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40656 (eval $ac_compile) 2>conftest.er1
40657 ac_status=$?
40658 grep -v '^ *+' conftest.er1 >conftest.err
40659 rm -f conftest.er1
40660 cat conftest.err >&5
40661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662 (exit $ac_status); } &&
6a5c9b3f
RR
40663 { ac_try='test -z "$ac_c_werror_flag"
40664 || test ! -s conftest.err'
004ee6da
RL
40665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40666 (eval $ac_try) 2>&5
40667 ac_status=$?
40668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669 (exit $ac_status); }; } &&
40670 { ac_try='test -s conftest.$ac_objext'
40671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40672 (eval $ac_try) 2>&5
40673 ac_status=$?
40674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675 (exit $ac_status); }; }; then
40676 ac_cv_func_which_gethostbyname_r=six
40677else
40678 echo "$as_me: failed program was:" >&5
40679sed 's/^/| /' conftest.$ac_ext >&5
40680
40681fi
40682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40683
40684fi
40685
40686#
40687# FIVE ARGUMENTS
40688# (e.g. Solaris)
40689#
40690
40691if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40692
40693cat >conftest.$ac_ext <<_ACEOF
40694/* confdefs.h. */
40695_ACEOF
40696cat confdefs.h >>conftest.$ac_ext
40697cat >>conftest.$ac_ext <<_ACEOF
40698/* end confdefs.h. */
40699#include <netdb.h>
40700int
40701main ()
40702{
40703
40704 char *name = "www.gnu.org";
40705 struct hostent ret;
40706 char buf[1024];
40707 int buflen = 1024;
40708 int my_h_errno;
40709 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40710
40711 ;
40712 return 0;
40713}
40714_ACEOF
40715rm -f conftest.$ac_objext
40716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40717 (eval $ac_compile) 2>conftest.er1
40718 ac_status=$?
40719 grep -v '^ *+' conftest.er1 >conftest.err
40720 rm -f conftest.er1
40721 cat conftest.err >&5
40722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); } &&
6a5c9b3f
RR
40724 { ac_try='test -z "$ac_c_werror_flag"
40725 || test ! -s conftest.err'
004ee6da
RL
40726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727 (eval $ac_try) 2>&5
40728 ac_status=$?
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); }; } &&
40731 { ac_try='test -s conftest.$ac_objext'
40732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40733 (eval $ac_try) 2>&5
40734 ac_status=$?
40735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736 (exit $ac_status); }; }; then
40737 ac_cv_func_which_gethostbyname_r=five
40738else
40739 echo "$as_me: failed program was:" >&5
40740sed 's/^/| /' conftest.$ac_ext >&5
40741
40742fi
40743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40744
40745fi
40746
40747#
40748# THREE ARGUMENTS
40749# (e.g. AIX, HP-UX, Tru64)
40750#
40751
40752if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40753
40754cat >conftest.$ac_ext <<_ACEOF
40755/* confdefs.h. */
40756_ACEOF
40757cat confdefs.h >>conftest.$ac_ext
40758cat >>conftest.$ac_ext <<_ACEOF
40759/* end confdefs.h. */
40760#include <netdb.h>
40761int
40762main ()
40763{
40764
40765 char *name = "www.gnu.org";
40766 struct hostent ret;
40767 struct hostent_data data;
40768 (void)gethostbyname_r(name, &ret, &data) /* ; */
40769
40770 ;
40771 return 0;
40772}
40773_ACEOF
40774rm -f conftest.$ac_objext
40775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40776 (eval $ac_compile) 2>conftest.er1
40777 ac_status=$?
40778 grep -v '^ *+' conftest.er1 >conftest.err
40779 rm -f conftest.er1
40780 cat conftest.err >&5
40781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40782 (exit $ac_status); } &&
6a5c9b3f
RR
40783 { ac_try='test -z "$ac_c_werror_flag"
40784 || test ! -s conftest.err'
004ee6da
RL
40785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40786 (eval $ac_try) 2>&5
40787 ac_status=$?
40788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789 (exit $ac_status); }; } &&
40790 { ac_try='test -s conftest.$ac_objext'
40791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40792 (eval $ac_try) 2>&5
40793 ac_status=$?
40794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40795 (exit $ac_status); }; }; then
40796 ac_cv_func_which_gethostbyname_r=three
40797else
40798 echo "$as_me: failed program was:" >&5
40799sed 's/^/| /' conftest.$ac_ext >&5
40800
40801fi
40802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40803
40804fi
40805
2f6c5bb5 40806################################################################
004ee6da
RL
40807
40808
40809fi
40810
40811case "$ac_cv_func_which_gethostbyname_r" in
40812 three)
40813 echo "$as_me:$LINENO: result: three" >&5
40814echo "${ECHO_T}three" >&6
40815 cat >>confdefs.h <<\_ACEOF
40816#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40817_ACEOF
40818
40819 ;;
40820
40821 five)
40822 echo "$as_me:$LINENO: result: five" >&5
40823echo "${ECHO_T}five" >&6
40824 cat >>confdefs.h <<\_ACEOF
40825#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40826_ACEOF
40827
40828 ;;
40829
40830 six)
40831 echo "$as_me:$LINENO: result: six" >&5
40832echo "${ECHO_T}six" >&6
40833 cat >>confdefs.h <<\_ACEOF
40834#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40835_ACEOF
40836
40837 ;;
40838
40839 no)
40840 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40841echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40842 ;;
40843
40844 unknown)
40845 echo "$as_me:$LINENO: result: can't tell" >&5
40846echo "${ECHO_T}can't tell" >&6
40847 ;;
40848
40849 *)
40850 { { echo "$as_me:$LINENO: error: internal error" >&5
40851echo "$as_me: error: internal error" >&2;}
40852 { (exit 1); exit 1; }; }
40853 ;;
40854esac
40855
5ec3bc43
JS
40856ac_ext=cc
40857ac_cpp='$CXXCPP $CPPFLAGS'
40858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40861
40862
40863
40864 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40865 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40866 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40867echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40868if test "${ac_cv_func_gethostbyname+set}" = set; then
40869 echo $ECHO_N "(cached) $ECHO_C" >&6
40870else
40871 cat >conftest.$ac_ext <<_ACEOF
40872/* confdefs.h. */
40873_ACEOF
40874cat confdefs.h >>conftest.$ac_ext
40875cat >>conftest.$ac_ext <<_ACEOF
40876/* end confdefs.h. */
40877/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40879#define gethostbyname innocuous_gethostbyname
40880
40881/* System header to define __stub macros and hopefully few prototypes,
40882 which can conflict with char gethostbyname (); below.
40883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40884 <limits.h> exists even on freestanding compilers. */
40885
40886#ifdef __STDC__
40887# include <limits.h>
40888#else
40889# include <assert.h>
40890#endif
40891
40892#undef gethostbyname
40893
40894/* Override any gcc2 internal prototype to avoid an error. */
40895#ifdef __cplusplus
40896extern "C"
40897{
40898#endif
40899/* We use char because int might match the return type of a gcc2
40900 builtin and then its argument prototype would still apply. */
40901char gethostbyname ();
40902/* The GNU C library defines this for functions which it implements
40903 to always fail with ENOSYS. Some functions are actually named
40904 something starting with __ and the normal name is an alias. */
40905#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40906choke me
40907#else
40908char (*f) () = gethostbyname;
40909#endif
40910#ifdef __cplusplus
40911}
40912#endif
40913
40914int
40915main ()
40916{
40917return f != gethostbyname;
40918 ;
40919 return 0;
40920}
40921_ACEOF
40922rm -f conftest.$ac_objext conftest$ac_exeext
40923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40924 (eval $ac_link) 2>conftest.er1
40925 ac_status=$?
40926 grep -v '^ *+' conftest.er1 >conftest.err
40927 rm -f conftest.er1
40928 cat conftest.err >&5
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); } &&
6a5c9b3f
RR
40931 { ac_try='test -z "$ac_cxx_werror_flag"
40932 || test ! -s conftest.err'
004ee6da
RL
40933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40934 (eval $ac_try) 2>&5
40935 ac_status=$?
40936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40937 (exit $ac_status); }; } &&
40938 { ac_try='test -s conftest$ac_exeext'
40939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40940 (eval $ac_try) 2>&5
40941 ac_status=$?
40942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40943 (exit $ac_status); }; }; then
40944 ac_cv_func_gethostbyname=yes
40945else
40946 echo "$as_me: failed program was:" >&5
40947sed 's/^/| /' conftest.$ac_ext >&5
40948
40949ac_cv_func_gethostbyname=no
40950fi
40951rm -f conftest.err conftest.$ac_objext \
40952 conftest$ac_exeext conftest.$ac_ext
40953fi
40954echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40955echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40956if test $ac_cv_func_gethostbyname = yes; then
40957 cat >>confdefs.h <<\_ACEOF
40958#define HAVE_GETHOSTBYNAME 1
40959_ACEOF
40960
40961fi
40962
40963 fi
40964 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40965echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
3ecd9f92
MW
40966if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40967 echo $ECHO_N "(cached) $ECHO_C" >&6
40968else
40969
40970echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40971echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
40972if test "${ac_cv_func_getservbyname_r+set}" = set; then
40973 echo $ECHO_N "(cached) $ECHO_C" >&6
40974else
40975 cat >conftest.$ac_ext <<_ACEOF
40976/* confdefs.h. */
40977_ACEOF
40978cat confdefs.h >>conftest.$ac_ext
40979cat >>conftest.$ac_ext <<_ACEOF
40980/* end confdefs.h. */
40981/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40983#define getservbyname_r innocuous_getservbyname_r
40984
40985/* System header to define __stub macros and hopefully few prototypes,
40986 which can conflict with char getservbyname_r (); below.
40987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40988 <limits.h> exists even on freestanding compilers. */
40989
40990#ifdef __STDC__
40991# include <limits.h>
40992#else
40993# include <assert.h>
40994#endif
40995
40996#undef getservbyname_r
40997
40998/* Override any gcc2 internal prototype to avoid an error. */
40999#ifdef __cplusplus
41000extern "C"
41001{
41002#endif
41003/* We use char because int might match the return type of a gcc2
41004 builtin and then its argument prototype would still apply. */
41005char getservbyname_r ();
41006/* The GNU C library defines this for functions which it implements
41007 to always fail with ENOSYS. Some functions are actually named
41008 something starting with __ and the normal name is an alias. */
41009#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
41010choke me
41011#else
41012char (*f) () = getservbyname_r;
41013#endif
41014#ifdef __cplusplus
41015}
41016#endif
41017
41018int
41019main ()
41020{
41021return f != getservbyname_r;
41022 ;
41023 return 0;
41024}
41025_ACEOF
41026rm -f conftest.$ac_objext conftest$ac_exeext
41027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41028 (eval $ac_link) 2>conftest.er1
41029 ac_status=$?
41030 grep -v '^ *+' conftest.er1 >conftest.err
41031 rm -f conftest.er1
41032 cat conftest.err >&5
41033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034 (exit $ac_status); } &&
6a5c9b3f
RR
41035 { ac_try='test -z "$ac_cxx_werror_flag"
41036 || test ! -s conftest.err'
004ee6da
RL
41037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41038 (eval $ac_try) 2>&5
41039 ac_status=$?
41040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041 (exit $ac_status); }; } &&
41042 { ac_try='test -s conftest$ac_exeext'
41043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41044 (eval $ac_try) 2>&5
41045 ac_status=$?
41046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41047 (exit $ac_status); }; }; then
41048 ac_cv_func_getservbyname_r=yes
41049else
41050 echo "$as_me: failed program was:" >&5
41051sed 's/^/| /' conftest.$ac_ext >&5
41052
41053ac_cv_func_getservbyname_r=no
41054fi
41055rm -f conftest.err conftest.$ac_objext \
41056 conftest$ac_exeext conftest.$ac_ext
41057fi
41058echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
41059echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
41060if test $ac_cv_func_getservbyname_r = yes; then
3ecd9f92
MW
41061
41062 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41063/* confdefs.h. */
41064_ACEOF
41065cat confdefs.h >>conftest.$ac_ext
41066cat >>conftest.$ac_ext <<_ACEOF
41067/* end confdefs.h. */
3ecd9f92
MW
41068
41069# include <netdb.h>
41070
004ee6da
RL
41071int
41072main ()
41073{
41074
3ecd9f92
MW
41075
41076 char *name;
41077 char *proto;
41078 struct servent *se;
41079 struct servent_data data;
41080 (void) getservbyname_r(name, proto, se, &data);
41081
004ee6da
RL
41082
41083 ;
41084 return 0;
41085}
41086_ACEOF
41087rm -f conftest.$ac_objext
41088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41089 (eval $ac_compile) 2>conftest.er1
41090 ac_status=$?
41091 grep -v '^ *+' conftest.er1 >conftest.err
41092 rm -f conftest.er1
41093 cat conftest.err >&5
41094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41095 (exit $ac_status); } &&
6a5c9b3f
RR
41096 { ac_try='test -z "$ac_cxx_werror_flag"
41097 || test ! -s conftest.err'
004ee6da
RL
41098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41099 (eval $ac_try) 2>&5
41100 ac_status=$?
41101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41102 (exit $ac_status); }; } &&
41103 { ac_try='test -s conftest.$ac_objext'
41104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41105 (eval $ac_try) 2>&5
41106 ac_status=$?
41107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108 (exit $ac_status); }; }; then
41109 ac_cv_func_which_getservbyname_r=four
41110else
41111 echo "$as_me: failed program was:" >&5
41112sed 's/^/| /' conftest.$ac_ext >&5
41113
3ecd9f92
MW
41114
41115 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41116/* confdefs.h. */
41117_ACEOF
41118cat confdefs.h >>conftest.$ac_ext
41119cat >>conftest.$ac_ext <<_ACEOF
41120/* end confdefs.h. */
3ecd9f92
MW
41121
41122# include <netdb.h>
41123
004ee6da
RL
41124int
41125main ()
41126{
41127
3ecd9f92
MW
41128 char *name;
41129 char *proto;
41130 struct servent *se, *res;
41131 char buffer[2048];
41132 int buflen = 2048;
41133 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41134
41135 ;
41136 return 0;
41137}
41138_ACEOF
41139rm -f conftest.$ac_objext
41140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41141 (eval $ac_compile) 2>conftest.er1
41142 ac_status=$?
41143 grep -v '^ *+' conftest.er1 >conftest.err
41144 rm -f conftest.er1
41145 cat conftest.err >&5
41146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41147 (exit $ac_status); } &&
6a5c9b3f
RR
41148 { ac_try='test -z "$ac_cxx_werror_flag"
41149 || test ! -s conftest.err'
004ee6da
RL
41150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41151 (eval $ac_try) 2>&5
41152 ac_status=$?
41153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154 (exit $ac_status); }; } &&
41155 { ac_try='test -s conftest.$ac_objext'
41156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41157 (eval $ac_try) 2>&5
41158 ac_status=$?
41159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41160 (exit $ac_status); }; }; then
41161 ac_cv_func_which_getservbyname_r=six
41162else
41163 echo "$as_me: failed program was:" >&5
41164sed 's/^/| /' conftest.$ac_ext >&5
41165
3ecd9f92
MW
41166
41167 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41168/* confdefs.h. */
41169_ACEOF
41170cat confdefs.h >>conftest.$ac_ext
41171cat >>conftest.$ac_ext <<_ACEOF
41172/* end confdefs.h. */
3ecd9f92
MW
41173
41174# include <netdb.h>
41175
004ee6da
RL
41176int
41177main ()
41178{
41179
3ecd9f92
MW
41180 char *name;
41181 char *proto;
41182 struct servent *se;
41183 char buffer[2048];
41184 int buflen = 2048;
41185 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41186
41187 ;
41188 return 0;
41189}
41190_ACEOF
41191rm -f conftest.$ac_objext
41192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41193 (eval $ac_compile) 2>conftest.er1
41194 ac_status=$?
41195 grep -v '^ *+' conftest.er1 >conftest.err
41196 rm -f conftest.er1
41197 cat conftest.err >&5
41198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199 (exit $ac_status); } &&
6a5c9b3f
RR
41200 { ac_try='test -z "$ac_cxx_werror_flag"
41201 || test ! -s conftest.err'
004ee6da
RL
41202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41203 (eval $ac_try) 2>&5
41204 ac_status=$?
41205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41206 (exit $ac_status); }; } &&
41207 { ac_try='test -s conftest.$ac_objext'
41208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41209 (eval $ac_try) 2>&5
41210 ac_status=$?
41211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41212 (exit $ac_status); }; }; then
41213 ac_cv_func_which_getservbyname_r=five
41214else
41215 echo "$as_me: failed program was:" >&5
41216sed 's/^/| /' conftest.$ac_ext >&5
41217
41218ac_cv_func_which_getservbyname_r=no
41219fi
41220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41221
3ecd9f92
MW
41222
41223
41224
004ee6da
RL
41225fi
41226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41227
3ecd9f92 41228
004ee6da
RL
41229fi
41230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41231
004ee6da
RL
41232else
41233 ac_cv_func_which_getservbyname_r=no
41234fi
41235
3ecd9f92
MW
41236fi
41237echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41238echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41239
41240if test $ac_cv_func_which_getservbyname_r = six; then
41241 cat >>confdefs.h <<\_ACEOF
41242#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41243_ACEOF
41244
41245elif test $ac_cv_func_which_getservbyname_r = five; then
41246 cat >>confdefs.h <<\_ACEOF
41247#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41248_ACEOF
41249
41250elif test $ac_cv_func_which_getservbyname_r = four; then
41251 cat >>confdefs.h <<\_ACEOF
41252#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41253_ACEOF
41254
3ecd9f92 41255
004ee6da
RL
41256fi
41257
41258
41259 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41260 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41261
41262for ac_func in getservbyname
41263do
41264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41265echo "$as_me:$LINENO: checking for $ac_func" >&5
41266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41267if eval "test \"\${$as_ac_var+set}\" = set"; then
41268 echo $ECHO_N "(cached) $ECHO_C" >&6
41269else
41270 cat >conftest.$ac_ext <<_ACEOF
41271/* confdefs.h. */
41272_ACEOF
41273cat confdefs.h >>conftest.$ac_ext
41274cat >>conftest.$ac_ext <<_ACEOF
41275/* end confdefs.h. */
41276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41278#define $ac_func innocuous_$ac_func
41279
41280/* System header to define __stub macros and hopefully few prototypes,
41281 which can conflict with char $ac_func (); below.
41282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41283 <limits.h> exists even on freestanding compilers. */
41284
41285#ifdef __STDC__
41286# include <limits.h>
41287#else
41288# include <assert.h>
41289#endif
41290
41291#undef $ac_func
41292
41293/* Override any gcc2 internal prototype to avoid an error. */
41294#ifdef __cplusplus
41295extern "C"
41296{
41297#endif
41298/* We use char because int might match the return type of a gcc2
41299 builtin and then its argument prototype would still apply. */
41300char $ac_func ();
41301/* The GNU C library defines this for functions which it implements
41302 to always fail with ENOSYS. Some functions are actually named
41303 something starting with __ and the normal name is an alias. */
41304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41305choke me
41306#else
41307char (*f) () = $ac_func;
41308#endif
41309#ifdef __cplusplus
41310}
41311#endif
41312
41313int
41314main ()
41315{
41316return f != $ac_func;
41317 ;
41318 return 0;
41319}
41320_ACEOF
41321rm -f conftest.$ac_objext conftest$ac_exeext
41322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41323 (eval $ac_link) 2>conftest.er1
41324 ac_status=$?
41325 grep -v '^ *+' conftest.er1 >conftest.err
41326 rm -f conftest.er1
41327 cat conftest.err >&5
41328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); } &&
6a5c9b3f
RR
41330 { ac_try='test -z "$ac_cxx_werror_flag"
41331 || test ! -s conftest.err'
004ee6da
RL
41332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41333 (eval $ac_try) 2>&5
41334 ac_status=$?
41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336 (exit $ac_status); }; } &&
41337 { ac_try='test -s conftest$ac_exeext'
41338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41339 (eval $ac_try) 2>&5
41340 ac_status=$?
41341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41342 (exit $ac_status); }; }; then
41343 eval "$as_ac_var=yes"
41344else
41345 echo "$as_me: failed program was:" >&5
41346sed 's/^/| /' conftest.$ac_ext >&5
41347
41348eval "$as_ac_var=no"
41349fi
41350rm -f conftest.err conftest.$ac_objext \
41351 conftest$ac_exeext conftest.$ac_ext
41352fi
41353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41354echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41355if test `eval echo '${'$as_ac_var'}'` = yes; then
41356 cat >>confdefs.h <<_ACEOF
41357#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41358_ACEOF
41359 cat >>confdefs.h <<\_ACEOF
41360#define HAVE_GETSERVBYNAME 1
41361_ACEOF
41362
41363fi
41364done
41365
41366 fi
41367
004ee6da
RL
41368if test "$wxUSE_THREADS" = "yes"; then
41369 cat >>confdefs.h <<\_ACEOF
41370#define wxUSE_THREADS 1
41371_ACEOF
41372
41373
41374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41375else
56632e81 41376 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41377 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41378echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41379 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41380 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41381 echo "$as_me:$LINENO: result: yes" >&5
41382echo "${ECHO_T}yes" >&6
41383 else
41384 echo "$as_me:$LINENO: result: no" >&5
41385echo "${ECHO_T}no" >&6
41386 fi
41387 fi
41388fi
41389
41390if test "$WXGTK20" = 1 ; then
41391 cat >>confdefs.h <<_ACEOF
41392#define __WXGTK20__ $WXGTK20
41393_ACEOF
41394
41395 WXGTK12=1
41396fi
41397
41398if test "$WXGTK12" = 1 ; then
41399 cat >>confdefs.h <<_ACEOF
41400#define __WXGTK12__ $WXGTK12
41401_ACEOF
41402
41403fi
41404
41405if test "$WXGTK127" = 1 ; then
41406 cat >>confdefs.h <<_ACEOF
41407#define __WXGTK127__ $WXGTK127
41408_ACEOF
41409
41410fi
41411
41412if test "$WXGPE" = 1 ; then
41413 cat >>confdefs.h <<_ACEOF
41414#define __WXGPE__ $WXGPE
41415_ACEOF
41416
41417fi
41418
41419DEBUG_CFLAGS=
41420if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41421 DEBUG_CFLAGS="-g"
41422 wxUSE_OPTIMISE=no
41423fi
41424
41425if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41426 wxUSE_DEBUG_INFO=yes
41427 if test "$GCC" = yes; then
41428 DEBUG_CFLAGS="-ggdb"
41429 fi
41430fi
41431
41432if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41433 cat >>confdefs.h <<\_ACEOF
41434#define WXDEBUG 1
41435_ACEOF
41436
41437 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41438else
41439 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41440 if test "x$wxGTK_VERSION" = "x1" ; then
41441 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41442 fi
004ee6da
RL
41443 fi
41444fi
41445
41446if test "$wxUSE_MEM_TRACING" = "yes" ; then
41447 cat >>confdefs.h <<\_ACEOF
41448#define wxUSE_MEMORY_TRACING 1
41449_ACEOF
41450
41451 cat >>confdefs.h <<\_ACEOF
41452#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41453_ACEOF
41454
41455 cat >>confdefs.h <<\_ACEOF
41456#define wxUSE_DEBUG_NEW_ALWAYS 1
41457_ACEOF
41458
41459 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41460fi
41461
41462if test "$wxUSE_DMALLOC" = "yes" ; then
41463 DMALLOC_LIBS="-ldmallocthcxx"
41464fi
41465
41466PROFILE_FLAGS=
41467if test "$wxUSE_PROFILE" = "yes" ; then
41468 PROFILE_FLAGS=" -pg"
41469fi
41470
41471if test "$GCC" = "yes" ; then
41472 if test "$wxUSE_NO_RTTI" = "yes" ; then
41473 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41474 fi
41475 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41476 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41477 fi
41478 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41479 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41480 fi
41481
41482 case "${host}" in
41483 powerpc*-*-aix* )
41484 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41485 ;;
41486 *-hppa* )
41487 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41488 ;;
41489 esac
41490fi
41491
41492OPTIMISE_CFLAGS=
41493if test "$wxUSE_OPTIMISE" = "no" ; then
41494 if test "$GCC" = yes ; then
41495 OPTIMISE_CFLAGS="-O0"
41496 fi
41497else
41498 if test "$GCC" = yes ; then
e5efa97e
VZ
41499 case "${host}" in
41500 *-pc-os2_emx | *-pc-os2-emx )
41501 OPTIMISE_CFLAGS="-O2"
41502 ;;
41503 *)
41504 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41505 ;;
41506 esac
004ee6da
RL
41507 else
41508 OPTIMISE_CFLAGS="-O"
41509 fi
41510fi
41511
41512
41513if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41514 cat >>confdefs.h <<\_ACEOF
41515#define WXWIN_COMPATIBILITY_2_4 1
41516_ACEOF
41517
41518
41519 WXWIN_COMPATIBILITY_2_6="yes"
41520fi
41521
41522if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41523 cat >>confdefs.h <<\_ACEOF
41524#define WXWIN_COMPATIBILITY_2_6 1
41525_ACEOF
41526
41527fi
41528
41529
41530if test "$wxUSE_GUI" = "yes"; then
41531 cat >>confdefs.h <<\_ACEOF
41532#define wxUSE_GUI 1
41533_ACEOF
41534
41535
41536 fi
41537
41538
41539if test "$wxUSE_UNIX" = "yes"; then
41540 cat >>confdefs.h <<\_ACEOF
41541#define wxUSE_UNIX 1
41542_ACEOF
41543
41544fi
41545
41546
41547if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41548
41549 HAVE_DL_FUNCS=0
41550 HAVE_SHL_FUNCS=0
41551 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41552 if test "$USE_DARWIN" = 1; then
41553 HAVE_DL_FUNCS=1
41554 elif test "$USE_DOS" = 1; then
41555 HAVE_DL_FUNCS=0
41556 else
41557
41558for ac_func in dlopen
41559do
41560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41561echo "$as_me:$LINENO: checking for $ac_func" >&5
41562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41563if eval "test \"\${$as_ac_var+set}\" = set"; then
41564 echo $ECHO_N "(cached) $ECHO_C" >&6
41565else
41566 cat >conftest.$ac_ext <<_ACEOF
41567/* confdefs.h. */
41568_ACEOF
41569cat confdefs.h >>conftest.$ac_ext
41570cat >>conftest.$ac_ext <<_ACEOF
41571/* end confdefs.h. */
41572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41574#define $ac_func innocuous_$ac_func
41575
41576/* System header to define __stub macros and hopefully few prototypes,
41577 which can conflict with char $ac_func (); below.
41578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41579 <limits.h> exists even on freestanding compilers. */
41580
41581#ifdef __STDC__
41582# include <limits.h>
41583#else
41584# include <assert.h>
41585#endif
41586
41587#undef $ac_func
41588
41589/* Override any gcc2 internal prototype to avoid an error. */
41590#ifdef __cplusplus
41591extern "C"
41592{
41593#endif
41594/* We use char because int might match the return type of a gcc2
41595 builtin and then its argument prototype would still apply. */
41596char $ac_func ();
41597/* The GNU C library defines this for functions which it implements
41598 to always fail with ENOSYS. Some functions are actually named
41599 something starting with __ and the normal name is an alias. */
41600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41601choke me
41602#else
41603char (*f) () = $ac_func;
41604#endif
41605#ifdef __cplusplus
41606}
41607#endif
41608
41609int
41610main ()
41611{
41612return f != $ac_func;
a848cd7e
SC
41613 ;
41614 return 0;
41615}
41616_ACEOF
41617rm -f conftest.$ac_objext conftest$ac_exeext
41618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41619 (eval $ac_link) 2>conftest.er1
a848cd7e 41620 ac_status=$?
ac1cb8d3
VS
41621 grep -v '^ *+' conftest.er1 >conftest.err
41622 rm -f conftest.er1
41623 cat conftest.err >&5
a848cd7e
SC
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); } &&
6a5c9b3f
RR
41626 { ac_try='test -z "$ac_cxx_werror_flag"
41627 || test ! -s conftest.err'
ac1cb8d3
VS
41628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41629 (eval $ac_try) 2>&5
41630 ac_status=$?
41631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632 (exit $ac_status); }; } &&
41633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41635 (eval $ac_try) 2>&5
41636 ac_status=$?
41637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638 (exit $ac_status); }; }; then
41639 eval "$as_ac_var=yes"
41640else
41641 echo "$as_me: failed program was:" >&5
41642sed 's/^/| /' conftest.$ac_ext >&5
41643
41644eval "$as_ac_var=no"
41645fi
ac1cb8d3
VS
41646rm -f conftest.err conftest.$ac_objext \
41647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41648fi
41649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41651if test `eval echo '${'$as_ac_var'}'` = yes; then
41652 cat >>confdefs.h <<_ACEOF
41653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41654_ACEOF
41655
41656 cat >>confdefs.h <<\_ACEOF
41657#define HAVE_DLOPEN 1
41658_ACEOF
41659
41660 HAVE_DL_FUNCS=1
41661
41662else
41663
41664 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41665echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41666if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41667 echo $ECHO_N "(cached) $ECHO_C" >&6
41668else
41669 ac_check_lib_save_LIBS=$LIBS
41670LIBS="-ldl $LIBS"
41671cat >conftest.$ac_ext <<_ACEOF
41672/* confdefs.h. */
41673_ACEOF
41674cat confdefs.h >>conftest.$ac_ext
41675cat >>conftest.$ac_ext <<_ACEOF
41676/* end confdefs.h. */
41677
41678/* Override any gcc2 internal prototype to avoid an error. */
41679#ifdef __cplusplus
41680extern "C"
41681#endif
41682/* We use char because int might match the return type of a gcc2
41683 builtin and then its argument prototype would still apply. */
41684char dlopen ();
41685int
41686main ()
41687{
41688dlopen ();
41689 ;
41690 return 0;
41691}
41692_ACEOF
41693rm -f conftest.$ac_objext conftest$ac_exeext
41694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41695 (eval $ac_link) 2>conftest.er1
a848cd7e 41696 ac_status=$?
ac1cb8d3
VS
41697 grep -v '^ *+' conftest.er1 >conftest.err
41698 rm -f conftest.er1
41699 cat conftest.err >&5
a848cd7e
SC
41700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41701 (exit $ac_status); } &&
6a5c9b3f
RR
41702 { ac_try='test -z "$ac_cxx_werror_flag"
41703 || test ! -s conftest.err'
ac1cb8d3
VS
41704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41705 (eval $ac_try) 2>&5
41706 ac_status=$?
41707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708 (exit $ac_status); }; } &&
41709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41711 (eval $ac_try) 2>&5
41712 ac_status=$?
41713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41714 (exit $ac_status); }; }; then
41715 ac_cv_lib_dl_dlopen=yes
41716else
41717 echo "$as_me: failed program was:" >&5
41718sed 's/^/| /' conftest.$ac_ext >&5
41719
41720ac_cv_lib_dl_dlopen=no
41721fi
ac1cb8d3
VS
41722rm -f conftest.err conftest.$ac_objext \
41723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41724LIBS=$ac_check_lib_save_LIBS
41725fi
41726echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41727echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41728if test $ac_cv_lib_dl_dlopen = yes; then
41729
41730 cat >>confdefs.h <<\_ACEOF
41731#define HAVE_DLOPEN 1
41732_ACEOF
41733
41734 HAVE_DL_FUNCS=1
41735 DL_LINK=" -ldl$DL_LINK"
41736
41737else
41738
41739
41740for ac_func in shl_load
41741do
41742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41743echo "$as_me:$LINENO: checking for $ac_func" >&5
41744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41745if eval "test \"\${$as_ac_var+set}\" = set"; then
41746 echo $ECHO_N "(cached) $ECHO_C" >&6
41747else
41748 cat >conftest.$ac_ext <<_ACEOF
41749/* confdefs.h. */
41750_ACEOF
41751cat confdefs.h >>conftest.$ac_ext
41752cat >>conftest.$ac_ext <<_ACEOF
41753/* end confdefs.h. */
ac1cb8d3
VS
41754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41756#define $ac_func innocuous_$ac_func
41757
a848cd7e
SC
41758/* System header to define __stub macros and hopefully few prototypes,
41759 which can conflict with char $ac_func (); below.
41760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41761 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41762
a848cd7e
SC
41763#ifdef __STDC__
41764# include <limits.h>
41765#else
41766# include <assert.h>
41767#endif
ac1cb8d3
VS
41768
41769#undef $ac_func
41770
a848cd7e
SC
41771/* Override any gcc2 internal prototype to avoid an error. */
41772#ifdef __cplusplus
41773extern "C"
41774{
41775#endif
41776/* We use char because int might match the return type of a gcc2
41777 builtin and then its argument prototype would still apply. */
41778char $ac_func ();
41779/* The GNU C library defines this for functions which it implements
41780 to always fail with ENOSYS. Some functions are actually named
41781 something starting with __ and the normal name is an alias. */
41782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41783choke me
41784#else
41785char (*f) () = $ac_func;
41786#endif
41787#ifdef __cplusplus
41788}
41789#endif
41790
41791int
41792main ()
41793{
41794return f != $ac_func;
41795 ;
41796 return 0;
41797}
41798_ACEOF
41799rm -f conftest.$ac_objext conftest$ac_exeext
41800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41801 (eval $ac_link) 2>conftest.er1
a848cd7e 41802 ac_status=$?
ac1cb8d3
VS
41803 grep -v '^ *+' conftest.er1 >conftest.err
41804 rm -f conftest.er1
41805 cat conftest.err >&5
a848cd7e
SC
41806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41807 (exit $ac_status); } &&
6a5c9b3f
RR
41808 { ac_try='test -z "$ac_cxx_werror_flag"
41809 || test ! -s conftest.err'
ac1cb8d3
VS
41810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41811 (eval $ac_try) 2>&5
41812 ac_status=$?
41813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41814 (exit $ac_status); }; } &&
41815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41817 (eval $ac_try) 2>&5
41818 ac_status=$?
41819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41820 (exit $ac_status); }; }; then
41821 eval "$as_ac_var=yes"
41822else
41823 echo "$as_me: failed program was:" >&5
41824sed 's/^/| /' conftest.$ac_ext >&5
41825
41826eval "$as_ac_var=no"
41827fi
ac1cb8d3
VS
41828rm -f conftest.err conftest.$ac_objext \
41829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41830fi
41831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41833if test `eval echo '${'$as_ac_var'}'` = yes; then
41834 cat >>confdefs.h <<_ACEOF
41835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41836_ACEOF
41837
41838 cat >>confdefs.h <<\_ACEOF
41839#define HAVE_SHL_LOAD 1
41840_ACEOF
41841
41842 HAVE_SHL_FUNCS=1
41843
41844else
41845
41846 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41847echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41848if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41849 echo $ECHO_N "(cached) $ECHO_C" >&6
41850else
41851 ac_check_lib_save_LIBS=$LIBS
41852LIBS="-lshl_load $LIBS"
41853cat >conftest.$ac_ext <<_ACEOF
41854/* confdefs.h. */
41855_ACEOF
41856cat confdefs.h >>conftest.$ac_ext
41857cat >>conftest.$ac_ext <<_ACEOF
41858/* end confdefs.h. */
41859
41860/* Override any gcc2 internal prototype to avoid an error. */
41861#ifdef __cplusplus
41862extern "C"
41863#endif
41864/* We use char because int might match the return type of a gcc2
41865 builtin and then its argument prototype would still apply. */
41866char dld ();
41867int
41868main ()
41869{
41870dld ();
41871 ;
41872 return 0;
41873}
41874_ACEOF
41875rm -f conftest.$ac_objext conftest$ac_exeext
41876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41877 (eval $ac_link) 2>conftest.er1
a848cd7e 41878 ac_status=$?
ac1cb8d3
VS
41879 grep -v '^ *+' conftest.er1 >conftest.err
41880 rm -f conftest.er1
41881 cat conftest.err >&5
a848cd7e
SC
41882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883 (exit $ac_status); } &&
6a5c9b3f
RR
41884 { ac_try='test -z "$ac_cxx_werror_flag"
41885 || test ! -s conftest.err'
ac1cb8d3
VS
41886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41887 (eval $ac_try) 2>&5
41888 ac_status=$?
41889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41890 (exit $ac_status); }; } &&
41891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41893 (eval $ac_try) 2>&5
41894 ac_status=$?
41895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896 (exit $ac_status); }; }; then
41897 ac_cv_lib_shl_load_dld=yes
41898else
41899 echo "$as_me: failed program was:" >&5
41900sed 's/^/| /' conftest.$ac_ext >&5
41901
41902ac_cv_lib_shl_load_dld=no
41903fi
ac1cb8d3
VS
41904rm -f conftest.err conftest.$ac_objext \
41905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41906LIBS=$ac_check_lib_save_LIBS
41907fi
41908echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41909echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41910if test $ac_cv_lib_shl_load_dld = yes; then
41911
41912 HAVE_SHL_FUNCS=1
41913 DL_LINK=" -ldld$DL_LINK"
41914
41915fi
41916
41917
41918fi
41919done
41920
41921
41922fi
41923
41924
41925fi
41926done
41927
41928
41929 if test "$HAVE_DL_FUNCS" = 1; then
41930
41931for ac_func in dlerror
41932do
41933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41934echo "$as_me:$LINENO: checking for $ac_func" >&5
41935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41936if eval "test \"\${$as_ac_var+set}\" = set"; then
41937 echo $ECHO_N "(cached) $ECHO_C" >&6
41938else
41939 cat >conftest.$ac_ext <<_ACEOF
41940/* confdefs.h. */
41941_ACEOF
41942cat confdefs.h >>conftest.$ac_ext
41943cat >>conftest.$ac_ext <<_ACEOF
41944/* end confdefs.h. */
ac1cb8d3
VS
41945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41947#define $ac_func innocuous_$ac_func
41948
a848cd7e
SC
41949/* System header to define __stub macros and hopefully few prototypes,
41950 which can conflict with char $ac_func (); below.
41951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41952 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41953
a848cd7e
SC
41954#ifdef __STDC__
41955# include <limits.h>
41956#else
41957# include <assert.h>
41958#endif
ac1cb8d3
VS
41959
41960#undef $ac_func
41961
a848cd7e
SC
41962/* Override any gcc2 internal prototype to avoid an error. */
41963#ifdef __cplusplus
41964extern "C"
41965{
41966#endif
41967/* We use char because int might match the return type of a gcc2
41968 builtin and then its argument prototype would still apply. */
41969char $ac_func ();
41970/* The GNU C library defines this for functions which it implements
41971 to always fail with ENOSYS. Some functions are actually named
41972 something starting with __ and the normal name is an alias. */
41973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41974choke me
41975#else
41976char (*f) () = $ac_func;
41977#endif
41978#ifdef __cplusplus
41979}
41980#endif
41981
41982int
41983main ()
41984{
41985return f != $ac_func;
41986 ;
41987 return 0;
41988}
41989_ACEOF
41990rm -f conftest.$ac_objext conftest$ac_exeext
41991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41992 (eval $ac_link) 2>conftest.er1
a848cd7e 41993 ac_status=$?
ac1cb8d3
VS
41994 grep -v '^ *+' conftest.er1 >conftest.err
41995 rm -f conftest.er1
41996 cat conftest.err >&5
a848cd7e
SC
41997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41998 (exit $ac_status); } &&
6a5c9b3f
RR
41999 { ac_try='test -z "$ac_cxx_werror_flag"
42000 || test ! -s conftest.err'
ac1cb8d3
VS
42001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42002 (eval $ac_try) 2>&5
42003 ac_status=$?
42004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42005 (exit $ac_status); }; } &&
42006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008 (eval $ac_try) 2>&5
42009 ac_status=$?
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); }; }; then
42012 eval "$as_ac_var=yes"
42013else
42014 echo "$as_me: failed program was:" >&5
42015sed 's/^/| /' conftest.$ac_ext >&5
42016
42017eval "$as_ac_var=no"
42018fi
ac1cb8d3
VS
42019rm -f conftest.err conftest.$ac_objext \
42020 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42021fi
42022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42024if test `eval echo '${'$as_ac_var'}'` = yes; then
42025 cat >>confdefs.h <<_ACEOF
42026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42027_ACEOF
42028 cat >>confdefs.h <<\_ACEOF
42029#define HAVE_DLERROR 1
42030_ACEOF
42031
42032else
42033
42034 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42035echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42036if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42037 echo $ECHO_N "(cached) $ECHO_C" >&6
42038else
42039 ac_check_lib_save_LIBS=$LIBS
42040LIBS="-ldl $LIBS"
42041cat >conftest.$ac_ext <<_ACEOF
42042/* confdefs.h. */
42043_ACEOF
42044cat confdefs.h >>conftest.$ac_ext
42045cat >>conftest.$ac_ext <<_ACEOF
42046/* end confdefs.h. */
42047
42048/* Override any gcc2 internal prototype to avoid an error. */
42049#ifdef __cplusplus
42050extern "C"
42051#endif
42052/* We use char because int might match the return type of a gcc2
42053 builtin and then its argument prototype would still apply. */
42054char dlerror ();
42055int
42056main ()
42057{
42058dlerror ();
42059 ;
42060 return 0;
42061}
42062_ACEOF
42063rm -f conftest.$ac_objext conftest$ac_exeext
42064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42065 (eval $ac_link) 2>conftest.er1
a848cd7e 42066 ac_status=$?
ac1cb8d3
VS
42067 grep -v '^ *+' conftest.er1 >conftest.err
42068 rm -f conftest.er1
42069 cat conftest.err >&5
a848cd7e
SC
42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071 (exit $ac_status); } &&
6a5c9b3f
RR
42072 { ac_try='test -z "$ac_cxx_werror_flag"
42073 || test ! -s conftest.err'
ac1cb8d3
VS
42074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42075 (eval $ac_try) 2>&5
42076 ac_status=$?
42077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42078 (exit $ac_status); }; } &&
42079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42081 (eval $ac_try) 2>&5
42082 ac_status=$?
42083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084 (exit $ac_status); }; }; then
42085 ac_cv_lib_dl_dlerror=yes
42086else
42087 echo "$as_me: failed program was:" >&5
42088sed 's/^/| /' conftest.$ac_ext >&5
42089
42090ac_cv_lib_dl_dlerror=no
42091fi
ac1cb8d3
VS
42092rm -f conftest.err conftest.$ac_objext \
42093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42094LIBS=$ac_check_lib_save_LIBS
42095fi
42096echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42097echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42098if test $ac_cv_lib_dl_dlerror = yes; then
42099 cat >>confdefs.h <<\_ACEOF
42100#define HAVE_DLERROR 1
42101_ACEOF
42102
42103fi
42104
42105
42106
42107fi
42108done
42109
42110 fi
42111 fi
42112
42113 if test "$HAVE_DL_FUNCS" = 0; then
42114 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42115 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42116 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42117echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42118 wxUSE_DYNAMIC_LOADER=no
42119 wxUSE_DYNLIB_CLASS=no
42120 else
42121 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42122echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42123 fi
42124 fi
42125 fi
42126 fi
42127fi
42128
42129if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42130 cat >>confdefs.h <<\_ACEOF
42131#define wxUSE_DYNAMIC_LOADER 1
42132_ACEOF
42133
42134fi
42135if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42136 cat >>confdefs.h <<\_ACEOF
42137#define wxUSE_DYNLIB_CLASS 1
42138_ACEOF
42139
42140fi
42141
42142
42143
42144if test "$wxUSE_PLUGINS" = "yes" ; then
42145 if test "$wxUSE_SHARED" = "no" ; then
42146 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42147echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42148 wxUSE_PLUGINS=no
42149 fi
42150 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42151 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42152echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42153 wxUSE_PLUGINS=no
42154 fi
42155 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42156 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42157echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42158 wxUSE_PLUGINS=no
42159 fi
42160 if test "$wxUSE_PLUGINS" = "yes" ; then
42161 cat >>confdefs.h <<\_ACEOF
42162#define wxUSE_PLUGINS 1
42163_ACEOF
42164
42165 fi
42166fi
42167
42168
42169if test "$wxUSE_STL" = "yes"; then
42170 cat >>confdefs.h <<\_ACEOF
42171#define wxUSE_STL 1
42172_ACEOF
42173
42174fi
42175
42176if test "$wxUSE_APPLE_IEEE" = "yes"; then
42177 cat >>confdefs.h <<\_ACEOF
42178#define wxUSE_APPLE_IEEE 1
42179_ACEOF
42180
42181fi
42182
42183if test "$wxUSE_TIMER" = "yes"; then
42184 cat >>confdefs.h <<\_ACEOF
42185#define wxUSE_TIMER 1
42186_ACEOF
42187
42188fi
42189
9c112555 42190if test "$USE_UNIX" = "1" ; then
31714590
VZ
42191 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42192echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42193if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42194 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42195else
d12aef51
VZ
42196
42197 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42198/* confdefs.h. */
42199_ACEOF
42200cat confdefs.h >>conftest.$ac_ext
42201cat >>conftest.$ac_ext <<_ACEOF
42202/* end confdefs.h. */
d12aef51 42203
31714590 42204 #include <sys/ioctl.h>
d12aef51
VZ
42205 #include <sys/soundcard.h>
42206
42207int
42208main ()
42209{
42210
31714590 42211 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42212
42213 ;
42214 return 0;
42215}
a848cd7e 42216_ACEOF
d12aef51
VZ
42217rm -f conftest.$ac_objext conftest$ac_exeext
42218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42219 (eval $ac_link) 2>conftest.er1
a848cd7e 42220 ac_status=$?
ac1cb8d3
VS
42221 grep -v '^ *+' conftest.er1 >conftest.err
42222 rm -f conftest.er1
42223 cat conftest.err >&5
a848cd7e
SC
42224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42225 (exit $ac_status); } &&
6a5c9b3f
RR
42226 { ac_try='test -z "$ac_cxx_werror_flag"
42227 || test ! -s conftest.err'
ac1cb8d3
VS
42228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42229 (eval $ac_try) 2>&5
42230 ac_status=$?
42231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42232 (exit $ac_status); }; } &&
d12aef51 42233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42235 (eval $ac_try) 2>&5
42236 ac_status=$?
42237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238 (exit $ac_status); }; }; then
d12aef51 42239 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42240else
42241 echo "$as_me: failed program was:" >&5
42242sed 's/^/| /' conftest.$ac_ext >&5
42243
a848cd7e 42244
d12aef51
VZ
42245 saveLibs="$LIBS"
42246 LIBS="$saveLibs -lossaudio"
42247 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42248/* confdefs.h. */
42249_ACEOF
42250cat confdefs.h >>conftest.$ac_ext
42251cat >>conftest.$ac_ext <<_ACEOF
42252/* end confdefs.h. */
d12aef51 42253
31714590 42254 #include <sys/ioctl.h>
d12aef51
VZ
42255 #include <sys/soundcard.h>
42256
42257int
42258main ()
42259{
42260
31714590 42261 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42262
42263 ;
42264 return 0;
42265}
a848cd7e 42266_ACEOF
d12aef51
VZ
42267rm -f conftest.$ac_objext conftest$ac_exeext
42268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42269 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42270 ac_status=$?
42271 grep -v '^ *+' conftest.er1 >conftest.err
42272 rm -f conftest.er1
42273 cat conftest.err >&5
42274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42275 (exit $ac_status); } &&
6a5c9b3f
RR
42276 { ac_try='test -z "$ac_cxx_werror_flag"
42277 || test ! -s conftest.err'
d12aef51
VZ
42278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42279 (eval $ac_try) 2>&5
42280 ac_status=$?
42281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282 (exit $ac_status); }; } &&
42283 { ac_try='test -s conftest$ac_exeext'
42284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42285 (eval $ac_try) 2>&5
42286 ac_status=$?
42287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288 (exit $ac_status); }; }; then
42289 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42290else
42291 echo "$as_me: failed program was:" >&5
42292sed 's/^/| /' conftest.$ac_ext >&5
42293
a848cd7e 42294
d12aef51
VZ
42295 LIBS="$saveLibs"
42296 ac_cv_header_sys_soundcard=no
42297
42298
a848cd7e 42299fi
d12aef51
VZ
42300rm -f conftest.err conftest.$ac_objext \
42301 conftest$ac_exeext conftest.$ac_ext
42302
a848cd7e
SC
42303
42304fi
d12aef51
VZ
42305rm -f conftest.err conftest.$ac_objext \
42306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42307
42308fi
d12aef51
VZ
42309echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42310echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42311
d12aef51
VZ
42312 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42313 cat >>confdefs.h <<\_ACEOF
42314#define HAVE_SYS_SOUNDCARD_H 1
42315_ACEOF
a848cd7e 42316
d12aef51
VZ
42317 else
42318 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42319 fi
9c112555
MW
42320fi
42321WITH_PLUGIN_SDL=0
42322if test "$wxUSE_SOUND" = "yes"; then
42323 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42324 if test "$wxUSE_LIBSDL" != "no"; then
42325
42326# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42327if test "${with_sdl_prefix+set}" = set; then
42328 withval="$with_sdl_prefix"
42329 sdl_prefix="$withval"
42330else
42331 sdl_prefix=""
42332fi;
42333
42334# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42335if test "${with_sdl_exec_prefix+set}" = set; then
42336 withval="$with_sdl_exec_prefix"
42337 sdl_exec_prefix="$withval"
42338else
42339 sdl_exec_prefix=""
42340fi;
42341# Check whether --enable-sdltest or --disable-sdltest was given.
42342if test "${enable_sdltest+set}" = set; then
42343 enableval="$enable_sdltest"
42344
42345else
42346 enable_sdltest=yes
42347fi;
42348
42349 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42350 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42351 if test x${SDL_CONFIG+set} != xset ; then
42352 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42353 fi
a848cd7e
SC
42354 fi
42355 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42356 sdl_args="$sdl_args --prefix=$sdl_prefix"
42357 if test x${SDL_CONFIG+set} != xset ; then
42358 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42359 fi
a848cd7e
SC
42360 fi
42361
3ecd9f92
MW
42362 if test "x$prefix" != xNONE; then
42363 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42364 fi
a848cd7e
SC
42365 # Extract the first word of "sdl-config", so it can be a program name with args.
42366set dummy sdl-config; ac_word=$2
42367echo "$as_me:$LINENO: checking for $ac_word" >&5
42368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42369if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42370 echo $ECHO_N "(cached) $ECHO_C" >&6
42371else
42372 case $SDL_CONFIG in
42373 [\\/]* | ?:[\\/]*)
42374 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42375 ;;
42376 *)
42377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42378for as_dir in $PATH
42379do
42380 IFS=$as_save_IFS
42381 test -z "$as_dir" && as_dir=.
42382 for ac_exec_ext in '' $ac_executable_extensions; do
42383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42384 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42386 break 2
42387 fi
42388done
42389done
42390
42391 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42392 ;;
42393esac
42394fi
42395SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42396
42397if test -n "$SDL_CONFIG"; then
42398 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42399echo "${ECHO_T}$SDL_CONFIG" >&6
42400else
42401 echo "$as_me:$LINENO: result: no" >&5
42402echo "${ECHO_T}no" >&6
42403fi
42404
42405 min_sdl_version=1.2.0
42406 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42407echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42408 no_sdl=""
42409 if test "$SDL_CONFIG" = "no" ; then
42410 no_sdl=yes
42411 else
42412 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42413 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42414
42415 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42416 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42417 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42418 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42419 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42420 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42421 if test "x$enable_sdltest" = "xyes" ; then
42422 ac_save_CFLAGS="$CFLAGS"
94acd38e 42423 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42424 ac_save_LIBS="$LIBS"
42425 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42426 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42427 LIBS="$LIBS $SDL_LIBS"
42428 rm -f conf.sdltest
42429 if test "$cross_compiling" = yes; then
42430 echo $ac_n "cross compiling; assumed OK... $ac_c"
42431else
42432 cat >conftest.$ac_ext <<_ACEOF
42433/* confdefs.h. */
42434_ACEOF
42435cat confdefs.h >>conftest.$ac_ext
42436cat >>conftest.$ac_ext <<_ACEOF
42437/* end confdefs.h. */
42438
42439#include <stdio.h>
42440#include <stdlib.h>
42441#include <string.h>
42442#include "SDL.h"
42443
42444char*
42445my_strdup (char *str)
42446{
42447 char *new_str;
42448
42449 if (str)
42450 {
42451 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42452 strcpy (new_str, str);
42453 }
42454 else
42455 new_str = NULL;
42456
42457 return new_str;
42458}
42459
42460int main (int argc, char *argv[])
42461{
42462 int major, minor, micro;
42463 char *tmp_version;
42464
42465 /* This hangs on some systems (?)
42466 system ("touch conf.sdltest");
42467 */
42468 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42469
42470 /* HP/UX 9 (%@#!) writes to sscanf strings */
42471 tmp_version = my_strdup("$min_sdl_version");
42472 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42473 printf("%s, bad version string\n", "$min_sdl_version");
42474 exit(1);
42475 }
42476
42477 if (($sdl_major_version > major) ||
42478 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42479 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42480 {
42481 return 0;
42482 }
42483 else
42484 {
42485 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42486 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42487 printf("*** best to upgrade to the required version.\n");
42488 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42489 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42490 printf("*** config.cache before re-running configure\n");
42491 return 1;
42492 }
42493}
42494
42495
42496_ACEOF
42497rm -f conftest$ac_exeext
42498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42499 (eval $ac_link) 2>&5
42500 ac_status=$?
42501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42504 (eval $ac_try) 2>&5
42505 ac_status=$?
42506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507 (exit $ac_status); }; }; then
42508 :
42509else
42510 echo "$as_me: program exited with status $ac_status" >&5
42511echo "$as_me: failed program was:" >&5
42512sed 's/^/| /' conftest.$ac_ext >&5
42513
42514( exit $ac_status )
42515no_sdl=yes
42516fi
ac1cb8d3 42517rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42518fi
42519 CFLAGS="$ac_save_CFLAGS"
94acd38e 42520 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42521 LIBS="$ac_save_LIBS"
42522 fi
42523 fi
42524 if test "x$no_sdl" = x ; then
42525 echo "$as_me:$LINENO: result: yes" >&5
42526echo "${ECHO_T}yes" >&6
42527
42528 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42529 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42530 cat >>confdefs.h <<\_ACEOF
42531#define wxUSE_LIBSDL 1
42532_ACEOF
42533
42534
42535 else
42536 echo "$as_me:$LINENO: result: no" >&5
42537echo "${ECHO_T}no" >&6
42538 if test "$SDL_CONFIG" = "no" ; then
42539 echo "*** The sdl-config script installed by SDL could not be found"
42540 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42541 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42542 echo "*** full path to sdl-config."
42543 else
42544 if test -f conf.sdltest ; then
42545 :
42546 else
42547 echo "*** Could not run SDL test program, checking why..."
42548 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42549 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42550 LIBS="$LIBS $SDL_LIBS"
42551 cat >conftest.$ac_ext <<_ACEOF
42552/* confdefs.h. */
42553_ACEOF
42554cat confdefs.h >>conftest.$ac_ext
42555cat >>conftest.$ac_ext <<_ACEOF
42556/* end confdefs.h. */
42557
42558#include <stdio.h>
42559#include "SDL.h"
42560
42561int main(int argc, char *argv[])
42562{ return 0; }
42563#undef main
42564#define main K_and_R_C_main
42565
42566int
42567main ()
42568{
42569 return 0;
42570 ;
42571 return 0;
42572}
42573_ACEOF
42574rm -f conftest.$ac_objext conftest$ac_exeext
42575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42576 (eval $ac_link) 2>conftest.er1
a848cd7e 42577 ac_status=$?
ac1cb8d3
VS
42578 grep -v '^ *+' conftest.er1 >conftest.err
42579 rm -f conftest.er1
42580 cat conftest.err >&5
a848cd7e
SC
42581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42582 (exit $ac_status); } &&
6a5c9b3f
RR
42583 { ac_try='test -z "$ac_cxx_werror_flag"
42584 || test ! -s conftest.err'
ac1cb8d3
VS
42585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586 (eval $ac_try) 2>&5
42587 ac_status=$?
42588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589 (exit $ac_status); }; } &&
42590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42592 (eval $ac_try) 2>&5
42593 ac_status=$?
42594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595 (exit $ac_status); }; }; then
42596 echo "*** The test program compiled, but did not run. This usually means"
42597 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42598 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42599 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42600 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42601 echo "*** is required on your system"
42602 echo "***"
42603 echo "*** If you have an old version installed, it is best to remove it, although"
42604 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42605else
42606 echo "$as_me: failed program was:" >&5
42607sed 's/^/| /' conftest.$ac_ext >&5
42608
42609 echo "*** The test program failed to compile or link. See the file config.log for the"
42610 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42611 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42612 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42613fi
ac1cb8d3
VS
42614rm -f conftest.err conftest.$ac_objext \
42615 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42616 CFLAGS="$ac_save_CFLAGS"
94acd38e 42617 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42618 LIBS="$ac_save_LIBS"
42619 fi
42620 fi
42621 SDL_CFLAGS=""
42622 SDL_LIBS=""
42623 wxUSE_LIBSDL="no"
42624 fi
42625
42626
42627 rm -f conf.sdltest
42628
42629 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42630 WITH_PLUGIN_SDL=1
42631 fi
42632 fi
42633 fi
42634
42635 cat >>confdefs.h <<\_ACEOF
42636#define wxUSE_SOUND 1
42637_ACEOF
42638
42639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42640fi
42641
d1c38808
VZ
42642if test "$WXGTK20" = 1; then
42643 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42644 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42645
42646
3ecd9f92
MW
42647pkg_failed=no
42648echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42649echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42650
3ecd9f92
MW
42651if test -n "$PKG_CONFIG"; then
42652 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42653 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42654 else
42655 if test -n "$PKG_CONFIG" && \
42656 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42657 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42658 ac_status=$?
42659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42660 (exit $ac_status); }; then
42661 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42662else
3ecd9f92
MW
42663 pkg_failed=yes
42664fi
42665 fi
42666else
42667 pkg_failed=untried
d1c38808 42668fi
d1c38808 42669if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42670 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42671 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42672 else
42673 if test -n "$PKG_CONFIG" && \
42674 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42675 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42676 ac_status=$?
42677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678 (exit $ac_status); }; then
42679 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42680else
3ecd9f92
MW
42681 pkg_failed=yes
42682fi
42683 fi
42684else
42685 pkg_failed=untried
d1c38808
VZ
42686fi
42687
d1c38808 42688
d1c38808 42689
3ecd9f92 42690if test $pkg_failed = yes; then
d1c38808 42691
3ecd9f92
MW
42692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42693 _pkg_short_errors_supported=yes
42694else
42695 _pkg_short_errors_supported=no
42696fi
42697 if test $_pkg_short_errors_supported = yes; then
42698 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42699 else
42700 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42701 fi
3ecd9f92
MW
42702 # Put the nasty error message in config.log where it belongs
42703 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42704
42705
3ecd9f92
MW
42706 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42707echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42708 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42709
42710
3ecd9f92 42711elif test $pkg_failed = untried; then
d1c38808
VZ
42712
42713 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42714echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42715 wxUSE_LIBGNOMEPRINT="no"
42716
42717
3ecd9f92
MW
42718else
42719 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42720 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42721 echo "$as_me:$LINENO: result: yes" >&5
42722echo "${ECHO_T}yes" >&6
d1c38808 42723
3ecd9f92
MW
42724 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42725 cat >>confdefs.h <<\_ACEOF
42726#define wxUSE_LIBGNOMEPRINT 1
42727_ACEOF
42728
42729
42730fi
d1c38808
VZ
42731 fi
42732 fi
42733fi
42734
2b850ae1
RR
42735if test "$WXGTK20" = 1; then
42736 if test "$wxUSE_MIMETYPE" = "yes" ; then
42737 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42738
42739
3ecd9f92
MW
42740pkg_failed=no
42741echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42742echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42743
3ecd9f92
MW
42744if test -n "$PKG_CONFIG"; then
42745 if test -n "$GNOMEVFS_CFLAGS"; then
42746 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42747 else
42748 if test -n "$PKG_CONFIG" && \
42749 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42750 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42751 ac_status=$?
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); }; then
42754 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42755else
3ecd9f92
MW
42756 pkg_failed=yes
42757fi
42758 fi
42759else
42760 pkg_failed=untried
2b850ae1 42761fi
2b850ae1 42762if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42763 if test -n "$GNOMEVFS_LIBS"; then
42764 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42765 else
42766 if test -n "$PKG_CONFIG" && \
42767 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42768 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42769 ac_status=$?
42770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42771 (exit $ac_status); }; then
42772 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42773else
3ecd9f92
MW
42774 pkg_failed=yes
42775fi
42776 fi
42777else
42778 pkg_failed=untried
2b850ae1
RR
42779fi
42780
2b850ae1 42781
2b850ae1 42782
3ecd9f92 42783if test $pkg_failed = yes; then
2b850ae1 42784
3ecd9f92
MW
42785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42786 _pkg_short_errors_supported=yes
42787else
42788 _pkg_short_errors_supported=no
42789fi
42790 if test $_pkg_short_errors_supported = yes; then
42791 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42792 else
42793 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42794 fi
3ecd9f92
MW
42795 # Put the nasty error message in config.log where it belongs
42796 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42797
42798
3ecd9f92
MW
42799 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42800echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42801 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42802
42803
3ecd9f92 42804elif test $pkg_failed = untried; then
2b850ae1
RR
42805
42806 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42807echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42808 wxUSE_LIBGNOMEVFS="no"
42809
42810
3ecd9f92
MW
42811else
42812 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42813 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42814 echo "$as_me:$LINENO: result: yes" >&5
42815echo "${ECHO_T}yes" >&6
2b850ae1 42816
3ecd9f92
MW
42817 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42818 cat >>confdefs.h <<\_ACEOF
42819#define wxUSE_LIBGNOMEVFS 1
42820_ACEOF
42821
42822
42823fi
2b850ae1
RR
42824 fi
42825 fi
42826fi
42827
3565d135
RR
42828if test "$WXGTK20" = 1; then
42829 if test "$wxUSE_LIBHILDON" = "yes" ; then
42830
3ecd9f92
MW
42831pkg_failed=no
42832echo "$as_me:$LINENO: checking for HILDON" >&5
42833echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42834
3ecd9f92
MW
42835if test -n "$PKG_CONFIG"; then
42836 if test -n "$HILDON_CFLAGS"; then
42837 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42838 else
42839 if test -n "$PKG_CONFIG" && \
42840 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42841 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42842 ac_status=$?
42843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844 (exit $ac_status); }; then
42845 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42846else
3ecd9f92
MW
42847 pkg_failed=yes
42848fi
42849 fi
42850else
42851 pkg_failed=untried
3565d135 42852fi
3565d135 42853if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42854 if test -n "$HILDON_LIBS"; then
42855 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42856 else
42857 if test -n "$PKG_CONFIG" && \
42858 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42859 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42860 ac_status=$?
42861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42862 (exit $ac_status); }; then
42863 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42864else
3ecd9f92
MW
42865 pkg_failed=yes
42866fi
42867 fi
42868else
42869 pkg_failed=untried
3565d135
RR
42870fi
42871
3565d135 42872
3565d135 42873
3ecd9f92 42874if test $pkg_failed = yes; then
3565d135 42875
3ecd9f92
MW
42876if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42877 _pkg_short_errors_supported=yes
42878else
42879 _pkg_short_errors_supported=no
42880fi
42881 if test $_pkg_short_errors_supported = yes; then
42882 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42883 else
42884 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42885 fi
3ecd9f92
MW
42886 # Put the nasty error message in config.log where it belongs
42887 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42888
42889
3ecd9f92
MW
42890 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42891echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42892 wxUSE_LIBHILDON="no"
3565d135 42893
3565d135 42894
3ecd9f92
MW
42895elif test $pkg_failed = untried; then
42896
42897 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42898echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42899 wxUSE_LIBHILDON="no"
42900
42901
42902else
42903 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42904 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42905 echo "$as_me:$LINENO: result: yes" >&5
42906echo "${ECHO_T}yes" >&6
3565d135
RR
42907
42908 EXTRALIBS_HILDON="$HILDON_LIBS"
42909 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42910 cat >>confdefs.h <<\_ACEOF
42911#define wxUSE_LIBHILDON 1
42912_ACEOF
42913
42914
3ecd9f92 42915fi
3565d135
RR
42916 fi
42917fi
d1c38808 42918
a848cd7e
SC
42919if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42920 cat >>confdefs.h <<\_ACEOF
42921#define wxUSE_CMDLINE_PARSER 1
42922_ACEOF
42923
42924fi
42925
42926if test "$wxUSE_STOPWATCH" = "yes"; then
42927 cat >>confdefs.h <<\_ACEOF
42928#define wxUSE_STOPWATCH 1
42929_ACEOF
42930
42931fi
42932
42933if test "$wxUSE_DATETIME" = "yes"; then
42934 cat >>confdefs.h <<\_ACEOF
42935#define wxUSE_DATETIME 1
42936_ACEOF
42937
42938fi
42939
42940if test "$wxUSE_FILE" = "yes"; then
42941 cat >>confdefs.h <<\_ACEOF
42942#define wxUSE_FILE 1
42943_ACEOF
42944
42945fi
42946
42947if test "$wxUSE_FFILE" = "yes"; then
42948 cat >>confdefs.h <<\_ACEOF
42949#define wxUSE_FFILE 1
42950_ACEOF
42951
42952fi
42953
42954if test "$wxUSE_FILESYSTEM" = "yes"; then
42955 cat >>confdefs.h <<\_ACEOF
42956#define wxUSE_FILESYSTEM 1
42957_ACEOF
42958
42959fi
42960
42961if test "$wxUSE_FS_ZIP" = "yes"; then
42962 cat >>confdefs.h <<\_ACEOF
42963#define wxUSE_FS_ZIP 1
42964_ACEOF
42965
42966fi
42967
9e8e867f 42968if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42969 cat >>confdefs.h <<\_ACEOF
9e8e867f 42970#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42971_ACEOF
42972
42973fi
42974
42975if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42976 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42977 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42978echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42979 elif test "$wxUSE_ZLIB" = "no"; then
42980 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42981echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42982 else
42983 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42984#define wxUSE_ZIPSTREAM 1
42985_ACEOF
42986
81f90336 42987 fi
a848cd7e
SC
42988fi
42989
a848cd7e 42990if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42991 if test "$USE_UNIX" != 1; then
42992 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42993echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42994 wxUSE_ON_FATAL_EXCEPTION=no
42995 else
42996 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42997#define wxUSE_ON_FATAL_EXCEPTION 1
42998_ACEOF
42999
18228ab4 43000 fi
a848cd7e
SC
43001fi
43002
eaff0f0d
VZ
43003if test "$wxUSE_STACKWALKER" = "yes"; then
43004 cat >>confdefs.h <<\_ACEOF
43005#define wxUSE_STACKWALKER 1
43006_ACEOF
43007
43008fi
43009
36b6448c 43010if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43011 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43012 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43013echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43014 wxUSE_DEBUGREPORT=no
43015 else
43016 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43017#define wxUSE_DEBUGREPORT 1
43018_ACEOF
43019
21dfc162
MW
43020 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43022 fi
dfe0c803 43023 fi
36b6448c
VZ
43024fi
43025
a848cd7e
SC
43026if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43027 cat >>confdefs.h <<\_ACEOF
43028#define wxUSE_SNGLINST_CHECKER 1
43029_ACEOF
43030
43031fi
43032
43033if test "$wxUSE_BUSYINFO" = "yes"; then
43034 cat >>confdefs.h <<\_ACEOF
43035#define wxUSE_BUSYINFO 1
43036_ACEOF
43037
43038fi
43039
43040if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43041 cat >>confdefs.h <<\_ACEOF
43042#define wxUSE_STD_IOSTREAM 1
43043_ACEOF
43044
43045fi
43046
59746b65
MW
43047if test "$wxUSE_STD_STRING" = "yes"; then
43048 cat >>confdefs.h <<\_ACEOF
43049#define wxUSE_STD_STRING 1
43050_ACEOF
43051
43052fi
43053
07158944
VZ
43054if test "$wxUSE_STDPATHS" = "yes"; then
43055 cat >>confdefs.h <<\_ACEOF
43056#define wxUSE_STDPATHS 1
43057_ACEOF
43058
43059fi
43060
a848cd7e
SC
43061if test "$wxUSE_TEXTBUFFER" = "yes"; then
43062 cat >>confdefs.h <<\_ACEOF
43063#define wxUSE_TEXTBUFFER 1
43064_ACEOF
43065
43066fi
43067
43068if test "$wxUSE_TEXTFILE" = "yes"; then
43069 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43070 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43071echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43072 else
43073 cat >>confdefs.h <<\_ACEOF
43074#define wxUSE_TEXTFILE 1
43075_ACEOF
43076
43077 fi
43078fi
43079
43080if test "$wxUSE_CONFIG" = "yes" ; then
43081 if test "$wxUSE_TEXTFILE" != "yes"; then
43082 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43083echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43084 else
43085 cat >>confdefs.h <<\_ACEOF
43086#define wxUSE_CONFIG 1
89be85c2
VS
43087_ACEOF
43088
43089 cat >>confdefs.h <<\_ACEOF
43090#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43091_ACEOF
43092
43093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43094 fi
43095fi
43096
43097if test "$wxUSE_INTL" = "yes" ; then
43098 if test "$wxUSE_FILE" != "yes"; then
43099 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43100echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43101 else
43102 cat >>confdefs.h <<\_ACEOF
43103#define wxUSE_INTL 1
43104_ACEOF
43105
43106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43107 GUIDIST="$GUIDIST INTL_DIST"
43108 fi
43109fi
43110
43111if test "$wxUSE_LOG" = "yes"; then
43112 cat >>confdefs.h <<\_ACEOF
43113#define wxUSE_LOG 1
43114_ACEOF
43115
43116
43117 if test "$wxUSE_LOGGUI" = "yes"; then
43118 cat >>confdefs.h <<\_ACEOF
43119#define wxUSE_LOGGUI 1
43120_ACEOF
43121
43122 fi
43123
43124 if test "$wxUSE_LOGWINDOW" = "yes"; then
43125 cat >>confdefs.h <<\_ACEOF
43126#define wxUSE_LOGWINDOW 1
43127_ACEOF
43128
43129 fi
43130
43131 if test "$wxUSE_LOGDIALOG" = "yes"; then
43132 cat >>confdefs.h <<\_ACEOF
43133#define wxUSE_LOG_DIALOG 1
43134_ACEOF
43135
43136 fi
0b78747f
MW
43137
43138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43139fi
43140
43141if test "$wxUSE_LONGLONG" = "yes"; then
43142 cat >>confdefs.h <<\_ACEOF
43143#define wxUSE_LONGLONG 1
43144_ACEOF
43145
43146fi
43147
43148if test "$wxUSE_GEOMETRY" = "yes"; then
43149 cat >>confdefs.h <<\_ACEOF
43150#define wxUSE_GEOMETRY 1
43151_ACEOF
43152
43153fi
43154
a848cd7e
SC
43155if test "$wxUSE_STREAMS" = "yes" ; then
43156 cat >>confdefs.h <<\_ACEOF
43157#define wxUSE_STREAMS 1
43158_ACEOF
43159
43160fi
43161
8b6682b9
JS
43162if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43163 cat >>confdefs.h <<\_ACEOF
43164#define wxUSE_PRINTF_POS_PARAMS 1
43165_ACEOF
43166
43167fi
43168
43169
a848cd7e
SC
43170
43171if test "$wxUSE_DATETIME" = "yes"; then
43172
43173for ac_func in strptime
43174do
43175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43176echo "$as_me:$LINENO: checking for $ac_func" >&5
43177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43178if eval "test \"\${$as_ac_var+set}\" = set"; then
43179 echo $ECHO_N "(cached) $ECHO_C" >&6
43180else
43181 cat >conftest.$ac_ext <<_ACEOF
43182/* confdefs.h. */
43183_ACEOF
43184cat confdefs.h >>conftest.$ac_ext
43185cat >>conftest.$ac_ext <<_ACEOF
43186/* end confdefs.h. */
ac1cb8d3
VS
43187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43189#define $ac_func innocuous_$ac_func
43190
a848cd7e
SC
43191/* System header to define __stub macros and hopefully few prototypes,
43192 which can conflict with char $ac_func (); below.
43193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43194 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43195
a848cd7e
SC
43196#ifdef __STDC__
43197# include <limits.h>
43198#else
43199# include <assert.h>
43200#endif
ac1cb8d3
VS
43201
43202#undef $ac_func
43203
a848cd7e
SC
43204/* Override any gcc2 internal prototype to avoid an error. */
43205#ifdef __cplusplus
43206extern "C"
43207{
43208#endif
43209/* We use char because int might match the return type of a gcc2
43210 builtin and then its argument prototype would still apply. */
43211char $ac_func ();
43212/* The GNU C library defines this for functions which it implements
43213 to always fail with ENOSYS. Some functions are actually named
43214 something starting with __ and the normal name is an alias. */
43215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43216choke me
43217#else
43218char (*f) () = $ac_func;
43219#endif
43220#ifdef __cplusplus
43221}
43222#endif
43223
43224int
43225main ()
43226{
43227return f != $ac_func;
43228 ;
43229 return 0;
43230}
43231_ACEOF
43232rm -f conftest.$ac_objext conftest$ac_exeext
43233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43234 (eval $ac_link) 2>conftest.er1
a848cd7e 43235 ac_status=$?
ac1cb8d3
VS
43236 grep -v '^ *+' conftest.er1 >conftest.err
43237 rm -f conftest.er1
43238 cat conftest.err >&5
a848cd7e
SC
43239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240 (exit $ac_status); } &&
6a5c9b3f
RR
43241 { ac_try='test -z "$ac_cxx_werror_flag"
43242 || test ! -s conftest.err'
ac1cb8d3
VS
43243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43244 (eval $ac_try) 2>&5
43245 ac_status=$?
43246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43247 (exit $ac_status); }; } &&
43248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43250 (eval $ac_try) 2>&5
43251 ac_status=$?
43252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43253 (exit $ac_status); }; }; then
43254 eval "$as_ac_var=yes"
43255else
43256 echo "$as_me: failed program was:" >&5
43257sed 's/^/| /' conftest.$ac_ext >&5
43258
43259eval "$as_ac_var=no"
43260fi
ac1cb8d3
VS
43261rm -f conftest.err conftest.$ac_objext \
43262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43263fi
43264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43266if test `eval echo '${'$as_ac_var'}'` = yes; then
43267 cat >>confdefs.h <<_ACEOF
43268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43269_ACEOF
43270
43271fi
43272done
43273
f536f005
VZ
43274 if test "$ac_cv_func_strptime" = "yes"; then
43275 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43276echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43277if test "${wx_cv_func_strptime_decl+set}" = set; then
43278 echo $ECHO_N "(cached) $ECHO_C" >&6
43279else
43280
f536f005
VZ
43281 cat >conftest.$ac_ext <<_ACEOF
43282/* confdefs.h. */
43283_ACEOF
43284cat confdefs.h >>conftest.$ac_ext
43285cat >>conftest.$ac_ext <<_ACEOF
43286/* end confdefs.h. */
43287
43288 #include <time.h>
43289
43290int
43291main ()
43292{
43293
43294 struct tm t;
43295 strptime("foo", "bar", &t);
43296
43297 ;
43298 return 0;
43299}
43300_ACEOF
43301rm -f conftest.$ac_objext
43302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43303 (eval $ac_compile) 2>conftest.er1
43304 ac_status=$?
43305 grep -v '^ *+' conftest.er1 >conftest.err
43306 rm -f conftest.er1
43307 cat conftest.err >&5
43308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43309 (exit $ac_status); } &&
6a5c9b3f
RR
43310 { ac_try='test -z "$ac_cxx_werror_flag"
43311 || test ! -s conftest.err'
f536f005
VZ
43312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43313 (eval $ac_try) 2>&5
43314 ac_status=$?
43315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316 (exit $ac_status); }; } &&
43317 { ac_try='test -s conftest.$ac_objext'
43318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43319 (eval $ac_try) 2>&5
43320 ac_status=$?
43321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43322 (exit $ac_status); }; }; then
43323 wx_cv_func_strptime_decl=yes
43324else
43325 echo "$as_me: failed program was:" >&5
43326sed 's/^/| /' conftest.$ac_ext >&5
43327
43328wx_cv_func_strptime_decl=no
43329
43330fi
43331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43332
43333
43334fi
43335echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43336echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43337 fi
43338 if test "$wx_cv_func_strptime_decl" = "yes"; then
43339 cat >>confdefs.h <<\_ACEOF
43340#define HAVE_STRPTIME_DECL 1
43341_ACEOF
43342
43343 fi
a848cd7e
SC
43344
43345 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43346echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43347if test "${wx_cv_var_timezone+set}" = set; then
43348 echo $ECHO_N "(cached) $ECHO_C" >&6
43349else
43350
43351 cat >conftest.$ac_ext <<_ACEOF
43352/* confdefs.h. */
43353_ACEOF
43354cat confdefs.h >>conftest.$ac_ext
43355cat >>conftest.$ac_ext <<_ACEOF
43356/* end confdefs.h. */
43357
43358 #include <time.h>
43359
43360int
43361main ()
43362{
43363
43364 int tz;
43365 tz = timezone;
43366
43367 ;
43368 return 0;
43369}
43370_ACEOF
43371rm -f conftest.$ac_objext
43372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43373 (eval $ac_compile) 2>conftest.er1
a848cd7e 43374 ac_status=$?
ac1cb8d3
VS
43375 grep -v '^ *+' conftest.er1 >conftest.err
43376 rm -f conftest.er1
43377 cat conftest.err >&5
a848cd7e
SC
43378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43379 (exit $ac_status); } &&
6a5c9b3f
RR
43380 { ac_try='test -z "$ac_cxx_werror_flag"
43381 || test ! -s conftest.err'
ac1cb8d3
VS
43382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43383 (eval $ac_try) 2>&5
43384 ac_status=$?
43385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43386 (exit $ac_status); }; } &&
43387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43389 (eval $ac_try) 2>&5
43390 ac_status=$?
43391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392 (exit $ac_status); }; }; then
43393
43394 wx_cv_var_timezone=timezone
43395
43396else
43397 echo "$as_me: failed program was:" >&5
43398sed 's/^/| /' conftest.$ac_ext >&5
43399
43400
43401 cat >conftest.$ac_ext <<_ACEOF
43402/* confdefs.h. */
43403_ACEOF
43404cat confdefs.h >>conftest.$ac_ext
43405cat >>conftest.$ac_ext <<_ACEOF
43406/* end confdefs.h. */
43407
43408 #include <time.h>
43409
43410int
43411main ()
43412{
43413
43414 int tz;
43415 tz = _timezone;
43416
43417 ;
43418 return 0;
43419}
43420_ACEOF
43421rm -f conftest.$ac_objext
43422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43423 (eval $ac_compile) 2>conftest.er1
a848cd7e 43424 ac_status=$?
ac1cb8d3
VS
43425 grep -v '^ *+' conftest.er1 >conftest.err
43426 rm -f conftest.er1
43427 cat conftest.err >&5
a848cd7e
SC
43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429 (exit $ac_status); } &&
6a5c9b3f
RR
43430 { ac_try='test -z "$ac_cxx_werror_flag"
43431 || test ! -s conftest.err'
ac1cb8d3
VS
43432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43433 (eval $ac_try) 2>&5
43434 ac_status=$?
43435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43436 (exit $ac_status); }; } &&
43437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43439 (eval $ac_try) 2>&5
43440 ac_status=$?
43441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43442 (exit $ac_status); }; }; then
43443
43444 wx_cv_var_timezone=_timezone
43445
43446else
43447 echo "$as_me: failed program was:" >&5
43448sed 's/^/| /' conftest.$ac_ext >&5
43449
43450
43451 cat >conftest.$ac_ext <<_ACEOF
43452/* confdefs.h. */
43453_ACEOF
43454cat confdefs.h >>conftest.$ac_ext
43455cat >>conftest.$ac_ext <<_ACEOF
43456/* end confdefs.h. */
43457
43458 #include <time.h>
43459
43460int
43461main ()
43462{
43463
43464 int tz;
43465 tz = __timezone;
43466
43467 ;
43468 return 0;
43469}
43470_ACEOF
43471rm -f conftest.$ac_objext
43472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43473 (eval $ac_compile) 2>conftest.er1
a848cd7e 43474 ac_status=$?
ac1cb8d3
VS
43475 grep -v '^ *+' conftest.er1 >conftest.err
43476 rm -f conftest.er1
43477 cat conftest.err >&5
a848cd7e
SC
43478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43479 (exit $ac_status); } &&
6a5c9b3f
RR
43480 { ac_try='test -z "$ac_cxx_werror_flag"
43481 || test ! -s conftest.err'
ac1cb8d3
VS
43482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43483 (eval $ac_try) 2>&5
43484 ac_status=$?
43485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486 (exit $ac_status); }; } &&
43487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43489 (eval $ac_try) 2>&5
43490 ac_status=$?
43491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43492 (exit $ac_status); }; }; then
43493
43494 wx_cv_var_timezone=__timezone
43495
43496else
43497 echo "$as_me: failed program was:" >&5
43498sed 's/^/| /' conftest.$ac_ext >&5
43499
43500
43501 if test "$USE_DOS" = 0 ; then
43502 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43503echo "$as_me: WARNING: no timezone variable" >&2;}
43504 fi
43505
43506
43507fi
ac1cb8d3 43508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43509
43510
43511fi
ac1cb8d3 43512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43513
43514
43515fi
ac1cb8d3 43516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43517
43518
43519fi
43520echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43521echo "${ECHO_T}$wx_cv_var_timezone" >&6
43522
43523 if test "x$wx_cv_var_timezone" != x ; then
43524 cat >>confdefs.h <<_ACEOF
43525#define WX_TIMEZONE $wx_cv_var_timezone
43526_ACEOF
43527
43528 fi
43529
43530
43531for ac_func in localtime
43532do
43533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43534echo "$as_me:$LINENO: checking for $ac_func" >&5
43535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43536if eval "test \"\${$as_ac_var+set}\" = set"; then
43537 echo $ECHO_N "(cached) $ECHO_C" >&6
43538else
43539 cat >conftest.$ac_ext <<_ACEOF
43540/* confdefs.h. */
43541_ACEOF
43542cat confdefs.h >>conftest.$ac_ext
43543cat >>conftest.$ac_ext <<_ACEOF
43544/* end confdefs.h. */
ac1cb8d3
VS
43545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43547#define $ac_func innocuous_$ac_func
43548
a848cd7e
SC
43549/* System header to define __stub macros and hopefully few prototypes,
43550 which can conflict with char $ac_func (); below.
43551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43552 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43553
a848cd7e
SC
43554#ifdef __STDC__
43555# include <limits.h>
43556#else
43557# include <assert.h>
43558#endif
ac1cb8d3
VS
43559
43560#undef $ac_func
43561
a848cd7e
SC
43562/* Override any gcc2 internal prototype to avoid an error. */
43563#ifdef __cplusplus
43564extern "C"
43565{
43566#endif
43567/* We use char because int might match the return type of a gcc2
43568 builtin and then its argument prototype would still apply. */
43569char $ac_func ();
43570/* The GNU C library defines this for functions which it implements
43571 to always fail with ENOSYS. Some functions are actually named
43572 something starting with __ and the normal name is an alias. */
43573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43574choke me
43575#else
43576char (*f) () = $ac_func;
43577#endif
43578#ifdef __cplusplus
43579}
43580#endif
43581
43582int
43583main ()
43584{
43585return f != $ac_func;
43586 ;
43587 return 0;
43588}
43589_ACEOF
43590rm -f conftest.$ac_objext conftest$ac_exeext
43591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43592 (eval $ac_link) 2>conftest.er1
a848cd7e 43593 ac_status=$?
ac1cb8d3
VS
43594 grep -v '^ *+' conftest.er1 >conftest.err
43595 rm -f conftest.er1
43596 cat conftest.err >&5
a848cd7e
SC
43597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598 (exit $ac_status); } &&
6a5c9b3f
RR
43599 { ac_try='test -z "$ac_cxx_werror_flag"
43600 || test ! -s conftest.err'
ac1cb8d3
VS
43601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43602 (eval $ac_try) 2>&5
43603 ac_status=$?
43604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605 (exit $ac_status); }; } &&
43606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43608 (eval $ac_try) 2>&5
43609 ac_status=$?
43610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611 (exit $ac_status); }; }; then
43612 eval "$as_ac_var=yes"
43613else
43614 echo "$as_me: failed program was:" >&5
43615sed 's/^/| /' conftest.$ac_ext >&5
43616
43617eval "$as_ac_var=no"
43618fi
ac1cb8d3
VS
43619rm -f conftest.err conftest.$ac_objext \
43620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43621fi
43622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43624if test `eval echo '${'$as_ac_var'}'` = yes; then
43625 cat >>confdefs.h <<_ACEOF
43626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43627_ACEOF
43628
43629fi
43630done
43631
43632
43633 if test "$ac_cv_func_localtime" = "yes"; then
43634 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43635echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43636if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43637 echo $ECHO_N "(cached) $ECHO_C" >&6
43638else
43639
43640 cat >conftest.$ac_ext <<_ACEOF
43641/* confdefs.h. */
43642_ACEOF
43643cat confdefs.h >>conftest.$ac_ext
43644cat >>conftest.$ac_ext <<_ACEOF
43645/* end confdefs.h. */
43646
43647 #include <time.h>
43648
43649int
43650main ()
43651{
43652
43653 struct tm tm;
43654 tm.tm_gmtoff++;
43655
43656 ;
43657 return 0;
43658}
43659_ACEOF
43660rm -f conftest.$ac_objext
43661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43662 (eval $ac_compile) 2>conftest.er1
a848cd7e 43663 ac_status=$?
ac1cb8d3
VS
43664 grep -v '^ *+' conftest.er1 >conftest.err
43665 rm -f conftest.er1
43666 cat conftest.err >&5
a848cd7e
SC
43667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43668 (exit $ac_status); } &&
6a5c9b3f
RR
43669 { ac_try='test -z "$ac_cxx_werror_flag"
43670 || test ! -s conftest.err'
ac1cb8d3
VS
43671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43672 (eval $ac_try) 2>&5
43673 ac_status=$?
43674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675 (exit $ac_status); }; } &&
43676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43678 (eval $ac_try) 2>&5
43679 ac_status=$?
43680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681 (exit $ac_status); }; }; then
43682
43683 wx_cv_struct_tm_has_gmtoff=yes
43684
43685else
43686 echo "$as_me: failed program was:" >&5
43687sed 's/^/| /' conftest.$ac_ext >&5
43688
43689wx_cv_struct_tm_has_gmtoff=no
43690
43691fi
ac1cb8d3 43692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43693
43694fi
43695echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43696echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43697 fi
43698
43699 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43700 cat >>confdefs.h <<\_ACEOF
43701#define WX_GMTOFF_IN_TM 1
43702_ACEOF
43703
43704 fi
43705
43706
43707
43708for ac_func in gettimeofday ftime
43709do
43710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43711echo "$as_me:$LINENO: checking for $ac_func" >&5
43712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43713if eval "test \"\${$as_ac_var+set}\" = set"; then
43714 echo $ECHO_N "(cached) $ECHO_C" >&6
43715else
43716 cat >conftest.$ac_ext <<_ACEOF
43717/* confdefs.h. */
43718_ACEOF
43719cat confdefs.h >>conftest.$ac_ext
43720cat >>conftest.$ac_ext <<_ACEOF
43721/* end confdefs.h. */
ac1cb8d3
VS
43722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43724#define $ac_func innocuous_$ac_func
43725
a848cd7e
SC
43726/* System header to define __stub macros and hopefully few prototypes,
43727 which can conflict with char $ac_func (); below.
43728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43729 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43730
a848cd7e
SC
43731#ifdef __STDC__
43732# include <limits.h>
43733#else
43734# include <assert.h>
43735#endif
ac1cb8d3
VS
43736
43737#undef $ac_func
43738
a848cd7e
SC
43739/* Override any gcc2 internal prototype to avoid an error. */
43740#ifdef __cplusplus
43741extern "C"
43742{
43743#endif
43744/* We use char because int might match the return type of a gcc2
43745 builtin and then its argument prototype would still apply. */
43746char $ac_func ();
43747/* The GNU C library defines this for functions which it implements
43748 to always fail with ENOSYS. Some functions are actually named
43749 something starting with __ and the normal name is an alias. */
43750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43751choke me
43752#else
43753char (*f) () = $ac_func;
43754#endif
43755#ifdef __cplusplus
43756}
43757#endif
43758
43759int
43760main ()
43761{
43762return f != $ac_func;
43763 ;
43764 return 0;
43765}
43766_ACEOF
43767rm -f conftest.$ac_objext conftest$ac_exeext
43768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43769 (eval $ac_link) 2>conftest.er1
a848cd7e 43770 ac_status=$?
ac1cb8d3
VS
43771 grep -v '^ *+' conftest.er1 >conftest.err
43772 rm -f conftest.er1
43773 cat conftest.err >&5
a848cd7e
SC
43774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43775 (exit $ac_status); } &&
6a5c9b3f
RR
43776 { ac_try='test -z "$ac_cxx_werror_flag"
43777 || test ! -s conftest.err'
ac1cb8d3
VS
43778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43779 (eval $ac_try) 2>&5
43780 ac_status=$?
43781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782 (exit $ac_status); }; } &&
43783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43785 (eval $ac_try) 2>&5
43786 ac_status=$?
43787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43788 (exit $ac_status); }; }; then
43789 eval "$as_ac_var=yes"
43790else
43791 echo "$as_me: failed program was:" >&5
43792sed 's/^/| /' conftest.$ac_ext >&5
43793
43794eval "$as_ac_var=no"
43795fi
ac1cb8d3
VS
43796rm -f conftest.err conftest.$ac_objext \
43797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43798fi
43799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43801if test `eval echo '${'$as_ac_var'}'` = yes; then
43802 cat >>confdefs.h <<_ACEOF
43803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43804_ACEOF
43805 break
43806fi
43807done
43808
43809
43810 if test "$ac_cv_func_gettimeofday" = "yes"; then
43811 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43812echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43813if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43814 echo $ECHO_N "(cached) $ECHO_C" >&6
43815else
43816
5d7b7554 43817 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43818/* confdefs.h. */
43819_ACEOF
43820cat confdefs.h >>conftest.$ac_ext
43821cat >>conftest.$ac_ext <<_ACEOF
43822/* end confdefs.h. */
43823
43824 #include <sys/time.h>
43825 #include <unistd.h>
43826
43827int
43828main ()
43829{
43830
43831 struct timeval tv;
43832 gettimeofday(&tv, NULL);
43833
43834 ;
43835 return 0;
43836}
43837_ACEOF
43838rm -f conftest.$ac_objext
43839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43840 (eval $ac_compile) 2>conftest.er1
a848cd7e 43841 ac_status=$?
ac1cb8d3
VS
43842 grep -v '^ *+' conftest.er1 >conftest.err
43843 rm -f conftest.er1
43844 cat conftest.err >&5
a848cd7e
SC
43845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43846 (exit $ac_status); } &&
6a5c9b3f
RR
43847 { ac_try='test -z "$ac_cxx_werror_flag"
43848 || test ! -s conftest.err'
ac1cb8d3
VS
43849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43850 (eval $ac_try) 2>&5
43851 ac_status=$?
43852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43853 (exit $ac_status); }; } &&
43854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43856 (eval $ac_try) 2>&5
43857 ac_status=$?
43858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43859 (exit $ac_status); }; }; then
43860 wx_cv_func_gettimeofday_has_2_args=yes
43861else
43862 echo "$as_me: failed program was:" >&5
43863sed 's/^/| /' conftest.$ac_ext >&5
43864
43865cat >conftest.$ac_ext <<_ACEOF
43866/* confdefs.h. */
43867_ACEOF
43868cat confdefs.h >>conftest.$ac_ext
43869cat >>conftest.$ac_ext <<_ACEOF
43870/* end confdefs.h. */
43871
43872 #include <sys/time.h>
43873 #include <unistd.h>
43874
43875int
43876main ()
43877{
43878
43879 struct timeval tv;
43880 gettimeofday(&tv);
43881
43882 ;
43883 return 0;
43884}
43885_ACEOF
43886rm -f conftest.$ac_objext
43887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43888 (eval $ac_compile) 2>conftest.er1
a848cd7e 43889 ac_status=$?
ac1cb8d3
VS
43890 grep -v '^ *+' conftest.er1 >conftest.err
43891 rm -f conftest.er1
43892 cat conftest.err >&5
a848cd7e
SC
43893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43894 (exit $ac_status); } &&
6a5c9b3f
RR
43895 { ac_try='test -z "$ac_cxx_werror_flag"
43896 || test ! -s conftest.err'
ac1cb8d3
VS
43897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43898 (eval $ac_try) 2>&5
43899 ac_status=$?
43900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43901 (exit $ac_status); }; } &&
43902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43904 (eval $ac_try) 2>&5
43905 ac_status=$?
43906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43907 (exit $ac_status); }; }; then
43908 wx_cv_func_gettimeofday_has_2_args=no
43909else
43910 echo "$as_me: failed program was:" >&5
43911sed 's/^/| /' conftest.$ac_ext >&5
43912
43913
43914 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43915echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43916 wx_cv_func_gettimeofday_has_2_args=unknown
43917
43918
43919fi
ac1cb8d3 43920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43921
43922fi
ac1cb8d3 43923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43924
43925fi
43926echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43927echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43928
43929 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43930 cat >>confdefs.h <<\_ACEOF
43931#define WX_GETTIMEOFDAY_NO_TZ 1
43932_ACEOF
43933
43934 fi
43935 fi
43936
43937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43938fi
43939
43940
43941if test "$wxUSE_SOCKETS" = "yes"; then
43942 if test "$wxUSE_MGL" = "1"; then
43943 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43944echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43945 wxUSE_SOCKETS="no"
43946 fi
43947fi
43948
43949if test "$wxUSE_SOCKETS" = "yes"; then
43950 if test "$TOOLKIT" != "MSW"; then
43951 echo "$as_me:$LINENO: checking for socket" >&5
43952echo $ECHO_N "checking for socket... $ECHO_C" >&6
43953if test "${ac_cv_func_socket+set}" = set; then
43954 echo $ECHO_N "(cached) $ECHO_C" >&6
43955else
43956 cat >conftest.$ac_ext <<_ACEOF
43957/* confdefs.h. */
43958_ACEOF
43959cat confdefs.h >>conftest.$ac_ext
43960cat >>conftest.$ac_ext <<_ACEOF
43961/* end confdefs.h. */
ac1cb8d3
VS
43962/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43964#define socket innocuous_socket
43965
a848cd7e
SC
43966/* System header to define __stub macros and hopefully few prototypes,
43967 which can conflict with char socket (); below.
43968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43969 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43970
a848cd7e
SC
43971#ifdef __STDC__
43972# include <limits.h>
43973#else
43974# include <assert.h>
43975#endif
ac1cb8d3
VS
43976
43977#undef socket
43978
a848cd7e
SC
43979/* Override any gcc2 internal prototype to avoid an error. */
43980#ifdef __cplusplus
43981extern "C"
43982{
43983#endif
43984/* We use char because int might match the return type of a gcc2
43985 builtin and then its argument prototype would still apply. */
43986char socket ();
43987/* The GNU C library defines this for functions which it implements
43988 to always fail with ENOSYS. Some functions are actually named
43989 something starting with __ and the normal name is an alias. */
43990#if defined (__stub_socket) || defined (__stub___socket)
43991choke me
43992#else
43993char (*f) () = socket;
43994#endif
43995#ifdef __cplusplus
43996}
43997#endif
43998
43999int
44000main ()
44001{
44002return f != socket;
44003 ;
44004 return 0;
44005}
44006_ACEOF
44007rm -f conftest.$ac_objext conftest$ac_exeext
44008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44009 (eval $ac_link) 2>conftest.er1
a848cd7e 44010 ac_status=$?
ac1cb8d3
VS
44011 grep -v '^ *+' conftest.er1 >conftest.err
44012 rm -f conftest.er1
44013 cat conftest.err >&5
a848cd7e
SC
44014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44015 (exit $ac_status); } &&
6a5c9b3f
RR
44016 { ac_try='test -z "$ac_cxx_werror_flag"
44017 || test ! -s conftest.err'
ac1cb8d3
VS
44018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44019 (eval $ac_try) 2>&5
44020 ac_status=$?
44021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44022 (exit $ac_status); }; } &&
44023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44025 (eval $ac_try) 2>&5
44026 ac_status=$?
44027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44028 (exit $ac_status); }; }; then
44029 ac_cv_func_socket=yes
44030else
44031 echo "$as_me: failed program was:" >&5
44032sed 's/^/| /' conftest.$ac_ext >&5
44033
44034ac_cv_func_socket=no
44035fi
ac1cb8d3
VS
44036rm -f conftest.err conftest.$ac_objext \
44037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44038fi
44039echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44040echo "${ECHO_T}$ac_cv_func_socket" >&6
44041if test $ac_cv_func_socket = yes; then
44042 :
44043else
44044
44045 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44046echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44047if test "${ac_cv_lib_socket_socket+set}" = set; then
44048 echo $ECHO_N "(cached) $ECHO_C" >&6
44049else
44050 ac_check_lib_save_LIBS=$LIBS
44051LIBS="-lsocket $LIBS"
44052cat >conftest.$ac_ext <<_ACEOF
44053/* confdefs.h. */
44054_ACEOF
44055cat confdefs.h >>conftest.$ac_ext
44056cat >>conftest.$ac_ext <<_ACEOF
44057/* end confdefs.h. */
44058
44059/* Override any gcc2 internal prototype to avoid an error. */
44060#ifdef __cplusplus
44061extern "C"
44062#endif
44063/* We use char because int might match the return type of a gcc2
44064 builtin and then its argument prototype would still apply. */
44065char socket ();
44066int
44067main ()
44068{
44069socket ();
44070 ;
44071 return 0;
44072}
44073_ACEOF
44074rm -f conftest.$ac_objext conftest$ac_exeext
44075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44076 (eval $ac_link) 2>conftest.er1
a848cd7e 44077 ac_status=$?
ac1cb8d3
VS
44078 grep -v '^ *+' conftest.er1 >conftest.err
44079 rm -f conftest.er1
44080 cat conftest.err >&5
a848cd7e
SC
44081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44082 (exit $ac_status); } &&
6a5c9b3f
RR
44083 { ac_try='test -z "$ac_cxx_werror_flag"
44084 || test ! -s conftest.err'
ac1cb8d3
VS
44085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44086 (eval $ac_try) 2>&5
44087 ac_status=$?
44088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44089 (exit $ac_status); }; } &&
44090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44092 (eval $ac_try) 2>&5
44093 ac_status=$?
44094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095 (exit $ac_status); }; }; then
44096 ac_cv_lib_socket_socket=yes
44097else
44098 echo "$as_me: failed program was:" >&5
44099sed 's/^/| /' conftest.$ac_ext >&5
44100
44101ac_cv_lib_socket_socket=no
44102fi
ac1cb8d3
VS
44103rm -f conftest.err conftest.$ac_objext \
44104 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44105LIBS=$ac_check_lib_save_LIBS
44106fi
44107echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44108echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44109if test $ac_cv_lib_socket_socket = yes; then
44110 if test "$INET_LINK" != " -lsocket"; then
44111 INET_LINK="$INET_LINK -lsocket"
44112 fi
44113else
44114
44115 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44116echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44117 wxUSE_SOCKETS=no
44118
44119
44120fi
44121
44122
44123
44124fi
44125
44126 fi
44127fi
44128
44129if test "$wxUSE_SOCKETS" = "yes" ; then
44130 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44131 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44132echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44133if test "${wx_cv_type_getsockname3+set}" = set; then
44134 echo $ECHO_N "(cached) $ECHO_C" >&6
44135else
44136
44137 cat >conftest.$ac_ext <<_ACEOF
44138/* confdefs.h. */
44139_ACEOF
44140cat confdefs.h >>conftest.$ac_ext
44141cat >>conftest.$ac_ext <<_ACEOF
44142/* end confdefs.h. */
44143
44144 #include <sys/types.h>
44145 #include <sys/socket.h>
44146
44147int
44148main ()
44149{
44150
44151 socklen_t len;
44152 getsockname(0, 0, &len);
44153
44154 ;
44155 return 0;
44156}
44157_ACEOF
44158rm -f conftest.$ac_objext
44159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44160 (eval $ac_compile) 2>conftest.er1
a848cd7e 44161 ac_status=$?
ac1cb8d3
VS
44162 grep -v '^ *+' conftest.er1 >conftest.err
44163 rm -f conftest.er1
44164 cat conftest.err >&5
a848cd7e
SC
44165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44166 (exit $ac_status); } &&
6a5c9b3f
RR
44167 { ac_try='test -z "$ac_cxx_werror_flag"
44168 || test ! -s conftest.err'
ac1cb8d3
VS
44169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44170 (eval $ac_try) 2>&5
44171 ac_status=$?
44172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44173 (exit $ac_status); }; } &&
44174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44176 (eval $ac_try) 2>&5
44177 ac_status=$?
44178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44179 (exit $ac_status); }; }; then
44180 wx_cv_type_getsockname3=socklen_t
44181else
44182 echo "$as_me: failed program was:" >&5
44183sed 's/^/| /' conftest.$ac_ext >&5
44184
44185
6459a506 44186 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44187 if test "$GCC" = yes ; then
c92ad099 44188 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44189 fi
44190
44191 cat >conftest.$ac_ext <<_ACEOF
44192/* confdefs.h. */
44193_ACEOF
44194cat confdefs.h >>conftest.$ac_ext
44195cat >>conftest.$ac_ext <<_ACEOF
44196/* end confdefs.h. */
44197
44198 #include <sys/types.h>
44199 #include <sys/socket.h>
44200
44201int
44202main ()
44203{
44204
44205 size_t len;
44206 getsockname(0, 0, &len);
44207
44208 ;
44209 return 0;
44210}
44211_ACEOF
44212rm -f conftest.$ac_objext
44213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44214 (eval $ac_compile) 2>conftest.er1
a848cd7e 44215 ac_status=$?
ac1cb8d3
VS
44216 grep -v '^ *+' conftest.er1 >conftest.err
44217 rm -f conftest.er1
44218 cat conftest.err >&5
a848cd7e
SC
44219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44220 (exit $ac_status); } &&
6a5c9b3f
RR
44221 { ac_try='test -z "$ac_cxx_werror_flag"
44222 || test ! -s conftest.err'
ac1cb8d3
VS
44223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44224 (eval $ac_try) 2>&5
44225 ac_status=$?
44226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44227 (exit $ac_status); }; } &&
44228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44230 (eval $ac_try) 2>&5
44231 ac_status=$?
44232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44233 (exit $ac_status); }; }; then
44234 wx_cv_type_getsockname3=size_t
44235else
44236 echo "$as_me: failed program was:" >&5
44237sed 's/^/| /' conftest.$ac_ext >&5
44238
44239cat >conftest.$ac_ext <<_ACEOF
44240/* confdefs.h. */
44241_ACEOF
44242cat confdefs.h >>conftest.$ac_ext
44243cat >>conftest.$ac_ext <<_ACEOF
44244/* end confdefs.h. */
44245
44246 #include <sys/types.h>
44247 #include <sys/socket.h>
44248
44249int
44250main ()
44251{
44252
44253 int len;
44254 getsockname(0, 0, &len);
44255
44256 ;
44257 return 0;
44258}
44259_ACEOF
44260rm -f conftest.$ac_objext
44261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44262 (eval $ac_compile) 2>conftest.er1
a848cd7e 44263 ac_status=$?
ac1cb8d3
VS
44264 grep -v '^ *+' conftest.er1 >conftest.err
44265 rm -f conftest.er1
44266 cat conftest.err >&5
a848cd7e
SC
44267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44268 (exit $ac_status); } &&
6a5c9b3f
RR
44269 { ac_try='test -z "$ac_cxx_werror_flag"
44270 || test ! -s conftest.err'
ac1cb8d3
VS
44271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44272 (eval $ac_try) 2>&5
44273 ac_status=$?
44274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44275 (exit $ac_status); }; } &&
44276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44278 (eval $ac_try) 2>&5
44279 ac_status=$?
44280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44281 (exit $ac_status); }; }; then
44282 wx_cv_type_getsockname3=int
44283else
44284 echo "$as_me: failed program was:" >&5
44285sed 's/^/| /' conftest.$ac_ext >&5
44286
44287wx_cv_type_getsockname3=unknown
44288
44289fi
ac1cb8d3 44290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44291
44292fi
ac1cb8d3 44293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44294
6459a506 44295 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44296
44297
44298fi
ac1cb8d3 44299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44300
44301fi
44302echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44303echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44304
44305 if test "$wx_cv_type_getsockname3" = "unknown"; then
44306 wxUSE_SOCKETS=no
44307 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44308echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44309 else
44310 cat >>confdefs.h <<_ACEOF
9e03e02d 44311#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44312_ACEOF
44313
44314 fi
44315 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44316echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44317if test "${wx_cv_type_getsockopt5+set}" = set; then
44318 echo $ECHO_N "(cached) $ECHO_C" >&6
44319else
44320
44321 cat >conftest.$ac_ext <<_ACEOF
44322/* confdefs.h. */
44323_ACEOF
44324cat confdefs.h >>conftest.$ac_ext
44325cat >>conftest.$ac_ext <<_ACEOF
44326/* end confdefs.h. */
44327
44328 #include <sys/types.h>
44329 #include <sys/socket.h>
44330
44331int
44332main ()
44333{
44334
44335 socklen_t len;
44336 getsockopt(0, 0, 0, 0, &len);
44337
44338 ;
44339 return 0;
44340}
44341_ACEOF
44342rm -f conftest.$ac_objext
44343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44344 (eval $ac_compile) 2>conftest.er1
44345 ac_status=$?
44346 grep -v '^ *+' conftest.er1 >conftest.err
44347 rm -f conftest.er1
44348 cat conftest.err >&5
44349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44350 (exit $ac_status); } &&
6a5c9b3f
RR
44351 { ac_try='test -z "$ac_cxx_werror_flag"
44352 || test ! -s conftest.err'
5b674b9d
DE
44353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44354 (eval $ac_try) 2>&5
44355 ac_status=$?
44356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44357 (exit $ac_status); }; } &&
44358 { ac_try='test -s conftest.$ac_objext'
44359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44360 (eval $ac_try) 2>&5
44361 ac_status=$?
44362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44363 (exit $ac_status); }; }; then
44364 wx_cv_type_getsockopt5=socklen_t
44365else
44366 echo "$as_me: failed program was:" >&5
44367sed 's/^/| /' conftest.$ac_ext >&5
44368
44369
6459a506 44370 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44371 if test "$GCC" = yes ; then
c92ad099 44372 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44373 fi
44374
44375 cat >conftest.$ac_ext <<_ACEOF
44376/* confdefs.h. */
44377_ACEOF
44378cat confdefs.h >>conftest.$ac_ext
44379cat >>conftest.$ac_ext <<_ACEOF
44380/* end confdefs.h. */
44381
44382 #include <sys/types.h>
44383 #include <sys/socket.h>
44384
44385int
44386main ()
44387{
44388
44389 size_t len;
44390 getsockopt(0, 0, 0, 0, &len);
44391
44392 ;
44393 return 0;
44394}
44395_ACEOF
44396rm -f conftest.$ac_objext
44397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44398 (eval $ac_compile) 2>conftest.er1
44399 ac_status=$?
44400 grep -v '^ *+' conftest.er1 >conftest.err
44401 rm -f conftest.er1
44402 cat conftest.err >&5
44403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44404 (exit $ac_status); } &&
6a5c9b3f
RR
44405 { ac_try='test -z "$ac_cxx_werror_flag"
44406 || test ! -s conftest.err'
5b674b9d
DE
44407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44408 (eval $ac_try) 2>&5
44409 ac_status=$?
44410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44411 (exit $ac_status); }; } &&
44412 { ac_try='test -s conftest.$ac_objext'
44413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44414 (eval $ac_try) 2>&5
44415 ac_status=$?
44416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417 (exit $ac_status); }; }; then
44418 wx_cv_type_getsockopt5=size_t
44419else
44420 echo "$as_me: failed program was:" >&5
44421sed 's/^/| /' conftest.$ac_ext >&5
44422
44423cat >conftest.$ac_ext <<_ACEOF
44424/* confdefs.h. */
44425_ACEOF
44426cat confdefs.h >>conftest.$ac_ext
44427cat >>conftest.$ac_ext <<_ACEOF
44428/* end confdefs.h. */
44429
44430 #include <sys/types.h>
44431 #include <sys/socket.h>
44432
44433int
44434main ()
44435{
44436
44437 int len;
44438 getsockopt(0, 0, 0, 0, &len);
44439
44440 ;
44441 return 0;
44442}
44443_ACEOF
44444rm -f conftest.$ac_objext
44445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44446 (eval $ac_compile) 2>conftest.er1
44447 ac_status=$?
44448 grep -v '^ *+' conftest.er1 >conftest.err
44449 rm -f conftest.er1
44450 cat conftest.err >&5
44451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44452 (exit $ac_status); } &&
6a5c9b3f
RR
44453 { ac_try='test -z "$ac_cxx_werror_flag"
44454 || test ! -s conftest.err'
5b674b9d
DE
44455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44456 (eval $ac_try) 2>&5
44457 ac_status=$?
44458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44459 (exit $ac_status); }; } &&
44460 { ac_try='test -s conftest.$ac_objext'
44461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44462 (eval $ac_try) 2>&5
44463 ac_status=$?
44464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44465 (exit $ac_status); }; }; then
44466 wx_cv_type_getsockopt5=int
44467else
44468 echo "$as_me: failed program was:" >&5
44469sed 's/^/| /' conftest.$ac_ext >&5
44470
44471wx_cv_type_getsockopt5=unknown
44472
44473fi
44474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44475
44476fi
44477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44478
6459a506 44479 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44480
44481
44482fi
44483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44484
44485fi
44486echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44487echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44488
44489 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44490 wxUSE_SOCKETS=no
44491 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44492echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44493 else
44494 cat >>confdefs.h <<_ACEOF
44495#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44496_ACEOF
44497
44498 fi
44499 fi
44500fi
44501
44502if test "$wxUSE_SOCKETS" = "yes" ; then
44503 cat >>confdefs.h <<\_ACEOF
44504#define wxUSE_SOCKETS 1
44505_ACEOF
44506
44507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44508fi
44509
44510if test "$wxUSE_PROTOCOL" = "yes"; then
44511 if test "$wxUSE_SOCKETS" != "yes"; then
44512 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44513echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44514 wxUSE_PROTOCOL=no
44515 fi
44516fi
44517
44518if test "$wxUSE_PROTOCOL" = "yes"; then
44519 cat >>confdefs.h <<\_ACEOF
44520#define wxUSE_PROTOCOL 1
44521_ACEOF
44522
44523
44524 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44525 cat >>confdefs.h <<\_ACEOF
44526#define wxUSE_PROTOCOL_HTTP 1
44527_ACEOF
44528
44529 fi
44530 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44531 cat >>confdefs.h <<\_ACEOF
44532#define wxUSE_PROTOCOL_FTP 1
44533_ACEOF
44534
44535 fi
44536 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44537 cat >>confdefs.h <<\_ACEOF
44538#define wxUSE_PROTOCOL_FILE 1
44539_ACEOF
44540
44541 fi
44542else
44543 if test "$wxUSE_FS_INET" = "yes"; then
44544 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44545echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44546 wxUSE_FS_INET="no"
44547 fi
44548fi
44549
44550if test "$wxUSE_URL" = "yes"; then
44551 if test "$wxUSE_PROTOCOL" != "yes"; then
44552 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44553echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44554 wxUSE_URL=no
44555 fi
44556 if test "$wxUSE_URL" = "yes"; then
44557 cat >>confdefs.h <<\_ACEOF
44558#define wxUSE_URL 1
44559_ACEOF
44560
44561 fi
44562fi
44563
44564if test "$wxUSE_FS_INET" = "yes"; then
44565 cat >>confdefs.h <<\_ACEOF
44566#define wxUSE_FS_INET 1
44567_ACEOF
44568
44569fi
44570
44571
ee45c548
MW
44572if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44573 wxUSE_JOYSTICK=no
44574
44575 if test "$TOOLKIT" = "MSW"; then
44576 wxUSE_JOYSTICK=yes
44577
44578 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44579 if test "$USE_DARWIN" = 1; then
44580 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44581echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44582 cat >conftest.$ac_ext <<_ACEOF
44583/* confdefs.h. */
44584_ACEOF
44585cat confdefs.h >>conftest.$ac_ext
44586cat >>conftest.$ac_ext <<_ACEOF
44587/* end confdefs.h. */
44588 #include <IOKit/hid/IOHIDLib.h>
44589int
44590main ()
44591{
44592 IOHIDQueueInterface *qi = NULL;
44593 IOHIDCallbackFunction cb = NULL;
44594 qi->setEventCallout(NULL, cb, NULL, NULL);
44595 ;
44596 return 0;
44597}
44598_ACEOF
44599rm -f conftest.$ac_objext
44600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44601 (eval $ac_compile) 2>conftest.er1
44602 ac_status=$?
44603 grep -v '^ *+' conftest.er1 >conftest.err
44604 rm -f conftest.er1
44605 cat conftest.err >&5
44606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44607 (exit $ac_status); } &&
6a5c9b3f
RR
44608 { ac_try='test -z "$ac_cxx_werror_flag"
44609 || test ! -s conftest.err'
ee45c548
MW
44610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44611 (eval $ac_try) 2>&5
44612 ac_status=$?
44613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44614 (exit $ac_status); }; } &&
44615 { ac_try='test -s conftest.$ac_objext'
44616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44617 (eval $ac_try) 2>&5
44618 ac_status=$?
44619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44620 (exit $ac_status); }; }; then
44621 wxUSE_JOYSTICK=yes
a848cd7e 44622
ee45c548
MW
44623else
44624 echo "$as_me: failed program was:" >&5
44625sed 's/^/| /' conftest.$ac_ext >&5
44626
44627fi
44628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44629 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44630echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44631 fi
44632
44633 else
a848cd7e
SC
44634
44635for ac_header in linux/joystick.h
44636do
44637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44638if eval "test \"\${$as_ac_Header+set}\" = set"; then
44639 echo "$as_me:$LINENO: checking for $ac_header" >&5
44640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44641if eval "test \"\${$as_ac_Header+set}\" = set"; then
44642 echo $ECHO_N "(cached) $ECHO_C" >&6
44643fi
44644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44646else
44647 # Is the header compilable?
44648echo "$as_me:$LINENO: checking $ac_header usability" >&5
44649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44650cat >conftest.$ac_ext <<_ACEOF
44651/* confdefs.h. */
44652_ACEOF
44653cat confdefs.h >>conftest.$ac_ext
44654cat >>conftest.$ac_ext <<_ACEOF
44655/* end confdefs.h. */
44656$ac_includes_default
44657#include <$ac_header>
44658_ACEOF
44659rm -f conftest.$ac_objext
44660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44661 (eval $ac_compile) 2>conftest.er1
a848cd7e 44662 ac_status=$?
ac1cb8d3
VS
44663 grep -v '^ *+' conftest.er1 >conftest.err
44664 rm -f conftest.er1
44665 cat conftest.err >&5
a848cd7e
SC
44666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44667 (exit $ac_status); } &&
6a5c9b3f
RR
44668 { ac_try='test -z "$ac_cxx_werror_flag"
44669 || test ! -s conftest.err'
ac1cb8d3
VS
44670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44671 (eval $ac_try) 2>&5
44672 ac_status=$?
44673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44674 (exit $ac_status); }; } &&
44675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44677 (eval $ac_try) 2>&5
44678 ac_status=$?
44679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44680 (exit $ac_status); }; }; then
44681 ac_header_compiler=yes
44682else
44683 echo "$as_me: failed program was:" >&5
44684sed 's/^/| /' conftest.$ac_ext >&5
44685
44686ac_header_compiler=no
44687fi
ac1cb8d3 44688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44690echo "${ECHO_T}$ac_header_compiler" >&6
44691
44692# Is the header present?
44693echo "$as_me:$LINENO: checking $ac_header presence" >&5
44694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44695cat >conftest.$ac_ext <<_ACEOF
44696/* confdefs.h. */
44697_ACEOF
44698cat confdefs.h >>conftest.$ac_ext
44699cat >>conftest.$ac_ext <<_ACEOF
44700/* end confdefs.h. */
44701#include <$ac_header>
44702_ACEOF
44703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44705 ac_status=$?
44706 grep -v '^ *+' conftest.er1 >conftest.err
44707 rm -f conftest.er1
44708 cat conftest.err >&5
44709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710 (exit $ac_status); } >/dev/null; then
44711 if test -s conftest.err; then
5d7b7554
VZ
44712 ac_cpp_err=$ac_cxx_preproc_warn_flag
44713 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44714 else
44715 ac_cpp_err=
44716 fi
44717else
44718 ac_cpp_err=yes
44719fi
44720if test -z "$ac_cpp_err"; then
44721 ac_header_preproc=yes
44722else
44723 echo "$as_me: failed program was:" >&5
44724sed 's/^/| /' conftest.$ac_ext >&5
44725
44726 ac_header_preproc=no
44727fi
44728rm -f conftest.err conftest.$ac_ext
44729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44730echo "${ECHO_T}$ac_header_preproc" >&6
44731
44732# So? What about this header?
5d7b7554 44733case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44734 yes:no: )
a848cd7e
SC
44735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44739 ac_header_preproc=yes
a848cd7e 44740 ;;
ac1cb8d3 44741 no:yes:* )
a848cd7e
SC
44742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44754 (
44755 cat <<\_ASBOX
ac1cb8d3
VS
44756## ----------------------------------------- ##
44757## Report this to wx-dev@lists.wxwidgets.org ##
44758## ----------------------------------------- ##
a848cd7e
SC
44759_ASBOX
44760 ) |
44761 sed "s/^/$as_me: WARNING: /" >&2
44762 ;;
44763esac
44764echo "$as_me:$LINENO: checking for $ac_header" >&5
44765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44766if eval "test \"\${$as_ac_Header+set}\" = set"; then
44767 echo $ECHO_N "(cached) $ECHO_C" >&6
44768else
ac1cb8d3 44769 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44770fi
44771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44773
44774fi
44775if test `eval echo '${'$as_ac_Header'}'` = yes; then
44776 cat >>confdefs.h <<_ACEOF
44777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44778_ACEOF
ee45c548 44779 wxUSE_JOYSTICK=yes
a848cd7e
SC
44780fi
44781
44782done
44783
ee45c548 44784 fi
4cb1d3da 44785
ee45c548
MW
44786 if test "$wxUSE_JOYSTICK" = "yes"; then
44787 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44788#define wxUSE_JOYSTICK 1
44789_ACEOF
44790
ee45c548
MW
44791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44792 else
44793 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44794echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44795 fi
44796fi
44797
44798
44799
44800if test "$wxUSE_FONTMAP" = "yes" ; then
44801 cat >>confdefs.h <<\_ACEOF
44802#define wxUSE_FONTMAP 1
44803_ACEOF
44804
44805fi
44806
44807if test "$wxUSE_UNICODE" = "yes" ; then
44808 cat >>confdefs.h <<\_ACEOF
44809#define wxUSE_UNICODE 1
44810_ACEOF
44811
44812
44813 if test "$USE_WIN32" != 1; then
44814 wxUSE_UNICODE_MSLU=no
44815 fi
44816
44817 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44818 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44819echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44820if test "${ac_cv_lib_unicows_main+set}" = set; then
44821 echo $ECHO_N "(cached) $ECHO_C" >&6
44822else
44823 ac_check_lib_save_LIBS=$LIBS
44824LIBS="-lunicows $LIBS"
44825cat >conftest.$ac_ext <<_ACEOF
44826/* confdefs.h. */
44827_ACEOF
44828cat confdefs.h >>conftest.$ac_ext
44829cat >>conftest.$ac_ext <<_ACEOF
44830/* end confdefs.h. */
44831
44832
44833int
44834main ()
44835{
44836main ();
44837 ;
44838 return 0;
44839}
44840_ACEOF
44841rm -f conftest.$ac_objext conftest$ac_exeext
44842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44843 (eval $ac_link) 2>conftest.er1
a848cd7e 44844 ac_status=$?
ac1cb8d3
VS
44845 grep -v '^ *+' conftest.er1 >conftest.err
44846 rm -f conftest.er1
44847 cat conftest.err >&5
a848cd7e
SC
44848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44849 (exit $ac_status); } &&
6a5c9b3f
RR
44850 { ac_try='test -z "$ac_cxx_werror_flag"
44851 || test ! -s conftest.err'
ac1cb8d3
VS
44852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44853 (eval $ac_try) 2>&5
44854 ac_status=$?
44855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44856 (exit $ac_status); }; } &&
44857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44859 (eval $ac_try) 2>&5
44860 ac_status=$?
44861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44862 (exit $ac_status); }; }; then
44863 ac_cv_lib_unicows_main=yes
44864else
44865 echo "$as_me: failed program was:" >&5
44866sed 's/^/| /' conftest.$ac_ext >&5
44867
44868ac_cv_lib_unicows_main=no
44869fi
ac1cb8d3
VS
44870rm -f conftest.err conftest.$ac_objext \
44871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44872LIBS=$ac_check_lib_save_LIBS
44873fi
44874echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44875echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44876if test $ac_cv_lib_unicows_main = yes; then
44877
44878 cat >>confdefs.h <<\_ACEOF
44879#define wxUSE_UNICODE_MSLU 1
44880_ACEOF
44881
44882
44883else
44884
44885 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44886 Applications will only run on Windows NT/2000/XP!" >&5
44887echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44888 Applications will only run on Windows NT/2000/XP!" >&2;}
44889 wxUSE_UNICODE_MSLU=no
44890
44891fi
44892
44893 fi
44894fi
44895
44896if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44897 cat >>confdefs.h <<\_ACEOF
44898#define wxUSE_EXPERIMENTAL_PRINTF 1
44899_ACEOF
44900
44901fi
44902
44903
44904if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44905 cat >>confdefs.h <<\_ACEOF
44906#define wxUSE_POSTSCRIPT 1
44907_ACEOF
44908
44909fi
44910
44911cat >>confdefs.h <<\_ACEOF
44912#define wxUSE_AFM_FOR_POSTSCRIPT 1
44913_ACEOF
44914
44915
44916cat >>confdefs.h <<\_ACEOF
44917#define wxUSE_NORMALIZED_PS_FONTS 1
44918_ACEOF
44919
44920
44921
44922if test "$wxUSE_CONSTRAINTS" = "yes"; then
44923 cat >>confdefs.h <<\_ACEOF
44924#define wxUSE_CONSTRAINTS 1
44925_ACEOF
44926
44927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44928fi
44929
8a7b1113
VZ
44930if test "$wxUSE_MDI" = "yes"; then
44931 cat >>confdefs.h <<\_ACEOF
44932#define wxUSE_MDI 1
44933_ACEOF
44934
44935
44936 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44937 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44938#define wxUSE_MDI_ARCHITECTURE 1
44939_ACEOF
44940
8a7b1113
VZ
44941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44942 fi
a848cd7e
SC
44943fi
44944
44945if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44946 cat >>confdefs.h <<\_ACEOF
44947#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44948_ACEOF
44949
44950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44951 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44953 fi
44954fi
44955
44956if test "$wxUSE_HELP" = "yes"; then
44957 cat >>confdefs.h <<\_ACEOF
44958#define wxUSE_HELP 1
44959_ACEOF
44960
44961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44962
44963 if test "$wxUSE_MSW" = 1; then
44964 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44965 cat >>confdefs.h <<\_ACEOF
44966#define wxUSE_MS_HTML_HELP 1
44967_ACEOF
44968
44969 fi
44970 fi
44971
44972 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44973 if test "$wxUSE_HTML" = "yes"; then
44974 cat >>confdefs.h <<\_ACEOF
44975#define wxUSE_WXHTML_HELP 1
44976_ACEOF
44977
44978 else
44979 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44980echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44981 wxUSE_WXHTML_HELP=no
44982 fi
44983 fi
44984fi
44985
44986if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44987 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44988 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44989echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44990 else
44991 cat >>confdefs.h <<\_ACEOF
44992#define wxUSE_PRINTING_ARCHITECTURE 1
44993_ACEOF
44994
44995 fi
44996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44997fi
44998
44999if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45000 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45001echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45002 { (exit 1); exit 1; }; }
45003fi
45004
45005
efdf6afe
VZ
45006if test "$wxUSE_METAFILE" = "yes"; then
45007 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45008 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45009echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45010 wxUSE_METAFILE=no
45011 fi
45012fi
45013
45014
a848cd7e
SC
45015if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45016 -o "$wxUSE_CLIPBOARD" = "yes" \
45017 -o "$wxUSE_OLE" = "yes" \
45018 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45019
45020for ac_header in ole2.h
45021do
45022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45023if eval "test \"\${$as_ac_Header+set}\" = set"; then
45024 echo "$as_me:$LINENO: checking for $ac_header" >&5
45025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45026if eval "test \"\${$as_ac_Header+set}\" = set"; then
45027 echo $ECHO_N "(cached) $ECHO_C" >&6
45028fi
45029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45031else
45032 # Is the header compilable?
45033echo "$as_me:$LINENO: checking $ac_header usability" >&5
45034echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45035cat >conftest.$ac_ext <<_ACEOF
45036/* confdefs.h. */
45037_ACEOF
45038cat confdefs.h >>conftest.$ac_ext
45039cat >>conftest.$ac_ext <<_ACEOF
45040/* end confdefs.h. */
45041$ac_includes_default
45042#include <$ac_header>
45043_ACEOF
45044rm -f conftest.$ac_objext
45045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45046 (eval $ac_compile) 2>conftest.er1
a848cd7e 45047 ac_status=$?
ac1cb8d3
VS
45048 grep -v '^ *+' conftest.er1 >conftest.err
45049 rm -f conftest.er1
45050 cat conftest.err >&5
a848cd7e
SC
45051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45052 (exit $ac_status); } &&
6a5c9b3f
RR
45053 { ac_try='test -z "$ac_cxx_werror_flag"
45054 || test ! -s conftest.err'
ac1cb8d3
VS
45055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45056 (eval $ac_try) 2>&5
45057 ac_status=$?
45058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45059 (exit $ac_status); }; } &&
45060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45062 (eval $ac_try) 2>&5
45063 ac_status=$?
45064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45065 (exit $ac_status); }; }; then
45066 ac_header_compiler=yes
45067else
45068 echo "$as_me: failed program was:" >&5
45069sed 's/^/| /' conftest.$ac_ext >&5
45070
45071ac_header_compiler=no
45072fi
ac1cb8d3 45073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45075echo "${ECHO_T}$ac_header_compiler" >&6
45076
45077# Is the header present?
45078echo "$as_me:$LINENO: checking $ac_header presence" >&5
45079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45080cat >conftest.$ac_ext <<_ACEOF
45081/* confdefs.h. */
45082_ACEOF
45083cat confdefs.h >>conftest.$ac_ext
45084cat >>conftest.$ac_ext <<_ACEOF
45085/* end confdefs.h. */
45086#include <$ac_header>
45087_ACEOF
45088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45090 ac_status=$?
45091 grep -v '^ *+' conftest.er1 >conftest.err
45092 rm -f conftest.er1
45093 cat conftest.err >&5
45094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45095 (exit $ac_status); } >/dev/null; then
45096 if test -s conftest.err; then
5d7b7554
VZ
45097 ac_cpp_err=$ac_cxx_preproc_warn_flag
45098 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45099 else
45100 ac_cpp_err=
45101 fi
45102else
45103 ac_cpp_err=yes
45104fi
45105if test -z "$ac_cpp_err"; then
45106 ac_header_preproc=yes
45107else
45108 echo "$as_me: failed program was:" >&5
45109sed 's/^/| /' conftest.$ac_ext >&5
45110
45111 ac_header_preproc=no
45112fi
45113rm -f conftest.err conftest.$ac_ext
45114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45115echo "${ECHO_T}$ac_header_preproc" >&6
45116
45117# So? What about this header?
5d7b7554 45118case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45119 yes:no: )
a848cd7e
SC
45120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45124 ac_header_preproc=yes
a848cd7e 45125 ;;
ac1cb8d3 45126 no:yes:* )
a848cd7e
SC
45127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45139 (
45140 cat <<\_ASBOX
ac1cb8d3
VS
45141## ----------------------------------------- ##
45142## Report this to wx-dev@lists.wxwidgets.org ##
45143## ----------------------------------------- ##
a848cd7e
SC
45144_ASBOX
45145 ) |
45146 sed "s/^/$as_me: WARNING: /" >&2
45147 ;;
45148esac
45149echo "$as_me:$LINENO: checking for $ac_header" >&5
45150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45151if eval "test \"\${$as_ac_Header+set}\" = set"; then
45152 echo $ECHO_N "(cached) $ECHO_C" >&6
45153else
ac1cb8d3 45154 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45155fi
45156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45158
45159fi
45160if test `eval echo '${'$as_ac_Header'}'` = yes; then
45161 cat >>confdefs.h <<_ACEOF
45162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45163_ACEOF
45164
45165fi
45166
45167done
45168
45169
45170 if test "$ac_cv_header_ole2_h" = "yes" ; then
45171 if test "$GCC" = yes ; then
a848cd7e
SC
45172 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45173echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45174 cat >conftest.$ac_ext <<_ACEOF
45175/* confdefs.h. */
45176_ACEOF
45177cat confdefs.h >>conftest.$ac_ext
45178cat >>conftest.$ac_ext <<_ACEOF
45179/* end confdefs.h. */
45180#include <windows.h>
45181 #include <ole2.h>
45182int
45183main ()
45184{
45185
45186 ;
45187 return 0;
45188}
45189_ACEOF
45190rm -f conftest.$ac_objext
45191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45192 (eval $ac_compile) 2>conftest.er1
a848cd7e 45193 ac_status=$?
ac1cb8d3
VS
45194 grep -v '^ *+' conftest.er1 >conftest.err
45195 rm -f conftest.er1
45196 cat conftest.err >&5
a848cd7e
SC
45197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45198 (exit $ac_status); } &&
6a5c9b3f
RR
45199 { ac_try='test -z "$ac_cxx_werror_flag"
45200 || test ! -s conftest.err'
ac1cb8d3
VS
45201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45202 (eval $ac_try) 2>&5
45203 ac_status=$?
45204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45205 (exit $ac_status); }; } &&
45206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45208 (eval $ac_try) 2>&5
45209 ac_status=$?
45210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45211 (exit $ac_status); }; }; then
45212 echo "$as_me:$LINENO: result: no" >&5
45213echo "${ECHO_T}no" >&6
45214else
45215 echo "$as_me: failed program was:" >&5
45216sed 's/^/| /' conftest.$ac_ext >&5
45217
45218echo "$as_me:$LINENO: result: yes" >&5
45219echo "${ECHO_T}yes" >&6
5ff751d6 45220 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45221fi
ac1cb8d3 45222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45223 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45224 if test "$wxUSE_OLE" = "yes" ; then
45225 cat >>confdefs.h <<\_ACEOF
45226#define wxUSE_OLE 1
45227_ACEOF
45228
0b78747f 45229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45230 fi
45231 fi
45232
45233 if test "$wxUSE_DATAOBJ" = "yes" ; then
45234 cat >>confdefs.h <<\_ACEOF
45235#define wxUSE_DATAOBJ 1
45236_ACEOF
45237
45238 fi
45239 else
45240 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45241echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45242
45243 wxUSE_CLIPBOARD=no
45244 wxUSE_DRAG_AND_DROP=no
45245 wxUSE_DATAOBJ=no
45246 wxUSE_OLE=no
45247 fi
45248
45249 if test "$wxUSE_METAFILE" = "yes"; then
45250 cat >>confdefs.h <<\_ACEOF
45251#define wxUSE_METAFILE 1
45252_ACEOF
45253
45254
45255 cat >>confdefs.h <<\_ACEOF
45256#define wxUSE_ENH_METAFILE 1
45257_ACEOF
45258
45259 fi
45260fi
45261
45262if test "$wxUSE_IPC" = "yes"; then
0b78747f 45263 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45264 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45265echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45266 wxUSE_IPC=no
a848cd7e
SC
45267 fi
45268
0b78747f
MW
45269 if test "$wxUSE_IPC" = "yes"; then
45270 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45271#define wxUSE_IPC 1
45272_ACEOF
45273
0b78747f
MW
45274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45275 fi
a848cd7e
SC
45276fi
45277
eb730a0c 45278if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45279 if test "$wxUSE_MGL" = 1; then
45280 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45281echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45282 wxUSE_DATAOBJ=no
45283 else
45284 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45285#define wxUSE_DATAOBJ 1
45286_ACEOF
45287
2113bc77 45288 fi
eb730a0c
JS
45289else
45290 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45291echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45292 wxUSE_CLIPBOARD=no
45293 wxUSE_DRAG_AND_DROP=no
45294fi
45295
a848cd7e
SC
45296if test "$wxUSE_CLIPBOARD" = "yes"; then
45297 if test "$wxUSE_MGL" = 1; then
45298 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45299echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45300 wxUSE_CLIPBOARD=no
45301 fi
45302
45303 if test "$wxUSE_CLIPBOARD" = "yes"; then
45304 cat >>confdefs.h <<\_ACEOF
45305#define wxUSE_CLIPBOARD 1
45306_ACEOF
45307
a848cd7e
SC
45308 fi
45309fi
45310
45311if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45312 if test "$wxUSE_GTK" = 1; then
45313 if test "$WXGTK12" != 1; then
45314 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45315echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45316 wxUSE_DRAG_AND_DROP=no
45317 fi
45318 fi
45319
45320 if test "$wxUSE_MOTIF" = 1; then
45321 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45322echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45323 wxUSE_DRAG_AND_DROP=no
45324 fi
45325
45326 if test "$wxUSE_X11" = 1; then
45327 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45328echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45329 wxUSE_DRAG_AND_DROP=no
45330 fi
45331
45332 if test "$wxUSE_MGL" = 1; then
45333 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45334echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45335 wxUSE_DRAG_AND_DROP=no
45336 fi
45337
45338 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45339 cat >>confdefs.h <<\_ACEOF
45340#define wxUSE_DRAG_AND_DROP 1
45341_ACEOF
45342
45343 fi
45344
45345fi
45346
45347if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45349fi
45350
45351if test "$wxUSE_SPLINES" = "yes" ; then
45352 cat >>confdefs.h <<\_ACEOF
45353#define wxUSE_SPLINES 1
45354_ACEOF
45355
45356fi
45357
fbe2ca43
SN
45358if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45359 cat >>confdefs.h <<\_ACEOF
45360#define wxUSE_MOUSEWHEEL 1
45361_ACEOF
45362
45363fi
45364
a848cd7e
SC
45365
45366USES_CONTROLS=0
45367if test "$wxUSE_CONTROLS" = "yes"; then
45368 USES_CONTROLS=1
45369fi
45370
45371if test "$wxUSE_ACCEL" = "yes"; then
45372 cat >>confdefs.h <<\_ACEOF
45373#define wxUSE_ACCEL 1
45374_ACEOF
45375
45376 USES_CONTROLS=1
45377fi
45378
45379if test "$wxUSE_BUTTON" = "yes"; then
45380 cat >>confdefs.h <<\_ACEOF
45381#define wxUSE_BUTTON 1
45382_ACEOF
45383
45384 USES_CONTROLS=1
45385fi
45386
45387if test "$wxUSE_BMPBUTTON" = "yes"; then
45388 cat >>confdefs.h <<\_ACEOF
45389#define wxUSE_BMPBUTTON 1
45390_ACEOF
45391
45392 USES_CONTROLS=1
45393fi
45394
45395if test "$wxUSE_CALCTRL" = "yes"; then
45396 cat >>confdefs.h <<\_ACEOF
45397#define wxUSE_CALENDARCTRL 1
45398_ACEOF
45399
45400 USES_CONTROLS=1
45401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45402fi
45403
45404if test "$wxUSE_CARET" = "yes"; then
45405 cat >>confdefs.h <<\_ACEOF
45406#define wxUSE_CARET 1
45407_ACEOF
45408
45409 USES_CONTROLS=1
45410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45411fi
45412
45413if test "$wxUSE_COMBOBOX" = "yes"; then
45414 cat >>confdefs.h <<\_ACEOF
45415#define wxUSE_COMBOBOX 1
45416_ACEOF
45417
45418 USES_CONTROLS=1
45419fi
45420
a57d600f 45421if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45422 cat >>confdefs.h <<\_ACEOF
a57d600f 45423#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45424_ACEOF
45425
45426 USES_CONTROLS=1
45427fi
45428
a848cd7e
SC
45429if test "$wxUSE_CHOICE" = "yes"; then
45430 cat >>confdefs.h <<\_ACEOF
45431#define wxUSE_CHOICE 1
45432_ACEOF
45433
45434 USES_CONTROLS=1
45435fi
45436
92bbdbcd
WS
45437if test "$wxUSE_CHOICEBOOK" = "yes"; then
45438 cat >>confdefs.h <<\_ACEOF
45439#define wxUSE_CHOICEBOOK 1
45440_ACEOF
45441
45442 USES_CONTROLS=1
45443fi
45444
a848cd7e
SC
45445if test "$wxUSE_CHECKBOX" = "yes"; then
45446 cat >>confdefs.h <<\_ACEOF
45447#define wxUSE_CHECKBOX 1
45448_ACEOF
45449
45450 USES_CONTROLS=1
45451fi
45452
45453if test "$wxUSE_CHECKLST" = "yes"; then
45454 cat >>confdefs.h <<\_ACEOF
45455#define wxUSE_CHECKLISTBOX 1
45456_ACEOF
45457
45458 USES_CONTROLS=1
45459 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45460fi
45461
e9263684
VZ
45462if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45463 cat >>confdefs.h <<\_ACEOF
45464#define wxUSE_COLOURPICKERCTRL 1
45465_ACEOF
45466
45467 USES_CONTROLS=1
45468fi
45469
da98e9be
VZ
45470if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45471 cat >>confdefs.h <<\_ACEOF
45472#define wxUSE_DATEPICKCTRL 1
45473_ACEOF
45474
45475 USES_CONTROLS=1
45476fi
45477
e9263684
VZ
45478if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45479 cat >>confdefs.h <<\_ACEOF
45480#define wxUSE_DIRPICKERCTRL 1
45481_ACEOF
45482
45483 USES_CONTROLS=1
45484fi
45485
45486if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45487 cat >>confdefs.h <<\_ACEOF
45488#define wxUSE_FILEPICKERCTRL 1
45489_ACEOF
45490
45491 USES_CONTROLS=1
45492fi
45493
45494if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45495 cat >>confdefs.h <<\_ACEOF
45496#define wxUSE_FONTPICKERCTRL 1
45497_ACEOF
45498
45499 USES_CONTROLS=1
45500fi
45501
a848cd7e
SC
45502if test "$wxUSE_DISPLAY" = "yes"; then
45503 cat >>confdefs.h <<\_ACEOF
45504#define wxUSE_DISPLAY 1
45505_ACEOF
45506
0b78747f 45507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45508fi
45509
45510if test "$wxUSE_GAUGE" = "yes"; then
45511 cat >>confdefs.h <<\_ACEOF
45512#define wxUSE_GAUGE 1
45513_ACEOF
45514
45515 USES_CONTROLS=1
45516fi
45517
45518if test "$wxUSE_GRID" = "yes"; then
45519 cat >>confdefs.h <<\_ACEOF
45520#define wxUSE_GRID 1
45521_ACEOF
45522
45523 USES_CONTROLS=1
45524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45525fi
45526
6954625c
VZ
45527if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45528 cat >>confdefs.h <<\_ACEOF
45529#define wxUSE_HYPERLINKCTRL 1
45530_ACEOF
45531
45532 USES_CONTROLS=1
45533fi
45534
20e34ecc
RR
45535if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45536 cat >>confdefs.h <<\_ACEOF
45537#define wxUSE_DATAVIEWCTRL 1
45538_ACEOF
45539
45540 USES_CONTROLS=1
45541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45542fi
45543
a848cd7e
SC
45544if test "$wxUSE_IMAGLIST" = "yes"; then
45545 cat >>confdefs.h <<\_ACEOF
45546#define wxUSE_IMAGLIST 1
45547_ACEOF
45548
45549fi
45550
45551if test "$wxUSE_LISTBOOK" = "yes"; then
45552 cat >>confdefs.h <<\_ACEOF
45553#define wxUSE_LISTBOOK 1
45554_ACEOF
45555
45556 USES_CONTROLS=1
45557fi
45558
45559if test "$wxUSE_LISTBOX" = "yes"; then
45560 cat >>confdefs.h <<\_ACEOF
45561#define wxUSE_LISTBOX 1
45562_ACEOF
45563
45564 USES_CONTROLS=1
0b78747f 45565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45566fi
45567
45568if test "$wxUSE_LISTCTRL" = "yes"; then
45569 if test "$wxUSE_IMAGLIST" = "yes"; then
45570 cat >>confdefs.h <<\_ACEOF
45571#define wxUSE_LISTCTRL 1
45572_ACEOF
45573
45574 USES_CONTROLS=1
45575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45576 else
45577 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45578echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45579 fi
45580fi
45581
45582if test "$wxUSE_NOTEBOOK" = "yes"; then
45583 cat >>confdefs.h <<\_ACEOF
45584#define wxUSE_NOTEBOOK 1
45585_ACEOF
45586
45587 USES_CONTROLS=1
45588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45589fi
45590
a57d600f 45591if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45592 cat >>confdefs.h <<\_ACEOF
a57d600f 45593#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45594_ACEOF
45595
45596 USES_CONTROLS=1
45597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45598fi
45599
a848cd7e
SC
45600
45601if test "$wxUSE_RADIOBOX" = "yes"; then
45602 cat >>confdefs.h <<\_ACEOF
45603#define wxUSE_RADIOBOX 1
45604_ACEOF
45605
45606 USES_CONTROLS=1
45607fi
45608
45609if test "$wxUSE_RADIOBTN" = "yes"; then
45610 cat >>confdefs.h <<\_ACEOF
45611#define wxUSE_RADIOBTN 1
45612_ACEOF
45613
45614 USES_CONTROLS=1
45615fi
45616
45617if test "$wxUSE_SASH" = "yes"; then
45618 cat >>confdefs.h <<\_ACEOF
45619#define wxUSE_SASH 1
45620_ACEOF
45621
45622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45623fi
45624
45625if test "$wxUSE_SCROLLBAR" = "yes"; then
45626 cat >>confdefs.h <<\_ACEOF
45627#define wxUSE_SCROLLBAR 1
45628_ACEOF
45629
45630 USES_CONTROLS=1
45631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45632fi
45633
45634if test "$wxUSE_SLIDER" = "yes"; then
45635 cat >>confdefs.h <<\_ACEOF
45636#define wxUSE_SLIDER 1
45637_ACEOF
45638
45639 USES_CONTROLS=1
45640fi
45641
45642if test "$wxUSE_SPINBTN" = "yes"; then
45643 cat >>confdefs.h <<\_ACEOF
45644#define wxUSE_SPINBTN 1
45645_ACEOF
45646
45647 USES_CONTROLS=1
45648fi
45649
45650if test "$wxUSE_SPINCTRL" = "yes"; then
45651 cat >>confdefs.h <<\_ACEOF
45652#define wxUSE_SPINCTRL 1
45653_ACEOF
45654
45655 USES_CONTROLS=1
45656fi
45657
45658if test "$wxUSE_SPLITTER" = "yes"; then
45659 cat >>confdefs.h <<\_ACEOF
45660#define wxUSE_SPLITTER 1
45661_ACEOF
45662
45663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45664fi
45665
45666if test "$wxUSE_STATBMP" = "yes"; then
45667 cat >>confdefs.h <<\_ACEOF
45668#define wxUSE_STATBMP 1
45669_ACEOF
45670
45671 USES_CONTROLS=1
45672fi
45673
45674if test "$wxUSE_STATBOX" = "yes"; then
45675 cat >>confdefs.h <<\_ACEOF
45676#define wxUSE_STATBOX 1
45677_ACEOF
45678
45679 USES_CONTROLS=1
45680fi
45681
45682if test "$wxUSE_STATTEXT" = "yes"; then
45683 cat >>confdefs.h <<\_ACEOF
45684#define wxUSE_STATTEXT 1
45685_ACEOF
45686
45687 USES_CONTROLS=1
45688fi
45689
45690if test "$wxUSE_STATLINE" = "yes"; then
45691 cat >>confdefs.h <<\_ACEOF
45692#define wxUSE_STATLINE 1
45693_ACEOF
45694
45695 USES_CONTROLS=1
45696fi
45697
45698if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45699 cat >>confdefs.h <<\_ACEOF
45700#define wxUSE_NATIVE_STATUSBAR 1
45701_ACEOF
45702
a848cd7e
SC
45703 cat >>confdefs.h <<\_ACEOF
45704#define wxUSE_STATUSBAR 1
45705_ACEOF
45706
45707 USES_CONTROLS=1
45708
45709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45710fi
45711
f10e38c4 45712if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45713 cat >>confdefs.h <<\_ACEOF
45714#define wxUSE_TAB_DIALOG 1
45715_ACEOF
45716
a848cd7e
SC
45717fi
45718
45719if test "$wxUSE_TEXTCTRL" = "yes"; then
45720 cat >>confdefs.h <<\_ACEOF
45721#define wxUSE_TEXTCTRL 1
45722_ACEOF
45723
45724 USES_CONTROLS=1
45725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45726fi
45727
45728if test "$wxUSE_TOGGLEBTN" = "yes"; then
45729 if test "$wxUSE_COCOA" = 1 ; then
45730 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45731echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45732 wxUSE_TOGGLEBTN=no
45733 fi
a848cd7e
SC
45734
45735 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45736 cat >>confdefs.h <<\_ACEOF
45737#define wxUSE_TOGGLEBTN 1
45738_ACEOF
45739
45740 USES_CONTROLS=1
45741 fi
45742fi
45743
a848cd7e
SC
45744if test "$wxUSE_TOOLBAR" = "yes"; then
45745 cat >>confdefs.h <<\_ACEOF
45746#define wxUSE_TOOLBAR 1
45747_ACEOF
45748
45749 USES_CONTROLS=1
45750
452b6243
VS
45751 if test "$wxUSE_UNIVERSAL" = "yes"; then
45752 wxUSE_TOOLBAR_NATIVE="no"
45753 else
45754 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45755 cat >>confdefs.h <<\_ACEOF
45756#define wxUSE_TOOLBAR_NATIVE 1
45757_ACEOF
45758
a848cd7e
SC
45759 fi
45760
45761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45762fi
45763
45764if test "$wxUSE_TOOLTIPS" = "yes"; then
45765 if test "$wxUSE_MOTIF" = 1; then
45766 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45767echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45768 else
45769 if test "$wxUSE_UNIVERSAL" = "yes"; then
45770 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45771echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45772 else
45773 cat >>confdefs.h <<\_ACEOF
45774#define wxUSE_TOOLTIPS 1
45775_ACEOF
45776
45777 fi
45778 fi
45779fi
45780
0093c2fc
VZ
45781if test "$wxUSE_TREEBOOK" = "yes"; then
45782 cat >>confdefs.h <<\_ACEOF
45783#define wxUSE_TREEBOOK 1
45784_ACEOF
45785
45786 USES_CONTROLS=1
45787fi
45788
5ec3bc43
JS
45789if test "$wxUSE_TOOLBOOK" = "yes"; then
45790 cat >>confdefs.h <<\_ACEOF
45791#define wxUSE_TOOLBOOK 1
45792_ACEOF
45793
45794 USES_CONTROLS=1
45795fi
45796
a848cd7e
SC
45797if test "$wxUSE_TREECTRL" = "yes"; then
45798 if test "$wxUSE_IMAGLIST" = "yes"; then
45799 cat >>confdefs.h <<\_ACEOF
45800#define wxUSE_TREECTRL 1
45801_ACEOF
45802
45803 USES_CONTROLS=1
45804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45805 else
45806 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45807echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45808 fi
45809fi
45810
45811if test "$wxUSE_POPUPWIN" = "yes"; then
45812 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45813 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45814echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45815 else
45816 if test "$wxUSE_PM" = 1; then
45817 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45818echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45819 else
45820 cat >>confdefs.h <<\_ACEOF
45821#define wxUSE_POPUPWIN 1
45822_ACEOF
45823
0b78747f 45824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45825
45826 USES_CONTROLS=1
45827 fi
45828 fi
45829fi
45830
0dcd06dd 45831if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45832 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45833 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45834echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45835 else
45836 cat >>confdefs.h <<\_ACEOF
45837#define wxUSE_DIALUP_MANAGER 1
45838_ACEOF
45839
45840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45841 fi
45842fi
45843
a848cd7e
SC
45844if test "$wxUSE_TIPWINDOW" = "yes"; then
45845 if test "$wxUSE_PM" = 1; then
45846 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45847echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45848 else
45849 cat >>confdefs.h <<\_ACEOF
45850#define wxUSE_TIPWINDOW 1
45851_ACEOF
45852
45853 fi
45854fi
45855
45856if test "$USES_CONTROLS" = 1; then
45857 cat >>confdefs.h <<\_ACEOF
45858#define wxUSE_CONTROLS 1
45859_ACEOF
45860
45861fi
45862
45863
45864if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45865 cat >>confdefs.h <<\_ACEOF
45866#define wxUSE_ACCESSIBILITY 1
45867_ACEOF
45868
45869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45870fi
45871
38b4a946
VZ
45872if test "$wxUSE_DC_CACHEING" = "yes"; then
45873 cat >>confdefs.h <<\_ACEOF
45874#define wxUSE_DC_CACHEING 1
45875_ACEOF
45876
45877fi
45878
a848cd7e
SC
45879if test "$wxUSE_DRAGIMAGE" = "yes"; then
45880 cat >>confdefs.h <<\_ACEOF
45881#define wxUSE_DRAGIMAGE 1
45882_ACEOF
45883
45884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45885fi
45886
45887if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45888 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45889 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45890echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45891 else
45892 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45893#define wxUSE_EXCEPTIONS 1
45894_ACEOF
45895
07bea8f0
VS
45896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45897 fi
a848cd7e
SC
45898fi
45899
45900USE_HTML=0
45901if test "$wxUSE_HTML" = "yes"; then
45902 cat >>confdefs.h <<\_ACEOF
45903#define wxUSE_HTML 1
45904_ACEOF
45905
45906 USE_HTML=1
45907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45908 if test "$wxUSE_MAC" = 1; then
45909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45910 fi
a848cd7e 45911fi
646b6ec1 45912if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45913 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45914 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45915 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45916 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45917echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45918if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45919 echo $ECHO_N "(cached) $ECHO_C" >&6
45920else
45921 cat >conftest.$ac_ext <<_ACEOF
45922/* confdefs.h. */
45923_ACEOF
45924cat confdefs.h >>conftest.$ac_ext
45925cat >>conftest.$ac_ext <<_ACEOF
45926/* end confdefs.h. */
45927#include <Carbon/Carbon.h>
45928
45929#include <WebKit/HIWebView.h>
45930_ACEOF
45931rm -f conftest.$ac_objext
45932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45933 (eval $ac_compile) 2>conftest.er1
45934 ac_status=$?
45935 grep -v '^ *+' conftest.er1 >conftest.err
45936 rm -f conftest.er1
45937 cat conftest.err >&5
45938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939 (exit $ac_status); } &&
6a5c9b3f
RR
45940 { ac_try='test -z "$ac_cxx_werror_flag"
45941 || test ! -s conftest.err'
07bea8f0
VS
45942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45943 (eval $ac_try) 2>&5
45944 ac_status=$?
45945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45946 (exit $ac_status); }; } &&
45947 { ac_try='test -s conftest.$ac_objext'
45948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45949 (eval $ac_try) 2>&5
45950 ac_status=$?
45951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45952 (exit $ac_status); }; }; then
45953 ac_cv_header_WebKit_HIWebView_h=yes
45954else
45955 echo "$as_me: failed program was:" >&5
45956sed 's/^/| /' conftest.$ac_ext >&5
45957
45958ac_cv_header_WebKit_HIWebView_h=no
45959fi
45960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45961fi
45962echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45963echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45964if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45965
45966 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45967#define wxUSE_WEBKIT 1
45968_ACEOF
45969
07bea8f0
VS
45970 WEBKIT_LINK="-framework WebKit"
45971
45972else
45973
45974 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45975echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45976 wxUSE_WEBKIT=no
45977
646b6ec1
VS
45978fi
45979
07bea8f0
VS
45980
45981 CPPFLAGS="$old_CPPFLAGS"
45982 elif test "$wxUSE_COCOA" = 1; then
45983 cat >>confdefs.h <<\_ACEOF
45984#define wxUSE_WEBKIT 1
45985_ACEOF
45986
45987 else
45988 wxUSE_WEBKIT=no
45989 fi
45990fi
45991
9a8f0513
VS
45992USE_XRC=0
45993if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45994 if test "$wxUSE_XML" != "yes"; then
45995 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45996echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45997 wxUSE_XRC=no
45998 else
45999 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46000#define wxUSE_XRC 1
46001_ACEOF
46002
d2ebf0b7
VS
46003 USE_XRC=1
46004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46005 fi
9a8f0513 46006fi
07bea8f0 46007
3f60522a
JS
46008USE_AUI=0
46009if test "$wxUSE_AUI" = "yes"; then
46010 cat >>confdefs.h <<\_ACEOF
46011#define wxUSE_AUI 1
46012_ACEOF
46013
46014 USE_AUI=1
46015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46016fi
46017
a848cd7e
SC
46018if test "$wxUSE_MENUS" = "yes"; then
46019 cat >>confdefs.h <<\_ACEOF
46020#define wxUSE_MENUS 1
46021_ACEOF
46022
46023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46024fi
46025
46026if test "$wxUSE_METAFILE" = "yes"; then
46027 cat >>confdefs.h <<\_ACEOF
46028#define wxUSE_METAFILE 1
46029_ACEOF
46030
46031fi
46032
46033if test "$wxUSE_MIMETYPE" = "yes"; then
46034 cat >>confdefs.h <<\_ACEOF
46035#define wxUSE_MIMETYPE 1
46036_ACEOF
46037
46038fi
46039
46040if test "$wxUSE_MINIFRAME" = "yes"; then
46041 cat >>confdefs.h <<\_ACEOF
46042#define wxUSE_MINIFRAME 1
46043_ACEOF
46044
46045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46046fi
46047
46048if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46049 cat >>confdefs.h <<\_ACEOF
46050#define wxUSE_SYSTEM_OPTIONS 1
46051_ACEOF
46052
46053 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46054 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46056 fi
46057fi
46058
46059
46060if test "$wxUSE_VALIDATORS" = "yes"; then
46061 cat >>confdefs.h <<\_ACEOF
46062#define wxUSE_VALIDATORS 1
46063_ACEOF
46064
46065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46066fi
46067
46068if test "$wxUSE_PALETTE" = "yes" ; then
46069 cat >>confdefs.h <<\_ACEOF
46070#define wxUSE_PALETTE 1
46071_ACEOF
46072
46073fi
46074
46075if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46076 LIBS=" -lunicows $LIBS"
46077fi
46078
91dea314
MW
46079USE_RICHTEXT=0
46080if test "$wxUSE_RICHTEXT" = "yes"; then
46081 cat >>confdefs.h <<\_ACEOF
46082#define wxUSE_RICHTEXT 1
46083_ACEOF
46084
46085 USE_RICHTEXT=1
46086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46087fi
46088
a848cd7e
SC
46089
46090if test "$wxUSE_IMAGE" = "yes" ; then
46091 cat >>confdefs.h <<\_ACEOF
46092#define wxUSE_IMAGE 1
46093_ACEOF
46094
46095
46096 if test "$wxUSE_GIF" = "yes" ; then
46097 cat >>confdefs.h <<\_ACEOF
46098#define wxUSE_GIF 1
46099_ACEOF
46100
46101 fi
46102
46103 if test "$wxUSE_PCX" = "yes" ; then
46104 cat >>confdefs.h <<\_ACEOF
46105#define wxUSE_PCX 1
46106_ACEOF
46107
46108 fi
46109
46110 if test "$wxUSE_IFF" = "yes" ; then
46111 cat >>confdefs.h <<\_ACEOF
46112#define wxUSE_IFF 1
46113_ACEOF
46114
46115 fi
46116
46117 if test "$wxUSE_PNM" = "yes" ; then
46118 cat >>confdefs.h <<\_ACEOF
46119#define wxUSE_PNM 1
46120_ACEOF
46121
46122 fi
46123
46124 if test "$wxUSE_XPM" = "yes" ; then
46125 cat >>confdefs.h <<\_ACEOF
46126#define wxUSE_XPM 1
46127_ACEOF
46128
46129 fi
46130
46131 if test "$wxUSE_ICO_CUR" = "yes" ; then
46132 cat >>confdefs.h <<\_ACEOF
46133#define wxUSE_ICO_CUR 1
46134_ACEOF
46135
46136 fi
46137fi
46138
46139
46140if test "$wxUSE_CHOICEDLG" = "yes"; then
46141 cat >>confdefs.h <<\_ACEOF
46142#define wxUSE_CHOICEDLG 1
46143_ACEOF
46144
46145fi
46146
46147if test "$wxUSE_COLOURDLG" = "yes"; then
46148 cat >>confdefs.h <<\_ACEOF
46149#define wxUSE_COLOURDLG 1
46150_ACEOF
46151
46152fi
46153
46154if test "$wxUSE_FILEDLG" = "yes"; then
46155 cat >>confdefs.h <<\_ACEOF
46156#define wxUSE_FILEDLG 1
46157_ACEOF
46158
46159fi
46160
46161if test "$wxUSE_FINDREPLDLG" = "yes"; then
46162 cat >>confdefs.h <<\_ACEOF
46163#define wxUSE_FINDREPLDLG 1
46164_ACEOF
46165
46166fi
46167
46168if test "$wxUSE_FONTDLG" = "yes"; then
46169 cat >>confdefs.h <<\_ACEOF
46170#define wxUSE_FONTDLG 1
46171_ACEOF
46172
46173fi
46174
46175if test "$wxUSE_DIRDLG" = "yes"; then
46176 if test "$wxUSE_TREECTRL" != "yes"; then
46177 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46178echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46179 else
46180 cat >>confdefs.h <<\_ACEOF
46181#define wxUSE_DIRDLG 1
46182_ACEOF
46183
46184 fi
46185fi
46186
46187if test "$wxUSE_MSGDLG" = "yes"; then
46188 cat >>confdefs.h <<\_ACEOF
46189#define wxUSE_MSGDLG 1
46190_ACEOF
46191
46192fi
46193
46194if test "$wxUSE_NUMBERDLG" = "yes"; then
46195 cat >>confdefs.h <<\_ACEOF
46196#define wxUSE_NUMBERDLG 1
46197_ACEOF
46198
46199fi
46200
46201if test "$wxUSE_PROGRESSDLG" = "yes"; then
46202 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46203 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46204echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46205 else
46206 cat >>confdefs.h <<\_ACEOF
46207#define wxUSE_PROGRESSDLG 1
46208_ACEOF
46209
46210 fi
46211fi
46212
46213if test "$wxUSE_SPLASH" = "yes"; then
46214 cat >>confdefs.h <<\_ACEOF
46215#define wxUSE_SPLASH 1
46216_ACEOF
46217
2057db16 46218 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46219fi
46220
46221if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46222 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46223 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46224echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46225 else
46226 cat >>confdefs.h <<\_ACEOF
46227#define wxUSE_STARTUP_TIPS 1
46228_ACEOF
46229
46230 fi
46231fi
46232
46233if test "$wxUSE_TEXTDLG" = "yes"; then
46234 cat >>confdefs.h <<\_ACEOF
46235#define wxUSE_TEXTDLG 1
46236_ACEOF
46237
46238fi
46239
46240if test "$wxUSE_WIZARDDLG" = "yes"; then
46241 cat >>confdefs.h <<\_ACEOF
46242#define wxUSE_WIZARDDLG 1
46243_ACEOF
46244
46245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46246fi
46247
46248
f10e38c4
VZ
46249USE_MEDIA=0
46250
ce756cb0 46251if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46252 USE_MEDIA=1
46253
ce756cb0 46254 if test "$wxUSE_GTK" = 1; then
c9a66001 46255 wxUSE_GSTREAMER="no"
ce756cb0 46256
f10e38c4
VZ
46257 GST_VERSION_MAJOR=0
46258 GST_VERSION_MINOR=10
2f6c5bb5 46259 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46260
46261 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46262
3ecd9f92
MW
46263pkg_failed=no
46264echo "$as_me:$LINENO: checking for GST" >&5
46265echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46266
3ecd9f92
MW
46267if test -n "$PKG_CONFIG"; then
46268 if test -n "$GST_CFLAGS"; then
46269 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46270 else
46271 if test -n "$PKG_CONFIG" && \
46272 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46273 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46274 ac_status=$?
46275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46276 (exit $ac_status); }; then
46277 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46278else
3ecd9f92
MW
46279 pkg_failed=yes
46280fi
46281 fi
46282else
46283 pkg_failed=untried
dae87f93 46284fi
dae87f93 46285if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46286 if test -n "$GST_LIBS"; then
46287 pkg_cv_GST_LIBS="$GST_LIBS"
46288 else
46289 if test -n "$PKG_CONFIG" && \
46290 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46291 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46292 ac_status=$?
46293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46294 (exit $ac_status); }; then
46295 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46296else
3ecd9f92
MW
46297 pkg_failed=yes
46298fi
46299 fi
46300else
46301 pkg_failed=untried
dae87f93
RN
46302fi
46303
dae87f93 46304
2f6c5bb5 46305
3ecd9f92 46306if test $pkg_failed = yes; then
ce756cb0 46307
3ecd9f92
MW
46308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46309 _pkg_short_errors_supported=yes
46310else
46311 _pkg_short_errors_supported=no
46312fi
46313 if test $_pkg_short_errors_supported = yes; then
46314 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46315 else
46316 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46317 fi
3ecd9f92
MW
46318 # Put the nasty error message in config.log where it belongs
46319 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46320
46321
3ecd9f92
MW
46322 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46323echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46324 GST_VERSION_MINOR=8
dae87f93 46325
ce756cb0 46326
3ecd9f92 46327elif test $pkg_failed = untried; then
dae87f93 46328
2f6c5bb5
VZ
46329 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46330echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46331 GST_VERSION_MINOR=8
dae87f93 46332
2f6c5bb5 46333
3ecd9f92
MW
46334else
46335 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46336 GST_LIBS=$pkg_cv_GST_LIBS
46337 echo "$as_me:$LINENO: result: yes" >&5
46338echo "${ECHO_T}yes" >&6
46339
46340 wxUSE_GSTREAMER="yes"
46341 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46342
3ecd9f92 46343fi
2f6c5bb5
VZ
46344 else
46345 GST_VERSION_MINOR=8
f10e38c4 46346 fi
dae87f93 46347
2f6c5bb5
VZ
46348 if test $GST_VERSION_MINOR = "8"; then
46349 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46350
3ecd9f92
MW
46351pkg_failed=no
46352echo "$as_me:$LINENO: checking for GST" >&5
46353echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46354
3ecd9f92
MW
46355if test -n "$PKG_CONFIG"; then
46356 if test -n "$GST_CFLAGS"; then
46357 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46358 else
46359 if test -n "$PKG_CONFIG" && \
46360 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46361 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46362 ac_status=$?
46363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46364 (exit $ac_status); }; then
46365 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46366else
3ecd9f92
MW
46367 pkg_failed=yes
46368fi
46369 fi
46370else
46371 pkg_failed=untried
dae87f93 46372fi
f10e38c4 46373if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46374 if test -n "$GST_LIBS"; then
46375 pkg_cv_GST_LIBS="$GST_LIBS"
46376 else
46377 if test -n "$PKG_CONFIG" && \
46378 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46379 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46380 ac_status=$?
46381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46382 (exit $ac_status); }; then
46383 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46384else
3ecd9f92
MW
46385 pkg_failed=yes
46386fi
46387 fi
46388else
46389 pkg_failed=untried
dae87f93
RN
46390fi
46391
ce756cb0 46392
2f6c5bb5 46393
3ecd9f92 46394if test $pkg_failed = yes; then
dae87f93 46395
3ecd9f92
MW
46396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46397 _pkg_short_errors_supported=yes
46398else
46399 _pkg_short_errors_supported=no
46400fi
46401 if test $_pkg_short_errors_supported = yes; then
46402 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46403 else
46404 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46405 fi
3ecd9f92
MW
46406 # Put the nasty error message in config.log where it belongs
46407 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46408
46409
3ecd9f92
MW
46410 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46411echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46412
3ecd9f92 46413elif test $pkg_failed = untried; then
ce756cb0 46414
2f6c5bb5
VZ
46415 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46416echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46417
3ecd9f92
MW
46418else
46419 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46420 GST_LIBS=$pkg_cv_GST_LIBS
46421 echo "$as_me:$LINENO: result: yes" >&5
46422echo "${ECHO_T}yes" >&6
46423 wxUSE_GSTREAMER="yes"
46424fi
dae87f93 46425 fi
ce756cb0 46426
f10e38c4 46427
dae87f93 46428 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46429 case "${host}" in
46430 *-*-solaris2* )
46431 if "$GCC" = yes; then
46432 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46433 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46434 fi
46435 esac
46436
46437 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46438 LIBS="$GST_LIBS $LIBS"
46439
dae87f93 46440 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46441#define wxUSE_GSTREAMER 1
46442_ACEOF
46443
2f6c5bb5
VZ
46444 else
46445 USE_MEDIA=0
ce756cb0
RN
46446 fi
46447 fi
2f6c5bb5
VZ
46448
46449 if test $USE_MEDIA = 1; then
46450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46451 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46452#define wxUSE_MEDIACTRL 1
46453_ACEOF
46454
2f6c5bb5 46455 fi
ce756cb0
RN
46456fi
46457
46458
a848cd7e
SC
46459if test "$cross_compiling" = "yes"; then
46460 OSINFO="\"$host\""
46461else
46462 OSINFO=`uname -s -r -m`
46463 OSINFO="\"$OSINFO\""
46464fi
46465
46466cat >>confdefs.h <<_ACEOF
46467#define WXWIN_OS_DESCRIPTION $OSINFO
46468_ACEOF
46469
46470
46471
46472if test "x$prefix" != "xNONE"; then
46473 wxPREFIX=$prefix
46474else
46475 wxPREFIX=$ac_default_prefix
46476fi
46477
46478cat >>confdefs.h <<_ACEOF
46479#define wxINSTALL_PREFIX "$wxPREFIX"
46480_ACEOF
46481
46482
a848cd7e
SC
46483
46484
46485CORE_BASE_LIBS="net base"
46486CORE_GUI_LIBS="adv core"
46487
46488if test "$wxUSE_XML" = "yes" ; then
46489 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46490fi
46491if test "$wxUSE_ODBC" != "no" ; then
46492 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46493 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46494fi
46495if test "$wxUSE_HTML" = "yes" ; then
46496 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46497fi
61639efb
VZ
46498if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46499 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46500fi
9a8f0513
VS
46501if test "$wxUSE_XRC" = "yes" ; then
46502 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46503fi
3f60522a
JS
46504if test "$wxUSE_AUI" = "yes" ; then
46505 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46506fi
a848cd7e
SC
46507
46508if test "$wxUSE_GUI" != "yes"; then
46509 CORE_GUI_LIBS=""
46510fi
46511
46512
46513
46514
46515
5d7b7554
VZ
46516ac_ext=c
46517ac_cpp='$CPP $CPPFLAGS'
46518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46520ac_compiler_gnu=$ac_cv_c_compiler_gnu
46521
a848cd7e
SC
46522
46523
a848cd7e 46524if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46525 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46526 if test "$USE_DARWIN" = 1; then
46527 LDFLAGS="$LDFLAGS -framework QuickTime"
46528 else
46529 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46530 fi
07bea8f0 46531 fi
5dcf30a0 46532 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46533 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46534 else
46535 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46536 fi
a848cd7e
SC
46537fi
46538if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46539 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46540 if test "$wxUSE_MEDIACTRL" = "yes"; then
46541 LDFLAGS="$LDFLAGS -framework QuickTime"
46542 fi
a848cd7e 46543fi
19b27e78
MW
46544if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46545 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46546fi
a848cd7e 46547
a848cd7e
SC
46548LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46549
a848cd7e
SC
46550if test "$wxUSE_GUI" = "yes"; then
46551
46552
8bce5cda
MW
46553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46554 dynamic erase event exec font image minimal mobile \
46555 mobile/wxedit mobile/styles propsize render \
9e39d889 46556 rotate shaped vscroll widgets"
a848cd7e
SC
46557
46558 if test "$wxUSE_MONOLITHIC" != "yes"; then
46559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46560 fi
0b78747f 46561 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46563 if test "$wxUSE_UNIVERSAL" != "yes"; then
46564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46565 fi
46566 fi
46567 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46569 fi
a848cd7e
SC
46570else
46571 SAMPLES_SUBDIRS="console"
46572fi
46573
46574
48f625bc 46575if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46576 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46577elif test "$GCC" = yes ; then
46578 CWARNINGS="-Wall -Wundef"
46579fi
46580
48f625bc 46581if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46582 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46583elif test "$GXX" = yes ; then
46584 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46585fi
a848cd7e 46586
a848cd7e 46587
5ff751d6
VZ
46588WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46589WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46590
46591
c92ad099 46592CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46593 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46594 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46595 $CPPFLAGS `
5ff751d6 46596
8aeeb05c 46597C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46598CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46599CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46600
46601WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46602
a848cd7e 46603
95986553
DE
46604if test "x$MWCC" = "xyes"; then
46605
46606 CC="$CC -cwd source -I-"
46607 CXX="$CXX -cwd source -I-"
46608fi
46609
a848cd7e 46610
0c3c69fc 46611LIBS=`echo $LIBS`
a848cd7e
SC
46612EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46613EXTRALIBS_XML="$EXPAT_LINK"
46614EXTRALIBS_HTML="$MSPACK_LINK"
46615EXTRALIBS_ODBC="$ODBC_LINK"
46616if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46617 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46618fi
46619if test "$wxUSE_OPENGL" = "yes"; then
46620 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46621fi
46622
8aeeb05c 46623LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46624
5ff751d6 46625WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46626
46627if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46628 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46629fi
46630if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46631 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46632fi
46633if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46634 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46635fi
46636if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46637 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46638fi
46639if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46640 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46641fi
46642if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46643 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46644fi
46645if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46646 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46647fi
46648
46649for i in $wxconfig_3rdparty ; do
5ff751d6 46650 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46651done
46652
46653
46654if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46655 WXUNIV=1
46656else
46657 WXUNIV=0
46658fi
46659
46660
46661
46662
46663
46664
46665
46666
46667
46668if test $wxUSE_MONOLITHIC = "yes" ; then
46669 MONOLITHIC=1
46670else
46671 MONOLITHIC=0
46672fi
46673
46674if test $wxUSE_PLUGINS = "yes" ; then
46675 USE_PLUGINS=1
46676else
46677 USE_PLUGINS=0
46678fi
46679
46680if test $wxUSE_ODBC != "no" ; then
46681 USE_ODBC=1
46682else
46683 USE_ODBC=0
46684fi
46685
16358932
VZ
46686if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46687 USE_QA=1
46688else
46689 USE_QA=0
46690fi
46691
a848cd7e
SC
46692if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46693 OFFICIAL_BUILD=1
46694else
46695 OFFICIAL_BUILD=0
46696fi
46697
46698
46699
46700
46701
46702
46703
46704
46705
46706
46707
46708
46709
46710
46711
46712
46713
46714
46715
ceec2216 46716
d1c38808 46717
3565d135 46718
2b850ae1 46719
a848cd7e
SC
46720
46721
46722TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46723
46724
46725
46726
46727
46728
46729
46730
4d4ff94c
VZ
46731case "$TOOLKIT" in
46732 GTK)
c2e9ada4 46733 TOOLKIT_DESC="GTK+"
4d4ff94c 46734 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46735 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46736 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46737 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46738 fi
46739 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46740 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46741 fi
46742 if test "$wxUSE_LIBHILDON" = "yes"; then
46743 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46744 fi
46745
46746 if test "$TOOLKIT_EXTRA" != ""; then
46747 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46748 fi
4d4ff94c 46749 fi
9a8f0513 46750 ;;
4d4ff94c 46751
c2e9ada4
VZ
46752 ?*)
46753 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46754 ;;
46755
4d4ff94c 46756 *)
c2e9ada4 46757 TOOLKIT_DESC="base only"
9a8f0513 46758 ;;
4d4ff94c 46759esac
a848cd7e 46760
fb00f58d
JS
46761if test "$wxUSE_WINE" = "yes"; then
46762 BAKEFILE_FORCE_PLATFORM=win32
46763fi
46764
7afc46ab 46765if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46766 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46767 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46768 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46769 else
46770 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46771 fi
46772 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46773 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46774 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46775 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46776 bk_use_pch=no
46777 fi
46778 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46779 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46780fi
46781
9a8f0513 46782
1e9e8aba
DE
46783
46784
a848cd7e 46785 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46786 if test "x${host}" = "x" ; then
46787 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46788echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46789 { (exit 1); exit 1; }; }
46790 fi
46791
a848cd7e
SC
46792 BAKEFILE_HOST="${host}"
46793 fi
46794
46795 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46796
46797 if test -n "$ac_tool_prefix"; then
46798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46799set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46800echo "$as_me:$LINENO: checking for $ac_word" >&5
46801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46802if test "${ac_cv_prog_RANLIB+set}" = set; then
46803 echo $ECHO_N "(cached) $ECHO_C" >&6
46804else
46805 if test -n "$RANLIB"; then
46806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46807else
46808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46809for as_dir in $PATH
46810do
46811 IFS=$as_save_IFS
46812 test -z "$as_dir" && as_dir=.
46813 for ac_exec_ext in '' $ac_executable_extensions; do
46814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46817 break 2
46818 fi
46819done
46820done
46821
46822fi
46823fi
46824RANLIB=$ac_cv_prog_RANLIB
46825if test -n "$RANLIB"; then
46826 echo "$as_me:$LINENO: result: $RANLIB" >&5
46827echo "${ECHO_T}$RANLIB" >&6
46828else
46829 echo "$as_me:$LINENO: result: no" >&5
46830echo "${ECHO_T}no" >&6
46831fi
46832
46833fi
46834if test -z "$ac_cv_prog_RANLIB"; then
46835 ac_ct_RANLIB=$RANLIB
46836 # Extract the first word of "ranlib", so it can be a program name with args.
46837set dummy ranlib; ac_word=$2
46838echo "$as_me:$LINENO: checking for $ac_word" >&5
46839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46840if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46841 echo $ECHO_N "(cached) $ECHO_C" >&6
46842else
46843 if test -n "$ac_ct_RANLIB"; then
46844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46845else
46846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46847for as_dir in $PATH
46848do
46849 IFS=$as_save_IFS
46850 test -z "$as_dir" && as_dir=.
46851 for ac_exec_ext in '' $ac_executable_extensions; do
46852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46853 ac_cv_prog_ac_ct_RANLIB="ranlib"
46854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46855 break 2
46856 fi
46857done
46858done
46859
46860 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46861fi
46862fi
46863ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46864if test -n "$ac_ct_RANLIB"; then
46865 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46866echo "${ECHO_T}$ac_ct_RANLIB" >&6
46867else
46868 echo "$as_me:$LINENO: result: no" >&5
46869echo "${ECHO_T}no" >&6
46870fi
46871
46872 RANLIB=$ac_ct_RANLIB
46873else
46874 RANLIB="$ac_cv_prog_RANLIB"
46875fi
46876
46877 # Find a good install program. We prefer a C program (faster),
46878# so one script is as good as another. But avoid the broken or
46879# incompatible versions:
46880# SysV /etc/install, /usr/sbin/install
46881# SunOS /usr/etc/install
46882# IRIX /sbin/install
46883# AIX /bin/install
46884# AmigaOS /C/install, which installs bootblocks on floppy discs
46885# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46886# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46887# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46888# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46889# ./install, which can be erroneously created by make from ./install.sh.
46890echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46891echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46892if test -z "$INSTALL"; then
46893if test "${ac_cv_path_install+set}" = set; then
46894 echo $ECHO_N "(cached) $ECHO_C" >&6
46895else
46896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46897for as_dir in $PATH
46898do
46899 IFS=$as_save_IFS
46900 test -z "$as_dir" && as_dir=.
46901 # Account for people who put trailing slashes in PATH elements.
46902case $as_dir/ in
46903 ./ | .// | /cC/* | \
46904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46905 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46906 /usr/ucb/* ) ;;
46907 *)
46908 # OSF1 and SCO ODT 3.0 have their own names for install.
46909 # Don't use installbsd from OSF since it installs stuff as root
46910 # by default.
46911 for ac_prog in ginstall scoinst install; do
46912 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46913 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46914 if test $ac_prog = install &&
46915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46916 # AIX install. It has an incompatible calling convention.
46917 :
46918 elif test $ac_prog = install &&
46919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46920 # program-specific install script used by HP pwplus--don't use.
46921 :
46922 else
46923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46924 break 3
46925 fi
46926 fi
a848cd7e
SC
46927 done
46928 done
46929 ;;
46930esac
46931done
46932
46933
46934fi
46935 if test "${ac_cv_path_install+set}" = set; then
46936 INSTALL=$ac_cv_path_install
46937 else
46938 # As a last resort, use the slow shell script. We don't cache a
46939 # path for INSTALL within a source directory, because that will
46940 # break other packages using the cache if that directory is
46941 # removed, or if the path is relative.
46942 INSTALL=$ac_install_sh
46943 fi
46944fi
46945echo "$as_me:$LINENO: result: $INSTALL" >&5
46946echo "${ECHO_T}$INSTALL" >&6
46947
46948# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46949# It thinks the first close brace ends the variable substitution.
46950test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46951
46952test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46953
46954test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46955
46956 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46957echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46958LN_S=$as_ln_s
46959if test "$LN_S" = "ln -s"; then
46960 echo "$as_me:$LINENO: result: yes" >&5
46961echo "${ECHO_T}yes" >&6
46962else
46963 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46964echo "${ECHO_T}no, using $LN_S" >&6
46965fi
46966
46967
46968 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46969echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46970set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46971if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46972 echo $ECHO_N "(cached) $ECHO_C" >&6
46973else
46974 cat >conftest.make <<\_ACEOF
46975all:
46976 @echo 'ac_maketemp="$(MAKE)"'
46977_ACEOF
46978# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46979eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46980if test -n "$ac_maketemp"; then
46981 eval ac_cv_prog_make_${ac_make}_set=yes
46982else
46983 eval ac_cv_prog_make_${ac_make}_set=no
46984fi
46985rm -f conftest.make
46986fi
46987if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46988 echo "$as_me:$LINENO: result: yes" >&5
46989echo "${ECHO_T}yes" >&6
46990 SET_MAKE=
46991else
46992 echo "$as_me:$LINENO: result: no" >&5
46993echo "${ECHO_T}no" >&6
46994 SET_MAKE="MAKE=${MAKE-make}"
46995fi
46996
46997
46998
46999 if test -n "$ac_tool_prefix"; then
47000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47001set dummy ${ac_tool_prefix}ar; ac_word=$2
47002echo "$as_me:$LINENO: checking for $ac_word" >&5
47003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47004if test "${ac_cv_prog_AR+set}" = set; then
47005 echo $ECHO_N "(cached) $ECHO_C" >&6
47006else
47007 if test -n "$AR"; then
47008 ac_cv_prog_AR="$AR" # Let the user override the test.
47009else
47010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47011for as_dir in $PATH
47012do
47013 IFS=$as_save_IFS
47014 test -z "$as_dir" && as_dir=.
47015 for ac_exec_ext in '' $ac_executable_extensions; do
47016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47017 ac_cv_prog_AR="${ac_tool_prefix}ar"
47018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47019 break 2
47020 fi
47021done
47022done
47023
47024fi
47025fi
47026AR=$ac_cv_prog_AR
47027if test -n "$AR"; then
47028 echo "$as_me:$LINENO: result: $AR" >&5
47029echo "${ECHO_T}$AR" >&6
47030else
47031 echo "$as_me:$LINENO: result: no" >&5
47032echo "${ECHO_T}no" >&6
47033fi
47034
47035fi
47036if test -z "$ac_cv_prog_AR"; then
47037 ac_ct_AR=$AR
47038 # Extract the first word of "ar", so it can be a program name with args.
47039set dummy ar; ac_word=$2
47040echo "$as_me:$LINENO: checking for $ac_word" >&5
47041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47042if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47043 echo $ECHO_N "(cached) $ECHO_C" >&6
47044else
47045 if test -n "$ac_ct_AR"; then
47046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47047else
47048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47049for as_dir in $PATH
47050do
47051 IFS=$as_save_IFS
47052 test -z "$as_dir" && as_dir=.
47053 for ac_exec_ext in '' $ac_executable_extensions; do
47054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47055 ac_cv_prog_ac_ct_AR="ar"
47056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47057 break 2
47058 fi
47059done
47060done
47061
47062 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47063fi
47064fi
47065ac_ct_AR=$ac_cv_prog_ac_ct_AR
47066if test -n "$ac_ct_AR"; then
47067 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47068echo "${ECHO_T}$ac_ct_AR" >&6
47069else
47070 echo "$as_me:$LINENO: result: no" >&5
47071echo "${ECHO_T}no" >&6
47072fi
47073
47074 AR=$ac_ct_AR
47075else
47076 AR="$ac_cv_prog_AR"
47077fi
47078
47079 if test -n "$ac_tool_prefix"; then
47080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47081set dummy ${ac_tool_prefix}strip; ac_word=$2
47082echo "$as_me:$LINENO: checking for $ac_word" >&5
47083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47084if test "${ac_cv_prog_STRIP+set}" = set; then
47085 echo $ECHO_N "(cached) $ECHO_C" >&6
47086else
47087 if test -n "$STRIP"; then
47088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47089else
47090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47091for as_dir in $PATH
47092do
47093 IFS=$as_save_IFS
47094 test -z "$as_dir" && as_dir=.
47095 for ac_exec_ext in '' $ac_executable_extensions; do
47096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47097 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47099 break 2
47100 fi
47101done
47102done
47103
47104fi
47105fi
47106STRIP=$ac_cv_prog_STRIP
47107if test -n "$STRIP"; then
47108 echo "$as_me:$LINENO: result: $STRIP" >&5
47109echo "${ECHO_T}$STRIP" >&6
47110else
47111 echo "$as_me:$LINENO: result: no" >&5
47112echo "${ECHO_T}no" >&6
47113fi
47114
47115fi
47116if test -z "$ac_cv_prog_STRIP"; then
47117 ac_ct_STRIP=$STRIP
47118 # Extract the first word of "strip", so it can be a program name with args.
47119set dummy strip; ac_word=$2
47120echo "$as_me:$LINENO: checking for $ac_word" >&5
47121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47122if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47123 echo $ECHO_N "(cached) $ECHO_C" >&6
47124else
47125 if test -n "$ac_ct_STRIP"; then
47126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47127else
47128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47129for as_dir in $PATH
47130do
47131 IFS=$as_save_IFS
47132 test -z "$as_dir" && as_dir=.
47133 for ac_exec_ext in '' $ac_executable_extensions; do
47134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47135 ac_cv_prog_ac_ct_STRIP="strip"
47136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47137 break 2
47138 fi
47139done
47140done
47141
47142 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47143fi
47144fi
47145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47146if test -n "$ac_ct_STRIP"; then
47147 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47148echo "${ECHO_T}$ac_ct_STRIP" >&6
47149else
47150 echo "$as_me:$LINENO: result: no" >&5
47151echo "${ECHO_T}no" >&6
47152fi
47153
47154 STRIP=$ac_ct_STRIP
47155else
47156 STRIP="$ac_cv_prog_STRIP"
47157fi
47158
47159 if test -n "$ac_tool_prefix"; then
47160 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47161set dummy ${ac_tool_prefix}nm; ac_word=$2
47162echo "$as_me:$LINENO: checking for $ac_word" >&5
47163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47164if test "${ac_cv_prog_NM+set}" = set; then
47165 echo $ECHO_N "(cached) $ECHO_C" >&6
47166else
47167 if test -n "$NM"; then
47168 ac_cv_prog_NM="$NM" # Let the user override the test.
47169else
47170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47171for as_dir in $PATH
47172do
47173 IFS=$as_save_IFS
47174 test -z "$as_dir" && as_dir=.
47175 for ac_exec_ext in '' $ac_executable_extensions; do
47176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47177 ac_cv_prog_NM="${ac_tool_prefix}nm"
47178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47179 break 2
47180 fi
47181done
47182done
47183
47184fi
47185fi
47186NM=$ac_cv_prog_NM
47187if test -n "$NM"; then
47188 echo "$as_me:$LINENO: result: $NM" >&5
47189echo "${ECHO_T}$NM" >&6
47190else
47191 echo "$as_me:$LINENO: result: no" >&5
47192echo "${ECHO_T}no" >&6
47193fi
47194
47195fi
47196if test -z "$ac_cv_prog_NM"; then
47197 ac_ct_NM=$NM
47198 # Extract the first word of "nm", so it can be a program name with args.
47199set dummy nm; ac_word=$2
47200echo "$as_me:$LINENO: checking for $ac_word" >&5
47201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47202if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47203 echo $ECHO_N "(cached) $ECHO_C" >&6
47204else
47205 if test -n "$ac_ct_NM"; then
47206 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47207else
47208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47209for as_dir in $PATH
47210do
47211 IFS=$as_save_IFS
47212 test -z "$as_dir" && as_dir=.
47213 for ac_exec_ext in '' $ac_executable_extensions; do
47214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47215 ac_cv_prog_ac_ct_NM="nm"
47216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47217 break 2
47218 fi
47219done
47220done
47221
47222 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47223fi
47224fi
47225ac_ct_NM=$ac_cv_prog_ac_ct_NM
47226if test -n "$ac_ct_NM"; then
47227 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47228echo "${ECHO_T}$ac_ct_NM" >&6
47229else
47230 echo "$as_me:$LINENO: result: no" >&5
47231echo "${ECHO_T}no" >&6
47232fi
47233
47234 NM=$ac_ct_NM
47235else
47236 NM="$ac_cv_prog_NM"
47237fi
47238
47239
47240 case ${BAKEFILE_HOST} in
47241 *-hp-hpux* )
1e9e8aba 47242 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47243 ;;
47244 *) INSTALL_DIR="$INSTALL -d"
47245 ;;
47246 esac
47247
47248
47249 LDFLAGS_GUI=
47250 case ${BAKEFILE_HOST} in
47251 *-*-cygwin* | *-*-mingw32* )
47252 LDFLAGS_GUI="-mwindows"
47253 esac
47254
47255
47256 fi
47257
47258 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47259echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47260if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47261 echo $ECHO_N "(cached) $ECHO_C" >&6
47262else
47263
47264 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47265 egrep -s GNU > /dev/null); then
47266 bakefile_cv_prog_makeisgnu="yes"
47267 else
47268 bakefile_cv_prog_makeisgnu="no"
47269 fi
47270
47271fi
47272echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47273echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47274
47275 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47276 IF_GNU_MAKE=""
47277 else
47278 IF_GNU_MAKE="#"
47279 fi
47280
47281
47282
47283 PLATFORM_UNIX=0
47284 PLATFORM_WIN32=0
47285 PLATFORM_MSDOS=0
47286 PLATFORM_MAC=0
1e9e8aba 47287 PLATFORM_MACOS=0
a848cd7e
SC
47288 PLATFORM_MACOSX=0
47289 PLATFORM_OS2=0
1e9e8aba 47290 PLATFORM_BEOS=0
a848cd7e
SC
47291
47292 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47293 case "${BAKEFILE_HOST}" in
810b94f0 47294 *-*-mingw32* )
a848cd7e
SC
47295 PLATFORM_WIN32=1
47296 ;;
47297 *-pc-msdosdjgpp )
47298 PLATFORM_MSDOS=1
47299 ;;
47300 *-pc-os2_emx | *-pc-os2-emx )
47301 PLATFORM_OS2=1
47302 ;;
47bd5406 47303 *-*-darwin* )
a848cd7e
SC
47304 PLATFORM_MAC=1
47305 PLATFORM_MACOSX=1
47306 ;;
1e9e8aba
DE
47307 *-*-beos* )
47308 PLATFORM_BEOS=1
47309 ;;
47310 powerpc-apple-macos* )
47311 PLATFORM_MAC=1
47312 PLATFORM_MACOS=1
47313 ;;
a848cd7e
SC
47314 * )
47315 PLATFORM_UNIX=1
47316 ;;
47317 esac
47318 else
47319 case "$BAKEFILE_FORCE_PLATFORM" in
47320 win32 )
47321 PLATFORM_WIN32=1
47322 ;;
47323 msdos )
47324 PLATFORM_MSDOS=1
47325 ;;
47326 os2 )
47327 PLATFORM_OS2=1
47328 ;;
47329 darwin )
47330 PLATFORM_MAC=1
47331 PLATFORM_MACOSX=1
47332 ;;
47333 unix )
47334 PLATFORM_UNIX=1
47335 ;;
1e9e8aba
DE
47336 beos )
47337 PLATFORM_BEOS=1
47338 ;;
a848cd7e
SC
47339 * )
47340 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47341echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47342 { (exit 1); exit 1; }; }
47343 ;;
47344 esac
47345 fi
47346
47347
47348
47349
47350
47351
47352
47353
47354
1e9e8aba
DE
47355
47356
a848cd7e
SC
47357 # Check whether --enable-omf or --disable-omf was given.
47358if test "${enable_omf+set}" = set; then
47359 enableval="$enable_omf"
47360 bk_os2_use_omf="$enableval"
47361fi;
47362
47363 case "${BAKEFILE_HOST}" in
47364 *-*-darwin* )
47bd5406
VZ
47365 if test "x$GCC" = "xyes"; then
47366 CFLAGS="$CFLAGS -fno-common"
47367 CXXFLAGS="$CXXFLAGS -fno-common"
47368 fi
47369 if test "x$XLCC" = "xyes"; then
47370 CFLAGS="$CFLAGS -qnocommon"
47371 CXXFLAGS="$CXXFLAGS -qnocommon"
47372 fi
a848cd7e
SC
47373 ;;
47374
47375 *-pc-os2_emx | *-pc-os2-emx )
47376 if test "x$bk_os2_use_omf" = "xyes" ; then
47377 AR=emxomfar
47378 RANLIB=:
47379 LDFLAGS="-Zomf $LDFLAGS"
47380 CFLAGS="-Zomf $CFLAGS"
47381 CXXFLAGS="-Zomf $CXXFLAGS"
47382 OS2_LIBEXT="lib"
47383 else
47384 OS2_LIBEXT="a"
47385 fi
47386 ;;
1e9e8aba
DE
47387
47388 i*86-*-beos* )
47389 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47390 ;;
a848cd7e
SC
47391 esac
47392
47393
47394 SO_SUFFIX="so"
47395 SO_SUFFIX_MODULE="so"
47396 EXEEXT=""
47397 LIBPREFIX="lib"
47398 LIBEXT=".a"
47399 DLLPREFIX="lib"
47400 DLLPREFIX_MODULE=""
47401 DLLIMP_SUFFIX=""
810b94f0 47402 dlldir="$libdir"
a848cd7e
SC
47403
47404 case "${BAKEFILE_HOST}" in
47405 *-hp-hpux* )
47406 SO_SUFFIX="sl"
47407 SO_SUFFIX_MODULE="sl"
47408 ;;
47409 *-*-aix* )
47410 SO_SUFFIX="a"
47411 SO_SUFFIX_MODULE="a"
47412 ;;
810b94f0
MW
47413 *-*-cygwin* )
47414 SO_SUFFIX="dll"
47415 SO_SUFFIX_MODULE="dll"
47416 DLLIMP_SUFFIX="dll.a"
47417 EXEEXT=".exe"
47418 DLLPREFIX="cyg"
47419 dlldir="$bindir"
47420 ;;
47421 *-*-mingw32* )
a848cd7e
SC
47422 SO_SUFFIX="dll"
47423 SO_SUFFIX_MODULE="dll"
47424 DLLIMP_SUFFIX="dll.a"
47425 EXEEXT=".exe"
47426 DLLPREFIX=""
810b94f0 47427 dlldir="$bindir"
a848cd7e
SC
47428 ;;
47429 *-pc-msdosdjgpp )
47430 EXEEXT=".exe"
47431 DLLPREFIX=""
810b94f0 47432 dlldir="$bindir"
a848cd7e
SC
47433 ;;
47434 *-pc-os2_emx | *-pc-os2-emx )
47435 SO_SUFFIX="dll"
47436 SO_SUFFIX_MODULE="dll"
47437 DLLIMP_SUFFIX=$OS2_LIBEXT
47438 EXEEXT=".exe"
47439 DLLPREFIX=""
47440 LIBPREFIX=""
47441 LIBEXT=".$OS2_LIBEXT"
810b94f0 47442 dlldir="$bindir"
a848cd7e 47443 ;;
47bd5406 47444 *-*-darwin* )
a848cd7e
SC
47445 SO_SUFFIX="dylib"
47446 SO_SUFFIX_MODULE="bundle"
47447 ;;
47448 esac
47449
47450 if test "x$DLLIMP_SUFFIX" = "x" ; then
47451 DLLIMP_SUFFIX="$SO_SUFFIX"
47452 fi
47453
47454
47455
47456
47457
47458
47459
47460
47461
47462
47463
810b94f0 47464
1e9e8aba
DE
47465 PIC_FLAG=""
47466 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47467 PIC_FLAG="-fPIC"
47468 fi
47469
1e9e8aba
DE
47470 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47471 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47472 WINDOWS_IMPLIB=0
1e9e8aba 47473
a848cd7e
SC
47474 case "${BAKEFILE_HOST}" in
47475 *-hp-hpux* )
1e9e8aba 47476 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47477 LDFLAGS="$LDFLAGS -L/usr/lib"
47478
47479 SHARED_LD_CC="${CC} -b -o"
47480 SHARED_LD_CXX="${CXX} -b -o"
47481 PIC_FLAG="+Z"
47482 fi
47483 ;;
47484
47485 *-*-linux* )
47486 if test "x$GCC" != "xyes"; then
47487 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47488echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47489if test "${bakefile_cv_prog_icc+set}" = set; then
47490 echo $ECHO_N "(cached) $ECHO_C" >&6
47491else
47492
47493 cat >conftest.$ac_ext <<_ACEOF
47494/* confdefs.h. */
47495_ACEOF
47496cat confdefs.h >>conftest.$ac_ext
47497cat >>conftest.$ac_ext <<_ACEOF
47498/* end confdefs.h. */
47499
47500int
47501main ()
47502{
47503
47504 #ifndef __INTEL_COMPILER
e5efa97e 47505 This is not ICC
a848cd7e
SC
47506 #endif
47507
47508 ;
47509 return 0;
47510}
47511_ACEOF
47512rm -f conftest.$ac_objext
47513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47514 (eval $ac_compile) 2>conftest.er1
a848cd7e 47515 ac_status=$?
ac1cb8d3
VS
47516 grep -v '^ *+' conftest.er1 >conftest.err
47517 rm -f conftest.er1
47518 cat conftest.err >&5
a848cd7e
SC
47519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520 (exit $ac_status); } &&
6a5c9b3f
RR
47521 { ac_try='test -z "$ac_c_werror_flag"
47522 || test ! -s conftest.err'
ac1cb8d3
VS
47523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47524 (eval $ac_try) 2>&5
47525 ac_status=$?
47526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527 (exit $ac_status); }; } &&
47528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47530 (eval $ac_try) 2>&5
47531 ac_status=$?
47532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47533 (exit $ac_status); }; }; then
47534 bakefile_cv_prog_icc=yes
47535else
47536 echo "$as_me: failed program was:" >&5
47537sed 's/^/| /' conftest.$ac_ext >&5
47538
47539bakefile_cv_prog_icc=no
47540
47541fi
ac1cb8d3 47542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47543
47544fi
47545echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47546echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47547 if test "$bakefile_cv_prog_icc" = "yes"; then
47548 PIC_FLAG="-KPIC"
47549 fi
47550 fi
47551 ;;
47552
47553 *-*-solaris2* )
47554 if test "x$GCC" != xyes ; then
47555 SHARED_LD_CC="${CC} -G -o"
47556 SHARED_LD_CXX="${CXX} -G -o"
47557 PIC_FLAG="-KPIC"
47558 fi
47559 ;;
47560
47561 *-*-darwin* )
47562
473276a9
VS
47563D='$'
47564cat <<EOF >shared-ld-sh
a848cd7e
SC
47565#!/bin/sh
47566#-----------------------------------------------------------------------------
47567#-- Name: distrib/mac/shared-ld-sh
47568#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47569#-- Author: Gilles Depeyrot
47570#-- Copyright: (c) 2002 Gilles Depeyrot
47571#-- Licence: any use permitted
47572#-----------------------------------------------------------------------------
47573
47574verbose=0
47575args=""
47576objects=""
47577linking_flag="-dynamiclib"
810b94f0 47578ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47579
473276a9
VS
47580while test ${D}# -gt 0; do
47581 case ${D}1 in
a848cd7e
SC
47582
47583 -v)
47584 verbose=1
47585 ;;
47586
47587 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47588 # collect these options and values
473276a9 47589 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47590 shift
47591 ;;
47592
810b94f0
MW
47593 -s|-Wl,*)
47594 # collect these load args
47595 ldargs="${D}{ldargs} ${D}1"
2113bc77 47596 ;;
810b94f0
MW
47597
47598 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47599 # collect these options
473276a9 47600 args="${D}{args} ${D}1"
a848cd7e
SC
47601 ;;
47602
47603 -dynamiclib|-bundle)
473276a9 47604 linking_flag="${D}1"
a848cd7e
SC
47605 ;;
47606
47607 -*)
473276a9 47608 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47609 exit 1
47610 ;;
47611
47612 *.o | *.a | *.dylib)
47613 # collect object files
473276a9 47614 objects="${D}{objects} ${D}1"
a848cd7e
SC
47615 ;;
47616
47617 *)
473276a9 47618 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47619 exit 1
47620 ;;
47621
47622 esac
47623 shift
47624done
47625
810b94f0
MW
47626status=0
47627
a848cd7e
SC
47628#
47629# Link one module containing all the others
47630#
473276a9 47631if test ${D}{verbose} = 1; then
810b94f0 47632 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47633fi
810b94f0 47634c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47635status=${D}?
a848cd7e
SC
47636
47637#
810b94f0
MW
47638# Link the shared library from the single module created, but only if the
47639# previous command didn't fail:
a848cd7e 47640#
810b94f0
MW
47641if test ${D}{status} = 0; then
47642 if test ${D}{verbose} = 1; then
47643 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47644 fi
47645 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47646 status=${D}?
a848cd7e
SC
47647fi
47648
47649#
47650# Remove intermediate module
47651#
473276a9 47652rm -f master.${D}${D}.o
a848cd7e 47653
810b94f0 47654exit ${D}status
a848cd7e 47655EOF
473276a9 47656
583d6b4b
VZ
47657 chmod +x shared-ld-sh
47658
47659 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47660 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47661
47662
47663 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47664echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47665if test "${bakefile_cv_gcc31+set}" = set; then
47666 echo $ECHO_N "(cached) $ECHO_C" >&6
47667else
47668
47669 cat >conftest.$ac_ext <<_ACEOF
47670/* confdefs.h. */
47671_ACEOF
47672cat confdefs.h >>conftest.$ac_ext
47673cat >>conftest.$ac_ext <<_ACEOF
47674/* end confdefs.h. */
47675
47676int
47677main ()
47678{
47679
47680 #if (__GNUC__ < 3) || \
47681 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47682 This is old gcc
583d6b4b 47683 #endif
a848cd7e 47684
583d6b4b
VZ
47685 ;
47686 return 0;
47687}
47688_ACEOF
47689rm -f conftest.$ac_objext
47690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47691 (eval $ac_compile) 2>conftest.er1
47692 ac_status=$?
47693 grep -v '^ *+' conftest.er1 >conftest.err
47694 rm -f conftest.er1
47695 cat conftest.err >&5
47696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47697 (exit $ac_status); } &&
6a5c9b3f
RR
47698 { ac_try='test -z "$ac_c_werror_flag"
47699 || test ! -s conftest.err'
583d6b4b
VZ
47700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47701 (eval $ac_try) 2>&5
47702 ac_status=$?
47703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47704 (exit $ac_status); }; } &&
47705 { ac_try='test -s conftest.$ac_objext'
47706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47707 (eval $ac_try) 2>&5
47708 ac_status=$?
47709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47710 (exit $ac_status); }; }; then
47711
47712 bakefile_cv_gcc31=yes
47713
47714else
47715 echo "$as_me: failed program was:" >&5
47716sed 's/^/| /' conftest.$ac_ext >&5
47717
47718
47719 bakefile_cv_gcc31=no
47720
47721
47722fi
47723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47724
47725fi
47726echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47727echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47728 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47729 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47730 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47731 else
47732 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47733 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47734 fi
47735
47bd5406
VZ
47736 if test "x$GCC" == "xyes"; then
47737 PIC_FLAG="-dynamic -fPIC"
47738 fi
47739 if test "x$XLCC" = "xyes"; then
47740 PIC_FLAG="-dynamic -DPIC"
47741 fi
a848cd7e
SC
47742 ;;
47743
47744 *-*-aix* )
f6b50c59 47745 if test "x$GCC" = "xyes"; then
583d6b4b 47746 PIC_FLAG=""
f6b50c59 47747
583d6b4b
VZ
47748 case "${BAKEFILE_HOST}" in
47749 *-*-aix5* )
47750 LD_EXPFULL="-Wl,-bexpfull"
47751 ;;
47752 esac
f6b50c59 47753
583d6b4b
VZ
47754 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47755 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47756 else
47757 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47758set dummy makeC++SharedLib; ac_word=$2
47759echo "$as_me:$LINENO: checking for $ac_word" >&5
47760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47761if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47762 echo $ECHO_N "(cached) $ECHO_C" >&6
47763else
47764 if test -n "$AIX_CXX_LD"; then
47765 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47766else
47767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47768for as_dir in $PATH
47769do
47770 IFS=$as_save_IFS
47771 test -z "$as_dir" && as_dir=.
47772 for ac_exec_ext in '' $ac_executable_extensions; do
47773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47774 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47776 break 2
47777 fi
47778done
47779done
47780
47781 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47782fi
47783fi
47784AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47785if test -n "$AIX_CXX_LD"; then
47786 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47787echo "${ECHO_T}$AIX_CXX_LD" >&6
47788else
47789 echo "$as_me:$LINENO: result: no" >&5
47790echo "${ECHO_T}no" >&6
47791fi
47792
f6b50c59 47793 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47794 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47795 fi
47796 ;;
47797
47798 *-*-beos* )
1e9e8aba
DE
47799 SHARED_LD_CC="${LD} -nostart -o"
47800 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47801 ;;
47802
47803 *-*-irix* )
47804 if test "x$GCC" != "xyes"; then
47805 PIC_FLAG="-KPIC"
47806 fi
47807 ;;
47808
47809 *-*-cygwin* | *-*-mingw32* )
47810 PIC_FLAG=""
1e9e8aba
DE
47811 SHARED_LD_CC="\$(CC) -shared -o"
47812 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 47813 WINDOWS_IMPLIB=1
a848cd7e
SC
47814 ;;
47815
47816 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
47817 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47818 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 47819 PIC_FLAG=""
473276a9
VS
47820
47821D='$'
47822cat <<EOF >dllar.sh
47823#!/bin/sh
47824#
47825# dllar - a tool to build both a .dll and an .a file
47826# from a set of object (.o) files for EMX/OS2.
47827#
47828# Written by Andrew Zabolotny, bit@freya.etu.ru
47829# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47830#
47831# This script will accept a set of files on the command line.
47832# All the public symbols from the .o files will be exported into
47833# a .DEF file, then linker will be run (through gcc) against them to
47834# build a shared library consisting of all given .o files. All libraries
47835# (.a) will be first decompressed into component .o files then act as
47836# described above. You can optionally give a description (-d "description")
47837# which will be put into .DLL. To see the list of accepted options (as well
47838# as command-line format) simply run this program without options. The .DLL
47839# is built to be imported by name (there is no guarantee that new versions
47840# of the library you build will have same ordinals for same symbols).
47841#
47842# dllar is free software; you can redistribute it and/or modify
47843# it under the terms of the GNU General Public License as published by
47844# the Free Software Foundation; either version 2, or (at your option)
47845# any later version.
47846#
47847# dllar is distributed in the hope that it will be useful,
47848# but WITHOUT ANY WARRANTY; without even the implied warranty of
47849# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47850# GNU General Public License for more details.
47851#
47852# You should have received a copy of the GNU General Public License
47853# along with dllar; see the file COPYING. If not, write to the Free
47854# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47855# 02111-1307, USA.
47856
47857# To successfuly run this program you will need:
47858# - Current drive should have LFN support (HPFS, ext2, network, etc)
47859# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47860# - gcc
47861# (used to build the .dll)
47862# - emxexp
47863# (used to create .def file from .o files)
47864# - emximp
47865# (used to create .a file from .def file)
47866# - GNU text utilites (cat, sort, uniq)
47867# used to process emxexp output
47868# - GNU file utilities (mv, rm)
47869# - GNU sed
47870# - lxlite (optional, see flag below)
47871# (used for general .dll cleanup)
47872#
47873
47874flag_USE_LXLITE=1;
47875
47876#
47877# helper functions
47878# basnam, variant of basename, which does _not_ remove the path, _iff_
47879# second argument (suffix to remove) is given
47880basnam(){
47881 case ${D}# in
47882 1)
1e9e8aba 47883 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47884 ;;
47885 2)
47886 echo ${D}1 | sed 's/'${D}2'${D}//'
47887 ;;
47888 *)
47889 echo "error in basnam ${D}*"
47890 exit 8
47891 ;;
47892 esac
47893}
47894
47895# Cleanup temporary files and output
47896CleanUp() {
47897 cd ${D}curDir
47898 for i in ${D}inputFiles ; do
47899 case ${D}i in
47900 *!)
47901 rm -rf \`basnam ${D}i !\`
47902 ;;
47903 *)
47904 ;;
47905 esac
47906 done
47907
47908 # Kill result in case of failure as there is just to many stupid make/nmake
47909 # things out there which doesn't do this.
1e9e8aba 47910 if [ ${D}# -eq 0 ]; then
473276a9
VS
47911 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47912 fi
47913}
47914
47915# Print usage and exit script with rc=1.
47916PrintHelp() {
b1d22ded
DE
47917 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47918 echo ' [-name-mangler-script script.sh]'
47919 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47920 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47921 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47922 echo ' [*.o] [*.a]'
473276a9
VS
47923 echo '*> "output_file" should have no extension.'
47924 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47925 echo ' The import library name is derived from this and is set to "name".a,'
47926 echo ' unless overridden by -import'
47927 echo '*> "importlib_name" should have no extension.'
47928 echo ' If it has the .o, or .a extension, it is automatically removed.'
47929 echo ' This name is used as the import library name and may be longer and'
47930 echo ' more descriptive than the DLL name which has to follow the old '
47931 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47932 echo '*> "script.sh may be given to override the output_file name by a'
47933 echo ' different name. It is mainly useful if the regular make process'
47934 echo ' of some package does not take into account OS/2 restriction of'
47935 echo ' DLL name lengths. It takes the importlib name as input and is'
47936 echo ' supposed to procude a shorter name as output. The script should'
47937 echo ' expect to get importlib_name without extension and should produce'
47938 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47939 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47940 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47941 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47942 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47943 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47944 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47945 echo ' If the last character of a symbol is "*", all symbols beginning'
47946 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47947 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47948 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47949 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47950 echo ' C runtime DLLs.'
b1d22ded 47951 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47952 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47953 echo ' unchanged to GCC at the end of command line.'
47954 echo '*> If you create a DLL from a library and you do not specify -o,'
47955 echo ' the basename for DLL and import library will be set to library name,'
47956 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47957 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47958 echo ' library will be renamed into gcc_s.a.'
47959 echo '--------'
47960 echo 'Example:'
47961 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47962 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47963 CleanUp
47964 exit 1
47965}
47966
47967# Execute a command.
47968# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47969# @Uses Whatever CleanUp() uses.
47970doCommand() {
47971 echo "${D}*"
47972 eval ${D}*
47973 rcCmd=${D}?
47974
1e9e8aba 47975 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47976 echo "command failed, exit code="${D}rcCmd
47977 CleanUp
47978 exit ${D}rcCmd
47979 fi
47980}
47981
47982# main routine
47983# setup globals
47984cmdLine=${D}*
47985outFile=""
47986outimpFile=""
47987inputFiles=""
b1d22ded 47988renameScript=""
473276a9
VS
47989description=""
47990CC=gcc.exe
47991CFLAGS="-s -Zcrtdll"
47992EXTRA_CFLAGS=""
47993EXPORT_BY_ORDINALS=0
47994exclude_symbols=""
47995library_flags=""
47996curDir=\`pwd\`
47997curDirS=curDir
47998case ${D}curDirS in
47999*/)
48000 ;;
48001*)
48002 curDirS=${D}{curDirS}"/"
48003 ;;
48004esac
48005# Parse commandline
48006libsToLink=0
b1d22ded 48007omfLinking=0
1e9e8aba 48008while [ ${D}1 ]; do
473276a9
VS
48009 case ${D}1 in
48010 -ord*)
48011 EXPORT_BY_ORDINALS=1;
48012 ;;
48013 -o*)
48014 shift
48015 outFile=${D}1
48016 ;;
48017 -i*)
48018 shift
48019 outimpFile=${D}1
48020 ;;
b1d22ded
DE
48021 -name-mangler-script)
48022 shift
48023 renameScript=${D}1
48024 ;;
473276a9
VS
48025 -d*)
48026 shift
48027 description=${D}1
48028 ;;
48029 -f*)
48030 shift
48031 CFLAGS=${D}1
48032 ;;
48033 -c*)
48034 shift
48035 CC=${D}1
48036 ;;
48037 -h*)
48038 PrintHelp
48039 ;;
48040 -ex*)
48041 shift
48042 exclude_symbols=${D}{exclude_symbols}${D}1" "
48043 ;;
48044 -libf*)
48045 shift
48046 library_flags=${D}{library_flags}${D}1" "
48047 ;;
48048 -nocrt*)
48049 CFLAGS="-s"
48050 ;;
48051 -nolxl*)
48052 flag_USE_LXLITE=0
48053 ;;
48054 -* | /*)
48055 case ${D}1 in
48056 -L* | -l*)
48057 libsToLink=1
48058 ;;
b1d22ded
DE
48059 -Zomf)
48060 omfLinking=1
48061 ;;
473276a9
VS
48062 *)
48063 ;;
48064 esac
48065 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48066 ;;
b1d22ded
DE
48067 *.dll)
48068 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48069 if [ ${D}omfLinking -eq 1 ]; then
48070 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48071 else
48072 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48073 fi
48074 ;;
473276a9
VS
48075 *)
48076 found=0;
1e9e8aba 48077 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48078 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48079 else
48080 for file in ${D}1 ; do
1e9e8aba 48081 if [ -f ${D}file ]; then
473276a9
VS
48082 inputFiles="${D}{inputFiles} ${D}file"
48083 found=1
48084 fi
48085 done
1e9e8aba 48086 if [ ${D}found -eq 0 ]; then
473276a9
VS
48087 echo "ERROR: No file(s) found: "${D}1
48088 exit 8
48089 fi
48090 fi
48091 ;;
48092 esac
48093 shift
48094done # iterate cmdline words
48095
48096#
1e9e8aba 48097if [ -z "${D}inputFiles" ]; then
473276a9
VS
48098 echo "dllar: no input files"
48099 PrintHelp
48100fi
48101
48102# Now extract all .o files from .a files
48103newInputFiles=""
48104for file in ${D}inputFiles ; do
48105 case ${D}file in
48106 *.a | *.lib)
48107 case ${D}file in
48108 *.a)
48109 suffix=".a"
48110 AR="ar"
48111 ;;
48112 *.lib)
48113 suffix=".lib"
48114 AR="emxomfar"
48115 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48116 ;;
48117 *)
48118 ;;
48119 esac
48120 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48121 mkdir ${D}dirname
1e9e8aba 48122 if [ ${D}? -ne 0 ]; then
473276a9
VS
48123 echo "Failed to create subdirectory ./${D}dirname"
48124 CleanUp
48125 exit 8;
48126 fi
48127 # Append '!' to indicate archive
48128 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48129 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48130 cd ${D}curDir
48131 found=0;
48132 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48133 if [ -f ${D}subfile ]; then
473276a9 48134 found=1
1e9e8aba 48135 if [ -s ${D}subfile ]; then
473276a9
VS
48136 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48137 newInputFiles="${D}newInputFiles ${D}subfile"
48138 fi
48139 fi
48140 done
1e9e8aba
DE
48141 if [ ${D}found -eq 0 ]; then
48142 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48143 fi
48144 ;;
48145 *)
48146 newInputFiles="${D}{newInputFiles} ${D}file"
48147 ;;
48148 esac
48149done
48150inputFiles="${D}newInputFiles"
48151
48152# Output filename(s).
48153do_backup=0;
1e9e8aba 48154if [ -z ${D}outFile ]; then
473276a9
VS
48155 do_backup=1;
48156 set outFile ${D}inputFiles; outFile=${D}2
48157fi
48158
48159# If it is an archive, remove the '!' and the '_%' suffixes
48160case ${D}outFile in
48161*_%!)
48162 outFile=\`basnam ${D}outFile _%!\`
48163 ;;
48164*)
48165 ;;
48166esac
48167case ${D}outFile in
48168*.dll)
48169 outFile=\`basnam ${D}outFile .dll\`
48170 ;;
48171*.DLL)
48172 outFile=\`basnam ${D}outFile .DLL\`
48173 ;;
48174*.o)
48175 outFile=\`basnam ${D}outFile .o\`
48176 ;;
48177*.obj)
48178 outFile=\`basnam ${D}outFile .obj\`
48179 ;;
48180*.a)
48181 outFile=\`basnam ${D}outFile .a\`
48182 ;;
48183*.lib)
48184 outFile=\`basnam ${D}outFile .lib\`
48185 ;;
48186*)
48187 ;;
48188esac
48189case ${D}outimpFile in
48190*.a)
48191 outimpFile=\`basnam ${D}outimpFile .a\`
48192 ;;
48193*.lib)
48194 outimpFile=\`basnam ${D}outimpFile .lib\`
48195 ;;
48196*)
48197 ;;
48198esac
1e9e8aba 48199if [ -z ${D}outimpFile ]; then
473276a9
VS
48200 outimpFile=${D}outFile
48201fi
48202defFile="${D}{outFile}.def"
48203arcFile="${D}{outimpFile}.a"
48204arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48205
48206#create ${D}dllFile as something matching 8.3 restrictions,
48207if [ -z ${D}renameScript ] ; then
48208 dllFile="${D}outFile"
48209else
48210 dllFile=\`${D}renameScript ${D}outimpFile\`
48211fi
473276a9 48212
1e9e8aba
DE
48213if [ ${D}do_backup -ne 0 ] ; then
48214 if [ -f ${D}arcFile ] ; then
473276a9
VS
48215 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48216 fi
1e9e8aba 48217 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48218 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48219 fi
48220fi
48221
48222# Extract public symbols from all the object files.
48223tmpdefFile=${D}{defFile}_%
48224rm -f ${D}tmpdefFile
48225for file in ${D}inputFiles ; do
48226 case ${D}file in
48227 *!)
48228 ;;
48229 *)
48230 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48231 ;;
48232 esac
48233done
48234
48235# Create the def file.
48236rm -f ${D}defFile
48237echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48238dllFile="${D}{dllFile}.dll"
48239if [ ! -z ${D}description ]; then
1e9e8aba 48240 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48241fi
48242echo "EXPORTS" >> ${D}defFile
48243
48244doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48245grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48246
48247# Checks if the export is ok or not.
48248for word in ${D}exclude_symbols; do
48249 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48250 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48251done
48252
48253
1e9e8aba
DE
48254if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48255 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48256 sed '
48257 N
48258 : loop
1e9e8aba 48259 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48260 t loop
48261 ' > ${D}{tmpdefFile}%
48262 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48263else
48264 rm -f ${D}{tmpdefFile}%
48265fi
48266cat ${D}tmpdefFile >> ${D}defFile
48267rm -f ${D}tmpdefFile
48268
48269# Do linking, create implib, and apply lxlite.
48270gccCmdl="";
48271for file in ${D}inputFiles ; do
48272 case ${D}file in
48273 *!)
48274 ;;
48275 *)
48276 gccCmdl="${D}gccCmdl ${D}file"
48277 ;;
48278 esac
48279done
48280doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48281touch "${D}{outFile}.dll"
48282
48283doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48284if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48285 add_flags="";
1e9e8aba 48286 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48287 add_flags="-ynd"
48288 fi
48289 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48290fi
48291doCommand "emxomf -s -l ${D}arcFile"
48292
48293# Successful exit.
48294CleanUp 1
48295exit 0
48296EOF
48297
48298 chmod +x dllar.sh
a848cd7e
SC
48299 ;;
48300
1e9e8aba 48301 powerpc-apple-macos* | \
0ad5d837 48302 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48303 *-*-sunos4* | \
48304 *-*-osf* | \
48305 *-*-dgux5* | \
47a7e797
MW
48306 *-*-sysv5* | \
48307 *-pc-msdosdjgpp )
a848cd7e
SC
48308 ;;
48309
48310 *)
3ecd9f92 48311 esac
a848cd7e 48312
2057db16
VS
48313 if test "x$PIC_FLAG" != "x" ; then
48314 PIC_FLAG="$PIC_FLAG -DPIC"
48315 fi
48316
a848cd7e
SC
48317 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48318 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48319 fi
48320 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48321 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48322 fi
48323
48324
48325
48326
48327
48328
48329
48330
810b94f0 48331
a848cd7e
SC
48332 USE_SOVERSION=0
48333 USE_SOVERLINUX=0
48334 USE_SOVERSOLARIS=0
810b94f0 48335 USE_SOVERCYGWIN=0
a848cd7e
SC
48336 USE_SOSYMLINKS=0
48337 USE_MACVERSION=0
48338 SONAME_FLAG=
48339
48340 case "${BAKEFILE_HOST}" in
0ad5d837 48341 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48342 SONAME_FLAG="-Wl,-soname,"
48343 USE_SOVERSION=1
48344 USE_SOVERLINUX=1
48345 USE_SOSYMLINKS=1
48346 ;;
48347
a848cd7e
SC
48348 *-*-solaris2* )
48349 SONAME_FLAG="-h "
48350 USE_SOVERSION=1
48351 USE_SOVERSOLARIS=1
48352 USE_SOSYMLINKS=1
48353 ;;
48354
48355 *-*-darwin* )
48356 USE_MACVERSION=1
48357 USE_SOVERSION=1
48358 USE_SOSYMLINKS=1
48359 ;;
810b94f0
MW
48360
48361 *-*-cygwin* )
48362 USE_SOVERSION=1
48363 USE_SOVERCYGWIN=1
48364 ;;
a848cd7e
SC
48365 esac
48366
48367
48368
48369
48370
48371
48372
48373
48374
810b94f0 48375
f10e38c4
VZ
48376 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48377if test "${enable_dependency_tracking+set}" = set; then
48378 enableval="$enable_dependency_tracking"
48379 bk_use_trackdeps="$enableval"
48380fi;
48381
a848cd7e
SC
48382 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48383echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48384
f10e38c4
VZ
48385 if test "x$bk_use_trackdeps" = "xno" ; then
48386 DEPS_TRACKING=0
48387 echo "$as_me:$LINENO: result: disabled" >&5
48388echo "${ECHO_T}disabled" >&6
48389 else
48390 DEPS_TRACKING=1
48391
48392 if test "x$GCC" = "xyes"; then
48393 DEPSMODE=gcc
48394 case "${BAKEFILE_HOST}" in
48395 *-*-darwin* )
48396 DEPSFLAG="-no-cpp-precomp -MMD"
48397 ;;
48398 * )
48399 DEPSFLAG="-MMD"
48400 ;;
48401 esac
48402 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48403echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48404 elif test "x$MWCC" = "xyes"; then
48405 DEPSMODE=mwcc
48406 DEPSFLAG="-MM"
48407 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48408echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48409 elif test "x$SUNCC" = "xyes"; then
48410 DEPSMODE=unixcc
48411 DEPSFLAG="-xM1"
48412 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48413echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48414 elif test "x$SGICC" = "xyes"; then
48415 DEPSMODE=unixcc
48416 DEPSFLAG="-M"
48417 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48418echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48419 elif test "x$HPCC" = "xyes"; then
48420 DEPSMODE=unixcc
48421 DEPSFLAG="+make"
48422 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48423echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48424 elif test "x$COMPAQCC" = "xyes"; then
48425 DEPSMODE=gcc
48426 DEPSFLAG="-MD"
48427 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48428echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48429 else
48430 DEPS_TRACKING=0
48431 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48432echo "${ECHO_T}none" >&6
f10e38c4 48433 fi
a848cd7e 48434
f10e38c4 48435 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48436
48437D='$'
48438cat <<EOF >bk-deps
a848cd7e
SC
48439#!/bin/sh
48440
48441# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48442# script. It is used to track C/C++ files dependencies in portable way.
48443#
48444# Permission is given to use this file in any way.
48445
473276a9 48446DEPSMODE=${DEPSMODE}
a848cd7e 48447DEPSDIR=.deps
0ad5d837 48448DEPSFLAG="${DEPSFLAG}"
a848cd7e 48449
473276a9 48450mkdir -p ${D}DEPSDIR
a848cd7e 48451
473276a9 48452if test ${D}DEPSMODE = gcc ; then
0ad5d837 48453 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48454 status=${D}?
48455 if test ${D}{status} != 0 ; then
48456 exit ${D}{status}
a848cd7e
SC
48457 fi
48458 # move created file to the location we want it in:
473276a9
VS
48459 while test ${D}# -gt 0; do
48460 case "${D}1" in
a848cd7e
SC
48461 -o )
48462 shift
473276a9 48463 objfile=${D}1
a848cd7e
SC
48464 ;;
48465 -* )
48466 ;;
48467 * )
473276a9 48468 srcfile=${D}1
a848cd7e
SC
48469 ;;
48470 esac
48471 shift
48472 done
1e9e8aba
DE
48473 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48474 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48475 if test -f ${D}depfile ; then
48476 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48477 rm -f ${D}depfile
a848cd7e 48478 else
a1aa0349 48479 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48480 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48481 if test ! -f ${D}depfile ; then
48482 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48483 depfile="${D}objfile.d"
48484 fi
473276a9
VS
48485 if test -f ${D}depfile ; then
48486 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48487 rm -f ${D}depfile
a848cd7e
SC
48488 fi
48489 fi
48490 exit 0
81f90336 48491elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48492 ${D}* || exit ${D}?
81f90336
MW
48493 # Run mwcc again with -MM and redirect into the dep file we want
48494 # NOTE: We can't use shift here because we need ${D}* to be valid
48495 prevarg=
48496 for arg in ${D}* ; do
48497 if test "${D}prevarg" = "-o"; then
48498 objfile=${D}arg
48499 else
48500 case "${D}arg" in
48501 -* )
48502 ;;
48503 * )
48504 srcfile=${D}arg
48505 ;;
48506 esac
48507 fi
48508 prevarg="${D}arg"
48509 done
0ad5d837 48510 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48511 exit 0
0ad5d837 48512elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48513 ${D}* || exit ${D}?
a9e5b1f0
MW
48514 # Run compiler again with deps flag and redirect into the dep file.
48515 # It doesn't work if the '-o FILE' option is used, but without it the
48516 # dependency file will contain the wrong name for the object. So it is
48517 # removed from the command line, and the dep file is fixed with sed.
48518 cmd=""
48519 while test ${D}# -gt 0; do
48520 case "${D}1" in
48521 -o )
48522 shift
48523 objfile=${D}1
48524 ;;
48525 * )
48526 eval arg${D}#=\\${D}1
48527 cmd="${D}cmd \\${D}arg${D}#"
48528 ;;
48529 esac
48530 shift
48531 done
0ad5d837 48532 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48533 exit 0
a848cd7e 48534else
473276a9
VS
48535 ${D}*
48536 exit ${D}?
a848cd7e
SC
48537fi
48538EOF
473276a9 48539
f10e38c4
VZ
48540 chmod +x bk-deps
48541 fi
a848cd7e
SC
48542 fi
48543
48544
48545
48546
a848cd7e
SC
48547 case ${BAKEFILE_HOST} in
48548 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48549 if test -n "$ac_tool_prefix"; then
48550 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48551set dummy ${ac_tool_prefix}windres; ac_word=$2
48552echo "$as_me:$LINENO: checking for $ac_word" >&5
48553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48554if test "${ac_cv_prog_WINDRES+set}" = set; then
48555 echo $ECHO_N "(cached) $ECHO_C" >&6
48556else
48557 if test -n "$WINDRES"; then
48558 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48559else
48560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48561for as_dir in $PATH
48562do
48563 IFS=$as_save_IFS
48564 test -z "$as_dir" && as_dir=.
48565 for ac_exec_ext in '' $ac_executable_extensions; do
48566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48567 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48569 break 2
48570 fi
48571done
48572done
48573
48574fi
48575fi
48576WINDRES=$ac_cv_prog_WINDRES
48577if test -n "$WINDRES"; then
48578 echo "$as_me:$LINENO: result: $WINDRES" >&5
48579echo "${ECHO_T}$WINDRES" >&6
48580else
48581 echo "$as_me:$LINENO: result: no" >&5
48582echo "${ECHO_T}no" >&6
48583fi
48584
48585fi
48586if test -z "$ac_cv_prog_WINDRES"; then
48587 ac_ct_WINDRES=$WINDRES
48588 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48589set dummy windres; ac_word=$2
48590echo "$as_me:$LINENO: checking for $ac_word" >&5
48591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48592if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48593 echo $ECHO_N "(cached) $ECHO_C" >&6
48594else
8ced02f6
DE
48595 if test -n "$ac_ct_WINDRES"; then
48596 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48597else
48598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48599for as_dir in $PATH
48600do
48601 IFS=$as_save_IFS
48602 test -z "$as_dir" && as_dir=.
48603 for ac_exec_ext in '' $ac_executable_extensions; do
48604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48605 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48607 break 2
48608 fi
48609done
48610done
48611
a848cd7e
SC
48612fi
48613fi
8ced02f6
DE
48614ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48615if test -n "$ac_ct_WINDRES"; then
48616 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48617echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48618else
48619 echo "$as_me:$LINENO: result: no" >&5
48620echo "${ECHO_T}no" >&6
48621fi
48622
8ced02f6
DE
48623 WINDRES=$ac_ct_WINDRES
48624else
48625 WINDRES="$ac_cv_prog_WINDRES"
48626fi
48627
a848cd7e
SC
48628 ;;
48629
1e9e8aba 48630 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48631 # Extract the first word of "Rez", so it can be a program name with args.
48632set dummy Rez; ac_word=$2
48633echo "$as_me:$LINENO: checking for $ac_word" >&5
48634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48635if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48636 echo $ECHO_N "(cached) $ECHO_C" >&6
48637else
8ced02f6
DE
48638 if test -n "$REZ"; then
48639 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48640else
48641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48642for as_dir in $PATH
48643do
48644 IFS=$as_save_IFS
48645 test -z "$as_dir" && as_dir=.
48646 for ac_exec_ext in '' $ac_executable_extensions; do
48647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48648 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48650 break 2
48651 fi
48652done
48653done
48654
8ced02f6 48655 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48656fi
48657fi
8ced02f6
DE
48658REZ=$ac_cv_prog_REZ
48659if test -n "$REZ"; then
48660 echo "$as_me:$LINENO: result: $REZ" >&5
48661echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48662else
48663 echo "$as_me:$LINENO: result: no" >&5
48664echo "${ECHO_T}no" >&6
48665fi
48666
48667 # Extract the first word of "SetFile", so it can be a program name with args.
48668set dummy SetFile; ac_word=$2
48669echo "$as_me:$LINENO: checking for $ac_word" >&5
48670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48671if test "${ac_cv_prog_SETFILE+set}" = set; then
48672 echo $ECHO_N "(cached) $ECHO_C" >&6
48673else
48674 if test -n "$SETFILE"; then
48675 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48676else
48677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48678for as_dir in $PATH
48679do
48680 IFS=$as_save_IFS
48681 test -z "$as_dir" && as_dir=.
48682 for ac_exec_ext in '' $ac_executable_extensions; do
48683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48684 ac_cv_prog_SETFILE="SetFile"
48685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48686 break 2
48687 fi
48688done
48689done
48690
48691 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48692fi
48693fi
48694SETFILE=$ac_cv_prog_SETFILE
48695if test -n "$SETFILE"; then
48696 echo "$as_me:$LINENO: result: $SETFILE" >&5
48697echo "${ECHO_T}$SETFILE" >&6
48698else
48699 echo "$as_me:$LINENO: result: no" >&5
48700echo "${ECHO_T}no" >&6
48701fi
48702
48703 ;;
48704 esac
48705
48706
48707
48708
48709
8ced02f6 48710
f10e38c4 48711 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48712
dcc1b6ad 48713
f10e38c4 48714BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48715
646b6ec1 48716
74b84332 48717
a848cd7e
SC
48718 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48719if test "${enable_precomp_headers+set}" = set; then
48720 enableval="$enable_precomp_headers"
48721 bk_use_pch="$enableval"
48722fi;
48723
48724 GCC_PCH=0
f10e38c4
VZ
48725 ICC_PCH=0
48726 USE_PCH=0
a848cd7e 48727
5c60e845
MW
48728 case ${BAKEFILE_HOST} in
48729 *-*-cygwin* )
48730 bk_use_pch="no"
48731 ;;
48732 esac
48733
a848cd7e
SC
48734 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48735 if test "x$GCC" = "xyes"; then
48736 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48737echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48738 cat >conftest.$ac_ext <<_ACEOF
48739/* confdefs.h. */
48740_ACEOF
48741cat confdefs.h >>conftest.$ac_ext
48742cat >>conftest.$ac_ext <<_ACEOF
48743/* end confdefs.h. */
48744
48745int
48746main ()
48747{
48748
48749 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48750 There is no PCH support
a848cd7e
SC
48751 #endif
48752 #if (__GNUC__ < 3)
e5efa97e 48753 There is no PCH support
a848cd7e
SC
48754 #endif
48755 #if (__GNUC__ == 3) && \
48756 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48757 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48758 ( defined(__INTEL_COMPILER) )
e5efa97e 48759 There is no PCH support
a848cd7e
SC
48760 #endif
48761
48762 ;
48763 return 0;
48764}
48765_ACEOF
48766rm -f conftest.$ac_objext
48767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48768 (eval $ac_compile) 2>conftest.er1
a848cd7e 48769 ac_status=$?
ac1cb8d3
VS
48770 grep -v '^ *+' conftest.er1 >conftest.err
48771 rm -f conftest.er1
48772 cat conftest.err >&5
a848cd7e
SC
48773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48774 (exit $ac_status); } &&
6a5c9b3f
RR
48775 { ac_try='test -z "$ac_c_werror_flag"
48776 || test ! -s conftest.err'
ac1cb8d3
VS
48777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48778 (eval $ac_try) 2>&5
48779 ac_status=$?
48780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48781 (exit $ac_status); }; } &&
48782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48784 (eval $ac_try) 2>&5
48785 ac_status=$?
48786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48787 (exit $ac_status); }; }; then
48788
48789 echo "$as_me:$LINENO: result: yes" >&5
48790echo "${ECHO_T}yes" >&6
a848cd7e
SC
48791 GCC_PCH=1
48792
48793else
48794 echo "$as_me: failed program was:" >&5
48795sed 's/^/| /' conftest.$ac_ext >&5
48796
48797
f10e38c4
VZ
48798 cat >conftest.$ac_ext <<_ACEOF
48799/* confdefs.h. */
48800_ACEOF
48801cat confdefs.h >>conftest.$ac_ext
48802cat >>conftest.$ac_ext <<_ACEOF
48803/* end confdefs.h. */
48804
48805int
48806main ()
48807{
48808
48809 #if !defined(__INTEL_COMPILER) || \
48810 (__INTEL_COMPILER < 800)
e5efa97e 48811 There is no PCH support
f10e38c4
VZ
48812 #endif
48813
48814 ;
48815 return 0;
48816}
48817_ACEOF
48818rm -f conftest.$ac_objext
48819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48820 (eval $ac_compile) 2>conftest.er1
48821 ac_status=$?
48822 grep -v '^ *+' conftest.er1 >conftest.err
48823 rm -f conftest.er1
48824 cat conftest.err >&5
48825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48826 (exit $ac_status); } &&
6a5c9b3f
RR
48827 { ac_try='test -z "$ac_c_werror_flag"
48828 || test ! -s conftest.err'
f10e38c4
VZ
48829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48830 (eval $ac_try) 2>&5
48831 ac_status=$?
48832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48833 (exit $ac_status); }; } &&
48834 { ac_try='test -s conftest.$ac_objext'
48835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48836 (eval $ac_try) 2>&5
48837 ac_status=$?
48838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48839 (exit $ac_status); }; }; then
48840
48841 echo "$as_me:$LINENO: result: yes" >&5
48842echo "${ECHO_T}yes" >&6
48843 ICC_PCH=1
48844
48845else
48846 echo "$as_me: failed program was:" >&5
48847sed 's/^/| /' conftest.$ac_ext >&5
48848
48849
48850 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
48851echo "${ECHO_T}no" >&6
48852
48853fi
ac1cb8d3 48854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
48855
48856fi
48857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48858 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48859 USE_PCH=1
1e9e8aba
DE
48860
48861D='$'
48862cat <<EOF >bk-make-pch
a848cd7e
SC
48863#!/bin/sh
48864
48865# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48866# script. It is used to generated precompiled headers.
48867#
48868# Permission is given to use this file in any way.
48869
1e9e8aba
DE
48870outfile="${D}{1}"
48871header="${D}{2}"
a848cd7e
SC
48872shift
48873shift
48874
f10e38c4
VZ
48875compiler=""
48876headerfile=""
48877
1e9e8aba 48878while test ${D}{#} -gt 0; do
f10e38c4 48879 add_to_cmdline=1
1e9e8aba 48880 case "${D}{1}" in
a848cd7e 48881 -I* )
1e9e8aba
DE
48882 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48883 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48884 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48885 fi
48886 ;;
f10e38c4
VZ
48887 -use-pch|-use_pch )
48888 shift
48889 add_to_cmdline=0
48890 ;;
a848cd7e 48891 esac
f10e38c4
VZ
48892 if test ${D}add_to_cmdline = 1 ; then
48893 compiler="${D}{compiler} ${D}{1}"
48894 fi
a848cd7e
SC
48895 shift
48896done
48897
1e9e8aba 48898if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48899 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48900else
1e9e8aba
DE
48901 if test -f ${D}{outfile} ; then
48902 rm -f ${D}{outfile}
a848cd7e 48903 else
1e9e8aba 48904 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48905 fi
1e9e8aba 48906 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48907 mkdir -p .deps
f10e38c4
VZ
48908 if test "x${GCC_PCH}" = "x1" ; then
48909 # can do this because gcc is >= 3.4:
48910 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48911 elif test "x${ICC_PCH}" = "x1" ; then
48912 filename=pch_gen-${D}${D}
48913 file=${D}{filename}.c
48914 dfile=${D}{filename}.d
48915 cat > ${D}file <<EOT
48916#include "${D}header"
48917EOT
48918 # using -MF icc complains about differing command lines in creation/use
48919 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48920 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48921 rm -f ${D}file ${D}dfile ${D}{filename}.o
48922 fi
1e9e8aba 48923 exit ${D}{?}
a848cd7e
SC
48924fi
48925EOF
1e9e8aba 48926
a848cd7e
SC
48927 chmod +x bk-make-pch
48928 fi
48929 fi
48930 fi
48931
48932
48933
f10e38c4 48934
a848cd7e
SC
48935 COND_BUILD_DEBUG="#"
48936 if test "x$BUILD" = "xdebug" ; then
48937 COND_BUILD_DEBUG=""
48938 fi
48939
48940 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48941 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48942 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48943 fi
48944
48945 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48946 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48947 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48948 fi
48949
48950 COND_BUILD_DEBUG_UNICODE_0="#"
48951 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48952 COND_BUILD_DEBUG_UNICODE_0=""
48953 fi
48954
48955 COND_BUILD_DEBUG_UNICODE_1="#"
48956 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48957 COND_BUILD_DEBUG_UNICODE_1=""
48958 fi
48959
48960 COND_BUILD_RELEASE="#"
48961 if test "x$BUILD" = "xrelease" ; then
48962 COND_BUILD_RELEASE=""
48963 fi
48964
48965 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48966 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48967 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48968 fi
48969
48970 COND_BUILD_RELEASE_UNICODE_0="#"
48971 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48972 COND_BUILD_RELEASE_UNICODE_0=""
48973 fi
48974
48975 COND_BUILD_RELEASE_UNICODE_1="#"
48976 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48977 COND_BUILD_RELEASE_UNICODE_1=""
48978 fi
48979
48980 COND_DEBUG_FLAG_1="#"
48981 if test "x$DEBUG_FLAG" = "x1" ; then
48982 COND_DEBUG_FLAG_1=""
48983 fi
48984
48985 COND_DEBUG_INFO_0="#"
48986 if test "x$DEBUG_INFO" = "x0" ; then
48987 COND_DEBUG_INFO_0=""
48988 fi
48989
48990 COND_DEBUG_INFO_1="#"
48991 if test "x$DEBUG_INFO" = "x1" ; then
48992 COND_DEBUG_INFO_1=""
48993 fi
48994
48995 COND_DEPS_TRACKING_0="#"
48996 if test "x$DEPS_TRACKING" = "x0" ; then
48997 COND_DEPS_TRACKING_0=""
48998 fi
48999
49000 COND_DEPS_TRACKING_1="#"
49001 if test "x$DEPS_TRACKING" = "x1" ; then
49002 COND_DEPS_TRACKING_1=""
49003 fi
49004
49005 COND_GCC_PCH_1="#"
49006 if test "x$GCC_PCH" = "x1" ; then
49007 COND_GCC_PCH_1=""
49008 fi
49009
f10e38c4
VZ
49010 COND_ICC_PCH_1="#"
49011 if test "x$ICC_PCH" = "x1" ; then
49012 COND_ICC_PCH_1=""
49013 fi
49014
a848cd7e
SC
49015 COND_MONOLITHIC_0="#"
49016 if test "x$MONOLITHIC" = "x0" ; then
49017 COND_MONOLITHIC_0=""
49018 fi
49019
49020 COND_MONOLITHIC_0_SHARED_0="#"
49021 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49022 COND_MONOLITHIC_0_SHARED_0=""
49023 fi
49024
3f60522a
JS
49025 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49026 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49027 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49028 fi
49029
a848cd7e
SC
49030 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49031 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49032 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49033 fi
49034
90970d69
DE
49035 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49036 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49037 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49038 fi
49039
f10e38c4
VZ
49040 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49041 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49042 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49043 fi
49044
a848cd7e
SC
49045 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49046 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49047 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49048 fi
49049
6671c68b
VZ
49050 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49051 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49052 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49053 fi
49054
a848cd7e
SC
49055 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49056 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49057 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49058 fi
49059
8b6682b9
JS
49060 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49061 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49062 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49063 fi
49064
ceec2216
RL
49065 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49066 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49067 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49068 fi
49069
a848cd7e
SC
49070 COND_MONOLITHIC_0_SHARED_1="#"
49071 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49072 COND_MONOLITHIC_0_SHARED_1=""
49073 fi
49074
3f60522a
JS
49075 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49076 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49077 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49078 fi
49079
a848cd7e
SC
49080 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49081 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49082 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49083 fi
49084
90970d69
DE
49085 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49086 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49087 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49088 fi
49089
f10e38c4
VZ
49090 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49091 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49092 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49093 fi
49094
a848cd7e
SC
49095 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49096 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49097 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49098 fi
49099
6671c68b
VZ
49100 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49101 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49102 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49103 fi
49104
a848cd7e
SC
49105 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49106 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49107 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49108 fi
49109
8b6682b9
JS
49110 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49111 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49112 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49113 fi
49114
ceec2216
RL
49115 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49116 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49117 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49118 fi
49119
e5efa97e
VZ
49120 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49121 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49122 COND_MONOLITHIC_0_USE_MEDIA_1=""
49123 fi
49124
a848cd7e
SC
49125 COND_MONOLITHIC_0_USE_ODBC_1="#"
49126 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49127 COND_MONOLITHIC_0_USE_ODBC_1=""
49128 fi
49129
49130 COND_MONOLITHIC_1="#"
49131 if test "x$MONOLITHIC" = "x1" ; then
49132 COND_MONOLITHIC_1=""
49133 fi
49134
49135 COND_MONOLITHIC_1_SHARED_0="#"
49136 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49137 COND_MONOLITHIC_1_SHARED_0=""
49138 fi
49139
49140 COND_MONOLITHIC_1_SHARED_1="#"
49141 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49142 COND_MONOLITHIC_1_SHARED_1=""
49143 fi
49144
49145 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49146 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49147 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49148 fi
49149
49150 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49151 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49152 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49153 fi
49154
eb730a0c
JS
49155 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49156 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49157 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49158 fi
49159
a848cd7e
SC
49160 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49161 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49162 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49163 fi
49164
49165 COND_PLATFORM_MACOSX_1="#"
49166 if test "x$PLATFORM_MACOSX" = "x1" ; then
49167 COND_PLATFORM_MACOSX_1=""
49168 fi
49169
a30f955f
VS
49170 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49171 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49172 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49173 fi
49174
a848cd7e
SC
49175 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49176 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49177 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49178 fi
49179
49180 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49181 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49182 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49183 fi
49184
49185 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49186 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49187 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49188 fi
49189
fc480dc1
DE
49190 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49191 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49192 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49193 fi
49194
1e9e8aba
DE
49195 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49196 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49197 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49198 fi
49199
ebee3cd0
VS
49200 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49201 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49202 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49203 fi
49204
49205 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49206 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49207 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49208 fi
49209
a848cd7e
SC
49210 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49211 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49212 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49213 fi
49214
49215 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49216 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49217 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49218 fi
49219
b48a2016
DE
49220 COND_PLATFORM_MACOS_1="#"
49221 if test "x$PLATFORM_MACOS" = "x1" ; then
49222 COND_PLATFORM_MACOS_1=""
49223 fi
49224
083508af
MW
49225 COND_PLATFORM_MAC_1="#"
49226 if test "x$PLATFORM_MAC" = "x1" ; then
49227 COND_PLATFORM_MAC_1=""
49228 fi
49229
e5efa97e
VZ
49230 COND_PLATFORM_MSDOS_0="#"
49231 if test "x$PLATFORM_MSDOS" = "x0" ; then
49232 COND_PLATFORM_MSDOS_0=""
49233 fi
49234
83d8eb47
MW
49235 COND_PLATFORM_MSDOS_1="#"
49236 if test "x$PLATFORM_MSDOS" = "x1" ; then
49237 COND_PLATFORM_MSDOS_1=""
49238 fi
49239
a848cd7e
SC
49240 COND_PLATFORM_OS2_1="#"
49241 if test "x$PLATFORM_OS2" = "x1" ; then
49242 COND_PLATFORM_OS2_1=""
49243 fi
49244
49245 COND_PLATFORM_UNIX_0="#"
49246 if test "x$PLATFORM_UNIX" = "x0" ; then
49247 COND_PLATFORM_UNIX_0=""
49248 fi
49249
49250 COND_PLATFORM_UNIX_1="#"
49251 if test "x$PLATFORM_UNIX" = "x1" ; then
49252 COND_PLATFORM_UNIX_1=""
49253 fi
49254
49255 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49256 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49257 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49258 fi
49259
49260 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49261 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49262 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49263 fi
49264
49265 COND_PLATFORM_WIN32_0="#"
49266 if test "x$PLATFORM_WIN32" = "x0" ; then
49267 COND_PLATFORM_WIN32_0=""
49268 fi
49269
49270 COND_PLATFORM_WIN32_1="#"
49271 if test "x$PLATFORM_WIN32" = "x1" ; then
49272 COND_PLATFORM_WIN32_1=""
49273 fi
49274
49275 COND_SHARED_0="#"
49276 if test "x$SHARED" = "x0" ; then
49277 COND_SHARED_0=""
49278 fi
49279
083508af
MW
49280 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49281 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49282 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49283 fi
49284
49285 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49286 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49287 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49288 fi
49289
49290 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49291 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49292 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49293 fi
49294
a848cd7e
SC
49295 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49296 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49297 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49298 fi
49299
49300 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49301 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49302 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49303 fi
49304
49305 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49306 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49307 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49308 fi
49309
49310 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49311 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49312 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49313 fi
49314
083508af
MW
49315 COND_SHARED_0_USE_XRC_1="#"
49316 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49317 COND_SHARED_0_USE_XRC_1=""
49318 fi
49319
a848cd7e
SC
49320 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49321 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49322 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49323 fi
49324
49325 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49326 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49327 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49328 fi
49329
49330 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49331 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49332 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49333 fi
49334
49335 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49336 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49337 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49338 fi
49339
49340 COND_SHARED_1="#"
49341 if test "x$SHARED" = "x1" ; then
49342 COND_SHARED_1=""
49343 fi
49344
49345 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49346 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49347 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49348 fi
49349
083508af
MW
49350 COND_SHARED_1_USE_XRC_1="#"
49351 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49352 COND_SHARED_1_USE_XRC_1=""
49353 fi
49354
a30f955f
VS
49355 COND_TOOLKIT_="#"
49356 if test "x$TOOLKIT" = "x" ; then
49357 COND_TOOLKIT_=""
49358 fi
49359
a848cd7e
SC
49360 COND_TOOLKIT_COCOA="#"
49361 if test "x$TOOLKIT" = "xCOCOA" ; then
49362 COND_TOOLKIT_COCOA=""
49363 fi
49364
a49baeab
DE
49365 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49366 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49367 COND_TOOLKIT_COCOA_USE_GUI_1=""
49368 fi
49369
a848cd7e
SC
49370 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49371 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49372 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49373 fi
49374
b3c86150
VS
49375 COND_TOOLKIT_DFB="#"
49376 if test "x$TOOLKIT" = "xDFB" ; then
49377 COND_TOOLKIT_DFB=""
49378 fi
49379
49380 COND_TOOLKIT_DFB_USE_GUI_1="#"
49381 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49382 COND_TOOLKIT_DFB_USE_GUI_1=""
49383 fi
49384
a848cd7e
SC
49385 COND_TOOLKIT_GTK="#"
49386 if test "x$TOOLKIT" = "xGTK" ; then
49387 COND_TOOLKIT_GTK=""
49388 fi
49389
d044deea
MW
49390 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49391 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49392 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49393 fi
49394
49395 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49396 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49397 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49398 fi
49399
49400 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49401 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49402 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49403 fi
49404
49405 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49406 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49407 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49408 fi
49409
49410 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49411 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49412 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49413 fi
49414
49415 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49416 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49417 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49418 fi
49419
a848cd7e
SC
49420 COND_TOOLKIT_GTK_USE_GUI_1="#"
49421 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49422 COND_TOOLKIT_GTK_USE_GUI_1=""
49423 fi
49424
a848cd7e
SC
49425 COND_TOOLKIT_MAC="#"
49426 if test "x$TOOLKIT" = "xMAC" ; then
49427 COND_TOOLKIT_MAC=""
49428 fi
49429
49430 COND_TOOLKIT_MAC_USE_GUI_1="#"
49431 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49432 COND_TOOLKIT_MAC_USE_GUI_1=""
49433 fi
49434
49435 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49436 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49437 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49438 fi
49439
49440 COND_TOOLKIT_MGL="#"
49441 if test "x$TOOLKIT" = "xMGL" ; then
49442 COND_TOOLKIT_MGL=""
49443 fi
49444
49445 COND_TOOLKIT_MGL_USE_GUI_1="#"
49446 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49447 COND_TOOLKIT_MGL_USE_GUI_1=""
49448 fi
49449
49450 COND_TOOLKIT_MOTIF="#"
49451 if test "x$TOOLKIT" = "xMOTIF" ; then
49452 COND_TOOLKIT_MOTIF=""
49453 fi
49454
49455 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49456 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49457 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49458 fi
49459
49460 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49461 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49462 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49463 fi
49464
49465 COND_TOOLKIT_MSW="#"
49466 if test "x$TOOLKIT" = "xMSW" ; then
49467 COND_TOOLKIT_MSW=""
49468 fi
49469
49470 COND_TOOLKIT_MSW_USE_GUI_1="#"
49471 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49472 COND_TOOLKIT_MSW_USE_GUI_1=""
49473 fi
49474
49475 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49476 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49477 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49478 fi
49479
0ee4059d
DE
49480 COND_TOOLKIT_MSW_WXUNIV_0="#"
49481 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49482 COND_TOOLKIT_MSW_WXUNIV_0=""
49483 fi
49484
a848cd7e
SC
49485 COND_TOOLKIT_PM="#"
49486 if test "x$TOOLKIT" = "xPM" ; then
49487 COND_TOOLKIT_PM=""
49488 fi
49489
49490 COND_TOOLKIT_PM_USE_GUI_1="#"
49491 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49492 COND_TOOLKIT_PM_USE_GUI_1=""
49493 fi
49494
49495 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49496 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49497 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49498 fi
49499
3fd9c298
DE
49500 COND_TOOLKIT_WINCE="#"
49501 if test "x$TOOLKIT" = "xWINCE" ; then
49502 COND_TOOLKIT_WINCE=""
49503 fi
49504
49505 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49506 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49507 COND_TOOLKIT_WINCE_USE_GUI_1=""
49508 fi
49509
49510 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49511 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49512 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49513 fi
49514
0ee4059d
DE
49515 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49516 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49517 COND_TOOLKIT_WINCE_WXUNIV_0=""
49518 fi
49519
a848cd7e
SC
49520 COND_TOOLKIT_X11="#"
49521 if test "x$TOOLKIT" = "xX11" ; then
49522 COND_TOOLKIT_X11=""
49523 fi
49524
49525 COND_TOOLKIT_X11_USE_GUI_1="#"
49526 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49527 COND_TOOLKIT_X11_USE_GUI_1=""
49528 fi
49529
49530 COND_UNICODE_1="#"
49531 if test "x$UNICODE" = "x1" ; then
49532 COND_UNICODE_1=""
49533 fi
49534
49535 COND_USE_EXCEPTIONS_0="#"
49536 if test "x$USE_EXCEPTIONS" = "x0" ; then
49537 COND_USE_EXCEPTIONS_0=""
49538 fi
49539
49540 COND_USE_EXCEPTIONS_1="#"
49541 if test "x$USE_EXCEPTIONS" = "x1" ; then
49542 COND_USE_EXCEPTIONS_1=""
49543 fi
49544
49545 COND_USE_GUI_0="#"
49546 if test "x$USE_GUI" = "x0" ; then
49547 COND_USE_GUI_0=""
49548 fi
49549
49550 COND_USE_GUI_1="#"
49551 if test "x$USE_GUI" = "x1" ; then
49552 COND_USE_GUI_1=""
49553 fi
49554
49555 COND_USE_GUI_1_WXUNIV_0="#"
49556 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49557 COND_USE_GUI_1_WXUNIV_0=""
49558 fi
49559
49560 COND_USE_GUI_1_WXUNIV_1="#"
49561 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49562 COND_USE_GUI_1_WXUNIV_1=""
49563 fi
49564
49565 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49566 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49567 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49568 fi
49569
49570 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49571 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49572 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49573 fi
49574
49575 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49576 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49577 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49578 fi
49579
083508af
MW
49580 COND_USE_ODBC_1="#"
49581 if test "x$USE_ODBC" = "x1" ; then
49582 COND_USE_ODBC_1=""
49583 fi
49584
49585 COND_USE_OPENGL_1="#"
49586 if test "x$USE_OPENGL" = "x1" ; then
49587 COND_USE_OPENGL_1=""
49588 fi
49589
f10e38c4
VZ
49590 COND_USE_PCH_1="#"
49591 if test "x$USE_PCH" = "x1" ; then
49592 COND_USE_PCH_1=""
49593 fi
49594
a848cd7e
SC
49595 COND_USE_PLUGINS_0="#"
49596 if test "x$USE_PLUGINS" = "x0" ; then
49597 COND_USE_PLUGINS_0=""
49598 fi
49599
0b78747f
MW
49600 COND_USE_RTTI_0="#"
49601 if test "x$USE_RTTI" = "x0" ; then
49602 COND_USE_RTTI_0=""
49603 fi
49604
49605 COND_USE_RTTI_1="#"
49606 if test "x$USE_RTTI" = "x1" ; then
49607 COND_USE_RTTI_1=""
49608 fi
49609
a848cd7e
SC
49610 COND_USE_SOSYMLINKS_1="#"
49611 if test "x$USE_SOSYMLINKS" = "x1" ; then
49612 COND_USE_SOSYMLINKS_1=""
49613 fi
49614
eb730a0c
JS
49615 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49616 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49617 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49618 fi
49619
a848cd7e
SC
49620 COND_USE_SOVERLINUX_1="#"
49621 if test "x$USE_SOVERLINUX" = "x1" ; then
49622 COND_USE_SOVERLINUX_1=""
49623 fi
49624
49625 COND_USE_SOVERSION_0="#"
49626 if test "x$USE_SOVERSION" = "x0" ; then
49627 COND_USE_SOVERSION_0=""
49628 fi
49629
49630 COND_USE_SOVERSOLARIS_1="#"
49631 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49632 COND_USE_SOVERSOLARIS_1=""
49633 fi
49634
0b78747f
MW
49635 COND_USE_THREADS_0="#"
49636 if test "x$USE_THREADS" = "x0" ; then
49637 COND_USE_THREADS_0=""
49638 fi
49639
49640 COND_USE_THREADS_1="#"
49641 if test "x$USE_THREADS" = "x1" ; then
49642 COND_USE_THREADS_1=""
49643 fi
49644
a13a7f89
RL
49645 COND_USE_XRC_1="#"
49646 if test "x$USE_XRC" = "x1" ; then
49647 COND_USE_XRC_1=""
49648 fi
49649
eb730a0c
JS
49650 COND_WINDOWS_IMPLIB_1="#"
49651 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49652 COND_WINDOWS_IMPLIB_1=""
49653 fi
49654
a848cd7e
SC
49655 COND_WITH_PLUGIN_SDL_1="#"
49656 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49657 COND_WITH_PLUGIN_SDL_1=""
49658 fi
49659
1e6eb025
VZ
49660 COND_WXUNIV_0="#"
49661 if test "x$WXUNIV" = "x0" ; then
49662 COND_WXUNIV_0=""
49663 fi
49664
a848cd7e
SC
49665 COND_WXUNIV_1="#"
49666 if test "x$WXUNIV" = "x1" ; then
49667 COND_WXUNIV_1=""
49668 fi
49669
49670 COND_WXUSE_EXPAT_BUILTIN="#"
49671 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49672 COND_WXUSE_EXPAT_BUILTIN=""
49673 fi
49674
49675 COND_WXUSE_LIBJPEG_BUILTIN="#"
49676 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49677 COND_WXUSE_LIBJPEG_BUILTIN=""
49678 fi
49679
49680 COND_WXUSE_LIBPNG_BUILTIN="#"
49681 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49682 COND_WXUSE_LIBPNG_BUILTIN=""
49683 fi
49684
49685 COND_WXUSE_LIBTIFF_BUILTIN="#"
49686 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49687 COND_WXUSE_LIBTIFF_BUILTIN=""
49688 fi
49689
49690 COND_WXUSE_ODBC_BUILTIN="#"
49691 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49692 COND_WXUSE_ODBC_BUILTIN=""
49693 fi
49694
49695 COND_WXUSE_REGEX_BUILTIN="#"
49696 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49697 COND_WXUSE_REGEX_BUILTIN=""
49698 fi
49699
49700 COND_WXUSE_ZLIB_BUILTIN="#"
49701 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49702 COND_WXUSE_ZLIB_BUILTIN=""
49703 fi
49704
49705
49706
810b94f0
MW
49707 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49708 { { 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
49709echo "$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;}
49710 { (exit 1); exit 1; }; }
49711 fi
49712
2057db16
VS
49713 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49714 { { 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
49715echo "$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;}
49716 { (exit 1); exit 1; }; }
49717 fi
49718
a848cd7e 49719
7afc46ab
KO
49720
49721if test "$wxUSE_MAC" = 1 ; then
95768535 49722 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49723 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49724 mv temp bk-deps
49725 chmod +x bk-deps
49726 fi
49727fi
49728
ceec2216
RL
49729if test "$wxUSE_SHARED" = "yes"; then
49730
49731 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49732 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49733
5b674b9d
DE
49734 case "${host}" in
49735 *-pc-os2_emx | *-pc-os2-emx )
49736 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49737 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49738 cp -p ${srcdir}/src/os2/dllnames.sh .
49739 cp -p ${srcdir}/src/os2/dllar.sh .
49740 ;;
49741 esac
ceec2216
RL
49742else
49743
49744 EXE_LINKER="$CXX -o"
49745
49746fi
69120ee4
VZ
49747if test "$wxUSE_OMF" = "yes"; then
49748 case "${host}" in
49749 *-pc-os2_emx | *-pc-os2-emx )
49750 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49751 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49752 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49753 ;;
49754 esac
49755fi
a848cd7e 49756
c08ebc62 49757if test $GCC_PCH = 1 ; then
254e8e29 49758 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49759fi
a848cd7e 49760
5ff751d6 49761WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49762
49763SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49764
49765
49766
49767
49768
49769
49770
49771
49772
49773
49774
49775
49776
49777
49778
49779
49780
49781
49782
49783
49784
49785
49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
a848cd7e
SC
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
a848cd7e
SC
49818
49819
ddd14b14 49820
370d2fd7 49821
8ced02f6 49822
a848cd7e
SC
49823
49824
49825echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49826echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49827set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49828if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49829 echo $ECHO_N "(cached) $ECHO_C" >&6
49830else
49831 cat >conftest.make <<\_ACEOF
49832all:
49833 @echo 'ac_maketemp="$(MAKE)"'
49834_ACEOF
49835# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49836eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49837if test -n "$ac_maketemp"; then
49838 eval ac_cv_prog_make_${ac_make}_set=yes
49839else
49840 eval ac_cv_prog_make_${ac_make}_set=no
49841fi
49842rm -f conftest.make
49843fi
49844if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49845 echo "$as_me:$LINENO: result: yes" >&5
49846echo "${ECHO_T}yes" >&6
49847 SET_MAKE=
49848else
49849 echo "$as_me:$LINENO: result: no" >&5
49850echo "${ECHO_T}no" >&6
49851 SET_MAKE="MAKE=${MAKE-make}"
49852fi
49853
49854
a848cd7e 49855
ceec2216
RL
49856 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49857
a848cd7e 49858
5c60e845
MW
49859if test "$USE_WIN32" = 1; then
49860 ac_config_commands="$ac_config_commands
49861 rcdefs.h
49862 "
49863
49864fi
49865
ceec2216 49866 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 49867
a848cd7e 49868
ceec2216 49869 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49870
ceec2216
RL
49871
49872 ac_config_files="$ac_config_files version-script Makefile"
49873
49874
5c60e845 49875 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49876
49877
9103d280 49878
1c14217d 49879if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49880if test "$wxUSE_GUI" = "yes"; then
49881 SUBDIRS="samples demos utils contrib"
49882else SUBDIRS="samples utils"
49883fi
49884
49885
49886
49887# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49888if test "${with_cppunit_prefix+set}" = set; then
49889 withval="$with_cppunit_prefix"
49890 cppunit_config_prefix="$withval"
49891else
49892 cppunit_config_prefix=""
49893fi;
49894
49895# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49896if test "${with_cppunit_exec_prefix+set}" = set; then
49897 withval="$with_cppunit_exec_prefix"
49898 cppunit_config_exec_prefix="$withval"
49899else
49900 cppunit_config_exec_prefix=""
49901fi;
49902
49903 if test x$cppunit_config_exec_prefix != x ; then
49904 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49905 if test x${CPPUNIT_CONFIG+set} != xset ; then
49906 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49907 fi
49908 fi
49909 if test x$cppunit_config_prefix != x ; then
49910 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49911 if test x${CPPUNIT_CONFIG+set} != xset ; then
49912 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49913 fi
49914 fi
49915
49916 # Extract the first word of "cppunit-config", so it can be a program name with args.
49917set dummy cppunit-config; ac_word=$2
49918echo "$as_me:$LINENO: checking for $ac_word" >&5
49919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49920if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49921 echo $ECHO_N "(cached) $ECHO_C" >&6
49922else
49923 case $CPPUNIT_CONFIG in
49924 [\\/]* | ?:[\\/]*)
49925 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49926 ;;
49927 *)
49928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49929for as_dir in $PATH
49930do
49931 IFS=$as_save_IFS
49932 test -z "$as_dir" && as_dir=.
49933 for ac_exec_ext in '' $ac_executable_extensions; do
49934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49935 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49937 break 2
49938 fi
49939done
49940done
49941
49942 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49943 ;;
49944esac
49945fi
49946CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49947
49948if test -n "$CPPUNIT_CONFIG"; then
49949 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49950echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49951else
49952 echo "$as_me:$LINENO: result: no" >&5
49953echo "${ECHO_T}no" >&6
49954fi
49955
49956 cppunit_version_min=1.8.0
49957
49958 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49959echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49960 no_cppunit=""
49961 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49962 echo "$as_me:$LINENO: result: no" >&5
49963echo "${ECHO_T}no" >&6
a848cd7e
SC
49964 no_cppunit=yes
49965 else
49966 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49967 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49968 cppunit_version=`$CPPUNIT_CONFIG --version`
49969
49970 cppunit_major_version=`echo $cppunit_version | \
49971 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49972 cppunit_minor_version=`echo $cppunit_version | \
49973 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49974 cppunit_micro_version=`echo $cppunit_version | \
49975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49976
49977 cppunit_major_min=`echo $cppunit_version_min | \
49978 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49979 cppunit_minor_min=`echo $cppunit_version_min | \
49980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49981 cppunit_micro_min=`echo $cppunit_version_min | \
49982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49983
49984 cppunit_version_proper=`expr \
49985 $cppunit_major_version \> $cppunit_major_min \| \
49986 $cppunit_major_version \= $cppunit_major_min \& \
49987 $cppunit_minor_version \> $cppunit_minor_min \| \
49988 $cppunit_major_version \= $cppunit_major_min \& \
49989 $cppunit_minor_version \= $cppunit_minor_min \& \
49990 $cppunit_micro_version \>= $cppunit_micro_min `
49991
49992 if test "$cppunit_version_proper" = "1" ; then
49993 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49994echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49995 else
49996 echo "$as_me:$LINENO: result: no" >&5
49997echo "${ECHO_T}no" >&6
49998 no_cppunit=yes
49999 fi
50000 fi
50001
50002 if test "x$no_cppunit" = x ; then
c2218763 50003 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50004 else
50005 CPPUNIT_CFLAGS=""
50006 CPPUNIT_LIBS=""
c2218763 50007 :
a848cd7e
SC
50008 fi
50009
50010
50011
50012
50013
50014for subdir in `echo $SUBDIRS`; do
50015 if test -d ${srcdir}/${subdir} ; then
50016 if test "$wxUSE_GUI" = "yes"; then
50017 if test ${subdir} = "samples"; then
50018 makefiles="samples/Makefile.in $makefiles"
50019 for sample in `echo $SAMPLES_SUBDIRS`; do
50020 if test -d $srcdir/samples/$sample; then
50021 makefiles="samples/$sample/Makefile.in $makefiles"
50022 fi
50023 done
9c112555
MW
50024 else
50025 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50026 eval "disabled=\$$disabled_var"
50027 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50028 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50029 fi
50030 else if test ${subdir} = "samples"; then
50031 makefiles="samples/Makefile.in samples/console/Makefile.in"
50032 elif test ${subdir} = "utils"; then
6537ccf8
VS
50033 makefiles=""
50034 for util in HelpGen tex2rtf ; do
50035 if test -d $srcdir/utils/$util ; then
50036 makefiles="utils/$util/Makefile.in \
50037 utils/$util/src/Makefile.in \
50038 $makefiles"
50039 fi
50040 done
a848cd7e
SC
50041 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50042 fi
50043 fi
50044
50045 for mkin in $makefiles ; do
50046 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50047 ac_config_files="$ac_config_files $mk"
50048
50049 done
50050 fi
50051done
1c14217d 50052fi
a848cd7e
SC
50053cat >confcache <<\_ACEOF
50054# This file is a shell script that caches the results of configure
50055# tests run on this system so they can be shared between configure
50056# scripts and configure runs, see configure's option --config-cache.
50057# It is not useful on other systems. If it contains results you don't
50058# want to keep, you may remove or edit it.
50059#
50060# config.status only pays attention to the cache file if you give it
50061# the --recheck option to rerun configure.
50062#
50063# `ac_cv_env_foo' variables (set or unset) will be overridden when
50064# loading this file, other *unset* `ac_cv_foo' will be assigned the
50065# following values.
50066
50067_ACEOF
50068
50069# The following way of writing the cache mishandles newlines in values,
50070# but we know of no workaround that is simple, portable, and efficient.
50071# So, don't put newlines in cache variables' values.
50072# Ultrix sh set writes to stderr and can't be redirected directly,
50073# and sets the high bit in the cache file unless we assign to the vars.
50074{
50075 (set) 2>&1 |
50076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50077 *ac_space=\ *)
50078 # `set' does not quote correctly, so add quotes (double-quote
50079 # substitution turns \\\\ into \\, and sed turns \\ into \).
50080 sed -n \
ac1cb8d3
VS
50081 "s/'/'\\\\''/g;
50082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50083 ;;
50084 *)
50085 # `set' quotes correctly as required by POSIX, so do not add quotes.
50086 sed -n \
ac1cb8d3 50087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50088 ;;
50089 esac;
50090} |
50091 sed '
50092 t clear
50093 : clear
50094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50095 t end
50096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50097 : end' >>confcache
50098if diff $cache_file confcache >/dev/null 2>&1; then :; else
50099 if test -w $cache_file; then
50100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50101 cat confcache >$cache_file
50102 else
50103 echo "not updating unwritable cache $cache_file"
50104 fi
50105fi
50106rm -f confcache
50107
50108test "x$prefix" = xNONE && prefix=$ac_default_prefix
50109# Let make expand exec_prefix.
50110test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50111
50112# VPATH may cause trouble with some makes, so we remove $(srcdir),
50113# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50114# trailing colons and then remove the whole line if VPATH becomes empty
50115# (actually we leave an empty line to preserve line numbers).
50116if test "x$srcdir" = x.; then
ac1cb8d3 50117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50118s/:*\$(srcdir):*/:/;
50119s/:*\${srcdir}:*/:/;
50120s/:*@srcdir@:*/:/;
ac1cb8d3 50121s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50122s/:*$//;
ac1cb8d3 50123s/^[^=]*=[ ]*$//;
a848cd7e
SC
50124}'
50125fi
50126
50127DEFS=-DHAVE_CONFIG_H
50128
50129ac_libobjs=
50130ac_ltlibobjs=
50131for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50132 # 1. Remove the extension, and $U if already installed.
50133 ac_i=`echo "$ac_i" |
ac1cb8d3 50134 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50135 # 2. Add them.
50136 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50137 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50138done
50139LIBOBJS=$ac_libobjs
50140
50141LTLIBOBJS=$ac_ltlibobjs
50142
50143
50144
50145: ${CONFIG_STATUS=./config.status}
50146ac_clean_files_save=$ac_clean_files
50147ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50148{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50149echo "$as_me: creating $CONFIG_STATUS" >&6;}
50150cat >$CONFIG_STATUS <<_ACEOF
50151#! $SHELL
50152# Generated by $as_me.
50153# Run this file to recreate the current configuration.
50154# Compiler output produced by configure, useful for debugging
50155# configure, is in config.log if it exists.
50156
50157debug=false
50158ac_cs_recheck=false
50159ac_cs_silent=false
50160SHELL=\${CONFIG_SHELL-$SHELL}
50161_ACEOF
50162
50163cat >>$CONFIG_STATUS <<\_ACEOF
50164## --------------------- ##
50165## M4sh Initialization. ##
50166## --------------------- ##
50167
50168# Be Bourne compatible
50169if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50170 emulate sh
50171 NULLCMD=:
50172 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50173 # is contrary to our usage. Disable this feature.
50174 alias -g '${1+"$@"}'='"$@"'
50175elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50176 set -o posix
50177fi
ac1cb8d3 50178DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50179
50180# Support unset when possible.
ac1cb8d3 50181if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50182 as_unset=unset
50183else
50184 as_unset=false
50185fi
50186
50187
50188# Work around bugs in pre-3.0 UWIN ksh.
50189$as_unset ENV MAIL MAILPATH
50190PS1='$ '
50191PS2='> '
50192PS4='+ '
50193
50194# NLS nuisances.
50195for as_var in \
50196 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50197 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50198 LC_TELEPHONE LC_TIME
50199do
ac1cb8d3 50200 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50201 eval $as_var=C; export $as_var
50202 else
50203 $as_unset $as_var
50204 fi
50205done
50206
50207# Required to use basename.
50208if expr a : '\(a\)' >/dev/null 2>&1; then
50209 as_expr=expr
50210else
50211 as_expr=false
50212fi
50213
50214if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50215 as_basename=basename
50216else
50217 as_basename=false
50218fi
50219
50220
50221# Name of the executable.
50222as_me=`$as_basename "$0" ||
50223$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50224 X"$0" : 'X\(//\)$' \| \
50225 X"$0" : 'X\(/\)$' \| \
50226 . : '\(.\)' 2>/dev/null ||
50227echo X/"$0" |
50228 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50229 /^X\/\(\/\/\)$/{ s//\1/; q; }
50230 /^X\/\(\/\).*/{ s//\1/; q; }
50231 s/.*/./; q'`
50232
50233
50234# PATH needs CR, and LINENO needs CR and PATH.
50235# Avoid depending upon Character Ranges.
50236as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50237as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50238as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50239as_cr_digits='0123456789'
50240as_cr_alnum=$as_cr_Letters$as_cr_digits
50241
50242# The user is always right.
50243if test "${PATH_SEPARATOR+set}" != set; then
50244 echo "#! /bin/sh" >conf$$.sh
50245 echo "exit 0" >>conf$$.sh
50246 chmod +x conf$$.sh
50247 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50248 PATH_SEPARATOR=';'
50249 else
50250 PATH_SEPARATOR=:
50251 fi
50252 rm -f conf$$.sh
50253fi
50254
50255
50256 as_lineno_1=$LINENO
50257 as_lineno_2=$LINENO
50258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50259 test "x$as_lineno_1" != "x$as_lineno_2" &&
50260 test "x$as_lineno_3" = "x$as_lineno_2" || {
50261 # Find who we are. Look in the path if we contain no path at all
50262 # relative or not.
50263 case $0 in
50264 *[\\/]* ) as_myself=$0 ;;
50265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50266for as_dir in $PATH
50267do
50268 IFS=$as_save_IFS
50269 test -z "$as_dir" && as_dir=.
50270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50271done
50272
50273 ;;
50274 esac
50275 # We did not find ourselves, most probably we were run as `sh COMMAND'
50276 # in which case we are not to be found in the path.
50277 if test "x$as_myself" = x; then
50278 as_myself=$0
50279 fi
50280 if test ! -f "$as_myself"; then
50281 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50282echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50283 { (exit 1); exit 1; }; }
50284 fi
50285 case $CONFIG_SHELL in
50286 '')
50287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50288for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50289do
50290 IFS=$as_save_IFS
50291 test -z "$as_dir" && as_dir=.
50292 for as_base in sh bash ksh sh5; do
50293 case $as_dir in
50294 /*)
50295 if ("$as_dir/$as_base" -c '
50296 as_lineno_1=$LINENO
50297 as_lineno_2=$LINENO
50298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50299 test "x$as_lineno_1" != "x$as_lineno_2" &&
50300 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50301 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50302 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50303 CONFIG_SHELL=$as_dir/$as_base
50304 export CONFIG_SHELL
50305 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50306 fi;;
50307 esac
50308 done
50309done
50310;;
50311 esac
50312
50313 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50314 # uniformly replaced by the line number. The first 'sed' inserts a
50315 # line-number line before each line; the second 'sed' does the real
50316 # work. The second script uses 'N' to pair each line-number line
50317 # with the numbered line, and appends trailing '-' during
50318 # substitution so that $LINENO is not a special case at line end.
50319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50320 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50321 sed '=' <$as_myself |
50322 sed '
50323 N
50324 s,$,-,
50325 : loop
50326 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50327 t loop
50328 s,-$,,
50329 s,^['$as_cr_digits']*\n,,
50330 ' >$as_me.lineno &&
50331 chmod +x $as_me.lineno ||
50332 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50333echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50334 { (exit 1); exit 1; }; }
50335
50336 # Don't try to exec as it changes $[0], causing all sort of problems
50337 # (the dirname of $[0] is not the place where we might find the
50338 # original and so on. Autoconf is especially sensible to this).
50339 . ./$as_me.lineno
50340 # Exit status is that of the last command.
50341 exit
50342}
50343
50344
50345case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50346 *c*,-n*) ECHO_N= ECHO_C='
50347' ECHO_T=' ' ;;
50348 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50349 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50350esac
50351
50352if expr a : '\(a\)' >/dev/null 2>&1; then
50353 as_expr=expr
50354else
50355 as_expr=false
50356fi
50357
50358rm -f conf$$ conf$$.exe conf$$.file
50359echo >conf$$.file
50360if ln -s conf$$.file conf$$ 2>/dev/null; then
50361 # We could just check for DJGPP; but this test a) works b) is more generic
50362 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50363 if test -f conf$$.exe; then
50364 # Don't use ln at all; we don't have any links
50365 as_ln_s='cp -p'
50366 else
50367 as_ln_s='ln -s'
50368 fi
50369elif ln conf$$.file conf$$ 2>/dev/null; then
50370 as_ln_s=ln
50371else
50372 as_ln_s='cp -p'
50373fi
50374rm -f conf$$ conf$$.exe conf$$.file
50375
50376if mkdir -p . 2>/dev/null; then
50377 as_mkdir_p=:
50378else
ac1cb8d3 50379 test -d ./-p && rmdir ./-p
a848cd7e
SC
50380 as_mkdir_p=false
50381fi
50382
50383as_executable_p="test -f"
50384
50385# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50386as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50387
50388# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50389as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50390
50391
50392# IFS
50393# We need space, tab and new line, in precisely that order.
50394as_nl='
50395'
50396IFS=" $as_nl"
50397
50398# CDPATH.
50399$as_unset CDPATH
50400
50401exec 6>&1
50402
50403# Open the log real soon, to keep \$[0] and so on meaningful, and to
50404# report actual input values of CONFIG_FILES etc. instead of their
50405# values after options handling. Logging --version etc. is OK.
50406exec 5>>config.log
50407{
50408 echo
50409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50410## Running $as_me. ##
50411_ASBOX
50412} >&5
50413cat >&5 <<_CSEOF
50414
dd8df4fc 50415This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 50416generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50417
50418 CONFIG_FILES = $CONFIG_FILES
50419 CONFIG_HEADERS = $CONFIG_HEADERS
50420 CONFIG_LINKS = $CONFIG_LINKS
50421 CONFIG_COMMANDS = $CONFIG_COMMANDS
50422 $ $0 $@
50423
50424_CSEOF
50425echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50426echo >&5
50427_ACEOF
50428
50429# Files that config.status was made for.
50430if test -n "$ac_config_files"; then
50431 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50432fi
50433
50434if test -n "$ac_config_headers"; then
50435 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50436fi
50437
50438if test -n "$ac_config_links"; then
50439 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50440fi
50441
50442if test -n "$ac_config_commands"; then
50443 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50444fi
50445
50446cat >>$CONFIG_STATUS <<\_ACEOF
50447
50448ac_cs_usage="\
50449\`$as_me' instantiates files from templates according to the
50450current configuration.
50451
50452Usage: $0 [OPTIONS] [FILE]...
50453
50454 -h, --help print this help, then exit
50455 -V, --version print version number, then exit
50456 -q, --quiet do not print progress messages
50457 -d, --debug don't remove temporary files
50458 --recheck update $as_me by reconfiguring in the same conditions
50459 --file=FILE[:TEMPLATE]
ac1cb8d3 50460 instantiate the configuration file FILE
a848cd7e 50461 --header=FILE[:TEMPLATE]
ac1cb8d3 50462 instantiate the configuration header FILE
a848cd7e
SC
50463
50464Configuration files:
50465$config_files
50466
50467Configuration headers:
50468$config_headers
50469
50470Configuration commands:
50471$config_commands
50472
50473Report bugs to <bug-autoconf@gnu.org>."
50474_ACEOF
50475
50476cat >>$CONFIG_STATUS <<_ACEOF
50477ac_cs_version="\\
dd8df4fc 50478wxWidgets config.status 2.7.0
ac1cb8d3 50479configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50480 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50481
ac1cb8d3 50482Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50483This config.status script is free software; the Free Software Foundation
50484gives unlimited permission to copy, distribute and modify it."
50485srcdir=$srcdir
50486INSTALL="$INSTALL"
50487_ACEOF
50488
50489cat >>$CONFIG_STATUS <<\_ACEOF
50490# If no file are specified by the user, then we need to provide default
50491# value. By we need to know if files were specified by the user.
50492ac_need_defaults=:
50493while test $# != 0
50494do
50495 case $1 in
50496 --*=*)
50497 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50498 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50499 ac_shift=:
50500 ;;
50501 -*)
50502 ac_option=$1
50503 ac_optarg=$2
50504 ac_shift=shift
50505 ;;
50506 *) # This is not an option, so the user has probably given explicit
50507 # arguments.
50508 ac_option=$1
50509 ac_need_defaults=false;;
50510 esac
50511
50512 case $ac_option in
50513 # Handling of the options.
50514_ACEOF
50515cat >>$CONFIG_STATUS <<\_ACEOF
50516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50517 ac_cs_recheck=: ;;
50518 --version | --vers* | -V )
50519 echo "$ac_cs_version"; exit 0 ;;
50520 --he | --h)
50521 # Conflict between --help and --header
50522 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50523Try \`$0 --help' for more information." >&5
50524echo "$as_me: error: ambiguous option: $1
50525Try \`$0 --help' for more information." >&2;}
50526 { (exit 1); exit 1; }; };;
50527 --help | --hel | -h )
50528 echo "$ac_cs_usage"; exit 0 ;;
50529 --debug | --d* | -d )
50530 debug=: ;;
50531 --file | --fil | --fi | --f )
50532 $ac_shift
50533 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50534 ac_need_defaults=false;;
50535 --header | --heade | --head | --hea )
50536 $ac_shift
50537 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50538 ac_need_defaults=false;;
50539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50541 ac_cs_silent=: ;;
50542
50543 # This is an error.
50544 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50545Try \`$0 --help' for more information." >&5
50546echo "$as_me: error: unrecognized option: $1
50547Try \`$0 --help' for more information." >&2;}
50548 { (exit 1); exit 1; }; } ;;
50549
50550 *) ac_config_targets="$ac_config_targets $1" ;;
50551
50552 esac
50553 shift
50554done
50555
50556ac_configure_extra_args=
50557
50558if $ac_cs_silent; then
50559 exec 6>/dev/null
50560 ac_configure_extra_args="$ac_configure_extra_args --silent"
50561fi
50562
50563_ACEOF
50564cat >>$CONFIG_STATUS <<_ACEOF
50565if \$ac_cs_recheck; then
50566 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50567 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50568fi
50569
50570_ACEOF
50571
50572cat >>$CONFIG_STATUS <<_ACEOF
50573#
50574# INIT-COMMANDS section.
50575#
50576
5c60e845
MW
50577
50578 CPP="$CPP"
50579 infile="$srcdir/include/wx/msw/genrcdefs.h"
50580 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50581
50582
ceec2216
RL
50583 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50584 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50585 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50586 LN_S="${LN_S}"
a848cd7e
SC
50587
50588
50589_ACEOF
50590
50591
50592
50593cat >>$CONFIG_STATUS <<\_ACEOF
50594for ac_config_target in $ac_config_targets
50595do
50596 case "$ac_config_target" in
50597 # Handling of arguments.
ceec2216
RL
50598 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50599 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50600 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50601 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50602 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50603 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50604 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50605 "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
50606 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50607echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50608 { (exit 1); exit 1; }; };;
50609 esac
50610done
50611
50612# If the user did not use the arguments to specify the items to instantiate,
50613# then the envvar interface is used. Set only those that are not.
50614# We use the long form for the default assignment because of an extremely
50615# bizarre bug on SunOS 4.1.3.
50616if $ac_need_defaults; then
50617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50620fi
50621
50622# Have a temporary directory for convenience. Make it in the build tree
50623# simply because there is no reason to put it here, and in addition,
50624# creating and moving files from /tmp can sometimes cause problems.
50625# Create a temporary directory, and hook for its removal unless debugging.
50626$debug ||
50627{
50628 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50629 trap '{ (exit 1); exit 1; }' 1 2 13 15
50630}
50631
50632# Create a (secure) tmp directory for tmp files.
50633
50634{
50635 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50636 test -n "$tmp" && test -d "$tmp"
50637} ||
50638{
50639 tmp=./confstat$$-$RANDOM
50640 (umask 077 && mkdir $tmp)
50641} ||
50642{
50643 echo "$me: cannot create a temporary directory in ." >&2
50644 { (exit 1); exit 1; }
50645}
50646
50647_ACEOF
50648
50649cat >>$CONFIG_STATUS <<_ACEOF
50650
50651#
50652# CONFIG_FILES section.
50653#
50654
50655# No need to generate the scripts if there are no CONFIG_FILES.
50656# This happens for instance when ./config.status config.h
50657if test -n "\$CONFIG_FILES"; then
50658 # Protect against being on the right side of a sed subst in config.status.
50659 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50660 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50661s,@SHELL@,$SHELL,;t t
50662s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50663s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50664s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50665s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50666s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50667s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50668s,@exec_prefix@,$exec_prefix,;t t
50669s,@prefix@,$prefix,;t t
50670s,@program_transform_name@,$program_transform_name,;t t
50671s,@bindir@,$bindir,;t t
50672s,@sbindir@,$sbindir,;t t
50673s,@libexecdir@,$libexecdir,;t t
50674s,@datadir@,$datadir,;t t
50675s,@sysconfdir@,$sysconfdir,;t t
50676s,@sharedstatedir@,$sharedstatedir,;t t
50677s,@localstatedir@,$localstatedir,;t t
50678s,@libdir@,$libdir,;t t
50679s,@includedir@,$includedir,;t t
50680s,@oldincludedir@,$oldincludedir,;t t
50681s,@infodir@,$infodir,;t t
50682s,@mandir@,$mandir,;t t
50683s,@build_alias@,$build_alias,;t t
50684s,@host_alias@,$host_alias,;t t
50685s,@target_alias@,$target_alias,;t t
50686s,@DEFS@,$DEFS,;t t
50687s,@ECHO_C@,$ECHO_C,;t t
50688s,@ECHO_N@,$ECHO_N,;t t
50689s,@ECHO_T@,$ECHO_T,;t t
50690s,@LIBS@,$LIBS,;t t
50691s,@build@,$build,;t t
50692s,@build_cpu@,$build_cpu,;t t
50693s,@build_vendor@,$build_vendor,;t t
50694s,@build_os@,$build_os,;t t
50695s,@host@,$host,;t t
50696s,@host_cpu@,$host_cpu,;t t
50697s,@host_vendor@,$host_vendor,;t t
50698s,@host_os@,$host_os,;t t
50699s,@target@,$target,;t t
50700s,@target_cpu@,$target_cpu,;t t
50701s,@target_vendor@,$target_vendor,;t t
50702s,@target_os@,$target_os,;t t
50703s,@CC@,$CC,;t t
50704s,@CFLAGS@,$CFLAGS,;t t
50705s,@LDFLAGS@,$LDFLAGS,;t t
50706s,@CPPFLAGS@,$CPPFLAGS,;t t
50707s,@ac_ct_CC@,$ac_ct_CC,;t t
50708s,@EXEEXT@,$EXEEXT,;t t
50709s,@OBJEXT@,$OBJEXT,;t t
50710s,@CPP@,$CPP,;t t
50711s,@EGREP@,$EGREP,;t t
50712s,@CXX@,$CXX,;t t
50713s,@CXXFLAGS@,$CXXFLAGS,;t t
50714s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50715s,@RANLIB@,$RANLIB,;t t
50716s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50717s,@AR@,$AR,;t t
8c80d384 50718s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50719s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50720s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50721s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50722s,@STRIP@,$STRIP,;t t
8c80d384 50723s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50724s,@WINDRES@,$WINDRES,;t t
50725s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50726s,@DLLTOOL@,$DLLTOOL,;t t
50727s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50728s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50729s,@LN_S@,$LN_S,;t t
50730s,@CXXCPP@,$CXXCPP,;t t
50731s,@subdirs@,$subdirs,;t t
50732s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50733s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50734s,@GTK_LIBS@,$GTK_LIBS,;t t
50735s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50736s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50737s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50738s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50739s,@X_CFLAGS@,$X_CFLAGS,;t t
50740s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50741s,@X_LIBS@,$X_LIBS,;t t
50742s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50743s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50744s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50745s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50746s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50747s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50748s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50749s,@REZ@,$REZ,;t t
a848cd7e
SC
50750s,@DEREZ@,$DEREZ,;t t
50751s,@SETFILE@,$SETFILE,;t t
50752s,@LIBICONV@,$LIBICONV,;t t
50753s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50754s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50755s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50756s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50757s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50758s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50759s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50760s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50761s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50762s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
50763s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50764s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50765s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50766s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50767s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50768s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50769s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50770s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50771s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50772s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50773s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50774s,@VENDOR@,$VENDOR,;t t
50775s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50776s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50777s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50778s,@WXUNIV@,$WXUNIV,;t t
50779s,@MONOLITHIC@,$MONOLITHIC,;t t
50780s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50781s,@EXTRALIBS@,$EXTRALIBS,;t t
50782s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50783s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50784s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50785s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50786s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50787s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50788s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50789s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50790s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50791s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50792s,@UNICODE@,$UNICODE,;t t
50793s,@BUILD@,$BUILD,;t t
50794s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50795s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50796s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50797s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50798s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50799s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50800s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50801s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50802s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50803s,@SET_MAKE@,$SET_MAKE,;t t
50804s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50805s,@NM@,$NM,;t t
50806s,@ac_ct_NM@,$ac_ct_NM,;t t
50807s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50808s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50809s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50810s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50811s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50812s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 50813s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
50814s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50815s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 50816s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
50817s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50818s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50819s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50820s,@LIBPREFIX@,$LIBPREFIX,;t t
50821s,@LIBEXT@,$LIBEXT,;t t
50822s,@DLLPREFIX@,$DLLPREFIX,;t t
50823s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50824s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50825s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50826s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50827s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50828s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50829s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50830s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50831s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50832s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50833s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50834s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50835s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
50836s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50837s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50838s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50839s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50840s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 50841s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
50842s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50843s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50844s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50845s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50846s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50847s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50848s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50849s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50850s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50851s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50852s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50853s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50854s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50855s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50856s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 50857s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
50858s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50859s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 50860s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 50861s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 50862s,@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 50863s,@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 50864s,@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 50865s,@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 50866s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 50867s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 50868s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 50869s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 50870s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 50871s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50872s,@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 50873s,@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 50874s,@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 50875s,@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 50876s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50877s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50878s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50879s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50880s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50881s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50882s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50883s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50884s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50885s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50886s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50887s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50888s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50889s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50890s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50891s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50892s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50893s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50894s,@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
50895s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50896s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50897s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50898s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50899s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50900s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50901s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50902s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50903s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50904s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50905s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50906s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50907s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50908s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50909s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50910s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50911s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50912s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50913s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50914s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50915s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50916s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50917s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50918s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50919s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50920s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50921s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50922s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50923s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50924s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50925s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50926s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50927s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50928s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 50929s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
50930s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50931s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 50932s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50933s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50934s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50935s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50936s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50937s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50938s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50939s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50940s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50941s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50942s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50943s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50944s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50945s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50946s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50947s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50948s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50949s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50950s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50951s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50952s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50953s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50954s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50955s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50956s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50957s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50958s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50959s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50960s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50961s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50962s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50963s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50964s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50965s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50966s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50967s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50968s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50969s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50970s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50971s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50972s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50973s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50974s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50975s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50976s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50977s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50978s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50979s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50980s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50981s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50982s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50983s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50984s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50985s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50986s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50987s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50988s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50989s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50990s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50991s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50992s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50993s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50994s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50995s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50996s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50997s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50998s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50999s,@USE_GUI@,$USE_GUI,;t t
51000s,@AFMINSTALL@,$AFMINSTALL,;t t
51001s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51002s,@TOOLKIT@,$TOOLKIT,;t t
51003s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51004s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51005s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51006s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51007s,@WIDGET_SET@,$WIDGET_SET,;t t
51008s,@WX_RELEASE@,$WX_RELEASE,;t t
51009s,@WX_VERSION@,$WX_VERSION,;t t
51010s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51011s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51012s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51013s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51014s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51015s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51016s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51017s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51018s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51019s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51020s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51021s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51022s,@DISTDIR@,$DISTDIR,;t t
51023s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51024s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51025s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51026s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51027s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51028s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51029s,@RESFLAGS@,$RESFLAGS,;t t
51030s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51031s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51032s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51033s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51034s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51035s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51036s,@GCC@,$GCC,;t t
a848cd7e
SC
51037s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51038s,@LIBOBJS@,$LIBOBJS,;t t
51039s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51040CEOF
51041
51042_ACEOF
51043
51044 cat >>$CONFIG_STATUS <<\_ACEOF
51045 # Split the substitutions into bite-sized pieces for seds with
51046 # small command number limits, like on Digital OSF/1 and HP-UX.
51047 ac_max_sed_lines=48
51048 ac_sed_frag=1 # Number of current file.
51049 ac_beg=1 # First line for current file.
51050 ac_end=$ac_max_sed_lines # Line after last line for current file.
51051 ac_more_lines=:
51052 ac_sed_cmds=
51053 while $ac_more_lines; do
51054 if test $ac_beg -gt 1; then
51055 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51056 else
51057 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51058 fi
51059 if test ! -s $tmp/subs.frag; then
51060 ac_more_lines=false
51061 else
51062 # The purpose of the label and of the branching condition is to
51063 # speed up the sed processing (if there are no `@' at all, there
51064 # is no need to browse any of the substitutions).
51065 # These are the two extra sed commands mentioned above.
51066 (echo ':t
51067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51068 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51069 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51070 else
ac1cb8d3 51071 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51072 fi
51073 ac_sed_frag=`expr $ac_sed_frag + 1`
51074 ac_beg=$ac_end
51075 ac_end=`expr $ac_end + $ac_max_sed_lines`
51076 fi
51077 done
51078 if test -z "$ac_sed_cmds"; then
51079 ac_sed_cmds=cat
51080 fi
51081fi # test -n "$CONFIG_FILES"
51082
51083_ACEOF
51084cat >>$CONFIG_STATUS <<\_ACEOF
51085for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51087 case $ac_file in
51088 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51089 cat >$tmp/stdin
51090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51094 * ) ac_file_in=$ac_file.in ;;
51095 esac
51096
51097 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51098 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51099$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51100 X"$ac_file" : 'X\(//\)[^/]' \| \
51101 X"$ac_file" : 'X\(//\)$' \| \
51102 X"$ac_file" : 'X\(/\)' \| \
51103 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51104echo X"$ac_file" |
51105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51107 /^X\(\/\/\)$/{ s//\1/; q; }
51108 /^X\(\/\).*/{ s//\1/; q; }
51109 s/.*/./; q'`
51110 { if $as_mkdir_p; then
51111 mkdir -p "$ac_dir"
51112 else
51113 as_dir="$ac_dir"
51114 as_dirs=
51115 while test ! -d "$as_dir"; do
51116 as_dirs="$as_dir $as_dirs"
51117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51119 X"$as_dir" : 'X\(//\)[^/]' \| \
51120 X"$as_dir" : 'X\(//\)$' \| \
51121 X"$as_dir" : 'X\(/\)' \| \
51122 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51123echo X"$as_dir" |
51124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51126 /^X\(\/\/\)$/{ s//\1/; q; }
51127 /^X\(\/\).*/{ s//\1/; q; }
51128 s/.*/./; q'`
51129 done
51130 test ! -n "$as_dirs" || mkdir $as_dirs
51131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51133 { (exit 1); exit 1; }; }; }
51134
51135 ac_builddir=.
51136
51137if test "$ac_dir" != .; then
51138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51139 # A "../" for each directory in $ac_dir_suffix.
51140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51141else
51142 ac_dir_suffix= ac_top_builddir=
51143fi
51144
51145case $srcdir in
51146 .) # No --srcdir option. We are building in place.
51147 ac_srcdir=.
51148 if test -z "$ac_top_builddir"; then
51149 ac_top_srcdir=.
51150 else
51151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51152 fi ;;
51153 [\\/]* | ?:[\\/]* ) # Absolute path.
51154 ac_srcdir=$srcdir$ac_dir_suffix;
51155 ac_top_srcdir=$srcdir ;;
51156 *) # Relative path.
51157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51159esac
ac1cb8d3
VS
51160
51161# Do not use `cd foo && pwd` to compute absolute paths, because
51162# the directories may not exist.
51163case `pwd` in
51164.) ac_abs_builddir="$ac_dir";;
51165*)
51166 case "$ac_dir" in
51167 .) ac_abs_builddir=`pwd`;;
51168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51170 esac;;
51171esac
51172case $ac_abs_builddir in
51173.) ac_abs_top_builddir=${ac_top_builddir}.;;
51174*)
51175 case ${ac_top_builddir}. in
51176 .) ac_abs_top_builddir=$ac_abs_builddir;;
51177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51179 esac;;
51180esac
51181case $ac_abs_builddir in
51182.) ac_abs_srcdir=$ac_srcdir;;
51183*)
51184 case $ac_srcdir in
51185 .) ac_abs_srcdir=$ac_abs_builddir;;
51186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51188 esac;;
51189esac
51190case $ac_abs_builddir in
51191.) ac_abs_top_srcdir=$ac_top_srcdir;;
51192*)
51193 case $ac_top_srcdir in
51194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51197 esac;;
51198esac
a848cd7e
SC
51199
51200
51201 case $INSTALL in
51202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51203 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51204 esac
51205
6a5c9b3f
RR
51206 if test x"$ac_file" != x-; then
51207 { echo "$as_me:$LINENO: creating $ac_file" >&5
51208echo "$as_me: creating $ac_file" >&6;}
51209 rm -f "$ac_file"
51210 fi
a848cd7e
SC
51211 # Let's still pretend it is `configure' which instantiates (i.e., don't
51212 # use $as_me), people would be surprised to read:
51213 # /* config.h. Generated by config.status. */
51214 if test x"$ac_file" = x-; then
51215 configure_input=
51216 else
51217 configure_input="$ac_file. "
51218 fi
51219 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51220 sed 's,.*/,,'` by configure."
a848cd7e
SC
51221
51222 # First look for the input files in the build tree, otherwise in the
51223 # src tree.
51224 ac_file_inputs=`IFS=:
51225 for f in $ac_file_in; do
51226 case $f in
51227 -) echo $tmp/stdin ;;
51228 [\\/$]*)
ac1cb8d3
VS
51229 # Absolute (can't be DOS-style, as IFS=:)
51230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51231echo "$as_me: error: cannot find input file: $f" >&2;}
51232 { (exit 1); exit 1; }; }
ac1cb8d3 51233 echo "$f";;
a848cd7e 51234 *) # Relative
ac1cb8d3
VS
51235 if test -f "$f"; then
51236 # Build tree
51237 echo "$f"
51238 elif test -f "$srcdir/$f"; then
51239 # Source tree
51240 echo "$srcdir/$f"
51241 else
51242 # /dev/null tree
51243 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51244echo "$as_me: error: cannot find input file: $f" >&2;}
51245 { (exit 1); exit 1; }; }
ac1cb8d3 51246 fi;;
a848cd7e
SC
51247 esac
51248 done` || { (exit 1); exit 1; }
51249_ACEOF
51250cat >>$CONFIG_STATUS <<_ACEOF
51251 sed "$ac_vpsub
51252$extrasub
51253_ACEOF
51254cat >>$CONFIG_STATUS <<\_ACEOF
51255:t
51256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51257s,@configure_input@,$configure_input,;t t
51258s,@srcdir@,$ac_srcdir,;t t
51259s,@abs_srcdir@,$ac_abs_srcdir,;t t
51260s,@top_srcdir@,$ac_top_srcdir,;t t
51261s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51262s,@builddir@,$ac_builddir,;t t
51263s,@abs_builddir@,$ac_abs_builddir,;t t
51264s,@top_builddir@,$ac_top_builddir,;t t
51265s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51266s,@INSTALL@,$ac_INSTALL,;t t
51267" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51268 rm -f $tmp/stdin
51269 if test x"$ac_file" != x-; then
51270 mv $tmp/out $ac_file
51271 else
51272 cat $tmp/out
51273 rm -f $tmp/out
51274 fi
51275
ceec2216
RL
51276 # Run the commands associated with the file.
51277 case $ac_file in
51278 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51279 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51280 esac
a848cd7e
SC
51281done
51282_ACEOF
51283cat >>$CONFIG_STATUS <<\_ACEOF
51284
51285#
51286# CONFIG_HEADER section.
51287#
51288
51289# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51290# NAME is the cpp macro being defined and VALUE is the value it is being given.
51291#
51292# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51293ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51294ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51295ac_dC=' '
51296ac_dD=',;t'
51297# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51298ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51299ac_uB='$,\1#\2define\3'
51300ac_uC=' '
51301ac_uD=',;t'
51302
51303for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51305 case $ac_file in
51306 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51307 cat >$tmp/stdin
51308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51312 * ) ac_file_in=$ac_file.in ;;
51313 esac
51314
51315 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51316echo "$as_me: creating $ac_file" >&6;}
51317
51318 # First look for the input files in the build tree, otherwise in the
51319 # src tree.
51320 ac_file_inputs=`IFS=:
51321 for f in $ac_file_in; do
51322 case $f in
51323 -) echo $tmp/stdin ;;
51324 [\\/$]*)
ac1cb8d3
VS
51325 # Absolute (can't be DOS-style, as IFS=:)
51326 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51327echo "$as_me: error: cannot find input file: $f" >&2;}
51328 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51329 # Do quote $f, to prevent DOS paths from being IFS'd.
51330 echo "$f";;
a848cd7e 51331 *) # Relative
ac1cb8d3
VS
51332 if test -f "$f"; then
51333 # Build tree
51334 echo "$f"
51335 elif test -f "$srcdir/$f"; then
51336 # Source tree
51337 echo "$srcdir/$f"
51338 else
51339 # /dev/null tree
51340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51341echo "$as_me: error: cannot find input file: $f" >&2;}
51342 { (exit 1); exit 1; }; }
ac1cb8d3 51343 fi;;
a848cd7e
SC
51344 esac
51345 done` || { (exit 1); exit 1; }
51346 # Remove the trailing spaces.
ac1cb8d3 51347 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51348
51349_ACEOF
51350
51351# Transform confdefs.h into two sed scripts, `conftest.defines' and
51352# `conftest.undefs', that substitutes the proper values into
51353# config.h.in to produce config.h. The first handles `#define'
51354# templates, and the second `#undef' templates.
51355# And first: Protect against being on the right side of a sed subst in
51356# config.status. Protect against being in an unquoted here document
51357# in config.status.
51358rm -f conftest.defines conftest.undefs
51359# Using a here document instead of a string reduces the quoting nightmare.
51360# Putting comments in sed scripts is not portable.
51361#
51362# `end' is used to avoid that the second main sed command (meant for
51363# 0-ary CPP macros) applies to n-ary macro definitions.
51364# See the Autoconf documentation for `clear'.
51365cat >confdef2sed.sed <<\_ACEOF
51366s/[\\&,]/\\&/g
51367s,[\\$`],\\&,g
51368t clear
51369: clear
ac1cb8d3 51370s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51371t end
ac1cb8d3 51372s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51373: end
51374_ACEOF
51375# If some macros were called several times there might be several times
51376# the same #defines, which is useless. Nevertheless, we may not want to
51377# sort them, since we want the *last* AC-DEFINE to be honored.
51378uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51379sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51380rm -f confdef2sed.sed
51381
51382# This sed command replaces #undef with comments. This is necessary, for
51383# example, in the case of _POSIX_SOURCE, which is predefined and required
51384# on some systems where configure will not decide to define it.
51385cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51386s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51387_ACEOF
51388
51389# Break up conftest.defines because some shells have a limit on the size
51390# of here documents, and old seds have small limits too (100 cmds).
51391echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51392echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51393echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51394echo ' :' >>$CONFIG_STATUS
51395rm -f conftest.tail
51396while grep . conftest.defines >/dev/null
51397do
51398 # Write a limited-size here document to $tmp/defines.sed.
51399 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51400 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51401 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51402 # Work around the forget-to-reset-the-flag bug.
51403 echo 't clr' >>$CONFIG_STATUS
51404 echo ': clr' >>$CONFIG_STATUS
51405 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51406 echo 'CEOF
51407 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51408 rm -f $tmp/in
51409 mv $tmp/out $tmp/in
51410' >>$CONFIG_STATUS
51411 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51412 rm -f conftest.defines
51413 mv conftest.tail conftest.defines
51414done
51415rm -f conftest.defines
51416echo ' fi # grep' >>$CONFIG_STATUS
51417echo >>$CONFIG_STATUS
51418
51419# Break up conftest.undefs because some shells have a limit on the size
51420# of here documents, and old seds have small limits too (100 cmds).
51421echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51422rm -f conftest.tail
51423while grep . conftest.undefs >/dev/null
51424do
51425 # Write a limited-size here document to $tmp/undefs.sed.
51426 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51427 # Speed up: don't consider the non `#undef'
ac1cb8d3 51428 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51429 # Work around the forget-to-reset-the-flag bug.
51430 echo 't clr' >>$CONFIG_STATUS
51431 echo ': clr' >>$CONFIG_STATUS
51432 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51433 echo 'CEOF
51434 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51435 rm -f $tmp/in
51436 mv $tmp/out $tmp/in
51437' >>$CONFIG_STATUS
51438 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51439 rm -f conftest.undefs
51440 mv conftest.tail conftest.undefs
51441done
51442rm -f conftest.undefs
51443
51444cat >>$CONFIG_STATUS <<\_ACEOF
51445 # Let's still pretend it is `configure' which instantiates (i.e., don't
51446 # use $as_me), people would be surprised to read:
51447 # /* config.h. Generated by config.status. */
51448 if test x"$ac_file" = x-; then
51449 echo "/* Generated by configure. */" >$tmp/config.h
51450 else
51451 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51452 fi
51453 cat $tmp/in >>$tmp/config.h
51454 rm -f $tmp/in
51455 if test x"$ac_file" != x-; then
51456 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51457 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51458echo "$as_me: $ac_file is unchanged" >&6;}
51459 else
51460 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51462 X"$ac_file" : 'X\(//\)[^/]' \| \
51463 X"$ac_file" : 'X\(//\)$' \| \
51464 X"$ac_file" : 'X\(/\)' \| \
51465 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51466echo X"$ac_file" |
51467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51469 /^X\(\/\/\)$/{ s//\1/; q; }
51470 /^X\(\/\).*/{ s//\1/; q; }
51471 s/.*/./; q'`
51472 { if $as_mkdir_p; then
51473 mkdir -p "$ac_dir"
51474 else
51475 as_dir="$ac_dir"
51476 as_dirs=
51477 while test ! -d "$as_dir"; do
51478 as_dirs="$as_dir $as_dirs"
51479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51481 X"$as_dir" : 'X\(//\)[^/]' \| \
51482 X"$as_dir" : 'X\(//\)$' \| \
51483 X"$as_dir" : 'X\(/\)' \| \
51484 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51485echo X"$as_dir" |
51486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51488 /^X\(\/\/\)$/{ s//\1/; q; }
51489 /^X\(\/\).*/{ s//\1/; q; }
51490 s/.*/./; q'`
51491 done
51492 test ! -n "$as_dirs" || mkdir $as_dirs
51493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51494echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51495 { (exit 1); exit 1; }; }; }
51496
51497 rm -f $ac_file
51498 mv $tmp/config.h $ac_file
51499 fi
51500 else
51501 cat $tmp/config.h
51502 rm -f $tmp/config.h
51503 fi
51504done
51505_ACEOF
51506cat >>$CONFIG_STATUS <<\_ACEOF
51507
51508#
51509# CONFIG_COMMANDS section.
51510#
51511for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51512 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51513 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51514 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51515$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51516 X"$ac_dest" : 'X\(//\)[^/]' \| \
51517 X"$ac_dest" : 'X\(//\)$' \| \
51518 X"$ac_dest" : 'X\(/\)' \| \
51519 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51520echo X"$ac_dest" |
51521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51523 /^X\(\/\/\)$/{ s//\1/; q; }
51524 /^X\(\/\).*/{ s//\1/; q; }
51525 s/.*/./; q'`
ac1cb8d3
VS
51526 { if $as_mkdir_p; then
51527 mkdir -p "$ac_dir"
51528 else
51529 as_dir="$ac_dir"
51530 as_dirs=
51531 while test ! -d "$as_dir"; do
51532 as_dirs="$as_dir $as_dirs"
51533 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51534$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51535 X"$as_dir" : 'X\(//\)[^/]' \| \
51536 X"$as_dir" : 'X\(//\)$' \| \
51537 X"$as_dir" : 'X\(/\)' \| \
51538 . : '\(.\)' 2>/dev/null ||
51539echo X"$as_dir" |
51540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51542 /^X\(\/\/\)$/{ s//\1/; q; }
51543 /^X\(\/\).*/{ s//\1/; q; }
51544 s/.*/./; q'`
51545 done
51546 test ! -n "$as_dirs" || mkdir $as_dirs
51547 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51548echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51549 { (exit 1); exit 1; }; }; }
51550
a848cd7e
SC
51551 ac_builddir=.
51552
51553if test "$ac_dir" != .; then
51554 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51555 # A "../" for each directory in $ac_dir_suffix.
51556 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51557else
51558 ac_dir_suffix= ac_top_builddir=
51559fi
51560
51561case $srcdir in
51562 .) # No --srcdir option. We are building in place.
51563 ac_srcdir=.
51564 if test -z "$ac_top_builddir"; then
51565 ac_top_srcdir=.
51566 else
51567 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51568 fi ;;
51569 [\\/]* | ?:[\\/]* ) # Absolute path.
51570 ac_srcdir=$srcdir$ac_dir_suffix;
51571 ac_top_srcdir=$srcdir ;;
51572 *) # Relative path.
51573 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51574 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51575esac
ac1cb8d3
VS
51576
51577# Do not use `cd foo && pwd` to compute absolute paths, because
51578# the directories may not exist.
51579case `pwd` in
51580.) ac_abs_builddir="$ac_dir";;
51581*)
51582 case "$ac_dir" in
51583 .) ac_abs_builddir=`pwd`;;
51584 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51585 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51586 esac;;
51587esac
51588case $ac_abs_builddir in
51589.) ac_abs_top_builddir=${ac_top_builddir}.;;
51590*)
51591 case ${ac_top_builddir}. in
51592 .) ac_abs_top_builddir=$ac_abs_builddir;;
51593 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51594 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51595 esac;;
51596esac
51597case $ac_abs_builddir in
51598.) ac_abs_srcdir=$ac_srcdir;;
51599*)
51600 case $ac_srcdir in
51601 .) ac_abs_srcdir=$ac_abs_builddir;;
51602 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51603 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51604 esac;;
51605esac
51606case $ac_abs_builddir in
51607.) ac_abs_top_srcdir=$ac_top_srcdir;;
51608*)
51609 case $ac_top_srcdir in
51610 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51611 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51612 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51613 esac;;
51614esac
a848cd7e
SC
51615
51616
51617 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51618echo "$as_me: executing $ac_dest commands" >&6;}
51619 case $ac_dest in
5c60e845
MW
51620 rcdefs.h )
51621 mkdir -p $outdir &&
51622 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51623 ;;
ceec2216
RL
51624 wx-config ) rm -f wx-config
51625 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51626 ;;
a848cd7e
SC
51627 esac
51628done
51629_ACEOF
51630
51631cat >>$CONFIG_STATUS <<\_ACEOF
51632
51633{ (exit 0); exit 0; }
51634_ACEOF
51635chmod +x $CONFIG_STATUS
51636ac_clean_files=$ac_clean_files_save
51637
51638
51639# configure is writing to config.log, and then calls config.status.
51640# config.status does its own redirection, appending to config.log.
51641# Unfortunately, on DOS this fails, as config.log is still kept open
51642# by configure, so config.status won't be able to write to it; its
51643# output is simply discarded. So we exec the FD to /dev/null,
51644# effectively closing config.log, so it can be properly (re)opened and
51645# appended to by config.status. When coming back to configure, we
51646# need to make the FD available again.
51647if test "$no_create" != yes; then
51648 ac_cs_success=:
51649 ac_config_status_args=
51650 test "$silent" = yes &&
51651 ac_config_status_args="$ac_config_status_args --quiet"
51652 exec 5>/dev/null
51653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51654 exec 5>>config.log
51655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51656 # would make configure fail if this is the last instruction.
51657 $ac_cs_success || { (exit 1); exit 1; }
51658fi
51659
51660#
51661# CONFIG_SUBDIRS section.
51662#
51663if test "$no_recursion" != yes; then
51664
51665 # Remove --cache-file and --srcdir arguments so they do not pile up.
51666 ac_sub_configure_args=
51667 ac_prev=
51668 for ac_arg in $ac_configure_args; do
51669 if test -n "$ac_prev"; then
51670 ac_prev=
51671 continue
51672 fi
51673 case $ac_arg in
51674 -cache-file | --cache-file | --cache-fil | --cache-fi \
51675 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51676 ac_prev=cache_file ;;
51677 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51678 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51679 | --c=*)
51680 ;;
51681 --config-cache | -C)
51682 ;;
51683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51684 ac_prev=srcdir ;;
51685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51686 ;;
51687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51688 ac_prev=prefix ;;
51689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51690 ;;
51691 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51692 esac
51693 done
51694
51695 # Always prepend --prefix to ensure using the same prefix
51696 # in subdir configurations.
51697 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51698
51699 ac_popdir=`pwd`
51700 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51701
51702 # Do not complain, so a configure script can configure whichever
51703 # parts of a large source tree are present.
51704 test -d $srcdir/$ac_dir || continue
51705
51706 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51707echo "$as_me: configuring in $ac_dir" >&6;}
51708 { if $as_mkdir_p; then
51709 mkdir -p "$ac_dir"
51710 else
51711 as_dir="$ac_dir"
51712 as_dirs=
51713 while test ! -d "$as_dir"; do
51714 as_dirs="$as_dir $as_dirs"
51715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51717 X"$as_dir" : 'X\(//\)[^/]' \| \
51718 X"$as_dir" : 'X\(//\)$' \| \
51719 X"$as_dir" : 'X\(/\)' \| \
51720 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51721echo X"$as_dir" |
51722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51724 /^X\(\/\/\)$/{ s//\1/; q; }
51725 /^X\(\/\).*/{ s//\1/; q; }
51726 s/.*/./; q'`
51727 done
51728 test ! -n "$as_dirs" || mkdir $as_dirs
51729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51730echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51731 { (exit 1); exit 1; }; }; }
51732
51733 ac_builddir=.
51734
51735if test "$ac_dir" != .; then
51736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51737 # A "../" for each directory in $ac_dir_suffix.
51738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51739else
51740 ac_dir_suffix= ac_top_builddir=
51741fi
51742
51743case $srcdir in
51744 .) # No --srcdir option. We are building in place.
51745 ac_srcdir=.
51746 if test -z "$ac_top_builddir"; then
51747 ac_top_srcdir=.
51748 else
51749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51750 fi ;;
51751 [\\/]* | ?:[\\/]* ) # Absolute path.
51752 ac_srcdir=$srcdir$ac_dir_suffix;
51753 ac_top_srcdir=$srcdir ;;
51754 *) # Relative path.
51755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51757esac
ac1cb8d3
VS
51758
51759# Do not use `cd foo && pwd` to compute absolute paths, because
51760# the directories may not exist.
51761case `pwd` in
51762.) ac_abs_builddir="$ac_dir";;
51763*)
51764 case "$ac_dir" in
51765 .) ac_abs_builddir=`pwd`;;
51766 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51767 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51768 esac;;
51769esac
51770case $ac_abs_builddir in
51771.) ac_abs_top_builddir=${ac_top_builddir}.;;
51772*)
51773 case ${ac_top_builddir}. in
51774 .) ac_abs_top_builddir=$ac_abs_builddir;;
51775 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51776 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51777 esac;;
51778esac
51779case $ac_abs_builddir in
51780.) ac_abs_srcdir=$ac_srcdir;;
51781*)
51782 case $ac_srcdir in
51783 .) ac_abs_srcdir=$ac_abs_builddir;;
51784 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51785 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51786 esac;;
51787esac
51788case $ac_abs_builddir in
51789.) ac_abs_top_srcdir=$ac_top_srcdir;;
51790*)
51791 case $ac_top_srcdir in
51792 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51793 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51794 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51795 esac;;
51796esac
a848cd7e
SC
51797
51798
51799 cd $ac_dir
51800
51801 # Check for guested configure; otherwise get Cygnus style configure.
51802 if test -f $ac_srcdir/configure.gnu; then
51803 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51804 elif test -f $ac_srcdir/configure; then
51805 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51806 elif test -f $ac_srcdir/configure.in; then
51807 ac_sub_configure=$ac_configure
51808 else
51809 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51810echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51811 ac_sub_configure=
51812 fi
51813
51814 # The recursion is here.
51815 if test -n "$ac_sub_configure"; then
51816 # Make the cache file name correct relative to the subdirectory.
51817 case $cache_file in
51818 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51819 *) # Relative path.
ac1cb8d3 51820 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
51821 esac
51822
51823 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51824echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51825 # The eval makes quoting arguments work.
51826 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51827 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51828 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51829echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51830 { (exit 1); exit 1; }; }
51831 fi
51832
6a5c9b3f 51833 cd $ac_popdir
a848cd7e
SC
51834 done
51835fi
51836
51837
51838echo
77ffb593 51839echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 51840echo ""
c2e9ada4 51841echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 51842echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 51843
77ffb593
JS
51844echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
51845echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
51846echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 51847
77ffb593 51848echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
51849echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
51850echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 51851
77ffb593 51852echo " Which libraries should wxWidgets use?"
a848cd7e
SC
51853echo " jpeg ${wxUSE_LIBJPEG-none}"
51854echo " png ${wxUSE_LIBPNG-none}"
51855echo " regex ${wxUSE_REGEX}"
51856echo " tiff ${wxUSE_LIBTIFF-none}"
51857if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51858echo " xpm ${wxUSE_LIBXPM-none}"
51859fi
51860echo " zlib ${wxUSE_ZLIB}"
51861echo " odbc ${wxUSE_ODBC}"
51862echo " expat ${wxUSE_EXPAT}"
51863echo " libmspack ${wxUSE_LIBMSPACK}"
51864echo " sdl ${wxUSE_LIBSDL}"
51865
51866echo ""
51867