]> git.saurik.com Git - wxWidgets.git/blame - configure
Not everything has to be virtual.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
b3c86150 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850ac_env_GST_CFLAGS_value=$GST_CFLAGS
851ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853ac_env_GST_LIBS_set=${GST_LIBS+set}
854ac_env_GST_LIBS_value=$GST_LIBS
855ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
857
858#
859# Report the --help message.
860#
861if test "$ac_init_help" = "long"; then
862 # Omit some internal or obsolete options to make the list less imposing.
863 # This message is too long to be a string in the A/UX 3.1 sh.
864 cat <<_ACEOF
dd8df4fc 865\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
866
867Usage: $0 [OPTION]... [VAR=VALUE]...
868
869To assign environment variables (e.g., CC, CFLAGS...), specify them as
870VAR=VALUE. See below for descriptions of some of the useful variables.
871
872Defaults for the options are specified in brackets.
873
874Configuration:
875 -h, --help display this help and exit
876 --help=short display options specific to this package
877 --help=recursive display the short help of all the included packages
878 -V, --version display version information and exit
879 -q, --quiet, --silent do not print \`checking...' messages
880 --cache-file=FILE cache test results in FILE [disabled]
881 -C, --config-cache alias for \`--cache-file=config.cache'
882 -n, --no-create do not create output files
883 --srcdir=DIR find the sources in DIR [configure dir or \`..']
884
885_ACEOF
886
887 cat <<_ACEOF
888Installation directories:
889 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 890 [$ac_default_prefix]
a848cd7e 891 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 892 [PREFIX]
a848cd7e
SC
893
894By default, \`make install' will install all the files in
895\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
896an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897for instance \`--prefix=\$HOME'.
898
899For better control, use the options below.
900
901Fine tuning of the installation directories:
902 --bindir=DIR user executables [EPREFIX/bin]
903 --sbindir=DIR system admin executables [EPREFIX/sbin]
904 --libexecdir=DIR program executables [EPREFIX/libexec]
905 --datadir=DIR read-only architecture-independent data [PREFIX/share]
906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
909 --libdir=DIR object code libraries [EPREFIX/lib]
910 --includedir=DIR C header files [PREFIX/include]
911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
912 --infodir=DIR info documentation [PREFIX/info]
913 --mandir=DIR man documentation [PREFIX/man]
914_ACEOF
915
916 cat <<\_ACEOF
917
918X features:
919 --x-includes=DIR X include files are in DIR
920 --x-libraries=DIR X library files are in DIR
921
922System types:
923 --build=BUILD configure for building on BUILD [guessed]
924 --host=HOST cross-compile to build programs to run on HOST [BUILD]
925 --target=TARGET configure for building compilers for TARGET [HOST]
926_ACEOF
927fi
928
929if test -n "$ac_init_help"; then
930 case $ac_init_help in
dd8df4fc 931 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
932 esac
933 cat <<\_ACEOF
934
935Optional Features:
936 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
937 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
938 --enable-gui use GUI classes
77ffb593
JS
939 --enable-monolithic build wxWidgets as single library
940 --enable-plugins build parts of wxWidgets as loadable components
941 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 942 --enable-nanox use NanoX
f34ca037 943 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
944 --enable-gpe use GNOME PDA Environment features if possible
945 --enable-shared create shared library code
946 --enable-optimise create optimised code
947 --enable-debug same as debug_flag and debug_info
948 --enable-stl use STL for containers
949 --enable-omf use OMF object format
950 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
951 --enable-debug_info create code with debugging information
952 --enable-debug_gdb create code with extra GDB debugging information
953 --enable-debug_cntxt use wxDebugContext
954 --enable-mem_tracing create code with memory tracing
955 --enable-profile create code with profiling information
956 --enable-no_rtti create code without RTTI information
957 --enable-no_exceptions create code without C++ exceptions handling
958 --enable-permissive compile code disregarding strict ANSI
959 --enable-no_deps create code without dependency information
95768535 960 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
961 --enable-compat24 enable wxWidgets 2.4 compatibility
962 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 963 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
964 --enable-intl use internationalization system
965 --enable-config use wxConfig (and derived) classes
966 --enable-protocols use wxProtocol and derived classes
967 --enable-ftp use wxFTP (requires wxProtocol
968 --enable-http use wxHTTP (requires wxProtocol
969 --enable-fileproto use wxFileProto class (requires wxProtocol
970 --enable-sockets use socket/network classes
971 --enable-ole use OLE classes (Win32 only)
972 --enable-dataobj use data object classes
973 --enable-ipc use interprocess communication (wxSocket etc.)
974 --enable-apple_ieee use the Apple IEEE codec
81f90336 975 --enable-arcstream use wxArchive streams
eaff0f0d 976 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 977 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
978 --enable-cmdline use wxCmdLineParser class
979 --enable-datetime use wxDateTime class
36b6448c 980 --enable-debugreport use wxDebugReport class
a848cd7e
SC
981 --enable-dialupman use dialup network classes
982 --enable-dynlib use wxLibrary class for DLL loading
983 --enable-dynamicloader use (new) wxDynamicLibrary class
984 --enable-exceptions build exception-safe library
985 --enable-ffile use wxFFile class
986 --enable-file use wxFile class
987 --enable-filesystem use virtual file systems classes
988 --enable-fontmap use font encodings conversion classes
989 --enable-fs_inet use virtual HTTP/FTP filesystems
990 --enable-fs_zip use virtual ZIP filesystems
991 --enable-geometry use geometry class
992 --enable-log use logging system
993 --enable-longlong use wxLongLong class
994 --enable-mimetype use wxMimeTypesManager
995 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
996 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 997 --enable-std_iostreams use standard C++ stream classes
59746b65 998 --enable-std_string use standard C++ string classes
07158944 999 --enable-stdpaths use wxStandardPaths class
a848cd7e 1000 --enable-stopwatch use wxStopWatch class
07158944 1001 --enable-streams use wxStream etc classes
a848cd7e
SC
1002 --enable-sysoptions use wxSystemOptions
1003 --enable-textbuf use wxTextBuffer class
1004 --enable-textfile use wxTextFile class
1005 --enable-timer use wxTimer class
1006 --enable-unicode compile wxString with Unicode support
1007 --enable-sound use wxSound class
3b57de8b 1008 --enable-mediactrl use wxMediaCtrl class
15291213 1009 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1010 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1011 --enable-zipstream use wxZip streams
a848cd7e 1012 --enable-url use wxURL class
ca5c6ac3 1013 --enable-variant use wxVariant class
a848cd7e
SC
1014 --enable-protocol use wxProtocol class
1015 --enable-protocol-http HTTP support in wxProtocol
1016 --enable-protocol-ftp FTP support in wxProtocol
1017 --enable-protocol-file FILE support in wxProtocol
1018 --enable-threads use threads
1019 --enable-docview use document view architecture
1020 --enable-help use help subsystem
1021 --enable-mshtmlhelp use MS HTML Help (win32)
1022 --enable-html use wxHTML sub-library
1023 --enable-htmlhelp use wxHTML-based help
9a8f0513 1024 --enable-xrc use XRC resources sub-library
3f60522a 1025 --enable-aui use AUI docking library
a848cd7e
SC
1026 --enable-constraints use layout-constraints system
1027 --enable-printarch use printing architecture
1028 --enable-mdi use multiple document interface architecture
8a7b1113 1029 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1030 --enable-loggui use standard GUI logger
1031 --enable-logwin use wxLogWindow
1032 --enable-logdialog use wxLogDialog
646b6ec1 1033 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1034 --enable-richtext use wxRichTextCtrl
f43426c1 1035 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1036 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1037 --enable-prologio not available; see contrib
1038 --enable-resources not available; see contrib
1039 --enable-clipboard use wxClipboard class
1040 --enable-dnd use Drag'n'Drop classes
1041 --enable-metafile use win32 metafiles
1042 --enable-controls use all usual controls
1043 --enable-accel use accelerators
1044 --enable-button use wxButton class
1045 --enable-bmpbutton use wxBitmapButton class
95a46303 1046 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1047 --enable-calendar use wxCalendarCtrl class
1048 --enable-caret use wxCaret class
1049 --enable-checkbox use wxCheckBox class
1050 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1051 --enable-choice use wxChoice class
92bbdbcd 1052 --enable-choicebook use wxChoicebook class
e9263684 1053 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1054 --enable-combobox use wxComboBox class
a57d600f 1055 --enable-comboctrl use wxComboCtrl class
da98e9be 1056 --enable-datepick use wxDatePickerCtrl class
e9263684 1057 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1058 --enable-display use wxDisplay class
e9263684
VZ
1059 --enable-filepicker use wxFilePickerCtrl class
1060 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1061 --enable-gauge use wxGauge class
1062 --enable-grid use wxGrid class
20e34ecc 1063 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1064 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1065 --enable-imaglist use wxImageList class
1066 --enable-listbook use wxListbook class
1067 --enable-listbox use wxListBox class
1068 --enable-listctrl use wxListCtrl class
1069 --enable-notebook use wxNotebook class
a57d600f 1070 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1071 --enable-radiobox use wxRadioBox class
1072 --enable-radiobtn use wxRadioButton class
1073 --enable-sash use wxSashWindow class
1074 --enable-scrollbar use wxScrollBar class and scrollable windows
1075 --enable-slider use wxSlider class
1076 --enable-spinbtn use wxSpinButton class
1077 --enable-spinctrl use wxSpinCtrl class
1078 --enable-splitter use wxSplitterWindow class
1079 --enable-statbmp use wxStaticBitmap class
1080 --enable-statbox use wxStaticBox class
1081 --enable-statline use wxStaticLine class
1082 --enable-stattext use wxStaticText class
1083 --enable-statusbar use wxStatusBar class
1084 --enable-tabdialog use wxTabControl class
1085 --enable-textctrl use wxTextCtrl class
1086 --enable-togglebtn use wxToggleButton class
1087 --enable-toolbar use wxToolBar class
1088 --enable-tbarnative use native wxToolBar class
0093c2fc 1089 --enable-treebook use wxTreebook class
5ec3bc43 1090 --enable-toolbook use wxToolbook class
a848cd7e
SC
1091 --enable-treectrl use wxTreeCtrl class
1092 --enable-tipwindow use wxTipWindow class
1093 --enable-popupwin use wxPopUpWindow class
1094 --enable-commondlg use all common dialogs
1095 --enable-choicedlg use wxChoiceDialog
1096 --enable-coldlg use wxColourDialog
1097 --enable-filedlg use wxFileDialog
1098 --enable-finddlg use wxFindReplaceDialog
1099 --enable-fontdlg use wxFontDialog
1100 --enable-dirdlg use wxDirDialog
1101 --enable-msgdlg use wxMessageDialog
1102 --enable-numberdlg use wxNumberEntryDialog
1103 --enable-splash use wxSplashScreen
1104 --enable-textdlg use wxTextDialog
1105 --enable-tipdlg use startup tips
1106 --enable-progressdlg use wxProgressDialog
1107 --enable-wizarddlg use wxWizard
1108 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1109 --enable-miniframe use wxMiniFrame class
1110 --enable-tooltips use wxToolTip class
1111 --enable-splines use spline drawing code
fbe2ca43 1112 --enable-mousewheel use mousewheel
a848cd7e
SC
1113 --enable-validators use wxValidator and derived classes
1114 --enable-busyinfo use wxBusyInfo
4cb1d3da 1115 --enable-joystick use wxJoystick
38b4a946 1116 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1117 --enable-dragimage use wxDragImage
1118 --enable-accessibility enable accessibility support
38b4a946 1119 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1120 --enable-palette use wxPalette class
1121 --enable-image use wxImage class
1122 --enable-gif use gif images (GIF file format)
1123 --enable-pcx use pcx images (PCX file format)
1124 --enable-iff use iff images (IFF file format)
1125 --enable-pnm use pnm images (PNM file format)
1126 --enable-xpm use xpm images (XPM file format)
1127 --enable-icocur use Windows ICO and CUR formats
77ffb593 1128 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1129 --enable-vendor=VENDOR vendor name (win32 DLL only)
1130 --disable-largefile omit support for large files
1131 --disable-gtktest do not try to compile and run a test GTK+ program
1132 --disable-gtktest Do not try to compile and run a test GTK program
1133 --disable-sdltest Do not try to compile and run a test SDL program
1134 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1135 --disable-dependency-tracking
1136 don't use dependency tracking even if the compiler
1137 can
ebee3cd0
VS
1138 --disable-precomp-headers
1139 don't use precompiled headers even if compiler can
a848cd7e
SC
1140
1141Optional Packages:
1142 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1143 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1144 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1145 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1146 --with-motif use Motif/Lesstif
1147 --with-mac use Mac OS X
1148 --with-cocoa use Cocoa
1149 --with-wine use Wine
1150 --with-msw use MS-Windows
1151 --with-pm use OS/2 Presentation Manager
1152 --with-mgl use SciTech MGL
b3c86150 1153 --with-directfb use DirectFB
a848cd7e
SC
1154 --with-microwin use MicroWindows
1155 --with-x11 use X11
1156 --with-libpng use libpng (PNG image format)
1157 --with-libjpeg use libjpeg (JPEG file format)
1158 --with-libtiff use libtiff (TIFF file format)
1159 --with-libxpm use libxpm (XPM file format)
1160 --with-libmspack use libmspack (CHM help files loading)
1161 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1162 --with-gnomeprint use GNOME print for printing under GNOME
1163 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1164 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1165 --with-opengl use OpenGL (or Mesa)
4353a8df 1166 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1167 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1168 --with-regex enable support for wxRegEx class
1169 --with-zlib use zlib for LZW compression
1170 --with-odbc use the IODBC and wxODBC classes
1171 --with-expat enable XML support using expat parser
ceec2216 1172 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1173 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1174 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1175 --with-x use the X Window System
1176 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1177 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1178 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1179 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1180 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1181
1182Some influential environment variables:
dcc1b6ad
VS
1183 CC C compiler command
1184 CFLAGS C compiler flags
1185 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1186 nonstandard directory <lib dir>
1187 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1188 headers in a nonstandard directory <include dir>
1189 CPP C preprocessor
1190 CXX C++ compiler command
1191 CXXFLAGS C++ compiler flags
1192 CXXCPP C++ preprocessor
3ecd9f92 1193 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1194 DIRECTFB_CFLAGS
1195 C compiler flags for DIRECTFB, overriding pkg-config
1196 DIRECTFB_LIBS
1197 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1198 PANGOX_CFLAGS
1199 C compiler flags for PANGOX, overriding pkg-config
1200 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1201 PANGOFT2_CFLAGS
1202 C compiler flags for PANGOFT2, overriding pkg-config
1203 PANGOFT2_LIBS
1204 linker flags for PANGOFT2, overriding pkg-config
1205 PANGOXFT_CFLAGS
1206 C compiler flags for PANGOXFT, overriding pkg-config
1207 PANGOXFT_LIBS
1208 linker flags for PANGOXFT, overriding pkg-config
1209 LIBGNOMEPRINTUI_CFLAGS
1210 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1211 LIBGNOMEPRINTUI_LIBS
1212 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1213 GNOMEVFS_CFLAGS
1214 C compiler flags for GNOMEVFS, overriding pkg-config
1215 GNOMEVFS_LIBS
1216 linker flags for GNOMEVFS, overriding pkg-config
1217 HILDON_CFLAGS
1218 C compiler flags for HILDON, overriding pkg-config
1219 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1220 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1221 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1222
1223Use these variables to override the choices made by `configure' or to help
1224it to find libraries and programs with nonstandard names/locations.
1225
77ffb593 1226Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1227_ACEOF
1228fi
1229
1230if test "$ac_init_help" = "recursive"; then
1231 # If there are subdirs, report their specific --help.
1232 ac_popdir=`pwd`
1233 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1234 test -d $ac_dir || continue
1235 ac_builddir=.
1236
1237if test "$ac_dir" != .; then
1238 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1239 # A "../" for each directory in $ac_dir_suffix.
1240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1241else
1242 ac_dir_suffix= ac_top_builddir=
1243fi
1244
1245case $srcdir in
1246 .) # No --srcdir option. We are building in place.
1247 ac_srcdir=.
1248 if test -z "$ac_top_builddir"; then
1249 ac_top_srcdir=.
1250 else
1251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1252 fi ;;
1253 [\\/]* | ?:[\\/]* ) # Absolute path.
1254 ac_srcdir=$srcdir$ac_dir_suffix;
1255 ac_top_srcdir=$srcdir ;;
1256 *) # Relative path.
1257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1258 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1259esac
ac1cb8d3
VS
1260
1261# Do not use `cd foo && pwd` to compute absolute paths, because
1262# the directories may not exist.
1263case `pwd` in
1264.) ac_abs_builddir="$ac_dir";;
1265*)
1266 case "$ac_dir" in
1267 .) ac_abs_builddir=`pwd`;;
1268 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1269 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1270 esac;;
1271esac
1272case $ac_abs_builddir in
1273.) ac_abs_top_builddir=${ac_top_builddir}.;;
1274*)
1275 case ${ac_top_builddir}. in
1276 .) ac_abs_top_builddir=$ac_abs_builddir;;
1277 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1278 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1279 esac;;
1280esac
1281case $ac_abs_builddir in
1282.) ac_abs_srcdir=$ac_srcdir;;
1283*)
1284 case $ac_srcdir in
1285 .) ac_abs_srcdir=$ac_abs_builddir;;
1286 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1287 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1288 esac;;
1289esac
1290case $ac_abs_builddir in
1291.) ac_abs_top_srcdir=$ac_top_srcdir;;
1292*)
1293 case $ac_top_srcdir in
1294 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1295 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1296 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1297 esac;;
1298esac
a848cd7e
SC
1299
1300 cd $ac_dir
1301 # Check for guested configure; otherwise get Cygnus style configure.
1302 if test -f $ac_srcdir/configure.gnu; then
1303 echo
1304 $SHELL $ac_srcdir/configure.gnu --help=recursive
1305 elif test -f $ac_srcdir/configure; then
1306 echo
1307 $SHELL $ac_srcdir/configure --help=recursive
1308 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1309 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1310 echo
1311 $ac_configure --help
1312 else
1313 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1314 fi
ca5c6ac3 1315 cd "$ac_popdir"
a848cd7e
SC
1316 done
1317fi
1318
1319test -n "$ac_init_help" && exit 0
1320if $ac_init_version; then
1321 cat <<\_ACEOF
dd8df4fc 1322wxWidgets configure 2.7.0
ac1cb8d3 1323generated by GNU Autoconf 2.59
a848cd7e 1324
ac1cb8d3 1325Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1326This configure script is free software; the Free Software Foundation
1327gives unlimited permission to copy, distribute and modify it.
1328_ACEOF
1329 exit 0
1330fi
1331exec 5>config.log
1332cat >&5 <<_ACEOF
1333This file contains any messages produced by compilers while
1334running configure, to aid debugging if configure makes a mistake.
1335
dd8df4fc 1336It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1337generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1338
1339 $ $0 $@
1340
1341_ACEOF
1342{
1343cat <<_ASUNAME
1344## --------- ##
1345## Platform. ##
1346## --------- ##
1347
1348hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1349uname -m = `(uname -m) 2>/dev/null || echo unknown`
1350uname -r = `(uname -r) 2>/dev/null || echo unknown`
1351uname -s = `(uname -s) 2>/dev/null || echo unknown`
1352uname -v = `(uname -v) 2>/dev/null || echo unknown`
1353
1354/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1355/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1356
1357/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1358/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1359/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1360hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1361/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1362/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1363/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1364
1365_ASUNAME
1366
1367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368for as_dir in $PATH
1369do
1370 IFS=$as_save_IFS
1371 test -z "$as_dir" && as_dir=.
1372 echo "PATH: $as_dir"
1373done
1374
1375} >&5
1376
1377cat >&5 <<_ACEOF
1378
1379
1380## ----------- ##
1381## Core tests. ##
1382## ----------- ##
1383
1384_ACEOF
1385
1386
1387# Keep a trace of the command line.
1388# Strip out --no-create and --no-recursion so they do not pile up.
1389# Strip out --silent because we don't want to record it for future runs.
1390# Also quote any args containing shell meta-characters.
1391# Make two passes to allow for proper duplicate-argument suppression.
1392ac_configure_args=
1393ac_configure_args0=
1394ac_configure_args1=
1395ac_sep=
1396ac_must_keep_next=false
1397for ac_pass in 1 2
1398do
1399 for ac_arg
1400 do
1401 case $ac_arg in
1402 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1404 | -silent | --silent | --silen | --sile | --sil)
1405 continue ;;
1406 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1407 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1408 esac
1409 case $ac_pass in
1410 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1411 2)
1412 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1413 if test $ac_must_keep_next = true; then
ac1cb8d3 1414 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1415 else
ac1cb8d3
VS
1416 case $ac_arg in
1417 *=* | --config-cache | -C | -disable-* | --disable-* \
1418 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1419 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1420 | -with-* | --with-* | -without-* | --without-* | --x)
1421 case "$ac_configure_args0 " in
1422 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1423 esac
1424 ;;
1425 -* ) ac_must_keep_next=true ;;
1426 esac
a848cd7e
SC
1427 fi
1428 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1429 # Get rid of the leading space.
1430 ac_sep=" "
1431 ;;
1432 esac
1433 done
1434done
1435$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1436$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1437
1438# When interrupted or exit'd, cleanup temporary files, and complete
1439# config.log. We remove comments because anyway the quotes in there
1440# would cause problems or look ugly.
1441# WARNING: Be sure not to use single quotes in there, as some shells,
1442# such as our DU 5.0 friend, will then `close' the trap.
1443trap 'exit_status=$?
1444 # Save into config.log some information that might help in debugging.
1445 {
1446 echo
1447
1448 cat <<\_ASBOX
1449## ---------------- ##
1450## Cache variables. ##
1451## ---------------- ##
1452_ASBOX
1453 echo
1454 # The following way of writing the cache mishandles newlines in values,
1455{
1456 (set) 2>&1 |
1457 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1458 *ac_space=\ *)
1459 sed -n \
ac1cb8d3
VS
1460 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1462 ;;
1463 *)
1464 sed -n \
ac1cb8d3 1465 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1466 ;;
1467 esac;
1468}
1469 echo
1470
1471 cat <<\_ASBOX
1472## ----------------- ##
1473## Output variables. ##
1474## ----------------- ##
1475_ASBOX
1476 echo
1477 for ac_var in $ac_subst_vars
1478 do
1479 eval ac_val=$`echo $ac_var`
1480 echo "$ac_var='"'"'$ac_val'"'"'"
1481 done | sort
1482 echo
1483
1484 if test -n "$ac_subst_files"; then
1485 cat <<\_ASBOX
1486## ------------- ##
1487## Output files. ##
1488## ------------- ##
1489_ASBOX
1490 echo
1491 for ac_var in $ac_subst_files
1492 do
1493 eval ac_val=$`echo $ac_var`
ac1cb8d3 1494 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1495 done | sort
1496 echo
1497 fi
1498
1499 if test -s confdefs.h; then
1500 cat <<\_ASBOX
1501## ----------- ##
1502## confdefs.h. ##
1503## ----------- ##
1504_ASBOX
1505 echo
1506 sed "/^$/d" confdefs.h | sort
1507 echo
1508 fi
1509 test "$ac_signal" != 0 &&
1510 echo "$as_me: caught signal $ac_signal"
1511 echo "$as_me: exit $exit_status"
1512 } >&5
ac1cb8d3 1513 rm -f core *.core &&
a848cd7e
SC
1514 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1515 exit $exit_status
1516 ' 0
1517for ac_signal in 1 2 13 15; do
1518 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1519done
1520ac_signal=0
1521
1522# confdefs.h avoids OS command line length limits that DEFS can exceed.
1523rm -rf conftest* confdefs.h
1524# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1525echo >confdefs.h
1526
1527# Predefined preprocessor variables.
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_NAME "$PACKAGE_NAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_VERSION "$PACKAGE_VERSION"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_STRING "$PACKAGE_STRING"
1546_ACEOF
1547
1548
1549cat >>confdefs.h <<_ACEOF
1550#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1551_ACEOF
1552
1553
1554# Let the site file select an alternate cache file if it wants to.
1555# Prefer explicitly selected file to automatically selected ones.
1556if test -z "$CONFIG_SITE"; then
1557 if test "x$prefix" != xNONE; then
1558 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1559 else
1560 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1561 fi
1562fi
1563for ac_site_file in $CONFIG_SITE; do
1564 if test -r "$ac_site_file"; then
1565 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1566echo "$as_me: loading site script $ac_site_file" >&6;}
1567 sed 's/^/| /' "$ac_site_file" >&5
1568 . "$ac_site_file"
1569 fi
1570done
1571
1572if test -r "$cache_file"; then
1573 # Some versions of bash will fail to source /dev/null (special
1574 # files actually), so we avoid doing that.
1575 if test -f "$cache_file"; then
1576 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1577echo "$as_me: loading cache $cache_file" >&6;}
1578 case $cache_file in
1579 [\\/]* | ?:[\\/]* ) . $cache_file;;
1580 *) . ./$cache_file;;
1581 esac
1582 fi
1583else
1584 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1585echo "$as_me: creating cache $cache_file" >&6;}
1586 >$cache_file
1587fi
1588
1589# Check that the precious variables saved in the cache have kept the same
1590# value.
1591ac_cache_corrupted=false
1592for ac_var in `(set) 2>&1 |
ac1cb8d3 1593 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1595 eval ac_new_set=\$ac_env_${ac_var}_set
1596 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1597 eval ac_new_val="\$ac_env_${ac_var}_value"
1598 case $ac_old_set,$ac_new_set in
1599 set,)
1600 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1601echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1602 ac_cache_corrupted=: ;;
1603 ,set)
1604 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1605echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1606 ac_cache_corrupted=: ;;
1607 ,);;
1608 *)
1609 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1610 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1611echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1612 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1613echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1614 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1615echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1616 ac_cache_corrupted=:
a848cd7e
SC
1617 fi;;
1618 esac
1619 # Pass precious variables to config.status.
1620 if test "$ac_new_set" = set; then
1621 case $ac_new_val in
1622 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1623 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 *) ac_arg=$ac_var=$ac_new_val ;;
1625 esac
1626 case " $ac_configure_args " in
1627 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1628 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1629 esac
1630 fi
1631done
1632if $ac_cache_corrupted; then
1633 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1634echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1635 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1636echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1637 { (exit 1); exit 1; }; }
1638fi
1639
1640ac_ext=c
1641ac_cpp='$CPP $CPPFLAGS'
1642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1644ac_compiler_gnu=$ac_cv_c_compiler_gnu
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675ac_aux_dir=
1676for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1677 if 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/install.sh; then
1682 ac_aux_dir=$ac_dir
1683 ac_install_sh="$ac_aux_dir/install.sh -c"
1684 break
1685 elif test -f $ac_dir/shtool; then
1686 ac_aux_dir=$ac_dir
1687 ac_install_sh="$ac_aux_dir/shtool install -c"
1688 break
1689 fi
1690done
1691if test -z "$ac_aux_dir"; then
1692 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1693echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1694 { (exit 1); exit 1; }; }
1695fi
1696ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1697ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1698ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1699
1700# Make sure we can run config.sub.
1701$ac_config_sub sun4 >/dev/null 2>&1 ||
1702 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1703echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1704 { (exit 1); exit 1; }; }
1705
1706echo "$as_me:$LINENO: checking build system type" >&5
1707echo $ECHO_N "checking build system type... $ECHO_C" >&6
1708if test "${ac_cv_build+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 ac_cv_build_alias=$build_alias
1712test -z "$ac_cv_build_alias" &&
1713 ac_cv_build_alias=`$ac_config_guess`
1714test -z "$ac_cv_build_alias" &&
1715 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1716echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1717 { (exit 1); exit 1; }; }
1718ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1719 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1720echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1721 { (exit 1); exit 1; }; }
1722
1723fi
1724echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1725echo "${ECHO_T}$ac_cv_build" >&6
1726build=$ac_cv_build
1727build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1728build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1729build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1730
1731
1732echo "$as_me:$LINENO: checking host system type" >&5
1733echo $ECHO_N "checking host system type... $ECHO_C" >&6
1734if test "${ac_cv_host+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736else
1737 ac_cv_host_alias=$host_alias
1738test -z "$ac_cv_host_alias" &&
1739 ac_cv_host_alias=$ac_cv_build_alias
1740ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1741 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1742echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745fi
1746echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1747echo "${ECHO_T}$ac_cv_host" >&6
1748host=$ac_cv_host
1749host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1750host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1751host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1752
1753
1754echo "$as_me:$LINENO: checking target system type" >&5
1755echo $ECHO_N "checking target system type... $ECHO_C" >&6
1756if test "${ac_cv_target+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759 ac_cv_target_alias=$target_alias
1760test "x$ac_cv_target_alias" = "x" &&
1761 ac_cv_target_alias=$ac_cv_host_alias
1762ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1763 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1764echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1765 { (exit 1); exit 1; }; }
1766
1767fi
1768echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1769echo "${ECHO_T}$ac_cv_target" >&6
1770target=$ac_cv_target
1771target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1772target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1773target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1774
1775
1776# The aliases save the names the user supplied, while $host etc.
1777# will get canonicalized.
1778test -n "$target_alias" &&
1779 test "$program_prefix$program_suffix$program_transform_name" = \
1780 NONENONEs,x,x, &&
1781 program_prefix=${target_alias}-
1782
1783
1784
ceec2216 1785wx_major_version_number=2
dd8df4fc
VZ
1786wx_minor_version_number=7
1787wx_release_number=0
5b5d4ef2 1788wx_subrelease_number=1
a848cd7e 1789
ceec2216
RL
1790WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1791WX_VERSION=$WX_RELEASE.$wx_release_number
1792WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1793
ceec2216 1794WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1795
a848cd7e
SC
1796
1797
1798
1799USE_UNIX=1
1800USE_OS2=0
1801USE_WIN32=0
1802USE_DOS=0
1803USE_BEOS=0
1804USE_MAC=0
1805
1806USE_AIX=
1807USE_BSD= USE_DARWIN= USE_FREEBSD=
1808USE_GNU= USE_HPUX=
1809USE_LINUX=
1810USE_NETBSD=
1811USE_OPENBSD=
1812USE_OSF= USE_SGI=
1813USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1814USE_ULTRIX=
1815USE_UNIXWARE=
1816
1817USE_ALPHA=
1818
1819NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1820
b3c86150 1821ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1822
1823DEFAULT_wxUSE_COCOA=0
1824DEFAULT_wxUSE_GTK=0
1825DEFAULT_wxUSE_MAC=0
1826DEFAULT_wxUSE_MGL=0
1827DEFAULT_wxUSE_MICROWIN=0
1828DEFAULT_wxUSE_MOTIF=0
1829DEFAULT_wxUSE_MSW=0
1830DEFAULT_wxUSE_PM=0
1831DEFAULT_wxUSE_X11=0
b3c86150 1832DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1833
1834DEFAULT_DEFAULT_wxUSE_COCOA=0
1835DEFAULT_DEFAULT_wxUSE_GTK=0
1836DEFAULT_DEFAULT_wxUSE_MAC=0
1837DEFAULT_DEFAULT_wxUSE_MGL=0
1838DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1839DEFAULT_DEFAULT_wxUSE_MOTIF=0
1840DEFAULT_DEFAULT_wxUSE_MSW=0
1841DEFAULT_DEFAULT_wxUSE_PM=0
1842DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1843DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1844
1845PROGRAM_EXT=
1846SO_SUFFIX=so
1847SAMPLES_RPATH_FLAG=
1848SAMPLES_RPATH_POSTLINK=
1849
a03b8b04
RD
1850DEFAULT_STD_FLAG=yes
1851
a848cd7e
SC
1852case "${host}" in
1853 *-hp-hpux* )
1854 USE_HPUX=1
1855 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1857 SO_SUFFIX=sl
1858 cat >>confdefs.h <<\_ACEOF
1859#define __HPUX__ 1
1860_ACEOF
1861
2eef8513 1862
c92ad099 1863 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1864 ;;
1865 *-*-linux* )
1866 USE_LINUX=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __LINUX__ 1
1869_ACEOF
1870
1871 TMP=`uname -m`
1872 if test "x$TMP" = "xalpha"; then
1873 USE_ALPHA=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 fi
1879 DEFAULT_DEFAULT_wxUSE_GTK=1
1880 ;;
1881 *-*-gnu* | *-*-k*bsd*-gnu )
1882 USE_GNU=1
1883 TMP=`uname -m`
1884 if test "x$TMP" = "xalpha"; then
1885 USE_ALPHA=1
1886 cat >>confdefs.h <<\_ACEOF
1887#define __ALPHA__ 1
1888_ACEOF
1889
1890 fi
1891 DEFAULT_DEFAULT_wxUSE_GTK=1
1892 ;;
1893 *-*-irix5* | *-*-irix6* )
1894 USE_SGI=1
1895 USE_SVR4=1
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SGI__ 1
1898_ACEOF
1899
1900 cat >>confdefs.h <<\_ACEOF
1901#define __SVR4__ 1
1902_ACEOF
1903
1904 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1905 ;;
1906 *-*-solaris2* )
1907 USE_SUN=1
1908 USE_SOLARIS=1
1909 USE_SVR4=1
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SUN__ 1
1912_ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SOLARIS__ 1
1916_ACEOF
1917
1918 cat >>confdefs.h <<\_ACEOF
1919#define __SVR4__ 1
1920_ACEOF
1921
1922 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1923 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1924 ;;
1925 *-*-sunos4* )
1926 USE_SUN=1
1927 USE_SUNOS=1
1928 USE_BSD=1
1929 cat >>confdefs.h <<\_ACEOF
1930#define __SUN__ 1
1931_ACEOF
1932
1933 cat >>confdefs.h <<\_ACEOF
1934#define __SUNOS__ 1
1935_ACEOF
1936
1937 cat >>confdefs.h <<\_ACEOF
1938#define __BSD__ 1
1939_ACEOF
1940
1941 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1942 ;;
1943 *-*-freebsd*)
1944 USE_BSD=1
1945 USE_FREEBSD=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __FREEBSD__ 1
1948_ACEOF
1949
1950 cat >>confdefs.h <<\_ACEOF
1951#define __BSD__ 1
1952_ACEOF
1953
1954 DEFAULT_DEFAULT_wxUSE_GTK=1
1955 ;;
c9a66001 1956 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1957 USE_BSD=1
1958 USE_OPENBSD=1
1959 cat >>confdefs.h <<\_ACEOF
1960#define __OPENBSD__ 1
1961_ACEOF
1962
1963 cat >>confdefs.h <<\_ACEOF
1964#define __BSD__ 1
1965_ACEOF
1966
1967 DEFAULT_DEFAULT_wxUSE_GTK=1
1968 ;;
1969 *-*-netbsd*)
1970 USE_BSD=1
1971 USE_NETBSD=1
1972 cat >>confdefs.h <<\_ACEOF
1973#define __NETBSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __BSD__ 1
1978_ACEOF
1979
1980 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1981 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1982
def7c04a 1983 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1984 ;;
1985 *-*-osf* )
1986 USE_ALPHA=1
1987 USE_OSF=1
1988 cat >>confdefs.h <<\_ACEOF
1989#define __ALPHA__ 1
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define __OSF__ 1
1994_ACEOF
1995
1996 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1997 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1998 ;;
1999 *-*-dgux5* )
2000 USE_ALPHA=1
2001 USE_SVR4=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __ALPHA__ 1
2004_ACEOF
2005
2006 cat >>confdefs.h <<\_ACEOF
2007#define __SVR4__ 1
2008_ACEOF
2009
2010 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2011 ;;
2012 *-*-sysv5* )
2013 USE_SYSV=1
2014 USE_SVR4=1
2015 cat >>confdefs.h <<\_ACEOF
2016#define __SYSV__ 1
2017_ACEOF
2018
2019 cat >>confdefs.h <<\_ACEOF
2020#define __SVR4__ 1
2021_ACEOF
2022
2023 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2024 ;;
2025 *-*-aix* )
2026 USE_AIX=1
2027 USE_SYSV=1
2028 USE_SVR4=1
2029 SO_SUFFIX=a
2030 cat >>confdefs.h <<\_ACEOF
2031#define __AIX__ 1
2032_ACEOF
2033
2034 cat >>confdefs.h <<\_ACEOF
2035#define __SYSV__ 1
2036_ACEOF
2037
2038 cat >>confdefs.h <<\_ACEOF
2039#define __SVR4__ 1
2040_ACEOF
2041
2042 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2043 ;;
2044
2045 *-*-*UnixWare*)
2046 USE_SYSV=1
2047 USE_SVR4=1
2048 USE_UNIXWARE=1
2049 cat >>confdefs.h <<\_ACEOF
2050#define __UNIXWARE__ 1
2051_ACEOF
2052
2053 ;;
2054
2055 *-*-cygwin* | *-*-mingw32* )
2056 SO_SUFFIX=dll
2057 PROGRAM_EXT=".exe"
a848cd7e 2058 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2059 DEFAULT_STD_FLAG=no
a848cd7e
SC
2060 ;;
2061
2062 *-pc-msdosdjgpp )
2063 USE_UNIX=0
2064 USE_DOS=1
2065 cat >>confdefs.h <<\_ACEOF
2066#define __DOS__ 1
2067_ACEOF
2068
2069 PROGRAM_EXT=".exe"
2070 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2071 ;;
2072
2073 *-pc-os2_emx | *-pc-os2-emx )
2074 cat >>confdefs.h <<\_ACEOF
2075#define __EMX__ 1
2076_ACEOF
2077
2078 USE_OS2=1
2079 cat >>confdefs.h <<\_ACEOF
2080#define __OS2__ 1
2081_ACEOF
2082
2083 PROGRAM_EXT=".exe"
2084 DEFAULT_DEFAULT_wxUSE_PM=1
2085 CXX=gcc
2086 LDFLAGS="$LDFLAGS -Zcrtdll"
2087 ac_executable_extensions=".exe"
2088 export ac_executable_extensions
2089 ac_save_IFS="$IFS"
2090 IFS='\\'
2091 ac_TEMP_PATH=
2092 for ac_dir in $PATH; do
2093 IFS=$ac_save_IFS
2094 if test -z "$ac_TEMP_PATH"; then
2095 ac_TEMP_PATH="$ac_dir"
2096 else
2097 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2098 fi
2099 done
2100 export PATH="$ac_TEMP_PATH"
2101 unset ac_TEMP_PATH
a03b8b04 2102 DEFAULT_STD_FLAG=no
a848cd7e
SC
2103 ;;
2104
cfda0ea8 2105 *-*-darwin* )
a848cd7e
SC
2106 USE_BSD=1
2107 USE_DARWIN=1
2108 SO_SUFFIX=dylib
2109 cat >>confdefs.h <<\_ACEOF
2110#define __BSD__ 1
2111_ACEOF
2112
2113 cat >>confdefs.h <<\_ACEOF
2114#define __DARWIN__ 1
a848cd7e
SC
2115_ACEOF
2116
2117 cat >>confdefs.h <<\_ACEOF
2118#define TARGET_CARBON 1
2119_ACEOF
2120
2121 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2122 DEFAULT_STD_FLAG=no
a848cd7e 2123 ;;
1e9e8aba
DE
2124 powerpc-apple-macos* )
2125 USE_UNIX=0
2126 ac_cv_c_bigendian=yes
2127 SO_SUFFIX=shlib
2128 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2129 DEFAULT_STD_FLAG=no
1e9e8aba 2130 ;;
a848cd7e
SC
2131
2132 *-*-beos* )
2133 USE_BEOS=1
2134 cat >>confdefs.h <<\_ACEOF
2135#define __BEOS__ 1
2136_ACEOF
2137
2138 ;;
2139
2140 *)
c9a66001
VZ
2141 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2142echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2143 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2144echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2145
2146 DEFAULT_DEFAULT_wxUSE_X11=1
2147 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2148esac
2149
2150
2151
2152
2153 wx_arg_cache_file="configarg.cache"
2154 echo "loading argument cache $wx_arg_cache_file"
2155 rm -f ${wx_arg_cache_file}.tmp
2156 touch ${wx_arg_cache_file}.tmp
2157 touch ${wx_arg_cache_file}
2158
2159
2160DEBUG_CONFIGURE=0
2161if test $DEBUG_CONFIGURE = 1; then
2162 DEFAULT_wxUSE_UNIVERSAL=no
2163 DEFAULT_wxUSE_STL=no
2164
2165 DEFAULT_wxUSE_NANOX=no
2166
2167 DEFAULT_wxUSE_THREADS=yes
2168
5acfd58d 2169 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2170 DEFAULT_wxUSE_OPTIMISE=no
2171 DEFAULT_wxUSE_PROFILE=no
2172 DEFAULT_wxUSE_NO_DEPS=no
2173 DEFAULT_wxUSE_NO_RTTI=no
2174 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2175 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2176 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2177 DEFAULT_wxUSE_PERMISSIVE=no
2178 DEFAULT_wxUSE_DEBUG_FLAG=yes
2179 DEFAULT_wxUSE_DEBUG_INFO=yes
2180 DEFAULT_wxUSE_DEBUG_GDB=yes
2181 DEFAULT_wxUSE_MEM_TRACING=no
2182 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2183 DEFAULT_wxUSE_DMALLOC=no
2184 DEFAULT_wxUSE_APPLE_IEEE=no
2185
2186 DEFAULT_wxUSE_EXCEPTIONS=no
2187 DEFAULT_wxUSE_LOG=yes
2188 DEFAULT_wxUSE_LOGWINDOW=no
2189 DEFAULT_wxUSE_LOGGUI=no
2190 DEFAULT_wxUSE_LOGDIALOG=no
2191
2192 DEFAULT_wxUSE_GUI=yes
2193 DEFAULT_wxUSE_CONTROLS=no
2194
2195 DEFAULT_wxUSE_REGEX=no
2196 DEFAULT_wxUSE_XML=no
2197 DEFAULT_wxUSE_EXPAT=no
2198 DEFAULT_wxUSE_ZLIB=no
2199 DEFAULT_wxUSE_LIBPNG=no
2200 DEFAULT_wxUSE_LIBJPEG=no
2201 DEFAULT_wxUSE_LIBTIFF=no
2202 DEFAULT_wxUSE_LIBXPM=no
2203 DEFAULT_wxUSE_LIBMSPACK=no
2204 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2205 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2206 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2207 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2208 DEFAULT_wxUSE_ODBC=no
2209 DEFAULT_wxUSE_OPENGL=no
2210
2211 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2212 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2213 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2214 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2215 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2216 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2217 DEFAULT_wxUSE_CMDLINE_PARSER=no
2218 DEFAULT_wxUSE_DATETIME=no
2219 DEFAULT_wxUSE_TIMER=no
2220 DEFAULT_wxUSE_STOPWATCH=no
2221 DEFAULT_wxUSE_FILE=no
2222 DEFAULT_wxUSE_FFILE=no
07158944 2223 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2224 DEFAULT_wxUSE_TEXTBUFFER=no
2225 DEFAULT_wxUSE_TEXTFILE=no
2226 DEFAULT_wxUSE_SOUND=no
3b57de8b 2227 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2228 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2229 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2230 DEFAULT_wxUSE_INTL=no
2231 DEFAULT_wxUSE_CONFIG=no
2232 DEFAULT_wxUSE_FONTMAP=no
2233 DEFAULT_wxUSE_STREAMS=no
2234 DEFAULT_wxUSE_SOCKETS=no
2235 DEFAULT_wxUSE_OLE=no
2236 DEFAULT_wxUSE_DATAOBJ=no
2237 DEFAULT_wxUSE_DIALUP_MANAGER=no
2238 DEFAULT_wxUSE_JOYSTICK=no
2239 DEFAULT_wxUSE_DYNLIB_CLASS=no
2240 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2241 DEFAULT_wxUSE_LONGLONG=no
2242 DEFAULT_wxUSE_GEOMETRY=no
2243
2244 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2245 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2246 DEFAULT_wxUSE_POSTSCRIPT=no
2247
2248 DEFAULT_wxUSE_CLIPBOARD=no
2249 DEFAULT_wxUSE_TOOLTIPS=no
2250 DEFAULT_wxUSE_DRAG_AND_DROP=no
2251 DEFAULT_wxUSE_DRAGIMAGE=no
2252 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2253 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2254
8a7b1113 2255 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2256 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2257 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2258 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2259
2260 DEFAULT_wxUSE_RESOURCES=no
2261 DEFAULT_wxUSE_CONSTRAINTS=no
2262 DEFAULT_wxUSE_IPC=no
2263 DEFAULT_wxUSE_HELP=no
2264 DEFAULT_wxUSE_MS_HTML_HELP=no
2265 DEFAULT_wxUSE_WXHTML_HELP=no
2266 DEFAULT_wxUSE_TREELAYOUT=no
2267 DEFAULT_wxUSE_METAFILE=no
2268 DEFAULT_wxUSE_MIMETYPE=no
2269 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2270 DEFAULT_wxUSE_PROTOCOL=no
2271 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2272 DEFAULT_wxUSE_PROTOCOL_FTP=no
2273 DEFAULT_wxUSE_PROTOCOL_FILE=no
2274 DEFAULT_wxUSE_URL=no
ca5c6ac3 2275 DEFAULT_wxUSE_VARIANT=no
a848cd7e
SC
2276
2277 DEFAULT_wxUSE_COMMONDLGS=no
2278 DEFAULT_wxUSE_CHOICEDLG=no
2279 DEFAULT_wxUSE_COLOURDLG=no
2280 DEFAULT_wxUSE_DIRDLG=no
2281 DEFAULT_wxUSE_FILEDLG=no
2282 DEFAULT_wxUSE_FINDREPLDLG=no
2283 DEFAULT_wxUSE_FONTDLG=no
2284 DEFAULT_wxUSE_MSGDLG=no
2285 DEFAULT_wxUSE_NUMBERDLG=no
2286 DEFAULT_wxUSE_TEXTDLG=no
2287 DEFAULT_wxUSE_SPLASH=no
2288 DEFAULT_wxUSE_STARTUP_TIPS=no
2289 DEFAULT_wxUSE_PROGRESSDLG=no
2290 DEFAULT_wxUSE_WIZARDDLG=no
2291
2292 DEFAULT_wxUSE_MENUS=no
2293 DEFAULT_wxUSE_MINIFRAME=no
2294 DEFAULT_wxUSE_HTML=no
91dea314 2295 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2296 DEFAULT_wxUSE_XRC=no
3f60522a 2297 DEFAULT_wxUSE_AUI=no
646b6ec1 2298 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2299 DEFAULT_wxUSE_FILESYSTEM=no
2300 DEFAULT_wxUSE_FS_INET=no
2301 DEFAULT_wxUSE_FS_ZIP=no
2302 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2303 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2304 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2305 DEFAULT_wxUSE_VALIDATORS=no
2306
2307 DEFAULT_wxUSE_ACCEL=no
2308 DEFAULT_wxUSE_BUTTON=no
2309 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2310 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2311 DEFAULT_wxUSE_CALCTRL=no
2312 DEFAULT_wxUSE_CARET=no
2313 DEFAULT_wxUSE_CHECKBOX=no
2314 DEFAULT_wxUSE_CHECKLST=no
2315 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2316 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2317 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2318 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2319 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2320 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2321 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2322 DEFAULT_wxUSE_DIRPICKERCTRL=no
2323 DEFAULT_wxUSE_FILEPICKERCTRL=no
2324 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2325 DEFAULT_wxUSE_GAUGE=no
f43426c1 2326 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2327 DEFAULT_wxUSE_GRID=no
6954625c 2328 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2329 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2330 DEFAULT_wxUSE_IMAGLIST=no
2331 DEFAULT_wxUSE_LISTBOOK=no
2332 DEFAULT_wxUSE_LISTBOX=no
2333 DEFAULT_wxUSE_LISTCTRL=no
2334 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2335 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2336 DEFAULT_wxUSE_RADIOBOX=no
2337 DEFAULT_wxUSE_RADIOBTN=no
2338 DEFAULT_wxUSE_SASH=no
2339 DEFAULT_wxUSE_SCROLLBAR=no
2340 DEFAULT_wxUSE_SLIDER=no
2341 DEFAULT_wxUSE_SPINBTN=no
2342 DEFAULT_wxUSE_SPINCTRL=no
2343 DEFAULT_wxUSE_SPLITTER=no
2344 DEFAULT_wxUSE_STATBMP=no
2345 DEFAULT_wxUSE_STATBOX=no
2346 DEFAULT_wxUSE_STATLINE=no
2347 DEFAULT_wxUSE_STATTEXT=no
2348 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2349 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2350 DEFAULT_wxUSE_TEXTCTRL=no
2351 DEFAULT_wxUSE_TOGGLEBTN=no
2352 DEFAULT_wxUSE_TOOLBAR=no
2353 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2354 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2355 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2356 DEFAULT_wxUSE_TREECTRL=no
2357 DEFAULT_wxUSE_POPUPWIN=no
2358 DEFAULT_wxUSE_TIPWINDOW=no
2359
2360 DEFAULT_wxUSE_UNICODE=no
2361 DEFAULT_wxUSE_UNICODE_MSLU=no
2362 DEFAULT_wxUSE_WCSRTOMBS=no
2363
2364 DEFAULT_wxUSE_PALETTE=no
2365 DEFAULT_wxUSE_IMAGE=no
2366 DEFAULT_wxUSE_GIF=no
2367 DEFAULT_wxUSE_PCX=no
2368 DEFAULT_wxUSE_PNM=no
2369 DEFAULT_wxUSE_IFF=no
2370 DEFAULT_wxUSE_XPM=no
2371 DEFAULT_wxUSE_ICO_CUR=no
2372 DEFAULT_wxUSE_ACCESSIBILITY=no
2373
2374 DEFAULT_wxUSE_MONOLITHIC=no
2375 DEFAULT_wxUSE_PLUGINS=no
2376 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2377else
2378 DEFAULT_wxUSE_UNIVERSAL=no
2379 DEFAULT_wxUSE_STL=no
2380
2381 DEFAULT_wxUSE_NANOX=no
2382
2383 DEFAULT_wxUSE_THREADS=yes
2384
5acfd58d 2385 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2386 DEFAULT_wxUSE_OPTIMISE=yes
2387 DEFAULT_wxUSE_PROFILE=no
2388 DEFAULT_wxUSE_NO_DEPS=no
2389 DEFAULT_wxUSE_NO_RTTI=no
2390 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2391 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2392 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2393 DEFAULT_wxUSE_PERMISSIVE=no
2394 DEFAULT_wxUSE_DEBUG_FLAG=no
2395 DEFAULT_wxUSE_DEBUG_INFO=no
2396 DEFAULT_wxUSE_DEBUG_GDB=no
2397 DEFAULT_wxUSE_MEM_TRACING=no
2398 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2399 DEFAULT_wxUSE_DMALLOC=no
2400 DEFAULT_wxUSE_APPLE_IEEE=yes
2401
2402 DEFAULT_wxUSE_EXCEPTIONS=yes
2403 DEFAULT_wxUSE_LOG=yes
2404 DEFAULT_wxUSE_LOGWINDOW=yes
2405 DEFAULT_wxUSE_LOGGUI=yes
2406 DEFAULT_wxUSE_LOGDIALOG=yes
2407
2408 DEFAULT_wxUSE_GUI=yes
2409
2410 DEFAULT_wxUSE_REGEX=yes
2411 DEFAULT_wxUSE_XML=yes
2412 DEFAULT_wxUSE_EXPAT=yes
2413 DEFAULT_wxUSE_ZLIB=yes
2414 DEFAULT_wxUSE_LIBPNG=yes
2415 DEFAULT_wxUSE_LIBJPEG=yes
2416 DEFAULT_wxUSE_LIBTIFF=yes
2417 DEFAULT_wxUSE_LIBXPM=yes
2418 DEFAULT_wxUSE_LIBMSPACK=yes
2419 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2420 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2421 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2422 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2423 DEFAULT_wxUSE_ODBC=no
52cb607e 2424 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2425
2426 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2427 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2428 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2429 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2430 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2431 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2432 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2433 DEFAULT_wxUSE_DATETIME=yes
2434 DEFAULT_wxUSE_TIMER=yes
2435 DEFAULT_wxUSE_STOPWATCH=yes
2436 DEFAULT_wxUSE_FILE=yes
2437 DEFAULT_wxUSE_FFILE=yes
07158944 2438 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2439 DEFAULT_wxUSE_TEXTBUFFER=yes
2440 DEFAULT_wxUSE_TEXTFILE=yes
2441 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2442 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2443 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2444 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2445 DEFAULT_wxUSE_INTL=yes
2446 DEFAULT_wxUSE_CONFIG=yes
2447 DEFAULT_wxUSE_FONTMAP=yes
2448 DEFAULT_wxUSE_STREAMS=yes
2449 DEFAULT_wxUSE_SOCKETS=yes
2450 DEFAULT_wxUSE_OLE=yes
2451 DEFAULT_wxUSE_DATAOBJ=yes
2452 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2453 DEFAULT_wxUSE_JOYSTICK=yes
2454 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2455 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2456 DEFAULT_wxUSE_LONGLONG=yes
2457 DEFAULT_wxUSE_GEOMETRY=yes
2458
2459 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2460 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2461 DEFAULT_wxUSE_POSTSCRIPT=yes
2462
2463 DEFAULT_wxUSE_CLIPBOARD=yes
2464 DEFAULT_wxUSE_TOOLTIPS=yes
2465 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2466 DEFAULT_wxUSE_DRAGIMAGE=yes
2467 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2468 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2469
8a7b1113 2470 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2471 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2472 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2473 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2474
2475 DEFAULT_wxUSE_RESOURCES=no
2476 DEFAULT_wxUSE_CONSTRAINTS=yes
2477 DEFAULT_wxUSE_IPC=yes
2478 DEFAULT_wxUSE_HELP=yes
2479 DEFAULT_wxUSE_MS_HTML_HELP=yes
2480 DEFAULT_wxUSE_WXHTML_HELP=yes
2481 DEFAULT_wxUSE_TREELAYOUT=yes
2482 DEFAULT_wxUSE_METAFILE=yes
2483 DEFAULT_wxUSE_MIMETYPE=yes
2484 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2485 DEFAULT_wxUSE_PROTOCOL=yes
2486 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2487 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2488 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2489 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2490 DEFAULT_wxUSE_VARIANT=yes
a848cd7e
SC
2491
2492 DEFAULT_wxUSE_COMMONDLGS=yes
2493 DEFAULT_wxUSE_CHOICEDLG=yes
2494 DEFAULT_wxUSE_COLOURDLG=yes
2495 DEFAULT_wxUSE_DIRDLG=yes
2496 DEFAULT_wxUSE_FILEDLG=yes
2497 DEFAULT_wxUSE_FINDREPLDLG=yes
2498 DEFAULT_wxUSE_FONTDLG=yes
2499 DEFAULT_wxUSE_MSGDLG=yes
2500 DEFAULT_wxUSE_NUMBERDLG=yes
2501 DEFAULT_wxUSE_TEXTDLG=yes
2502 DEFAULT_wxUSE_SPLASH=yes
2503 DEFAULT_wxUSE_STARTUP_TIPS=yes
2504 DEFAULT_wxUSE_PROGRESSDLG=yes
2505 DEFAULT_wxUSE_WIZARDDLG=yes
2506
2507 DEFAULT_wxUSE_MENUS=yes
2508 DEFAULT_wxUSE_MINIFRAME=yes
2509 DEFAULT_wxUSE_HTML=yes
91dea314 2510 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2511 DEFAULT_wxUSE_XRC=yes
3f60522a 2512 DEFAULT_wxUSE_AUI=yes
646b6ec1 2513 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2514 DEFAULT_wxUSE_FILESYSTEM=yes
2515 DEFAULT_wxUSE_FS_INET=yes
2516 DEFAULT_wxUSE_FS_ZIP=yes
2517 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2518 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2519 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2520 DEFAULT_wxUSE_VALIDATORS=yes
2521
2522 DEFAULT_wxUSE_ACCEL=yes
2523 DEFAULT_wxUSE_BUTTON=yes
2524 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2525 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2526 DEFAULT_wxUSE_CALCTRL=yes
2527 DEFAULT_wxUSE_CARET=yes
2528 DEFAULT_wxUSE_CHECKBOX=yes
2529 DEFAULT_wxUSE_CHECKLST=yes
2530 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2531 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2532 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2533 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2534 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2535 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2536 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2537 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2538 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2539 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2540 DEFAULT_wxUSE_GAUGE=yes
2541 DEFAULT_wxUSE_GRID=yes
f43426c1 2542 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2543 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2544 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2545 DEFAULT_wxUSE_IMAGLIST=yes
2546 DEFAULT_wxUSE_LISTBOOK=yes
2547 DEFAULT_wxUSE_LISTBOX=yes
2548 DEFAULT_wxUSE_LISTCTRL=yes
2549 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2550 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2551 DEFAULT_wxUSE_RADIOBOX=yes
2552 DEFAULT_wxUSE_RADIOBTN=yes
2553 DEFAULT_wxUSE_SASH=yes
2554 DEFAULT_wxUSE_SCROLLBAR=yes
2555 DEFAULT_wxUSE_SLIDER=yes
2556 DEFAULT_wxUSE_SPINBTN=yes
2557 DEFAULT_wxUSE_SPINCTRL=yes
2558 DEFAULT_wxUSE_SPLITTER=yes
2559 DEFAULT_wxUSE_STATBMP=yes
2560 DEFAULT_wxUSE_STATBOX=yes
2561 DEFAULT_wxUSE_STATLINE=yes
2562 DEFAULT_wxUSE_STATTEXT=yes
2563 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2564 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2565 DEFAULT_wxUSE_TEXTCTRL=yes
2566 DEFAULT_wxUSE_TOGGLEBTN=yes
2567 DEFAULT_wxUSE_TOOLBAR=yes
2568 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2569 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2570 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2571 DEFAULT_wxUSE_TREECTRL=yes
2572 DEFAULT_wxUSE_POPUPWIN=yes
2573 DEFAULT_wxUSE_TIPWINDOW=yes
2574
78de529b 2575 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2576 DEFAULT_wxUSE_UNICODE_MSLU=yes
2577 DEFAULT_wxUSE_WCSRTOMBS=no
2578
2579 DEFAULT_wxUSE_PALETTE=yes
2580 DEFAULT_wxUSE_IMAGE=yes
2581 DEFAULT_wxUSE_GIF=yes
2582 DEFAULT_wxUSE_PCX=yes
2583 DEFAULT_wxUSE_IFF=no
2584 DEFAULT_wxUSE_PNM=yes
2585 DEFAULT_wxUSE_XPM=yes
2586 DEFAULT_wxUSE_ICO_CUR=yes
2587 DEFAULT_wxUSE_ACCESSIBILITY=no
2588
2589 DEFAULT_wxUSE_MONOLITHIC=no
2590 DEFAULT_wxUSE_PLUGINS=no
2591 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2592
f34ca037 2593 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2594fi
2595
2596
2597
f34ca037 2598
a848cd7e
SC
2599for toolkit in `echo $ALL_TOOLKITS`; do
2600 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2601 if test "x$LINE" != "x" ; then
2602 has_toolkit_in_cache=1
2603 eval "DEFAULT_$LINE"
2604 eval "CACHE_$toolkit=1"
f34ca037
MW
2605
2606 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2607 if test "x$LINE" != "x" ; then
2608 eval "DEFAULT_$LINE"
2609 fi
a848cd7e
SC
2610 fi
2611done
2612
2613
2614
2615 enablestring=
2616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2617echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2618 no_cache=0
2619 # Check whether --enable-gui or --disable-gui was given.
2620if test "${enable_gui+set}" = set; then
2621 enableval="$enable_gui"
2622
2623 if test "$enableval" = yes; then
2624 ac_cv_use_gui='wxUSE_GUI=yes'
2625 else
2626 ac_cv_use_gui='wxUSE_GUI=no'
2627 fi
2628
2629else
2630
2631 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2632 if test "x$LINE" != x ; then
2633 eval "DEFAULT_$LINE"
2634 else
2635 no_cache=1
2636 fi
2637
2638 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2639
2640fi;
2641
2642 eval "$ac_cv_use_gui"
2643 if test "$no_cache" != 1; then
2644 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2645 fi
2646
2647 if test "$wxUSE_GUI" = yes; then
2648 echo "$as_me:$LINENO: result: yes" >&5
2649echo "${ECHO_T}yes" >&6
2650 else
2651 echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6
2653 fi
2654
2655
2656 enablestring=
2657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2658echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2659 no_cache=0
2660 # Check whether --enable-monolithic or --disable-monolithic was given.
2661if test "${enable_monolithic+set}" = set; then
2662 enableval="$enable_monolithic"
2663
2664 if test "$enableval" = yes; then
2665 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2666 else
2667 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2668 fi
2669
2670else
2671
2672 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2673 if test "x$LINE" != x ; then
2674 eval "DEFAULT_$LINE"
2675 else
2676 no_cache=1
2677 fi
2678
2679 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2680
2681fi;
2682
2683 eval "$ac_cv_use_monolithic"
2684 if test "$no_cache" != 1; then
2685 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2686 fi
2687
2688 if test "$wxUSE_MONOLITHIC" = yes; then
2689 echo "$as_me:$LINENO: result: yes" >&5
2690echo "${ECHO_T}yes" >&6
2691 else
2692 echo "$as_me:$LINENO: result: no" >&5
2693echo "${ECHO_T}no" >&6
2694 fi
2695
2696
2697 enablestring=
2698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2699echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2700 no_cache=0
2701 # Check whether --enable-plugins or --disable-plugins was given.
2702if test "${enable_plugins+set}" = set; then
2703 enableval="$enable_plugins"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2707 else
2708 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2709 fi
2710
2711else
2712
2713 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2721
2722fi;
2723
2724 eval "$ac_cv_use_plugins"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_PLUGINS" = yes; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731echo "${ECHO_T}yes" >&6
2732 else
2733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735 fi
2736
2737
1c14217d
VZ
2738 withstring=without
2739 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2740echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2741 no_cache=0
2742
2743# Check whether --with-subdirs or --without-subdirs was given.
2744if test "${with_subdirs+set}" = set; then
2745 withval="$with_subdirs"
2746
2747 if test "$withval" = yes; then
2748 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2749 else
2750 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2751 fi
2752
2753else
2754
2755 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2756 if test "x$LINE" != x ; then
2757 eval "DEFAULT_$LINE"
2758 else
2759 no_cache=1
2760 fi
2761
2762 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2763
2764fi;
2765
2766 eval "$ac_cv_use_subdirs"
2767 if test "$no_cache" != 1; then
2768 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2769 fi
2770
2771 if test "$wxWITH_SUBDIRS" = yes; then
2772 echo "$as_me:$LINENO: result: yes" >&5
2773echo "${ECHO_T}yes" >&6
2774 else
2775 echo "$as_me:$LINENO: result: no" >&5
2776echo "${ECHO_T}no" >&6
2777 fi
2778
2779
a848cd7e
SC
2780if test "$wxUSE_GUI" = "yes"; then
2781
2782
2783 enablestring=
2784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2785echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2786 no_cache=0
2787 # Check whether --enable-universal or --disable-universal was given.
2788if test "${enable_universal+set}" = set; then
2789 enableval="$enable_universal"
2790
2791 if test "$enableval" = yes; then
2792 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2793 else
2794 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2795 fi
2796
2797else
2798
2799 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2800 if test "x$LINE" != x ; then
2801 eval "DEFAULT_$LINE"
2802 else
2803 no_cache=1
2804 fi
2805
2806 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2807
2808fi;
2809
2810 eval "$ac_cv_use_universal"
2811 if test "$no_cache" != 1; then
2812 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2813 fi
2814
2815 if test "$wxUSE_UNIVERSAL" = yes; then
2816 echo "$as_me:$LINENO: result: yes" >&5
2817echo "${ECHO_T}yes" >&6
2818 else
2819 echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
2821 fi
2822
2823
2824# Check whether --with-gtk or --without-gtk was given.
2825if test "${with_gtk+set}" = set; then
2826 withval="$with_gtk"
2827 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2828fi;
2829
2830# Check whether --with-motif or --without-motif was given.
2831if test "${with_motif+set}" = set; then
2832 withval="$with_motif"
2833 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2834fi;
2835
2836# Check whether --with-mac or --without-mac was given.
2837if test "${with_mac+set}" = set; then
2838 withval="$with_mac"
c228d3a4 2839 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2840fi;
2841
2842# Check whether --with-cocoa or --without-cocoa was given.
2843if test "${with_cocoa+set}" = set; then
2844 withval="$with_cocoa"
c228d3a4 2845 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2846fi;
2847
2848# Check whether --with-wine or --without-wine was given.
2849if test "${with_wine+set}" = set; then
2850 withval="$with_wine"
2851 wxUSE_WINE="$withval" CACHE_WINE=1
2852fi;
2853
2854# Check whether --with-msw or --without-msw was given.
2855if test "${with_msw+set}" = set; then
2856 withval="$with_msw"
2857 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2858fi;
2859
2860# Check whether --with-pm or --without-pm was given.
2861if test "${with_pm+set}" = set; then
2862 withval="$with_pm"
2863 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2864fi;
2865
2866# Check whether --with-mgl or --without-mgl was given.
2867if test "${with_mgl+set}" = set; then
2868 withval="$with_mgl"
2869 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2870fi;
2871
b3c86150
VS
2872# Check whether --with-directfb or --without-directfb was given.
2873if test "${with_directfb+set}" = set; then
2874 withval="$with_directfb"
2875 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2876fi;
2877
a848cd7e
SC
2878# Check whether --with-microwin or --without-microwin was given.
2879if test "${with_microwin+set}" = set; then
2880 withval="$with_microwin"
2881 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2882fi;
2883
2884# Check whether --with-x11 or --without-x11 was given.
2885if test "${with_x11+set}" = set; then
2886 withval="$with_x11"
2887 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2888fi;
2889
2890 enablestring=
2891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2892echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2893 no_cache=0
2894 # Check whether --enable-nanox or --disable-nanox was given.
2895if test "${enable_nanox+set}" = set; then
2896 enableval="$enable_nanox"
2897
2898 if test "$enableval" = yes; then
2899 ac_cv_use_nanox='wxUSE_NANOX=yes'
2900 else
2901 ac_cv_use_nanox='wxUSE_NANOX=no'
2902 fi
2903
2904else
2905
2906 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2914
2915fi;
2916
2917 eval "$ac_cv_use_nanox"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_NANOX" = yes; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924echo "${ECHO_T}yes" >&6
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928 fi
2929
2930
f34ca037
MW
2931# Check whether --enable-gtk2 or --disable-gtk2 was given.
2932if test "${enable_gtk2+set}" = set; then
2933 enableval="$enable_gtk2"
2934 wxUSE_GTK2="$enableval"
2935fi;
a848cd7e 2936
a848cd7e
SC
2937 enablestring=
2938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2939echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2940 no_cache=0
2941 # Check whether --enable-gpe or --disable-gpe was given.
2942if test "${enable_gpe+set}" = set; then
2943 enableval="$enable_gpe"
2944
2945 if test "$enableval" = yes; then
2946 ac_cv_use_gpe='wxUSE_GPE=yes'
2947 else
2948 ac_cv_use_gpe='wxUSE_GPE=no'
2949 fi
2950
2951else
2952
2953 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2954 if test "x$LINE" != x ; then
2955 eval "DEFAULT_$LINE"
2956 else
2957 no_cache=1
2958 fi
2959
2960 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2961
2962fi;
2963
2964 eval "$ac_cv_use_gpe"
2965 if test "$no_cache" != 1; then
2966 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2967 fi
2968
2969 if test "$wxUSE_GPE" = yes; then
2970 echo "$as_me:$LINENO: result: yes" >&5
2971echo "${ECHO_T}yes" >&6
2972 else
2973 echo "$as_me:$LINENO: result: no" >&5
2974echo "${ECHO_T}no" >&6
2975 fi
2976
2977
2978
2979 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2980echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2981 no_cache=0
2982
2983# Check whether --with-libpng or --without-libpng was given.
2984if test "${with_libpng+set}" = set; then
2985 withval="$with_libpng"
2986
2987 if test "$withval" = yes; then
2988 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2989 elif test "$withval" = no; then
2990 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2991 elif test "$withval" = sys; then
2992 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2993 elif test "$withval" = builtin; then
2994 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2995 else
2996 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2997echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2998 { (exit 1); exit 1; }; }
2999 fi
3000
3001else
3002
3003 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3004 if test "x$LINE" != x ; then
3005 eval "DEFAULT_$LINE"
3006 else
3007 no_cache=1
3008 fi
3009
3010 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3011
3012fi;
3013
3014 eval "$ac_cv_use_libpng"
3015 if test "$no_cache" != 1; then
3016 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3017 fi
3018
3019 if test "$wxUSE_LIBPNG" = yes; then
3020 echo "$as_me:$LINENO: result: yes" >&5
3021echo "${ECHO_T}yes" >&6
3022 elif test "$wxUSE_LIBPNG" = no; then
3023 echo "$as_me:$LINENO: result: no" >&5
3024echo "${ECHO_T}no" >&6
3025 elif test "$wxUSE_LIBPNG" = sys; then
3026 echo "$as_me:$LINENO: result: system version" >&5
3027echo "${ECHO_T}system version" >&6
3028 elif test "$wxUSE_LIBPNG" = builtin; then
3029 echo "$as_me:$LINENO: result: builtin version" >&5
3030echo "${ECHO_T}builtin version" >&6
3031 else
3032 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3033echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3034 { (exit 1); exit 1; }; }
3035 fi
3036
3037
3038 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3039echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3040 no_cache=0
3041
3042# Check whether --with-libjpeg or --without-libjpeg was given.
3043if test "${with_libjpeg+set}" = set; then
3044 withval="$with_libjpeg"
3045
3046 if test "$withval" = yes; then
3047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3048 elif test "$withval" = no; then
3049 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3050 elif test "$withval" = sys; then
3051 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3052 elif test "$withval" = builtin; then
3053 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3054 else
3055 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3056echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3057 { (exit 1); exit 1; }; }
3058 fi
3059
3060else
3061
3062 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3070
3071fi;
3072
3073 eval "$ac_cv_use_libjpeg"
3074 if test "$no_cache" != 1; then
3075 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3076 fi
3077
3078 if test "$wxUSE_LIBJPEG" = yes; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080echo "${ECHO_T}yes" >&6
3081 elif test "$wxUSE_LIBJPEG" = no; then
3082 echo "$as_me:$LINENO: result: no" >&5
3083echo "${ECHO_T}no" >&6
3084 elif test "$wxUSE_LIBJPEG" = sys; then
3085 echo "$as_me:$LINENO: result: system version" >&5
3086echo "${ECHO_T}system version" >&6
3087 elif test "$wxUSE_LIBJPEG" = builtin; then
3088 echo "$as_me:$LINENO: result: builtin version" >&5
3089echo "${ECHO_T}builtin version" >&6
3090 else
3091 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3092echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3093 { (exit 1); exit 1; }; }
3094 fi
3095
3096
3097 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3098echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3099 no_cache=0
3100
3101# Check whether --with-libtiff or --without-libtiff was given.
3102if test "${with_libtiff+set}" = set; then
3103 withval="$with_libtiff"
3104
3105 if test "$withval" = yes; then
3106 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3107 elif test "$withval" = no; then
3108 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3109 elif test "$withval" = sys; then
3110 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3111 elif test "$withval" = builtin; then
3112 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3113 else
3114 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3115echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3116 { (exit 1); exit 1; }; }
3117 fi
3118
3119else
3120
3121 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3122 if test "x$LINE" != x ; then
3123 eval "DEFAULT_$LINE"
3124 else
3125 no_cache=1
3126 fi
3127
3128 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3129
3130fi;
3131
3132 eval "$ac_cv_use_libtiff"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_LIBTIFF" = yes; then
3138 echo "$as_me:$LINENO: result: yes" >&5
3139echo "${ECHO_T}yes" >&6
3140 elif test "$wxUSE_LIBTIFF" = no; then
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
3143 elif test "$wxUSE_LIBTIFF" = sys; then
3144 echo "$as_me:$LINENO: result: system version" >&5
3145echo "${ECHO_T}system version" >&6
3146 elif test "$wxUSE_LIBTIFF" = builtin; then
3147 echo "$as_me:$LINENO: result: builtin version" >&5
3148echo "${ECHO_T}builtin version" >&6
3149 else
3150 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3151echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3152 { (exit 1); exit 1; }; }
3153 fi
3154
3155
3156 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3157echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3158 no_cache=0
3159
3160# Check whether --with-libxpm or --without-libxpm was given.
3161if test "${with_libxpm+set}" = set; then
3162 withval="$with_libxpm"
3163
3164 if test "$withval" = yes; then
3165 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3166 elif test "$withval" = no; then
3167 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3168 elif test "$withval" = sys; then
3169 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3170 elif test "$withval" = builtin; then
3171 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3172 else
3173 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3174echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3175 { (exit 1); exit 1; }; }
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3188
3189fi;
3190
3191 eval "$ac_cv_use_libxpm"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_LIBXPM" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 elif test "$wxUSE_LIBXPM" = no; then
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 elif test "$wxUSE_LIBXPM" = sys; then
3203 echo "$as_me:$LINENO: result: system version" >&5
3204echo "${ECHO_T}system version" >&6
3205 elif test "$wxUSE_LIBXPM" = builtin; then
3206 echo "$as_me:$LINENO: result: builtin version" >&5
3207echo "${ECHO_T}builtin version" >&6
3208 else
3209 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3210echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3211 { (exit 1); exit 1; }; }
3212 fi
3213
3214
1c14217d
VZ
3215 withstring=
3216 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3217echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3218 no_cache=0
3219
3220# Check whether --with-libmspack or --without-libmspack was given.
3221if test "${with_libmspack+set}" = set; then
3222 withval="$with_libmspack"
3223
3224 if test "$withval" = yes; then
3225 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3226 else
3227 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3228 fi
3229
3230else
3231
3232 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3240
3241fi;
3242
3243 eval "$ac_cv_use_libmspack"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_LIBMSPACK" = yes; then
3249 echo "$as_me:$LINENO: result: yes" >&5
3250echo "${ECHO_T}yes" >&6
3251 else
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254 fi
3255
3256
1c14217d
VZ
3257 withstring=
3258 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3259echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3260 no_cache=0
3261
3262# Check whether --with-sdl or --without-sdl was given.
3263if test "${with_sdl+set}" = set; then
3264 withval="$with_sdl"
3265
3266 if test "$withval" = yes; then
3267 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3268 else
3269 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3270 fi
3271
3272else
3273
3274 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3275 if test "x$LINE" != x ; then
3276 eval "DEFAULT_$LINE"
3277 else
3278 no_cache=1
3279 fi
3280
3281 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3282
3283fi;
3284
3285 eval "$ac_cv_use_sdl"
3286 if test "$no_cache" != 1; then
3287 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3288 fi
3289
3290 if test "$wxUSE_LIBSDL" = yes; then
3291 echo "$as_me:$LINENO: result: yes" >&5
3292echo "${ECHO_T}yes" >&6
3293 else
3294 echo "$as_me:$LINENO: result: no" >&5
3295echo "${ECHO_T}no" >&6
3296 fi
3297
3298
1c14217d
VZ
3299 withstring=
3300 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3301echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3302 no_cache=0
3303
3304# Check whether --with-gnomeprint or --without-gnomeprint was given.
3305if test "${with_gnomeprint+set}" = set; then
3306 withval="$with_gnomeprint"
3307
3308 if test "$withval" = yes; then
3309 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3310 else
3311 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3312 fi
3313
3314else
3315
3316 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3317 if test "x$LINE" != x ; then
3318 eval "DEFAULT_$LINE"
3319 else
3320 no_cache=1
3321 fi
3322
3323 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3324
3325fi;
3326
3327 eval "$ac_cv_use_gnomeprint"
3328 if test "$no_cache" != 1; then
3329 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3330 fi
3331
3332 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3333 echo "$as_me:$LINENO: result: yes" >&5
3334echo "${ECHO_T}yes" >&6
3335 else
3336 echo "$as_me:$LINENO: result: no" >&5
3337echo "${ECHO_T}no" >&6
3338 fi
3339
3340
2b850ae1
RR
3341 withstring=
3342 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3343echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3344 no_cache=0
3345
3346# Check whether --with-gnomevfs or --without-gnomevfs was given.
3347if test "${with_gnomevfs+set}" = set; then
3348 withval="$with_gnomevfs"
3349
3350 if test "$withval" = yes; then
3351 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3352 else
3353 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3354 fi
3355
3356else
3357
3358 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3359 if test "x$LINE" != x ; then
3360 eval "DEFAULT_$LINE"
3361 else
3362 no_cache=1
3363 fi
3364
3365 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3366
3367fi;
3368
3369 eval "$ac_cv_use_gnomevfs"
3370 if test "$no_cache" != 1; then
3371 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3372 fi
3373
3374 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3375 echo "$as_me:$LINENO: result: yes" >&5
3376echo "${ECHO_T}yes" >&6
3377 else
3378 echo "$as_me:$LINENO: result: no" >&5
3379echo "${ECHO_T}no" >&6
3380 fi
3381
3382
3565d135
RR
3383 withstring=
3384 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3385echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3386 no_cache=0
3387
3388# Check whether --with-hildon or --without-hildon was given.
3389if test "${with_hildon+set}" = set; then
3390 withval="$with_hildon"
3391
3392 if test "$withval" = yes; then
3393 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3394 else
3395 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3396 fi
3397
3398else
3399
3400 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3408
3409fi;
3410
3411 eval "$ac_cv_use_hildon"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_LIBHILDON" = yes; then
3417 echo "$as_me:$LINENO: result: yes" >&5
3418echo "${ECHO_T}yes" >&6
3419 else
3420 echo "$as_me:$LINENO: result: no" >&5
3421echo "${ECHO_T}no" >&6
3422 fi
3423
3424
1c14217d
VZ
3425 withstring=
3426 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3427echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3428 no_cache=0
3429
3430# Check whether --with-opengl or --without-opengl was given.
3431if test "${with_opengl+set}" = set; then
3432 withval="$with_opengl"
3433
3434 if test "$withval" = yes; then
3435 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3436 else
3437 ac_cv_use_opengl='wxUSE_OPENGL=no'
3438 fi
3439
3440else
3441
3442 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3443 if test "x$LINE" != x ; then
3444 eval "DEFAULT_$LINE"
3445 else
3446 no_cache=1
3447 fi
3448
3449 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3450
3451fi;
3452
3453 eval "$ac_cv_use_opengl"
3454 if test "$no_cache" != 1; then
3455 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3456 fi
3457
3458 if test "$wxUSE_OPENGL" = yes; then
3459 echo "$as_me:$LINENO: result: yes" >&5
3460echo "${ECHO_T}yes" >&6
3461 else
3462 echo "$as_me:$LINENO: result: no" >&5
3463echo "${ECHO_T}no" >&6
3464 fi
3465
3466
4353a8df
VZ
3467if test "$wxUSE_UNIVERSAL" = "yes"; then
3468
3469# Check whether --with-themes or --without-themes was given.
3470if test "${with_themes+set}" = set; then
3471 withval="$with_themes"
3472 wxUNIV_THEMES="$withval"
3473fi;
3474fi
3475
a848cd7e
SC
3476fi
3477
3478
1c14217d
VZ
3479 withstring=
3480 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3481echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3482 no_cache=0
3483
3484# Check whether --with-dmalloc or --without-dmalloc was given.
3485if test "${with_dmalloc+set}" = set; then
3486 withval="$with_dmalloc"
3487
3488 if test "$withval" = yes; then
3489 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3490 else
3491 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3492 fi
3493
3494else
3495
3496 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3497 if test "x$LINE" != x ; then
3498 eval "DEFAULT_$LINE"
3499 else
3500 no_cache=1
3501 fi
3502
3503 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3504
3505fi;
3506
3507 eval "$ac_cv_use_dmalloc"
3508 if test "$no_cache" != 1; then
3509 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3510 fi
3511
3512 if test "$wxUSE_DMALLOC" = yes; then
3513 echo "$as_me:$LINENO: result: yes" >&5
3514echo "${ECHO_T}yes" >&6
3515 else
3516 echo "$as_me:$LINENO: result: no" >&5
3517echo "${ECHO_T}no" >&6
3518 fi
3519
3520
3521 echo "$as_me:$LINENO: checking for --with-regex" >&5
3522echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3523 no_cache=0
3524
3525# Check whether --with-regex or --without-regex was given.
3526if test "${with_regex+set}" = set; then
3527 withval="$with_regex"
3528
3529 if test "$withval" = yes; then
3530 ac_cv_use_regex='wxUSE_REGEX=yes'
3531 elif test "$withval" = no; then
3532 ac_cv_use_regex='wxUSE_REGEX=no'
3533 elif test "$withval" = sys; then
3534 ac_cv_use_regex='wxUSE_REGEX=sys'
3535 elif test "$withval" = builtin; then
3536 ac_cv_use_regex='wxUSE_REGEX=builtin'
3537 else
3538 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3539echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3540 { (exit 1); exit 1; }; }
3541 fi
3542
3543else
3544
3545 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3546 if test "x$LINE" != x ; then
3547 eval "DEFAULT_$LINE"
3548 else
3549 no_cache=1
3550 fi
3551
3552 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3553
3554fi;
3555
3556 eval "$ac_cv_use_regex"
3557 if test "$no_cache" != 1; then
3558 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3559 fi
3560
3561 if test "$wxUSE_REGEX" = yes; then
3562 echo "$as_me:$LINENO: result: yes" >&5
3563echo "${ECHO_T}yes" >&6
3564 elif test "$wxUSE_REGEX" = no; then
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
3567 elif test "$wxUSE_REGEX" = sys; then
3568 echo "$as_me:$LINENO: result: system version" >&5
3569echo "${ECHO_T}system version" >&6
3570 elif test "$wxUSE_REGEX" = builtin; then
3571 echo "$as_me:$LINENO: result: builtin version" >&5
3572echo "${ECHO_T}builtin version" >&6
3573 else
3574 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3575echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3576 { (exit 1); exit 1; }; }
3577 fi
3578
3579
3580 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3581echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3582 no_cache=0
3583
3584# Check whether --with-zlib or --without-zlib was given.
3585if test "${with_zlib+set}" = set; then
3586 withval="$with_zlib"
3587
3588 if test "$withval" = yes; then
3589 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3590 elif test "$withval" = no; then
3591 ac_cv_use_zlib='wxUSE_ZLIB=no'
3592 elif test "$withval" = sys; then
3593 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3594 elif test "$withval" = builtin; then
3595 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3596 else
3597 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3598echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3599 { (exit 1); exit 1; }; }
3600 fi
3601
3602else
3603
3604 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3612
3613fi;
3614
3615 eval "$ac_cv_use_zlib"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_ZLIB" = yes; then
3621 echo "$as_me:$LINENO: result: yes" >&5
3622echo "${ECHO_T}yes" >&6
3623 elif test "$wxUSE_ZLIB" = no; then
3624 echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6
3626 elif test "$wxUSE_ZLIB" = sys; then
3627 echo "$as_me:$LINENO: result: system version" >&5
3628echo "${ECHO_T}system version" >&6
3629 elif test "$wxUSE_ZLIB" = builtin; then
3630 echo "$as_me:$LINENO: result: builtin version" >&5
3631echo "${ECHO_T}builtin version" >&6
3632 else
3633 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3634echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3635 { (exit 1); exit 1; }; }
3636 fi
3637
3638
3639 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3640echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3641 no_cache=0
3642
3643# Check whether --with-odbc or --without-odbc was given.
3644if test "${with_odbc+set}" = set; then
3645 withval="$with_odbc"
3646
3647 if test "$withval" = yes; then
3648 ac_cv_use_odbc='wxUSE_ODBC=yes'
3649 elif test "$withval" = no; then
3650 ac_cv_use_odbc='wxUSE_ODBC=no'
3651 elif test "$withval" = sys; then
3652 ac_cv_use_odbc='wxUSE_ODBC=sys'
3653 elif test "$withval" = builtin; then
3654 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3655 else
3656 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3657echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3658 { (exit 1); exit 1; }; }
3659 fi
3660
3661else
3662
3663 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3664 if test "x$LINE" != x ; then
3665 eval "DEFAULT_$LINE"
3666 else
3667 no_cache=1
3668 fi
3669
3670 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3671
3672fi;
3673
3674 eval "$ac_cv_use_odbc"
3675 if test "$no_cache" != 1; then
3676 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3677 fi
3678
3679 if test "$wxUSE_ODBC" = yes; then
3680 echo "$as_me:$LINENO: result: yes" >&5
3681echo "${ECHO_T}yes" >&6
3682 elif test "$wxUSE_ODBC" = no; then
3683 echo "$as_me:$LINENO: result: no" >&5
3684echo "${ECHO_T}no" >&6
3685 elif test "$wxUSE_ODBC" = sys; then
3686 echo "$as_me:$LINENO: result: system version" >&5
3687echo "${ECHO_T}system version" >&6
3688 elif test "$wxUSE_ODBC" = builtin; then
3689 echo "$as_me:$LINENO: result: builtin version" >&5
3690echo "${ECHO_T}builtin version" >&6
3691 else
3692 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3693echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3694 { (exit 1); exit 1; }; }
3695 fi
3696
3697
3698 echo "$as_me:$LINENO: checking for --with-expat" >&5
3699echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3700 no_cache=0
3701
3702# Check whether --with-expat or --without-expat was given.
3703if test "${with_expat+set}" = set; then
3704 withval="$with_expat"
3705
3706 if test "$withval" = yes; then
3707 ac_cv_use_expat='wxUSE_EXPAT=yes'
3708 elif test "$withval" = no; then
3709 ac_cv_use_expat='wxUSE_EXPAT=no'
3710 elif test "$withval" = sys; then
3711 ac_cv_use_expat='wxUSE_EXPAT=sys'
3712 elif test "$withval" = builtin; then
3713 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3714 else
3715 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3716echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3717 { (exit 1); exit 1; }; }
3718 fi
3719
3720else
3721
3722 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3730
3731fi;
3732
3733 eval "$ac_cv_use_expat"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_EXPAT" = yes; then
3739 echo "$as_me:$LINENO: result: yes" >&5
3740echo "${ECHO_T}yes" >&6
3741 elif test "$wxUSE_EXPAT" = no; then
3742 echo "$as_me:$LINENO: result: no" >&5
3743echo "${ECHO_T}no" >&6
3744 elif test "$wxUSE_EXPAT" = sys; then
3745 echo "$as_me:$LINENO: result: system version" >&5
3746echo "${ECHO_T}system version" >&6
3747 elif test "$wxUSE_EXPAT" = builtin; then
3748 echo "$as_me:$LINENO: result: builtin version" >&5
3749echo "${ECHO_T}builtin version" >&6
3750 else
3751 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3752echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3753 { (exit 1); exit 1; }; }
3754 fi
3755
3756
3757
3758
3759 enablestring=
3760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3761echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3762 no_cache=0
3763 # Check whether --enable-shared or --disable-shared was given.
3764if test "${enable_shared+set}" = set; then
3765 enableval="$enable_shared"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_shared='wxUSE_SHARED=yes'
3769 else
3770 ac_cv_use_shared='wxUSE_SHARED=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3783
3784fi;
3785
3786 eval "$ac_cv_use_shared"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_SHARED" = yes; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797 fi
3798
3799
3800 enablestring=
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-optimise or --disable-optimise was given.
3805if test "${enable_optimise+set}" = set; then
3806 enableval="$enable_optimise"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3810 else
3811 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3824
3825fi;
3826
3827 eval "$ac_cv_use_optimise"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_OPTIMISE" = yes; then
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838 fi
3839
3840
3841 enablestring=
3842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3844 no_cache=0
3845 # Check whether --enable-debug or --disable-debug was given.
3846if test "${enable_debug+set}" = set; then
3847 enableval="$enable_debug"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_debug='wxUSE_DEBUG=yes'
3851 else
3852 ac_cv_use_debug='wxUSE_DEBUG=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3865
3866fi;
3867
3868 eval "$ac_cv_use_debug"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_DEBUG" = yes; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879 fi
3880
3881
3882 enablestring=
3883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3884echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3885 no_cache=0
3886 # Check whether --enable-stl or --disable-stl was given.
3887if test "${enable_stl+set}" = set; then
3888 enableval="$enable_stl"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_stl='wxUSE_STL=yes'
3892 else
3893 ac_cv_use_stl='wxUSE_STL=no'
3894 fi
3895
3896else
3897
3898 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3906
3907fi;
3908
3909 eval "$ac_cv_use_stl"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_STL" = yes; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916echo "${ECHO_T}yes" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920 fi
3921
3922if test "$USE_OS2" = "1"; then
69120ee4 3923 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3924
3925 enablestring=
3926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3927echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3928 no_cache=0
3929 # Check whether --enable-omf or --disable-omf was given.
3930if test "${enable_omf+set}" = set; then
3931 enableval="$enable_omf"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_omf='wxUSE_OMF=yes'
3935 else
3936 ac_cv_use_omf='wxUSE_OMF=no'
3937 fi
3938
3939else
3940
3941 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3949
3950fi;
3951
3952 eval "$ac_cv_use_omf"
3953 if test "$no_cache" != 1; then
3954 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3955 fi
3956
3957 if test "$wxUSE_OMF" = yes; then
3958 echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6
3960 else
3961 echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6
3963 fi
3964
3965fi
3966
3967if test "$wxUSE_DEBUG" = "yes"; then
3968 DEFAULT_wxUSE_DEBUG_FLAG=yes
3969 DEFAULT_wxUSE_DEBUG_INFO=yes
3970 BUILD=debug
3971elif test "$wxUSE_DEBUG" = "no"; then
3972 DEFAULT_wxUSE_DEBUG_FLAG=no
3973 DEFAULT_wxUSE_DEBUG_INFO=no
3974 BUILD=release
3975fi
3976
3977
3978 enablestring=
3979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3980echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3981 no_cache=0
3982 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3983if test "${enable_debug_flag+set}" = set; then
3984 enableval="$enable_debug_flag"
3985
3986 if test "$enableval" = yes; then
3987 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3988 else
3989 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3990 fi
3991
3992else
3993
3994 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4002
4003fi;
4004
4005 eval "$ac_cv_use_debug_flag"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_DEBUG_FLAG" = yes; then
4011 echo "$as_me:$LINENO: result: yes" >&5
4012echo "${ECHO_T}yes" >&6
4013 else
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016 fi
4017
4018
4019 enablestring=
4020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4021echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4022 no_cache=0
4023 # Check whether --enable-debug_info or --disable-debug_info was given.
4024if test "${enable_debug_info+set}" = set; then
4025 enableval="$enable_debug_info"
4026
4027 if test "$enableval" = yes; then
4028 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4029 else
4030 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4031 fi
4032
4033else
4034
4035 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4043
4044fi;
4045
4046 eval "$ac_cv_use_debug_info"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_DEBUG_INFO" = yes; then
4052 echo "$as_me:$LINENO: result: yes" >&5
4053echo "${ECHO_T}yes" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056echo "${ECHO_T}no" >&6
4057 fi
4058
4059
4060 enablestring=
4061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4062echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4063 no_cache=0
4064 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4065if test "${enable_debug_gdb+set}" = set; then
4066 enableval="$enable_debug_gdb"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4070 else
4071 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4084
4085fi;
4086
4087 eval "$ac_cv_use_debug_gdb"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_DEBUG_GDB" = yes; then
4093 echo "$as_me:$LINENO: result: yes" >&5
4094echo "${ECHO_T}yes" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101 enablestring=
4102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4103echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4104 no_cache=0
4105 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4106if test "${enable_debug_cntxt+set}" = set; then
4107 enableval="$enable_debug_cntxt"
4108
4109 if test "$enableval" = yes; then
4110 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4111 else
4112 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4113 fi
4114
4115else
4116
4117 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4118 if test "x$LINE" != x ; then
4119 eval "DEFAULT_$LINE"
4120 else
4121 no_cache=1
4122 fi
4123
4124 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4125
4126fi;
4127
4128 eval "$ac_cv_use_debug_cntxt"
4129 if test "$no_cache" != 1; then
4130 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4131 fi
4132
4133 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4134 echo "$as_me:$LINENO: result: yes" >&5
4135echo "${ECHO_T}yes" >&6
4136 else
4137 echo "$as_me:$LINENO: result: no" >&5
4138echo "${ECHO_T}no" >&6
4139 fi
4140
4141
4142 enablestring=
4143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4144echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4145 no_cache=0
4146 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4147if test "${enable_mem_tracing+set}" = set; then
4148 enableval="$enable_mem_tracing"
4149
4150 if test "$enableval" = yes; then
4151 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4152 else
4153 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4154 fi
4155
4156else
4157
4158 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4166
4167fi;
4168
4169 eval "$ac_cv_use_mem_tracing"
4170 if test "$no_cache" != 1; then
4171 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4172 fi
4173
4174 if test "$wxUSE_MEM_TRACING" = yes; then
4175 echo "$as_me:$LINENO: result: yes" >&5
4176echo "${ECHO_T}yes" >&6
4177 else
4178 echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6
4180 fi
4181
4182
4183 enablestring=
4184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4185echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4186 no_cache=0
4187 # Check whether --enable-profile or --disable-profile was given.
4188if test "${enable_profile+set}" = set; then
4189 enableval="$enable_profile"
4190
4191 if test "$enableval" = yes; then
4192 ac_cv_use_profile='wxUSE_PROFILE=yes'
4193 else
4194 ac_cv_use_profile='wxUSE_PROFILE=no'
4195 fi
4196
4197else
4198
4199 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4200 if test "x$LINE" != x ; then
4201 eval "DEFAULT_$LINE"
4202 else
4203 no_cache=1
4204 fi
4205
4206 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4207
4208fi;
4209
4210 eval "$ac_cv_use_profile"
4211 if test "$no_cache" != 1; then
4212 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4213 fi
4214
4215 if test "$wxUSE_PROFILE" = yes; then
4216 echo "$as_me:$LINENO: result: yes" >&5
4217echo "${ECHO_T}yes" >&6
4218 else
4219 echo "$as_me:$LINENO: result: no" >&5
4220echo "${ECHO_T}no" >&6
4221 fi
4222
4223
4224 enablestring=
4225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4226echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4227 no_cache=0
4228 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4229if test "${enable_no_rtti+set}" = set; then
4230 enableval="$enable_no_rtti"
4231
4232 if test "$enableval" = yes; then
4233 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4234 else
4235 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4236 fi
4237
4238else
4239
4240 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4248
4249fi;
4250
4251 eval "$ac_cv_use_no_rtti"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_NO_RTTI" = yes; then
4257 echo "$as_me:$LINENO: result: yes" >&5
4258echo "${ECHO_T}yes" >&6
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 fi
4263
4264
4265 enablestring=
4266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4267echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4268 no_cache=0
4269 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4270if test "${enable_no_exceptions+set}" = set; then
4271 enableval="$enable_no_exceptions"
4272
4273 if test "$enableval" = yes; then
4274 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4275 else
4276 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4277 fi
4278
4279else
4280
4281 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4282 if test "x$LINE" != x ; then
4283 eval "DEFAULT_$LINE"
4284 else
4285 no_cache=1
4286 fi
4287
4288 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4289
4290fi;
4291
4292 eval "$ac_cv_use_no_exceptions"
4293 if test "$no_cache" != 1; then
4294 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4295 fi
4296
4297 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4298 echo "$as_me:$LINENO: result: yes" >&5
4299echo "${ECHO_T}yes" >&6
4300 else
4301 echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
4303 fi
4304
4305
4306 enablestring=
4307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4308echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4309 no_cache=0
4310 # Check whether --enable-permissive or --disable-permissive was given.
4311if test "${enable_permissive+set}" = set; then
4312 enableval="$enable_permissive"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4316 else
4317 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4318 fi
4319
4320else
4321
4322 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4330
4331fi;
4332
4333 eval "$ac_cv_use_permissive"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_PERMISSIVE" = yes; then
4339 echo "$as_me:$LINENO: result: yes" >&5
4340echo "${ECHO_T}yes" >&6
4341 else
4342 echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6
4344 fi
4345
4346
4347 enablestring=
4348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4349echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4350 no_cache=0
4351 # Check whether --enable-no_deps or --disable-no_deps was given.
4352if test "${enable_no_deps+set}" = set; then
4353 enableval="$enable_no_deps"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4357 else
4358 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4359 fi
4360
4361else
4362
4363 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4371
4372fi;
4373
4374 eval "$ac_cv_use_no_deps"
4375 if test "$no_cache" != 1; then
4376 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4377 fi
4378
4379 if test "$wxUSE_NO_DEPS" = yes; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381echo "${ECHO_T}yes" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385 fi
4386
4387
95768535 4388 enablestring=
7afc46ab
KO
4389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4390echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4391 no_cache=0
4392 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4393if test "${enable_universal_binary+set}" = set; then
4394 enableval="$enable_universal_binary"
4395
95768535 4396 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4397
4398else
4399
4400 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4401 if test "x$LINE" != x ; then
4402 eval "DEFAULT_$LINE"
95768535 4403 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4404 else
4405 no_cache=1
95768535 4406 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4407 fi
4408
7afc46ab
KO
4409fi;
4410
95768535 4411 eval "$wx_cv_use_universal_binary"
7afc46ab 4412 if test "$no_cache" != 1; then
95768535 4413 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4414 fi
4415
95768535
MW
4416 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4417echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4418
4419
a848cd7e 4420
dee1a63f
MB
4421 enablestring=enable
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4424 no_cache=0
dee1a63f
MB
4425 # Check whether --enable-compat24 or --disable-compat24 was given.
4426if test "${enable_compat24+set}" = set; then
4427 enableval="$enable_compat24"
a848cd7e
SC
4428
4429 if test "$enableval" = yes; then
dee1a63f 4430 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4431 else
dee1a63f 4432 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4433 fi
4434
4435else
4436
dee1a63f 4437 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
dee1a63f 4444 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4445
4446fi;
4447
dee1a63f 4448 eval "$ac_cv_use_compat24"
a848cd7e 4449 if test "$no_cache" != 1; then
dee1a63f 4450 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4451 fi
4452
dee1a63f 4453 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4454 echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459 fi
4460
4461
4462 enablestring=disable
dee1a63f
MB
4463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4465 no_cache=0
dee1a63f
MB
4466 # Check whether --enable-compat26 or --disable-compat26 was given.
4467if test "${enable_compat26+set}" = set; then
4468 enableval="$enable_compat26"
a848cd7e
SC
4469
4470 if test "$enableval" = yes; then
dee1a63f 4471 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4472 else
dee1a63f 4473 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4474 fi
4475
4476else
4477
dee1a63f 4478 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
dee1a63f 4485 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4486
4487fi;
4488
dee1a63f 4489 eval "$ac_cv_use_compat26"
a848cd7e 4490 if test "$no_cache" != 1; then
dee1a63f 4491 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4492 fi
4493
dee1a63f 4494 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500 fi
4501
4502
ffa0583f
RL
4503
4504 enablestring=
4505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4506echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4507 no_cache=0
4508 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4509if test "${enable_rpath+set}" = set; then
4510 enableval="$enable_rpath"
ffa0583f
RL
4511
4512 if test "$enableval" = yes; then
4513 ac_cv_use_rpath='wxUSE_RPATH=yes'
4514 else
4515 ac_cv_use_rpath='wxUSE_RPATH=no'
4516 fi
4517
4518else
4519
4520 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4521 if test "x$LINE" != x ; then
4522 eval "DEFAULT_$LINE"
4523 else
4524 no_cache=1
4525 fi
4526
4527 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4528
a848cd7e
SC
4529fi;
4530
ffa0583f
RL
4531 eval "$ac_cv_use_rpath"
4532 if test "$no_cache" != 1; then
4533 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4534 fi
4535
4536 if test "$wxUSE_RPATH" = yes; then
4537 echo "$as_me:$LINENO: result: yes" >&5
4538echo "${ECHO_T}yes" >&6
4539 else
4540 echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6
4542 fi
4543
a848cd7e
SC
4544
4545
4546
4547
4548 enablestring=
4549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4550echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4551 no_cache=0
4552 # Check whether --enable-intl or --disable-intl was given.
4553if test "${enable_intl+set}" = set; then
4554 enableval="$enable_intl"
4555
4556 if test "$enableval" = yes; then
4557 ac_cv_use_intl='wxUSE_INTL=yes'
4558 else
4559 ac_cv_use_intl='wxUSE_INTL=no'
4560 fi
4561
4562else
4563
4564 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4565 if test "x$LINE" != x ; then
4566 eval "DEFAULT_$LINE"
4567 else
4568 no_cache=1
4569 fi
4570
4571 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4572
4573fi;
4574
4575 eval "$ac_cv_use_intl"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_INTL" = yes; then
4581 echo "$as_me:$LINENO: result: yes" >&5
4582echo "${ECHO_T}yes" >&6
4583 else
4584 echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6
4586 fi
4587
4588
4589 enablestring=
4590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4591echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4592 no_cache=0
4593 # Check whether --enable-config or --disable-config was given.
4594if test "${enable_config+set}" = set; then
4595 enableval="$enable_config"
4596
4597 if test "$enableval" = yes; then
4598 ac_cv_use_config='wxUSE_CONFIG=yes'
4599 else
4600 ac_cv_use_config='wxUSE_CONFIG=no'
4601 fi
4602
4603else
4604
4605 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4606 if test "x$LINE" != x ; then
4607 eval "DEFAULT_$LINE"
4608 else
4609 no_cache=1
4610 fi
4611
4612 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4613
4614fi;
4615
4616 eval "$ac_cv_use_config"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_CONFIG" = yes; then
4622 echo "$as_me:$LINENO: result: yes" >&5
4623echo "${ECHO_T}yes" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
4627 fi
4628
4629
4630
4631 enablestring=
4632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4633echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4634 no_cache=0
4635 # Check whether --enable-protocols or --disable-protocols was given.
4636if test "${enable_protocols+set}" = set; then
4637 enableval="$enable_protocols"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4641 else
4642 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4643 fi
4644
4645else
4646
4647 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4655
4656fi;
4657
4658 eval "$ac_cv_use_protocols"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_PROTOCOL" = yes; then
4664 echo "$as_me:$LINENO: result: yes" >&5
4665echo "${ECHO_T}yes" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
4669 fi
4670
4671
4672 enablestring=
4673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4674echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4675 no_cache=0
4676 # Check whether --enable-ftp or --disable-ftp was given.
4677if test "${enable_ftp+set}" = set; then
4678 enableval="$enable_ftp"
4679
4680 if test "$enableval" = yes; then
4681 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4682 else
4683 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4684 fi
4685
4686else
4687
4688 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4696
4697fi;
4698
4699 eval "$ac_cv_use_ftp"
4700 if test "$no_cache" != 1; then
4701 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4702 fi
4703
4704 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4705 echo "$as_me:$LINENO: result: yes" >&5
4706echo "${ECHO_T}yes" >&6
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
4710 fi
4711
4712
4713 enablestring=
4714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4715echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4716 no_cache=0
4717 # Check whether --enable-http or --disable-http was given.
4718if test "${enable_http+set}" = set; then
4719 enableval="$enable_http"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4723 else
4724 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4725 fi
4726
4727else
4728
4729 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4737
4738fi;
4739
4740 eval "$ac_cv_use_http"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4746 echo "$as_me:$LINENO: result: yes" >&5
4747echo "${ECHO_T}yes" >&6
4748 else
4749 echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
4751 fi
4752
4753
4754 enablestring=
4755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4756echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4757 no_cache=0
4758 # Check whether --enable-fileproto or --disable-fileproto was given.
4759if test "${enable_fileproto+set}" = set; then
4760 enableval="$enable_fileproto"
4761
4762 if test "$enableval" = yes; then
4763 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4764 else
4765 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4766 fi
4767
4768else
4769
4770 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
4777 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4778
4779fi;
4780
4781 eval "$ac_cv_use_fileproto"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4787 echo "$as_me:$LINENO: result: yes" >&5
4788echo "${ECHO_T}yes" >&6
4789 else
4790 echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792 fi
4793
4794
4795 enablestring=
4796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4797echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4798 no_cache=0
4799 # Check whether --enable-sockets or --disable-sockets was given.
4800if test "${enable_sockets+set}" = set; then
4801 enableval="$enable_sockets"
4802
4803 if test "$enableval" = yes; then
4804 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4805 else
4806 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4807 fi
4808
4809else
4810
4811 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4819
4820fi;
4821
4822 eval "$ac_cv_use_sockets"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_SOCKETS" = yes; then
4828 echo "$as_me:$LINENO: result: yes" >&5
4829echo "${ECHO_T}yes" >&6
4830 else
4831 echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833 fi
4834
4835
4836 enablestring=
4837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4838echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4839 no_cache=0
4840 # Check whether --enable-ole or --disable-ole was given.
4841if test "${enable_ole+set}" = set; then
4842 enableval="$enable_ole"
4843
4844 if test "$enableval" = yes; then
4845 ac_cv_use_ole='wxUSE_OLE=yes'
4846 else
4847 ac_cv_use_ole='wxUSE_OLE=no'
4848 fi
4849
4850else
4851
4852 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
4859 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4860
4861fi;
4862
4863 eval "$ac_cv_use_ole"
4864 if test "$no_cache" != 1; then
4865 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4866 fi
4867
4868 if test "$wxUSE_OLE" = yes; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870echo "${ECHO_T}yes" >&6
4871 else
4872 echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
4874 fi
4875
4876
4877 enablestring=
4878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4879echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4880 no_cache=0
4881 # Check whether --enable-dataobj or --disable-dataobj was given.
4882if test "${enable_dataobj+set}" = set; then
4883 enableval="$enable_dataobj"
4884
4885 if test "$enableval" = yes; then
4886 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4887 else
4888 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4889 fi
4890
4891else
4892
4893 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
4900 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4901
4902fi;
4903
4904 eval "$ac_cv_use_dataobj"
4905 if test "$no_cache" != 1; then
4906 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4907 fi
4908
4909 if test "$wxUSE_DATAOBJ" = yes; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911echo "${ECHO_T}yes" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915 fi
4916
4917
4918
4919 enablestring=
4920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4921echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4922 no_cache=0
4923 # Check whether --enable-ipc or --disable-ipc was given.
4924if test "${enable_ipc+set}" = set; then
4925 enableval="$enable_ipc"
4926
4927 if test "$enableval" = yes; then
4928 ac_cv_use_ipc='wxUSE_IPC=yes'
4929 else
4930 ac_cv_use_ipc='wxUSE_IPC=no'
4931 fi
4932
4933else
4934
4935 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4936 if test "x$LINE" != x ; then
4937 eval "DEFAULT_$LINE"
4938 else
4939 no_cache=1
4940 fi
4941
4942 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4943
4944fi;
4945
4946 eval "$ac_cv_use_ipc"
4947 if test "$no_cache" != 1; then
4948 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4949 fi
4950
4951 if test "$wxUSE_IPC" = yes; then
4952 echo "$as_me:$LINENO: result: yes" >&5
4953echo "${ECHO_T}yes" >&6
4954 else
4955 echo "$as_me:$LINENO: result: no" >&5
4956echo "${ECHO_T}no" >&6
4957 fi
4958
4959
4960
4961 enablestring=
4962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4963echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4964 no_cache=0
4965 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4966if test "${enable_apple_ieee+set}" = set; then
4967 enableval="$enable_apple_ieee"
4968
4969 if test "$enableval" = yes; then
4970 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4971 else
4972 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4973 fi
4974
4975else
4976
4977 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4978 if test "x$LINE" != x ; then
4979 eval "DEFAULT_$LINE"
4980 else
4981 no_cache=1
4982 fi
4983
4984 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4985
4986fi;
4987
4988 eval "$ac_cv_use_apple_ieee"
4989 if test "$no_cache" != 1; then
4990 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4991 fi
4992
4993 if test "$wxUSE_APPLE_IEEE" = yes; then
4994 echo "$as_me:$LINENO: result: yes" >&5
4995echo "${ECHO_T}yes" >&6
4996 else
4997 echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6
4999 fi
5000
5001
81f90336
MW
5002 enablestring=
5003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5004echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5005 no_cache=0
5006 # Check whether --enable-arcstream or --disable-arcstream was given.
5007if test "${enable_arcstream+set}" = set; then
5008 enableval="$enable_arcstream"
5009
5010 if test "$enableval" = yes; then
9e8e867f 5011 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5012 else
9e8e867f 5013 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5014 fi
5015
5016else
5017
9e8e867f 5018 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
9e8e867f 5025 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5026
5027fi;
5028
5029 eval "$ac_cv_use_arcstream"
5030 if test "$no_cache" != 1; then
5031 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5032 fi
5033
9e8e867f 5034 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5035 echo "$as_me:$LINENO: result: yes" >&5
5036echo "${ECHO_T}yes" >&6
5037 else
5038 echo "$as_me:$LINENO: result: no" >&5
5039echo "${ECHO_T}no" >&6
5040 fi
5041
5042
a848cd7e 5043 enablestring=
36b6448c
VZ
5044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5045echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5046 no_cache=0
36b6448c
VZ
5047 # Check whether --enable-backtrace or --disable-backtrace was given.
5048if test "${enable_backtrace+set}" = set; then
5049 enableval="$enable_backtrace"
a848cd7e
SC
5050
5051 if test "$enableval" = yes; then
36b6448c 5052 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5053 else
36b6448c 5054 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5055 fi
5056
5057else
5058
36b6448c 5059 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5060 if test "x$LINE" != x ; then
5061 eval "DEFAULT_$LINE"
5062 else
5063 no_cache=1
5064 fi
5065
36b6448c 5066 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5067
5068fi;
5069
36b6448c 5070 eval "$ac_cv_use_backtrace"
a848cd7e 5071 if test "$no_cache" != 1; then
36b6448c 5072 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5073 fi
5074
36b6448c 5075 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5076 echo "$as_me:$LINENO: result: yes" >&5
5077echo "${ECHO_T}yes" >&6
5078 else
5079 echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081 fi
5082
5083
eaff0f0d 5084 enablestring=
36b6448c
VZ
5085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5086echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5087 no_cache=0
36b6448c
VZ
5088 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5089if test "${enable_catch_segvs+set}" = set; then
5090 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5091
5092 if test "$enableval" = yes; then
36b6448c 5093 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5094 else
36b6448c 5095 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5096 fi
5097
5098else
5099
36b6448c 5100 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5101 if test "x$LINE" != x ; then
5102 eval "DEFAULT_$LINE"
5103 else
5104 no_cache=1
5105 fi
5106
36b6448c 5107 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5108
5109fi;
5110
36b6448c 5111 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5112 if test "$no_cache" != 1; then
36b6448c 5113 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5114 fi
5115
36b6448c 5116 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5117 echo "$as_me:$LINENO: result: yes" >&5
5118echo "${ECHO_T}yes" >&6
5119 else
5120 echo "$as_me:$LINENO: result: no" >&5
5121echo "${ECHO_T}no" >&6
5122 fi
5123
5124
a848cd7e
SC
5125 enablestring=
5126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5127echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5128 no_cache=0
5129 # Check whether --enable-cmdline or --disable-cmdline was given.
5130if test "${enable_cmdline+set}" = set; then
5131 enableval="$enable_cmdline"
5132
5133 if test "$enableval" = yes; then
5134 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5135 else
5136 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5137 fi
5138
5139else
5140
5141 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5142 if test "x$LINE" != x ; then
5143 eval "DEFAULT_$LINE"
5144 else
5145 no_cache=1
5146 fi
5147
5148 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5149
5150fi;
5151
5152 eval "$ac_cv_use_cmdline"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5158 echo "$as_me:$LINENO: result: yes" >&5
5159echo "${ECHO_T}yes" >&6
5160 else
5161 echo "$as_me:$LINENO: result: no" >&5
5162echo "${ECHO_T}no" >&6
5163 fi
5164
5165
5166 enablestring=
5167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5168echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5169 no_cache=0
5170 # Check whether --enable-datetime or --disable-datetime was given.
5171if test "${enable_datetime+set}" = set; then
5172 enableval="$enable_datetime"
5173
5174 if test "$enableval" = yes; then
5175 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5176 else
5177 ac_cv_use_datetime='wxUSE_DATETIME=no'
5178 fi
5179
5180else
5181
5182 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5183 if test "x$LINE" != x ; then
5184 eval "DEFAULT_$LINE"
5185 else
5186 no_cache=1
5187 fi
5188
5189 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5190
5191fi;
5192
5193 eval "$ac_cv_use_datetime"
5194 if test "$no_cache" != 1; then
5195 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5196 fi
5197
5198 if test "$wxUSE_DATETIME" = yes; then
5199 echo "$as_me:$LINENO: result: yes" >&5
5200echo "${ECHO_T}yes" >&6
5201 else
5202 echo "$as_me:$LINENO: result: no" >&5
5203echo "${ECHO_T}no" >&6
5204 fi
5205
5206
36b6448c
VZ
5207 enablestring=
5208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5209echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5210 no_cache=0
5211 # Check whether --enable-debugreport or --disable-debugreport was given.
5212if test "${enable_debugreport+set}" = set; then
5213 enableval="$enable_debugreport"
5214
5215 if test "$enableval" = yes; then
5216 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5217 else
5218 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5219 fi
5220
5221else
5222
5223 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5224 if test "x$LINE" != x ; then
5225 eval "DEFAULT_$LINE"
5226 else
5227 no_cache=1
5228 fi
5229
5230 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5231
5232fi;
5233
5234 eval "$ac_cv_use_debugreport"
5235 if test "$no_cache" != 1; then
5236 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5237 fi
5238
5239 if test "$wxUSE_DEBUGREPORT" = yes; then
5240 echo "$as_me:$LINENO: result: yes" >&5
5241echo "${ECHO_T}yes" >&6
5242 else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245 fi
5246
5247
a848cd7e
SC
5248 enablestring=
5249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5250echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5251 no_cache=0
5252 # Check whether --enable-dialupman or --disable-dialupman was given.
5253if test "${enable_dialupman+set}" = set; then
5254 enableval="$enable_dialupman"
5255
5256 if test "$enableval" = yes; then
5257 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5258 else
5259 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5260 fi
5261
5262else
5263
5264 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5272
5273fi;
5274
5275 eval "$ac_cv_use_dialupman"
5276 if test "$no_cache" != 1; then
5277 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5278 fi
5279
5280 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5281 echo "$as_me:$LINENO: result: yes" >&5
5282echo "${ECHO_T}yes" >&6
5283 else
5284 echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286 fi
5287
5288
5289 enablestring=
5290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5291echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5292 no_cache=0
5293 # Check whether --enable-dynlib or --disable-dynlib was given.
5294if test "${enable_dynlib+set}" = set; then
5295 enableval="$enable_dynlib"
5296
5297 if test "$enableval" = yes; then
5298 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5299 else
5300 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5301 fi
5302
5303else
5304
5305 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5306 if test "x$LINE" != x ; then
5307 eval "DEFAULT_$LINE"
5308 else
5309 no_cache=1
5310 fi
5311
5312 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5313
5314fi;
5315
5316 eval "$ac_cv_use_dynlib"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5322 echo "$as_me:$LINENO: result: yes" >&5
5323echo "${ECHO_T}yes" >&6
5324 else
5325 echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6
5327 fi
5328
5329
5330 enablestring=
5331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5332echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5333 no_cache=0
5334 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5335if test "${enable_dynamicloader+set}" = set; then
5336 enableval="$enable_dynamicloader"
5337
5338 if test "$enableval" = yes; then
5339 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5340 else
5341 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5342 fi
5343
5344else
5345
5346 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5354
5355fi;
5356
5357 eval "$ac_cv_use_dynamicloader"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5363 echo "$as_me:$LINENO: result: yes" >&5
5364echo "${ECHO_T}yes" >&6
5365 else
5366 echo "$as_me:$LINENO: result: no" >&5
5367echo "${ECHO_T}no" >&6
5368 fi
5369
5370
5371 enablestring=
5372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5373echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5374 no_cache=0
5375 # Check whether --enable-exceptions or --disable-exceptions was given.
5376if test "${enable_exceptions+set}" = set; then
5377 enableval="$enable_exceptions"
5378
5379 if test "$enableval" = yes; then
5380 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5381 else
5382 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5383 fi
5384
5385else
5386
5387 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5395
5396fi;
5397
5398 eval "$ac_cv_use_exceptions"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_EXCEPTIONS" = yes; then
5404 echo "$as_me:$LINENO: result: yes" >&5
5405echo "${ECHO_T}yes" >&6
5406 else
5407 echo "$as_me:$LINENO: result: no" >&5
5408echo "${ECHO_T}no" >&6
5409 fi
5410
5411
5412 enablestring=
5413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5414echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5415 no_cache=0
5416 # Check whether --enable-ffile or --disable-ffile was given.
5417if test "${enable_ffile+set}" = set; then
5418 enableval="$enable_ffile"
5419
5420 if test "$enableval" = yes; then
5421 ac_cv_use_ffile='wxUSE_FFILE=yes'
5422 else
5423 ac_cv_use_ffile='wxUSE_FFILE=no'
5424 fi
5425
5426else
5427
5428 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5429 if test "x$LINE" != x ; then
5430 eval "DEFAULT_$LINE"
5431 else
5432 no_cache=1
5433 fi
5434
5435 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5436
5437fi;
5438
5439 eval "$ac_cv_use_ffile"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_FFILE" = yes; then
5445 echo "$as_me:$LINENO: result: yes" >&5
5446echo "${ECHO_T}yes" >&6
5447 else
5448 echo "$as_me:$LINENO: result: no" >&5
5449echo "${ECHO_T}no" >&6
5450 fi
5451
5452
5453 enablestring=
5454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5455echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5456 no_cache=0
5457 # Check whether --enable-file or --disable-file was given.
5458if test "${enable_file+set}" = set; then
5459 enableval="$enable_file"
5460
5461 if test "$enableval" = yes; then
5462 ac_cv_use_file='wxUSE_FILE=yes'
5463 else
5464 ac_cv_use_file='wxUSE_FILE=no'
5465 fi
5466
5467else
5468
5469 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5470 if test "x$LINE" != x ; then
5471 eval "DEFAULT_$LINE"
5472 else
5473 no_cache=1
5474 fi
5475
5476 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5477
5478fi;
5479
5480 eval "$ac_cv_use_file"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_FILE" = yes; then
5486 echo "$as_me:$LINENO: result: yes" >&5
5487echo "${ECHO_T}yes" >&6
5488 else
5489 echo "$as_me:$LINENO: result: no" >&5
5490echo "${ECHO_T}no" >&6
5491 fi
5492
5493
5494 enablestring=
5495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5496echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5497 no_cache=0
5498 # Check whether --enable-filesystem or --disable-filesystem was given.
5499if test "${enable_filesystem+set}" = set; then
5500 enableval="$enable_filesystem"
5501
5502 if test "$enableval" = yes; then
5503 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5504 else
5505 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5506 fi
5507
5508else
5509
5510 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5511 if test "x$LINE" != x ; then
5512 eval "DEFAULT_$LINE"
5513 else
5514 no_cache=1
5515 fi
5516
5517 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5518
5519fi;
5520
5521 eval "$ac_cv_use_filesystem"
5522 if test "$no_cache" != 1; then
5523 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5524 fi
5525
5526 if test "$wxUSE_FILESYSTEM" = yes; then
5527 echo "$as_me:$LINENO: result: yes" >&5
5528echo "${ECHO_T}yes" >&6
5529 else
5530 echo "$as_me:$LINENO: result: no" >&5
5531echo "${ECHO_T}no" >&6
5532 fi
5533
5534
5535 enablestring=
5536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5537echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5538 no_cache=0
5539 # Check whether --enable-fontmap or --disable-fontmap was given.
5540if test "${enable_fontmap+set}" = set; then
5541 enableval="$enable_fontmap"
5542
5543 if test "$enableval" = yes; then
5544 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5545 else
5546 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5547 fi
5548
5549else
5550
5551 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5552 if test "x$LINE" != x ; then
5553 eval "DEFAULT_$LINE"
5554 else
5555 no_cache=1
5556 fi
5557
5558 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5559
5560fi;
5561
5562 eval "$ac_cv_use_fontmap"
5563 if test "$no_cache" != 1; then
5564 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5565 fi
5566
5567 if test "$wxUSE_FONTMAP" = yes; then
5568 echo "$as_me:$LINENO: result: yes" >&5
5569echo "${ECHO_T}yes" >&6
5570 else
5571 echo "$as_me:$LINENO: result: no" >&5
5572echo "${ECHO_T}no" >&6
5573 fi
5574
5575
5576 enablestring=
5577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5578echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5579 no_cache=0
5580 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5581if test "${enable_fs_inet+set}" = set; then
5582 enableval="$enable_fs_inet"
5583
5584 if test "$enableval" = yes; then
5585 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5586 else
5587 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5588 fi
5589
5590else
5591
5592 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5593 if test "x$LINE" != x ; then
5594 eval "DEFAULT_$LINE"
5595 else
5596 no_cache=1
5597 fi
5598
5599 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5600
5601fi;
5602
5603 eval "$ac_cv_use_fs_inet"
5604 if test "$no_cache" != 1; then
5605 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5606 fi
5607
5608 if test "$wxUSE_FS_INET" = yes; then
5609 echo "$as_me:$LINENO: result: yes" >&5
5610echo "${ECHO_T}yes" >&6
5611 else
5612 echo "$as_me:$LINENO: result: no" >&5
5613echo "${ECHO_T}no" >&6
5614 fi
5615
5616
5617 enablestring=
5618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5619echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5620 no_cache=0
5621 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5622if test "${enable_fs_zip+set}" = set; then
5623 enableval="$enable_fs_zip"
5624
5625 if test "$enableval" = yes; then
5626 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5627 else
5628 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5629 fi
5630
5631else
5632
5633 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5634 if test "x$LINE" != x ; then
5635 eval "DEFAULT_$LINE"
5636 else
5637 no_cache=1
5638 fi
5639
5640 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5641
5642fi;
5643
5644 eval "$ac_cv_use_fs_zip"
5645 if test "$no_cache" != 1; then
5646 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5647 fi
5648
5649 if test "$wxUSE_FS_ZIP" = yes; then
5650 echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6
5652 else
5653 echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
5655 fi
5656
5657
5658 enablestring=
5659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5660echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5661 no_cache=0
5662 # Check whether --enable-geometry or --disable-geometry was given.
5663if test "${enable_geometry+set}" = set; then
5664 enableval="$enable_geometry"
5665
5666 if test "$enableval" = yes; then
5667 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5668 else
5669 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5670 fi
5671
5672else
5673
5674 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5675 if test "x$LINE" != x ; then
5676 eval "DEFAULT_$LINE"
5677 else
5678 no_cache=1
5679 fi
5680
5681 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5682
5683fi;
5684
5685 eval "$ac_cv_use_geometry"
5686 if test "$no_cache" != 1; then
5687 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5688 fi
5689
5690 if test "$wxUSE_GEOMETRY" = yes; then
5691 echo "$as_me:$LINENO: result: yes" >&5
5692echo "${ECHO_T}yes" >&6
5693 else
5694 echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696 fi
5697
5698
5699 enablestring=
5700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5701echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5702 no_cache=0
5703 # Check whether --enable-log or --disable-log was given.
5704if test "${enable_log+set}" = set; then
5705 enableval="$enable_log"
5706
5707 if test "$enableval" = yes; then
5708 ac_cv_use_log='wxUSE_LOG=yes'
5709 else
5710 ac_cv_use_log='wxUSE_LOG=no'
5711 fi
5712
5713else
5714
5715 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5716 if test "x$LINE" != x ; then
5717 eval "DEFAULT_$LINE"
5718 else
5719 no_cache=1
5720 fi
5721
5722 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5723
5724fi;
5725
5726 eval "$ac_cv_use_log"
5727 if test "$no_cache" != 1; then
5728 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5729 fi
5730
5731 if test "$wxUSE_LOG" = yes; then
5732 echo "$as_me:$LINENO: result: yes" >&5
5733echo "${ECHO_T}yes" >&6
5734 else
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737 fi
5738
5739
5740 enablestring=
5741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5742echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5743 no_cache=0
5744 # Check whether --enable-longlong or --disable-longlong was given.
5745if test "${enable_longlong+set}" = set; then
5746 enableval="$enable_longlong"
5747
5748 if test "$enableval" = yes; then
5749 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5750 else
5751 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5752 fi
5753
5754else
5755
5756 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5757 if test "x$LINE" != x ; then
5758 eval "DEFAULT_$LINE"
5759 else
5760 no_cache=1
5761 fi
5762
5763 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5764
5765fi;
5766
5767 eval "$ac_cv_use_longlong"
5768 if test "$no_cache" != 1; then
5769 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5770 fi
5771
5772 if test "$wxUSE_LONGLONG" = yes; then
5773 echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6
5775 else
5776 echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
5778 fi
5779
5780
5781 enablestring=
5782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5783echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5784 no_cache=0
5785 # Check whether --enable-mimetype or --disable-mimetype was given.
5786if test "${enable_mimetype+set}" = set; then
5787 enableval="$enable_mimetype"
5788
5789 if test "$enableval" = yes; then
5790 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5791 else
5792 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5793 fi
5794
5795else
5796
5797 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 else
5801 no_cache=1
5802 fi
5803
5804 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5805
5806fi;
5807
5808 eval "$ac_cv_use_mimetype"
5809 if test "$no_cache" != 1; then
5810 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5811 fi
5812
5813 if test "$wxUSE_MIMETYPE" = yes; then
5814 echo "$as_me:$LINENO: result: yes" >&5
5815echo "${ECHO_T}yes" >&6
5816 else
5817 echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6
5819 fi
5820
5821
5822 enablestring=
5823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5824echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5825 no_cache=0
5826 # Check whether --enable-mslu or --disable-mslu was given.
5827if test "${enable_mslu+set}" = set; then
5828 enableval="$enable_mslu"
5829
5830 if test "$enableval" = yes; then
5831 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5832 else
5833 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5834 fi
5835
5836else
5837
5838 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5839 if test "x$LINE" != x ; then
5840 eval "DEFAULT_$LINE"
5841 else
5842 no_cache=1
5843 fi
5844
5845 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5846
5847fi;
5848
5849 eval "$ac_cv_use_mslu"
5850 if test "$no_cache" != 1; then
5851 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5852 fi
5853
5854 if test "$wxUSE_UNICODE_MSLU" = yes; then
5855 echo "$as_me:$LINENO: result: yes" >&5
5856echo "${ECHO_T}yes" >&6
5857 else
5858 echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6
5860 fi
5861
5862
5863 enablestring=
5864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5865echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5866 no_cache=0
5867 # Check whether --enable-snglinst or --disable-snglinst was given.
5868if test "${enable_snglinst+set}" = set; then
5869 enableval="$enable_snglinst"
5870
5871 if test "$enableval" = yes; then
5872 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5873 else
5874 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5875 fi
5876
5877else
5878
5879 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5887
5888fi;
5889
5890 eval "$ac_cv_use_snglinst"
5891 if test "$no_cache" != 1; then
5892 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5893 fi
5894
5895 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5896 echo "$as_me:$LINENO: result: yes" >&5
5897echo "${ECHO_T}yes" >&6
5898 else
5899 echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
5901 fi
5902
5903
5904 enablestring=
07158944
VZ
5905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5906echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5907 no_cache=0
07158944
VZ
5908 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5909if test "${enable_std_iostreams+set}" = set; then
5910 enableval="$enable_std_iostreams"
a848cd7e
SC
5911
5912 if test "$enableval" = yes; then
07158944 5913 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5914 else
07158944 5915 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5916 fi
5917
5918else
5919
07158944 5920 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
07158944 5927 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5928
5929fi;
5930
07158944 5931 eval "$ac_cv_use_std_iostreams"
a848cd7e 5932 if test "$no_cache" != 1; then
07158944 5933 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5934 fi
5935
07158944 5936 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5937 echo "$as_me:$LINENO: result: yes" >&5
5938echo "${ECHO_T}yes" >&6
5939 else
5940 echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
5942 fi
5943
5944
59746b65
MW
5945 enablestring=
5946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5947echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5948 no_cache=0
5949 # Check whether --enable-std_string or --disable-std_string was given.
5950if test "${enable_std_string+set}" = set; then
5951 enableval="$enable_std_string"
5952
5953 if test "$enableval" = yes; then
5954 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5955 else
5956 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5957 fi
5958
5959else
5960
5961 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5962 if test "x$LINE" != x ; then
5963 eval "DEFAULT_$LINE"
5964 else
5965 no_cache=1
5966 fi
5967
5968 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5969
5970fi;
5971
5972 eval "$ac_cv_use_std_string"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_STD_STRING" = yes; then
5978 echo "$as_me:$LINENO: result: yes" >&5
5979echo "${ECHO_T}yes" >&6
5980 else
5981 echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6
5983 fi
5984
5985
a848cd7e 5986 enablestring=
07158944
VZ
5987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5988echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5989 no_cache=0
07158944
VZ
5990 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5991if test "${enable_stdpaths+set}" = set; then
5992 enableval="$enable_stdpaths"
a848cd7e
SC
5993
5994 if test "$enableval" = yes; then
07158944 5995 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5996 else
07158944 5997 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5998 fi
5999
6000else
6001
07158944 6002 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
07158944 6009 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6010
6011fi;
6012
07158944 6013 eval "$ac_cv_use_stdpaths"
a848cd7e 6014 if test "$no_cache" != 1; then
07158944 6015 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6016 fi
6017
07158944 6018 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6019 echo "$as_me:$LINENO: result: yes" >&5
6020echo "${ECHO_T}yes" >&6
6021 else
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
6024 fi
6025
6026
6027 enablestring=
6028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6029echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6030 no_cache=0
6031 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6032if test "${enable_stopwatch+set}" = set; then
6033 enableval="$enable_stopwatch"
6034
6035 if test "$enableval" = yes; then
6036 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6037 else
6038 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6039 fi
6040
6041else
6042
6043 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6044 if test "x$LINE" != x ; then
6045 eval "DEFAULT_$LINE"
6046 else
6047 no_cache=1
6048 fi
6049
6050 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6051
6052fi;
6053
6054 eval "$ac_cv_use_stopwatch"
6055 if test "$no_cache" != 1; then
6056 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6057 fi
6058
6059 if test "$wxUSE_STOPWATCH" = yes; then
6060 echo "$as_me:$LINENO: result: yes" >&5
6061echo "${ECHO_T}yes" >&6
6062 else
6063 echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
6065 fi
6066
6067
07158944
VZ
6068 enablestring=
6069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6070echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6071 no_cache=0
6072 # Check whether --enable-streams or --disable-streams was given.
6073if test "${enable_streams+set}" = set; then
6074 enableval="$enable_streams"
6075
6076 if test "$enableval" = yes; then
6077 ac_cv_use_streams='wxUSE_STREAMS=yes'
6078 else
6079 ac_cv_use_streams='wxUSE_STREAMS=no'
6080 fi
6081
6082else
6083
6084 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6092
6093fi;
6094
6095 eval "$ac_cv_use_streams"
6096 if test "$no_cache" != 1; then
6097 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6098 fi
6099
6100 if test "$wxUSE_STREAMS" = yes; then
6101 echo "$as_me:$LINENO: result: yes" >&5
6102echo "${ECHO_T}yes" >&6
6103 else
6104 echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6
6106 fi
6107
6108
a848cd7e
SC
6109 enablestring=
6110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6111echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6112 no_cache=0
6113 # Check whether --enable-system_options or --disable-system_options was given.
6114if test "${enable_system_options+set}" = set; then
6115 enableval="$enable_system_options"
6116
6117 if test "$enableval" = yes; then
6118 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6119 else
6120 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6121 fi
6122
6123else
6124
6125 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6126 if test "x$LINE" != x ; then
6127 eval "DEFAULT_$LINE"
6128 else
6129 no_cache=1
6130 fi
6131
6132 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6133
6134fi;
6135
6136 eval "$ac_cv_use_system_options"
6137 if test "$no_cache" != 1; then
6138 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6139 fi
6140
6141 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6142 echo "$as_me:$LINENO: result: yes" >&5
6143echo "${ECHO_T}yes" >&6
6144 else
6145 echo "$as_me:$LINENO: result: no" >&5
6146echo "${ECHO_T}no" >&6
6147 fi
6148
6149
6150 enablestring=
6151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6152echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6153 no_cache=0
6154 # Check whether --enable-textbuf or --disable-textbuf was given.
6155if test "${enable_textbuf+set}" = set; then
6156 enableval="$enable_textbuf"
6157
6158 if test "$enableval" = yes; then
6159 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6160 else
6161 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6162 fi
6163
6164else
6165
6166 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6167 if test "x$LINE" != x ; then
6168 eval "DEFAULT_$LINE"
6169 else
6170 no_cache=1
6171 fi
6172
6173 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6174
6175fi;
6176
6177 eval "$ac_cv_use_textbuf"
6178 if test "$no_cache" != 1; then
6179 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6180 fi
6181
6182 if test "$wxUSE_TEXTBUFFER" = yes; then
6183 echo "$as_me:$LINENO: result: yes" >&5
6184echo "${ECHO_T}yes" >&6
6185 else
6186 echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6
6188 fi
6189
6190
6191 enablestring=
6192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6193echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6194 no_cache=0
6195 # Check whether --enable-textfile or --disable-textfile was given.
6196if test "${enable_textfile+set}" = set; then
6197 enableval="$enable_textfile"
6198
6199 if test "$enableval" = yes; then
6200 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6201 else
6202 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6203 fi
6204
6205else
6206
6207 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6208 if test "x$LINE" != x ; then
6209 eval "DEFAULT_$LINE"
6210 else
6211 no_cache=1
6212 fi
6213
6214 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6215
6216fi;
6217
6218 eval "$ac_cv_use_textfile"
6219 if test "$no_cache" != 1; then
6220 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6221 fi
6222
6223 if test "$wxUSE_TEXTFILE" = yes; then
6224 echo "$as_me:$LINENO: result: yes" >&5
6225echo "${ECHO_T}yes" >&6
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229 fi
6230
6231
6232 enablestring=
6233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6234echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6235 no_cache=0
6236 # Check whether --enable-timer or --disable-timer was given.
6237if test "${enable_timer+set}" = set; then
6238 enableval="$enable_timer"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_timer='wxUSE_TIMER=yes'
6242 else
6243 ac_cv_use_timer='wxUSE_TIMER=no'
6244 fi
6245
6246else
6247
6248 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6256
6257fi;
6258
6259 eval "$ac_cv_use_timer"
6260 if test "$no_cache" != 1; then
6261 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6262 fi
6263
6264 if test "$wxUSE_TIMER" = yes; then
6265 echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
6267 else
6268 echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270 fi
6271
6272
6273 enablestring=
6274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6275echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6276 no_cache=0
6277 # Check whether --enable-unicode or --disable-unicode was given.
6278if test "${enable_unicode+set}" = set; then
6279 enableval="$enable_unicode"
6280
6281 if test "$enableval" = yes; then
6282 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6283 else
6284 ac_cv_use_unicode='wxUSE_UNICODE=no'
6285 fi
6286
6287else
6288
6289 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
6296 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6297
6298fi;
6299
6300 eval "$ac_cv_use_unicode"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_UNICODE" = yes; then
6306 echo "$as_me:$LINENO: result: yes" >&5
6307echo "${ECHO_T}yes" >&6
6308 else
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311 fi
6312
6313
6314 enablestring=
6315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6316echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6317 no_cache=0
6318 # Check whether --enable-sound or --disable-sound was given.
6319if test "${enable_sound+set}" = set; then
6320 enableval="$enable_sound"
6321
6322 if test "$enableval" = yes; then
6323 ac_cv_use_sound='wxUSE_SOUND=yes'
6324 else
6325 ac_cv_use_sound='wxUSE_SOUND=no'
6326 fi
6327
6328else
6329
6330 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6331 if test "x$LINE" != x ; then
6332 eval "DEFAULT_$LINE"
6333 else
6334 no_cache=1
6335 fi
6336
6337 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6338
6339fi;
6340
6341 eval "$ac_cv_use_sound"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_SOUND" = yes; then
6347 echo "$as_me:$LINENO: result: yes" >&5
6348echo "${ECHO_T}yes" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
6352 fi
6353
6354
3b57de8b
RL
6355 enablestring=
6356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6357echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6358 no_cache=0
6359 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6360if test "${enable_mediactrl+set}" = set; then
6361 enableval="$enable_mediactrl"
6362
6363 if test "$enableval" = yes; then
6364 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6365 else
6366 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6367 fi
6368
6369else
6370
6371 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6372 if test "x$LINE" != x ; then
6373 eval "DEFAULT_$LINE"
6374 else
6375 no_cache=1
6376 fi
6377
6378 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6379
6380fi;
6381
6382 eval "$ac_cv_use_mediactrl"
6383 if test "$no_cache" != 1; then
6384 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6385 fi
6386
6387 if test "$wxUSE_MEDIACTRL" = yes; then
6388 echo "$as_me:$LINENO: result: yes" >&5
6389echo "${ECHO_T}yes" >&6
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393 fi
6394
6395
f10e38c4
VZ
6396 enablestring=
6397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6398echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6399 no_cache=0
6400 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6401if test "${enable_gstreamer8+set}" = set; then
6402 enableval="$enable_gstreamer8"
6403
6404 if test "$enableval" = yes; then
6405 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6406 else
6407 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6408 fi
6409
6410else
6411
6412 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6413 if test "x$LINE" != x ; then
6414 eval "DEFAULT_$LINE"
6415 else
6416 no_cache=1
6417 fi
6418
6419 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6420
6421fi;
6422
6423 eval "$ac_cv_use_gstreamer8"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_GSTREAMER8" = yes; then
6429 echo "$as_me:$LINENO: result: yes" >&5
6430echo "${ECHO_T}yes" >&6
6431 else
6432 echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6
6434 fi
6435
6436
a848cd7e 6437 enablestring=
8b6682b9
JS
6438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6439echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6440 no_cache=0
8b6682b9
JS
6441 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6442if test "${enable_printfposparam+set}" = set; then
6443 enableval="$enable_printfposparam"
a848cd7e
SC
6444
6445 if test "$enableval" = yes; then
8b6682b9 6446 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6447 else
8b6682b9 6448 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6449 fi
6450
6451else
6452
8b6682b9 6453 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
8b6682b9 6460 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6461
6462fi;
6463
8b6682b9 6464 eval "$ac_cv_use_printfposparam"
a848cd7e 6465 if test "$no_cache" != 1; then
8b6682b9 6466 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6467 fi
6468
8b6682b9 6469 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6470 echo "$as_me:$LINENO: result: yes" >&5
6471echo "${ECHO_T}yes" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475 fi
6476
6477
6478 enablestring=
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6481 no_cache=0
6482 # Check whether --enable-zipstream or --disable-zipstream was given.
6483if test "${enable_zipstream+set}" = set; then
6484 enableval="$enable_zipstream"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6488 else
6489 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6490 fi
6491
6492else
6493
6494 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6502
6503fi;
6504
6505 eval "$ac_cv_use_zipstream"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_ZIPSTREAM" = yes; then
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516 fi
6517
6518
a848cd7e
SC
6519
6520 enablestring=
6521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6522echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6523 no_cache=0
6524 # Check whether --enable-url or --disable-url was given.
6525if test "${enable_url+set}" = set; then
6526 enableval="$enable_url"
6527
6528 if test "$enableval" = yes; then
6529 ac_cv_use_url='wxUSE_URL=yes'
6530 else
6531 ac_cv_use_url='wxUSE_URL=no'
6532 fi
6533
6534else
6535
6536 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6537 if test "x$LINE" != x ; then
6538 eval "DEFAULT_$LINE"
6539 else
6540 no_cache=1
6541 fi
6542
6543 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6544
6545fi;
6546
6547 eval "$ac_cv_use_url"
6548 if test "$no_cache" != 1; then
6549 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6550 fi
6551
6552 if test "$wxUSE_URL" = yes; then
6553 echo "$as_me:$LINENO: result: yes" >&5
6554echo "${ECHO_T}yes" >&6
6555 else
6556 echo "$as_me:$LINENO: result: no" >&5
6557echo "${ECHO_T}no" >&6
6558 fi
6559
6560
ca5c6ac3
VZ
6561 enablestring=
6562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6563echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6564 no_cache=0
6565 # Check whether --enable-variant or --disable-variant was given.
6566if test "${enable_variant+set}" = set; then
6567 enableval="$enable_variant"
6568
6569 if test "$enableval" = yes; then
6570 ac_cv_use_variant='wxUSE_VARIANT=yes'
6571 else
6572 ac_cv_use_variant='wxUSE_VARIANT=no'
6573 fi
6574
6575else
6576
6577 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6578 if test "x$LINE" != x ; then
6579 eval "DEFAULT_$LINE"
6580 else
6581 no_cache=1
6582 fi
6583
6584 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6585
6586fi;
6587
6588 eval "$ac_cv_use_variant"
6589 if test "$no_cache" != 1; then
6590 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6591 fi
6592
6593 if test "$wxUSE_VARIANT" = yes; then
6594 echo "$as_me:$LINENO: result: yes" >&5
6595echo "${ECHO_T}yes" >&6
6596 else
6597 echo "$as_me:$LINENO: result: no" >&5
6598echo "${ECHO_T}no" >&6
6599 fi
6600
6601
a848cd7e
SC
6602 enablestring=
6603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6604echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6605 no_cache=0
6606 # Check whether --enable-protocol or --disable-protocol was given.
6607if test "${enable_protocol+set}" = set; then
6608 enableval="$enable_protocol"
6609
6610 if test "$enableval" = yes; then
6611 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6612 else
6613 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6614 fi
6615
6616else
6617
6618 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6619 if test "x$LINE" != x ; then
6620 eval "DEFAULT_$LINE"
6621 else
6622 no_cache=1
6623 fi
6624
6625 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6626
6627fi;
6628
6629 eval "$ac_cv_use_protocol"
6630 if test "$no_cache" != 1; then
6631 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6632 fi
6633
6634 if test "$wxUSE_PROTOCOL" = yes; then
6635 echo "$as_me:$LINENO: result: yes" >&5
6636echo "${ECHO_T}yes" >&6
6637 else
6638 echo "$as_me:$LINENO: result: no" >&5
6639echo "${ECHO_T}no" >&6
6640 fi
6641
6642
6643 enablestring=
6644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6645echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6646 no_cache=0
6647 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6648if test "${enable_protocol_http+set}" = set; then
6649 enableval="$enable_protocol_http"
6650
6651 if test "$enableval" = yes; then
6652 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6653 else
6654 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6655 fi
6656
6657else
6658
6659 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6660 if test "x$LINE" != x ; then
6661 eval "DEFAULT_$LINE"
6662 else
6663 no_cache=1
6664 fi
6665
6666 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6667
6668fi;
6669
6670 eval "$ac_cv_use_protocol_http"
6671 if test "$no_cache" != 1; then
6672 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6673 fi
6674
6675 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6676 echo "$as_me:$LINENO: result: yes" >&5
6677echo "${ECHO_T}yes" >&6
6678 else
6679 echo "$as_me:$LINENO: result: no" >&5
6680echo "${ECHO_T}no" >&6
6681 fi
6682
6683
6684 enablestring=
6685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6686echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6687 no_cache=0
6688 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6689if test "${enable_protocol_ftp+set}" = set; then
6690 enableval="$enable_protocol_ftp"
6691
6692 if test "$enableval" = yes; then
6693 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6694 else
6695 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6696 fi
6697
6698else
6699
6700 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6701 if test "x$LINE" != x ; then
6702 eval "DEFAULT_$LINE"
6703 else
6704 no_cache=1
6705 fi
6706
6707 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6708
6709fi;
6710
6711 eval "$ac_cv_use_protocol_ftp"
6712 if test "$no_cache" != 1; then
6713 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6714 fi
6715
6716 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6717 echo "$as_me:$LINENO: result: yes" >&5
6718echo "${ECHO_T}yes" >&6
6719 else
6720 echo "$as_me:$LINENO: result: no" >&5
6721echo "${ECHO_T}no" >&6
6722 fi
6723
6724
6725 enablestring=
6726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6727echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6728 no_cache=0
6729 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6730if test "${enable_protocol_file+set}" = set; then
6731 enableval="$enable_protocol_file"
6732
6733 if test "$enableval" = yes; then
6734 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6735 else
6736 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6737 fi
6738
6739else
6740
6741 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6742 if test "x$LINE" != x ; then
6743 eval "DEFAULT_$LINE"
6744 else
6745 no_cache=1
6746 fi
6747
6748 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6749
6750fi;
6751
6752 eval "$ac_cv_use_protocol_file"
6753 if test "$no_cache" != 1; then
6754 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6755 fi
6756
6757 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6758 echo "$as_me:$LINENO: result: yes" >&5
6759echo "${ECHO_T}yes" >&6
6760 else
6761 echo "$as_me:$LINENO: result: no" >&5
6762echo "${ECHO_T}no" >&6
6763 fi
6764
6765
6766
6767
6768
6769 enablestring=
6770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6771echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6772 no_cache=0
6773 # Check whether --enable-threads or --disable-threads was given.
6774if test "${enable_threads+set}" = set; then
6775 enableval="$enable_threads"
6776
6777 if test "$enableval" = yes; then
6778 ac_cv_use_threads='wxUSE_THREADS=yes'
6779 else
6780 ac_cv_use_threads='wxUSE_THREADS=no'
6781 fi
6782
6783else
6784
6785 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6786 if test "x$LINE" != x ; then
6787 eval "DEFAULT_$LINE"
6788 else
6789 no_cache=1
6790 fi
6791
6792 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6793
6794fi;
6795
6796 eval "$ac_cv_use_threads"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_THREADS" = yes; then
6802 echo "$as_me:$LINENO: result: yes" >&5
6803echo "${ECHO_T}yes" >&6
6804 else
6805 echo "$as_me:$LINENO: result: no" >&5
6806echo "${ECHO_T}no" >&6
6807 fi
6808
6809
6810if test "$wxUSE_GUI" = "yes"; then
6811
6812
6813
6814 enablestring=
6815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6816echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6817 no_cache=0
6818 # Check whether --enable-docview or --disable-docview was given.
6819if test "${enable_docview+set}" = set; then
6820 enableval="$enable_docview"
6821
6822 if test "$enableval" = yes; then
6823 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6824 else
6825 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6826 fi
6827
6828else
6829
6830 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6831 if test "x$LINE" != x ; then
6832 eval "DEFAULT_$LINE"
6833 else
6834 no_cache=1
6835 fi
6836
6837 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6838
6839fi;
6840
6841 eval "$ac_cv_use_docview"
6842 if test "$no_cache" != 1; then
6843 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6844 fi
6845
6846 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6847 echo "$as_me:$LINENO: result: yes" >&5
6848echo "${ECHO_T}yes" >&6
6849 else
6850 echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6
6852 fi
6853
6854
6855 enablestring=
6856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6857echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6858 no_cache=0
6859 # Check whether --enable-help or --disable-help was given.
6860if test "${enable_help+set}" = set; then
6861 enableval="$enable_help"
6862
6863 if test "$enableval" = yes; then
6864 ac_cv_use_help='wxUSE_HELP=yes'
6865 else
6866 ac_cv_use_help='wxUSE_HELP=no'
6867 fi
6868
6869else
6870
6871 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6872 if test "x$LINE" != x ; then
6873 eval "DEFAULT_$LINE"
6874 else
6875 no_cache=1
6876 fi
6877
6878 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6879
6880fi;
6881
6882 eval "$ac_cv_use_help"
6883 if test "$no_cache" != 1; then
6884 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6885 fi
6886
6887 if test "$wxUSE_HELP" = yes; then
6888 echo "$as_me:$LINENO: result: yes" >&5
6889echo "${ECHO_T}yes" >&6
6890 else
6891 echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6
6893 fi
6894
6895
6896 enablestring=
6897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6898echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6899 no_cache=0
6900 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6901if test "${enable_mshtmlhelp+set}" = set; then
6902 enableval="$enable_mshtmlhelp"
6903
6904 if test "$enableval" = yes; then
6905 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6906 else
6907 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6908 fi
6909
6910else
6911
6912 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6913 if test "x$LINE" != x ; then
6914 eval "DEFAULT_$LINE"
6915 else
6916 no_cache=1
6917 fi
6918
6919 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6920
6921fi;
6922
6923 eval "$ac_cv_use_mshtmlhelp"
6924 if test "$no_cache" != 1; then
6925 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6926 fi
6927
6928 if test "$wxUSE_MS_HTML_HELP" = yes; then
6929 echo "$as_me:$LINENO: result: yes" >&5
6930echo "${ECHO_T}yes" >&6
6931 else
6932 echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6
6934 fi
6935
6936
6937 enablestring=
6938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6939echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6940 no_cache=0
6941 # Check whether --enable-html or --disable-html was given.
6942if test "${enable_html+set}" = set; then
6943 enableval="$enable_html"
6944
6945 if test "$enableval" = yes; then
6946 ac_cv_use_html='wxUSE_HTML=yes'
6947 else
6948 ac_cv_use_html='wxUSE_HTML=no'
6949 fi
6950
6951else
6952
6953 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6954 if test "x$LINE" != x ; then
6955 eval "DEFAULT_$LINE"
6956 else
6957 no_cache=1
6958 fi
6959
6960 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6961
6962fi;
6963
6964 eval "$ac_cv_use_html"
6965 if test "$no_cache" != 1; then
6966 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6967 fi
6968
6969 if test "$wxUSE_HTML" = yes; then
6970 echo "$as_me:$LINENO: result: yes" >&5
6971echo "${ECHO_T}yes" >&6
6972 else
6973 echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6
6975 fi
6976
6977
6978 enablestring=
6979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6980echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6981 no_cache=0
6982 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6983if test "${enable_htmlhelp+set}" = set; then
6984 enableval="$enable_htmlhelp"
6985
6986 if test "$enableval" = yes; then
6987 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6988 else
6989 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6990 fi
6991
6992else
6993
6994 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6995 if test "x$LINE" != x ; then
6996 eval "DEFAULT_$LINE"
6997 else
6998 no_cache=1
6999 fi
7000
7001 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7002
7003fi;
7004
7005 eval "$ac_cv_use_htmlhelp"
7006 if test "$no_cache" != 1; then
7007 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7008 fi
7009
7010 if test "$wxUSE_WXHTML_HELP" = yes; then
7011 echo "$as_me:$LINENO: result: yes" >&5
7012echo "${ECHO_T}yes" >&6
7013 else
7014 echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6
7016 fi
7017
7018
9a8f0513
VS
7019 enablestring=
7020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7021echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7022 no_cache=0
7023 # Check whether --enable-xrc or --disable-xrc was given.
7024if test "${enable_xrc+set}" = set; then
7025 enableval="$enable_xrc"
7026
7027 if test "$enableval" = yes; then
7028 ac_cv_use_xrc='wxUSE_XRC=yes'
7029 else
7030 ac_cv_use_xrc='wxUSE_XRC=no'
7031 fi
7032
7033else
7034
7035 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7036 if test "x$LINE" != x ; then
7037 eval "DEFAULT_$LINE"
7038 else
7039 no_cache=1
7040 fi
7041
7042 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7043
7044fi;
7045
7046 eval "$ac_cv_use_xrc"
7047 if test "$no_cache" != 1; then
7048 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7049 fi
7050
7051 if test "$wxUSE_XRC" = yes; then
7052 echo "$as_me:$LINENO: result: yes" >&5
7053echo "${ECHO_T}yes" >&6
7054 else
7055 echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6
7057 fi
7058
7059
3f60522a
JS
7060 enablestring=
7061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7062echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7063 no_cache=0
7064 # Check whether --enable-aui or --disable-aui was given.
7065if test "${enable_aui+set}" = set; then
7066 enableval="$enable_aui"
7067
7068 if test "$enableval" = yes; then
7069 ac_cv_use_aui='wxUSE_AUI=yes'
7070 else
7071 ac_cv_use_aui='wxUSE_AUI=no'
7072 fi
7073
7074else
7075
7076 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7077 if test "x$LINE" != x ; then
7078 eval "DEFAULT_$LINE"
7079 else
7080 no_cache=1
7081 fi
7082
7083 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7084
7085fi;
7086
7087 eval "$ac_cv_use_aui"
7088 if test "$no_cache" != 1; then
7089 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7090 fi
7091
7092 if test "$wxUSE_AUI" = yes; then
7093 echo "$as_me:$LINENO: result: yes" >&5
7094echo "${ECHO_T}yes" >&6
7095 else
7096 echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098 fi
7099
7100
a848cd7e
SC
7101 enablestring=
7102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7103echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7104 no_cache=0
7105 # Check whether --enable-constraints or --disable-constraints was given.
7106if test "${enable_constraints+set}" = set; then
7107 enableval="$enable_constraints"
7108
7109 if test "$enableval" = yes; then
7110 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7111 else
7112 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7113 fi
7114
7115else
7116
7117 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7118 if test "x$LINE" != x ; then
7119 eval "DEFAULT_$LINE"
7120 else
7121 no_cache=1
7122 fi
7123
7124 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7125
7126fi;
7127
7128 eval "$ac_cv_use_constraints"
7129 if test "$no_cache" != 1; then
7130 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7131 fi
7132
7133 if test "$wxUSE_CONSTRAINTS" = yes; then
7134 echo "$as_me:$LINENO: result: yes" >&5
7135echo "${ECHO_T}yes" >&6
7136 else
7137 echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
7139 fi
7140
7141
7142 enablestring=
7143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7145 no_cache=0
7146 # Check whether --enable-printarch or --disable-printarch was given.
7147if test "${enable_printarch+set}" = set; then
7148 enableval="$enable_printarch"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7152 else
7153 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7154 fi
7155
7156else
7157
7158 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7166
7167fi;
7168
7169 eval "$ac_cv_use_printarch"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180 fi
7181
7182
7183 enablestring=
7184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7185echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7186 no_cache=0
7187 # Check whether --enable-mdi or --disable-mdi was given.
7188if test "${enable_mdi+set}" = set; then
7189 enableval="$enable_mdi"
7190
7191 if test "$enableval" = yes; then
8a7b1113 7192 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7193 else
8a7b1113 7194 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7195 fi
7196
7197else
7198
8a7b1113 7199 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
8a7b1113 7206 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7207
7208fi;
7209
7210 eval "$ac_cv_use_mdi"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7213 fi
7214
8a7b1113
VZ
7215 if test "$wxUSE_MDI" = yes; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217echo "${ECHO_T}yes" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221 fi
7222
7223
7224 enablestring=
7225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7226echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7227 no_cache=0
7228 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7229if test "${enable_mdidoc+set}" = set; then
7230 enableval="$enable_mdidoc"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7234 else
7235 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7248
7249fi;
7250
7251 eval "$ac_cv_use_mdidoc"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7254 fi
7255
a848cd7e
SC
7256 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 enablestring=
7266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7267echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7268 no_cache=0
7269 # Check whether --enable-loggui or --disable-loggui was given.
7270if test "${enable_loggui+set}" = set; then
7271 enableval="$enable_loggui"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7275 else
7276 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7289
7290fi;
7291
7292 eval "$ac_cv_use_loggui"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_LOGGUI" = yes; then
7298 echo "$as_me:$LINENO: result: yes" >&5
7299echo "${ECHO_T}yes" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303 fi
7304
7305
7306 enablestring=
7307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7308echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7309 no_cache=0
7310 # Check whether --enable-logwin or --disable-logwin was given.
7311if test "${enable_logwin+set}" = set; then
7312 enableval="$enable_logwin"
7313
7314 if test "$enableval" = yes; then
7315 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7316 else
7317 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7318 fi
7319
7320else
7321
7322 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7323 if test "x$LINE" != x ; then
7324 eval "DEFAULT_$LINE"
7325 else
7326 no_cache=1
7327 fi
7328
7329 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7330
7331fi;
7332
7333 eval "$ac_cv_use_logwin"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_LOGWINDOW" = yes; then
7339 echo "$as_me:$LINENO: result: yes" >&5
7340echo "${ECHO_T}yes" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344 fi
7345
7346
7347 enablestring=
7348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7349echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7350 no_cache=0
7351 # Check whether --enable-logdialog or --disable-logdialog was given.
7352if test "${enable_logdialog+set}" = set; then
7353 enableval="$enable_logdialog"
7354
7355 if test "$enableval" = yes; then
7356 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7357 else
7358 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7359 fi
7360
7361else
7362
7363 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7364 if test "x$LINE" != x ; then
7365 eval "DEFAULT_$LINE"
7366 else
7367 no_cache=1
7368 fi
7369
7370 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7371
7372fi;
7373
7374 eval "$ac_cv_use_logdialog"
7375 if test "$no_cache" != 1; then
7376 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7377 fi
7378
7379 if test "$wxUSE_LOGDIALOG" = yes; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385 fi
7386
7387
646b6ec1
VS
7388 enablestring=
7389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7390echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7391 no_cache=0
7392 # Check whether --enable-webkit or --disable-webkit was given.
7393if test "${enable_webkit+set}" = set; then
7394 enableval="$enable_webkit"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7398 else
7399 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7412
7413fi;
7414
7415 eval "$ac_cv_use_webkit"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_WEBKIT" = yes; then
7421 echo "$as_me:$LINENO: result: yes" >&5
7422echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426 fi
7427
7428
91dea314
MW
7429 enablestring=
7430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7432 no_cache=0
7433 # Check whether --enable-html or --disable-html was given.
7434if test "${enable_html+set}" = set; then
7435 enableval="$enable_html"
7436
7437 if test "$enableval" = yes; then
7438 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7439 else
7440 ac_cv_use_html='wxUSE_RICHTEXT=no'
7441 fi
7442
7443else
7444
7445 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7446 if test "x$LINE" != x ; then
7447 eval "DEFAULT_$LINE"
7448 else
7449 no_cache=1
7450 fi
7451
7452 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7453
7454fi;
7455
7456 eval "$ac_cv_use_html"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_RICHTEXT" = yes; then
7462 echo "$as_me:$LINENO: result: yes" >&5
7463echo "${ECHO_T}yes" >&6
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467 fi
7468
7469
f43426c1
RD
7470 enablestring=
7471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7472echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7473 no_cache=0
7474 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7475if test "${enable_graphics_ctx+set}" = set; then
7476 enableval="$enable_graphics_ctx"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7480 else
7481 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7494
7495fi;
7496
7497 eval "$ac_cv_use_graphics_ctx"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508 fi
7509
7510
a848cd7e
SC
7511
7512 enablestring=
7513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7514echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7515 no_cache=0
7516 # Check whether --enable-postscript or --disable-postscript was given.
7517if test "${enable_postscript+set}" = set; then
7518 enableval="$enable_postscript"
7519
7520 if test "$enableval" = yes; then
7521 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7522 else
7523 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7524 fi
7525
7526else
7527
7528 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7536
7537fi;
7538
7539 eval "$ac_cv_use_postscript"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_POSTSCRIPT" = yes; then
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
7547 else
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550 fi
7551
7552
7553
7554
7555
7556 enablestring=
7557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7558echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7559 no_cache=0
7560 # Check whether --enable-prologio or --disable-prologio was given.
7561if test "${enable_prologio+set}" = set; then
7562 enableval="$enable_prologio"
7563
7564 if test "$enableval" = yes; then
7565 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7566 else
7567 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7568 fi
7569
7570else
7571
7572 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7573 if test "x$LINE" != x ; then
7574 eval "DEFAULT_$LINE"
7575 else
7576 no_cache=1
7577 fi
7578
7579 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7580
7581fi;
7582
7583 eval "$ac_cv_use_prologio"
7584 if test "$no_cache" != 1; then
7585 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7586 fi
7587
7588 if test "$wxUSE_PROLOGIO" = yes; then
7589 echo "$as_me:$LINENO: result: yes" >&5
7590echo "${ECHO_T}yes" >&6
7591 else
7592 echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
7594 fi
7595
7596
7597 enablestring=
7598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7599echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7600 no_cache=0
7601 # Check whether --enable-resources or --disable-resources was given.
7602if test "${enable_resources+set}" = set; then
7603 enableval="$enable_resources"
7604
7605 if test "$enableval" = yes; then
7606 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7607 else
7608 ac_cv_use_resources='wxUSE_RESOURCES=no'
7609 fi
7610
7611else
7612
7613 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7614 if test "x$LINE" != x ; then
7615 eval "DEFAULT_$LINE"
7616 else
7617 no_cache=1
7618 fi
7619
7620 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7621
7622fi;
7623
7624 eval "$ac_cv_use_resources"
7625 if test "$no_cache" != 1; then
7626 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7627 fi
7628
7629 if test "$wxUSE_RESOURCES" = yes; then
7630 echo "$as_me:$LINENO: result: yes" >&5
7631echo "${ECHO_T}yes" >&6
7632 else
7633 echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635 fi
7636
7637
7638
7639
7640 enablestring=
7641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7642echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7643 no_cache=0
7644 # Check whether --enable-clipboard or --disable-clipboard was given.
7645if test "${enable_clipboard+set}" = set; then
7646 enableval="$enable_clipboard"
7647
7648 if test "$enableval" = yes; then
7649 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7650 else
7651 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7652 fi
7653
7654else
7655
7656 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7657 if test "x$LINE" != x ; then
7658 eval "DEFAULT_$LINE"
7659 else
7660 no_cache=1
7661 fi
7662
7663 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7664
7665fi;
7666
7667 eval "$ac_cv_use_clipboard"
7668 if test "$no_cache" != 1; then
7669 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7670 fi
7671
7672 if test "$wxUSE_CLIPBOARD" = yes; then
7673 echo "$as_me:$LINENO: result: yes" >&5
7674echo "${ECHO_T}yes" >&6
7675 else
7676 echo "$as_me:$LINENO: result: no" >&5
7677echo "${ECHO_T}no" >&6
7678 fi
7679
7680
7681 enablestring=
7682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7683echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7684 no_cache=0
7685 # Check whether --enable-dnd or --disable-dnd was given.
7686if test "${enable_dnd+set}" = set; then
7687 enableval="$enable_dnd"
7688
7689 if test "$enableval" = yes; then
7690 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7691 else
7692 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7693 fi
7694
7695else
7696
7697 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7698 if test "x$LINE" != x ; then
7699 eval "DEFAULT_$LINE"
7700 else
7701 no_cache=1
7702 fi
7703
7704 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7705
7706fi;
7707
7708 eval "$ac_cv_use_dnd"
7709 if test "$no_cache" != 1; then
7710 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7711 fi
7712
7713 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7714 echo "$as_me:$LINENO: result: yes" >&5
7715echo "${ECHO_T}yes" >&6
7716 else
7717 echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6
7719 fi
7720
7721
7722 enablestring=
7723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7724echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7725 no_cache=0
7726 # Check whether --enable-metafile or --disable-metafile was given.
7727if test "${enable_metafile+set}" = set; then
7728 enableval="$enable_metafile"
7729
7730 if test "$enableval" = yes; then
7731 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7732 else
7733 ac_cv_use_metafile='wxUSE_METAFILE=no'
7734 fi
7735
7736else
7737
7738 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7739 if test "x$LINE" != x ; then
7740 eval "DEFAULT_$LINE"
7741 else
7742 no_cache=1
7743 fi
7744
7745 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7746
7747fi;
7748
7749 eval "$ac_cv_use_metafile"
7750 if test "$no_cache" != 1; then
7751 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7752 fi
7753
7754 if test "$wxUSE_METAFILE" = yes; then
7755 echo "$as_me:$LINENO: result: yes" >&5
7756echo "${ECHO_T}yes" >&6
7757 else
7758 echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6
7760 fi
7761
7762
7763
7764
7765
7766 enablestring=
7767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7768echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7769 no_cache=0
7770 # Check whether --enable-controls or --disable-controls was given.
7771if test "${enable_controls+set}" = set; then
7772 enableval="$enable_controls"
7773
7774 if test "$enableval" = yes; then
7775 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7776 else
7777 ac_cv_use_controls='wxUSE_CONTROLS=no'
7778 fi
7779
7780else
7781
7782 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7783 if test "x$LINE" != x ; then
7784 eval "DEFAULT_$LINE"
7785 else
7786 no_cache=1
7787 fi
7788
7789 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7790
7791fi;
7792
7793 eval "$ac_cv_use_controls"
7794 if test "$no_cache" != 1; then
7795 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7796 fi
7797
7798 if test "$wxUSE_CONTROLS" = yes; then
7799 echo "$as_me:$LINENO: result: yes" >&5
7800echo "${ECHO_T}yes" >&6
7801 else
7802 echo "$as_me:$LINENO: result: no" >&5
7803echo "${ECHO_T}no" >&6
7804 fi
7805
7806
7807if test "$wxUSE_CONTROLS" = "yes"; then
7808 DEFAULT_wxUSE_ACCEL=yes
7809 DEFAULT_wxUSE_BMPBUTTON=yes
7810 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7811 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7812 DEFAULT_wxUSE_CARET=yes
7813 DEFAULT_wxUSE_COMBOBOX=yes
7814 DEFAULT_wxUSE_CHECKBOX=yes
7815 DEFAULT_wxUSE_CHECKLISTBOX=yes
7816 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7817 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7818 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7819 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7820 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7821 DEFAULT_wxUSE_DISPLAY=yes
7822 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7823 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7824 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7825 DEFAULT_wxUSE_GAUGE=yes
7826 DEFAULT_wxUSE_GRID=yes
6954625c 7827 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7828 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7829 DEFAULT_wxUSE_IMAGLIST=yes
7830 DEFAULT_wxUSE_LISTBOOK=yes
7831 DEFAULT_wxUSE_LISTBOX=yes
7832 DEFAULT_wxUSE_LISTCTRL=yes
7833 DEFAULT_wxUSE_NOTEBOOK=yes
7834 DEFAULT_wxUSE_RADIOBOX=yes
7835 DEFAULT_wxUSE_RADIOBTN=yes
7836 DEFAULT_wxUSE_SASH=yes
7837 DEFAULT_wxUSE_SCROLLBAR=yes
7838 DEFAULT_wxUSE_SLIDER=yes
7839 DEFAULT_wxUSE_SPINBTN=yes
7840 DEFAULT_wxUSE_SPINCTRL=yes
7841 DEFAULT_wxUSE_SPLITTER=yes
7842 DEFAULT_wxUSE_STATBMP=yes
7843 DEFAULT_wxUSE_STATBOX=yes
7844 DEFAULT_wxUSE_STATLINE=yes
7845 DEFAULT_wxUSE_STATUSBAR=yes
7846 DEFAULT_wxUSE_TAB_DIALOG=yes
7847 DEFAULT_wxUSE_TOGGLEBTN=yes
7848 DEFAULT_wxUSE_TOOLBAR=yes
7849 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7850 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7851 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7852 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7853 DEFAULT_wxUSE_TREECTRL=yes
7854 DEFAULT_wxUSE_POPUPWIN=yes
7855 DEFAULT_wxUSE_TIPWINDOW=yes
7856elif test "$wxUSE_CONTROLS" = "no"; then
7857 DEFAULT_wxUSE_ACCEL=no
7858 DEFAULT_wxUSE_BMPBUTTON=no
7859 DEFAULT_wxUSE_BUTTON=no
7860 DEFAULT_wxUSE_CALCTRL=no
7861 DEFAULT_wxUSE_CARET=no
7862 DEFAULT_wxUSE_COMBOBOX=no
7863 DEFAULT_wxUSE_CHECKBOX=no
7864 DEFAULT_wxUSE_CHECKLISTBOX=no
7865 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7866 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7867 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7868 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7869 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7870 DEFAULT_wxUSE_DISPLAY=no
7871 DEFAULT_wxUSE_DIRPICKERCTRL=no
7872 DEFAULT_wxUSE_FILEPICKERCTRL=no
7873 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7874 DEFAULT_wxUSE_GAUGE=no
7875 DEFAULT_wxUSE_GRID=no
6954625c 7876 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7877 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7878 DEFAULT_wxUSE_IMAGLIST=no
7879 DEFAULT_wxUSE_LISTBOOK=no
7880 DEFAULT_wxUSE_LISTBOX=no
7881 DEFAULT_wxUSE_LISTCTRL=no
7882 DEFAULT_wxUSE_NOTEBOOK=no
7883 DEFAULT_wxUSE_RADIOBOX=no
7884 DEFAULT_wxUSE_RADIOBTN=no
7885 DEFAULT_wxUSE_SASH=no
7886 DEFAULT_wxUSE_SCROLLBAR=no
7887 DEFAULT_wxUSE_SLIDER=no
7888 DEFAULT_wxUSE_SPINBTN=no
7889 DEFAULT_wxUSE_SPINCTRL=no
7890 DEFAULT_wxUSE_SPLITTER=no
7891 DEFAULT_wxUSE_STATBMP=no
7892 DEFAULT_wxUSE_STATBOX=no
7893 DEFAULT_wxUSE_STATLINE=no
7894 DEFAULT_wxUSE_STATUSBAR=no
7895 DEFAULT_wxUSE_TAB_DIALOG=no
7896 DEFAULT_wxUSE_TOGGLEBTN=no
7897 DEFAULT_wxUSE_TOOLBAR=no
7898 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7899 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7900 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7901 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7902 DEFAULT_wxUSE_TREECTRL=no
7903 DEFAULT_wxUSE_POPUPWIN=no
7904 DEFAULT_wxUSE_TIPWINDOW=no
7905fi
7906
a848cd7e
SC
7907
7908 enablestring=
7909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7910echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7911 no_cache=0
7912 # Check whether --enable-accel or --disable-accel was given.
7913if test "${enable_accel+set}" = set; then
7914 enableval="$enable_accel"
7915
7916 if test "$enableval" = yes; then
7917 ac_cv_use_accel='wxUSE_ACCEL=yes'
7918 else
7919 ac_cv_use_accel='wxUSE_ACCEL=no'
7920 fi
7921
7922else
7923
7924 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7932
7933fi;
7934
7935 eval "$ac_cv_use_accel"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_ACCEL" = yes; then
7941 echo "$as_me:$LINENO: result: yes" >&5
7942echo "${ECHO_T}yes" >&6
7943 else
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946 fi
7947
7948
7949 enablestring=
7950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7951echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7952 no_cache=0
7953 # Check whether --enable-button or --disable-button was given.
7954if test "${enable_button+set}" = set; then
7955 enableval="$enable_button"
7956
7957 if test "$enableval" = yes; then
7958 ac_cv_use_button='wxUSE_BUTTON=yes'
7959 else
7960 ac_cv_use_button='wxUSE_BUTTON=no'
7961 fi
7962
7963else
7964
7965 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7966 if test "x$LINE" != x ; then
7967 eval "DEFAULT_$LINE"
7968 else
7969 no_cache=1
7970 fi
7971
7972 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7973
7974fi;
7975
7976 eval "$ac_cv_use_button"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_BUTTON" = yes; then
7982 echo "$as_me:$LINENO: result: yes" >&5
7983echo "${ECHO_T}yes" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
7987 fi
7988
7989
7990 enablestring=
7991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7992echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7993 no_cache=0
7994 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7995if test "${enable_bmpbutton+set}" = set; then
7996 enableval="$enable_bmpbutton"
7997
7998 if test "$enableval" = yes; then
7999 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8000 else
8001 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8002 fi
8003
8004else
8005
8006 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8007 if test "x$LINE" != x ; then
8008 eval "DEFAULT_$LINE"
8009 else
8010 no_cache=1
8011 fi
8012
8013 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8014
8015fi;
8016
8017 eval "$ac_cv_use_bmpbutton"
8018 if test "$no_cache" != 1; then
8019 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8020 fi
8021
8022 if test "$wxUSE_BMPBUTTON" = yes; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024echo "${ECHO_T}yes" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028 fi
8029
8030
95a46303
RR
8031 enablestring=
8032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8033echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8034 no_cache=0
8035 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8036if test "${enable_bmpcombobox+set}" = set; then
8037 enableval="$enable_bmpcombobox"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8041 else
8042 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8043 fi
8044
8045else
8046
8047 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8055
8056fi;
8057
8058 eval "$ac_cv_use_bmpcombobox"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8064 echo "$as_me:$LINENO: result: yes" >&5
8065echo "${ECHO_T}yes" >&6
8066 else
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069 fi
8070
8071
a848cd7e
SC
8072 enablestring=
8073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8074echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8075 no_cache=0
8076 # Check whether --enable-calendar or --disable-calendar was given.
8077if test "${enable_calendar+set}" = set; then
8078 enableval="$enable_calendar"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8082 else
8083 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8084 fi
8085
8086else
8087
8088 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8096
8097fi;
8098
8099 eval "$ac_cv_use_calendar"
8100 if test "$no_cache" != 1; then
8101 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8102 fi
8103
8104 if test "$wxUSE_CALCTRL" = yes; then
8105 echo "$as_me:$LINENO: result: yes" >&5
8106echo "${ECHO_T}yes" >&6
8107 else
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
8110 fi
8111
8112
8113 enablestring=
8114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8115echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8116 no_cache=0
8117 # Check whether --enable-caret or --disable-caret was given.
8118if test "${enable_caret+set}" = set; then
8119 enableval="$enable_caret"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_caret='wxUSE_CARET=yes'
8123 else
8124 ac_cv_use_caret='wxUSE_CARET=no'
8125 fi
8126
8127else
8128
8129 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8137
8138fi;
8139
8140 eval "$ac_cv_use_caret"
8141 if test "$no_cache" != 1; then
8142 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8143 fi
8144
8145 if test "$wxUSE_CARET" = yes; then
8146 echo "$as_me:$LINENO: result: yes" >&5
8147echo "${ECHO_T}yes" >&6
8148 else
8149 echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6
8151 fi
8152
8153
8154 enablestring=
8155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8156echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8157 no_cache=0
8158 # Check whether --enable-checkbox or --disable-checkbox was given.
8159if test "${enable_checkbox+set}" = set; then
8160 enableval="$enable_checkbox"
8161
8162 if test "$enableval" = yes; then
8163 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8164 else
8165 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8166 fi
8167
8168else
8169
8170 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8171 if test "x$LINE" != x ; then
8172 eval "DEFAULT_$LINE"
8173 else
8174 no_cache=1
8175 fi
8176
8177 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8178
8179fi;
8180
8181 eval "$ac_cv_use_checkbox"
8182 if test "$no_cache" != 1; then
8183 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8184 fi
8185
8186 if test "$wxUSE_CHECKBOX" = yes; then
8187 echo "$as_me:$LINENO: result: yes" >&5
8188echo "${ECHO_T}yes" >&6
8189 else
8190 echo "$as_me:$LINENO: result: no" >&5
8191echo "${ECHO_T}no" >&6
8192 fi
8193
8194
8195 enablestring=
8196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8197echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8198 no_cache=0
8199 # Check whether --enable-checklst or --disable-checklst was given.
8200if test "${enable_checklst+set}" = set; then
8201 enableval="$enable_checklst"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8205 else
8206 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8219
8220fi;
8221
8222 eval "$ac_cv_use_checklst"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_CHECKLST" = yes; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229echo "${ECHO_T}yes" >&6
8230 else
8231 echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6
8233 fi
8234
8235
8236 enablestring=
8237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8238echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8239 no_cache=0
8240 # Check whether --enable-choice or --disable-choice was given.
8241if test "${enable_choice+set}" = set; then
8242 enableval="$enable_choice"
8243
8244 if test "$enableval" = yes; then
8245 ac_cv_use_choice='wxUSE_CHOICE=yes'
8246 else
8247 ac_cv_use_choice='wxUSE_CHOICE=no'
8248 fi
8249
8250else
8251
8252 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8260
8261fi;
8262
8263 eval "$ac_cv_use_choice"
8264 if test "$no_cache" != 1; then
8265 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8266 fi
8267
8268 if test "$wxUSE_CHOICE" = yes; then
8269 echo "$as_me:$LINENO: result: yes" >&5
8270echo "${ECHO_T}yes" >&6
8271 else
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
8274 fi
8275
8276
92bbdbcd
WS
8277 enablestring=
8278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8279echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8280 no_cache=0
8281 # Check whether --enable-choicebook or --disable-choicebook was given.
8282if test "${enable_choicebook+set}" = set; then
8283 enableval="$enable_choicebook"
8284
8285 if test "$enableval" = yes; then
8286 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8287 else
8288 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8289 fi
8290
8291else
8292
8293 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8294 if test "x$LINE" != x ; then
8295 eval "DEFAULT_$LINE"
8296 else
8297 no_cache=1
8298 fi
8299
8300 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8301
8302fi;
8303
8304 eval "$ac_cv_use_choicebook"
8305 if test "$no_cache" != 1; then
8306 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8307 fi
8308
8309 if test "$wxUSE_CHOICEBOOK" = yes; then
8310 echo "$as_me:$LINENO: result: yes" >&5
8311echo "${ECHO_T}yes" >&6
8312 else
8313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315 fi
8316
8317
e9263684
VZ
8318 enablestring=
8319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8320echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8321 no_cache=0
8322 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8323if test "${enable_colourpicker+set}" = set; then
8324 enableval="$enable_colourpicker"
8325
8326 if test "$enableval" = yes; then
8327 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8328 else
8329 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8330 fi
8331
8332else
8333
8334 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8335 if test "x$LINE" != x ; then
8336 eval "DEFAULT_$LINE"
8337 else
8338 no_cache=1
8339 fi
8340
8341 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8342
8343fi;
8344
8345 eval "$ac_cv_use_colourpicker"
8346 if test "$no_cache" != 1; then
8347 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8348 fi
8349
8350 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6
8356 fi
8357
8358
a848cd7e
SC
8359 enablestring=
8360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8361echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8362 no_cache=0
8363 # Check whether --enable-combobox or --disable-combobox was given.
8364if test "${enable_combobox+set}" = set; then
8365 enableval="$enable_combobox"
8366
8367 if test "$enableval" = yes; then
8368 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8369 else
8370 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8371 fi
8372
8373else
8374
8375 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8376 if test "x$LINE" != x ; then
8377 eval "DEFAULT_$LINE"
8378 else
8379 no_cache=1
8380 fi
8381
8382 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8383
8384fi;
8385
8386 eval "$ac_cv_use_combobox"
8387 if test "$no_cache" != 1; then
8388 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8389 fi
8390
8391 if test "$wxUSE_COMBOBOX" = yes; then
8392 echo "$as_me:$LINENO: result: yes" >&5
8393echo "${ECHO_T}yes" >&6
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
8397 fi
8398
8399
642bcba9 8400 enablestring=
a57d600f
VZ
8401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8402echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8403 no_cache=0
a57d600f
VZ
8404 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8405if test "${enable_comboctrl+set}" = set; then
8406 enableval="$enable_comboctrl"
642bcba9
VZ
8407
8408 if test "$enableval" = yes; then
a57d600f 8409 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8410 else
a57d600f 8411 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8412 fi
8413
8414else
8415
a57d600f 8416 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
a57d600f 8423 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8424
8425fi;
8426
a57d600f 8427 eval "$ac_cv_use_comboctrl"
642bcba9 8428 if test "$no_cache" != 1; then
a57d600f 8429 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8430 fi
8431
a57d600f 8432 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8433 echo "$as_me:$LINENO: result: yes" >&5
8434echo "${ECHO_T}yes" >&6
8435 else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438 fi
8439
8440
da98e9be
VZ
8441 enablestring=
8442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8443echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8444 no_cache=0
8445 # Check whether --enable-datepick or --disable-datepick was given.
8446if test "${enable_datepick+set}" = set; then
8447 enableval="$enable_datepick"
8448
8449 if test "$enableval" = yes; then
8450 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8451 else
8452 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8453 fi
8454
8455else
8456
8457 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8458 if test "x$LINE" != x ; then
8459 eval "DEFAULT_$LINE"
8460 else
8461 no_cache=1
8462 fi
8463
8464 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8465
8466fi;
8467
8468 eval "$ac_cv_use_datepick"
8469 if test "$no_cache" != 1; then
8470 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8471 fi
8472
8473 if test "$wxUSE_DATEPICKCTRL" = yes; then
8474 echo "$as_me:$LINENO: result: yes" >&5
8475echo "${ECHO_T}yes" >&6
8476 else
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
8479 fi
8480
8481
e9263684
VZ
8482 enablestring=
8483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8484echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8485 no_cache=0
8486 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8487if test "${enable_dirpicker+set}" = set; then
8488 enableval="$enable_dirpicker"
8489
8490 if test "$enableval" = yes; then
8491 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8492 else
8493 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8494 fi
8495
8496else
8497
8498 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8499 if test "x$LINE" != x ; then
8500 eval "DEFAULT_$LINE"
8501 else
8502 no_cache=1
8503 fi
8504
8505 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8506
8507fi;
8508
8509 eval "$ac_cv_use_dirpicker"
8510 if test "$no_cache" != 1; then
8511 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8512 fi
8513
8514 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8515 echo "$as_me:$LINENO: result: yes" >&5
8516echo "${ECHO_T}yes" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
8520 fi
8521
8522
a848cd7e
SC
8523 enablestring=
8524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8525echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8526 no_cache=0
8527 # Check whether --enable-display or --disable-display was given.
8528if test "${enable_display+set}" = set; then
8529 enableval="$enable_display"
8530
8531 if test "$enableval" = yes; then
8532 ac_cv_use_display='wxUSE_DISPLAY=yes'
8533 else
8534 ac_cv_use_display='wxUSE_DISPLAY=no'
8535 fi
8536
8537else
8538
8539 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8540 if test "x$LINE" != x ; then
8541 eval "DEFAULT_$LINE"
8542 else
8543 no_cache=1
8544 fi
8545
8546 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8547
8548fi;
8549
8550 eval "$ac_cv_use_display"
8551 if test "$no_cache" != 1; then
8552 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8553 fi
8554
8555 if test "$wxUSE_DISPLAY" = yes; then
8556 echo "$as_me:$LINENO: result: yes" >&5
8557echo "${ECHO_T}yes" >&6
8558 else
8559 echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6
8561 fi
8562
8563
e9263684
VZ
8564 enablestring=
8565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8566echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8567 no_cache=0
8568 # Check whether --enable-filepicker or --disable-filepicker was given.
8569if test "${enable_filepicker+set}" = set; then
8570 enableval="$enable_filepicker"
8571
8572 if test "$enableval" = yes; then
8573 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8574 else
8575 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8576 fi
8577
8578else
8579
8580 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8581 if test "x$LINE" != x ; then
8582 eval "DEFAULT_$LINE"
8583 else
8584 no_cache=1
8585 fi
8586
8587 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8588
8589fi;
8590
8591 eval "$ac_cv_use_filepicker"
8592 if test "$no_cache" != 1; then
8593 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8594 fi
8595
8596 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8597 echo "$as_me:$LINENO: result: yes" >&5
8598echo "${ECHO_T}yes" >&6
8599 else
8600 echo "$as_me:$LINENO: result: no" >&5
8601echo "${ECHO_T}no" >&6
8602 fi
8603
8604
8605 enablestring=
8606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8607echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8608 no_cache=0
8609 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8610if test "${enable_fontpicker+set}" = set; then
8611 enableval="$enable_fontpicker"
8612
8613 if test "$enableval" = yes; then
8614 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8615 else
8616 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8617 fi
8618
8619else
8620
8621 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8622 if test "x$LINE" != x ; then
8623 eval "DEFAULT_$LINE"
8624 else
8625 no_cache=1
8626 fi
8627
8628 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8629
8630fi;
8631
8632 eval "$ac_cv_use_fontpicker"
8633 if test "$no_cache" != 1; then
8634 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8635 fi
8636
8637 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8638 echo "$as_me:$LINENO: result: yes" >&5
8639echo "${ECHO_T}yes" >&6
8640 else
8641 echo "$as_me:$LINENO: result: no" >&5
8642echo "${ECHO_T}no" >&6
8643 fi
8644
8645
a848cd7e
SC
8646 enablestring=
8647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8648echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8649 no_cache=0
8650 # Check whether --enable-gauge or --disable-gauge was given.
8651if test "${enable_gauge+set}" = set; then
8652 enableval="$enable_gauge"
8653
8654 if test "$enableval" = yes; then
8655 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8656 else
8657 ac_cv_use_gauge='wxUSE_GAUGE=no'
8658 fi
8659
8660else
8661
8662 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8663 if test "x$LINE" != x ; then
8664 eval "DEFAULT_$LINE"
8665 else
8666 no_cache=1
8667 fi
8668
8669 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8670
8671fi;
8672
8673 eval "$ac_cv_use_gauge"
8674 if test "$no_cache" != 1; then
8675 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8676 fi
8677
8678 if test "$wxUSE_GAUGE" = yes; then
8679 echo "$as_me:$LINENO: result: yes" >&5
8680echo "${ECHO_T}yes" >&6
8681 else
8682 echo "$as_me:$LINENO: result: no" >&5
8683echo "${ECHO_T}no" >&6
8684 fi
8685
8686
8687 enablestring=
8688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8689echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8690 no_cache=0
8691 # Check whether --enable-grid or --disable-grid was given.
8692if test "${enable_grid+set}" = set; then
8693 enableval="$enable_grid"
8694
8695 if test "$enableval" = yes; then
8696 ac_cv_use_grid='wxUSE_GRID=yes'
8697 else
8698 ac_cv_use_grid='wxUSE_GRID=no'
8699 fi
8700
8701else
8702
8703 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8704 if test "x$LINE" != x ; then
8705 eval "DEFAULT_$LINE"
8706 else
8707 no_cache=1
8708 fi
8709
8710 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8711
8712fi;
8713
8714 eval "$ac_cv_use_grid"
8715 if test "$no_cache" != 1; then
8716 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8717 fi
8718
8719 if test "$wxUSE_GRID" = yes; then
8720 echo "$as_me:$LINENO: result: yes" >&5
8721echo "${ECHO_T}yes" >&6
8722 else
8723 echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6
8725 fi
8726
8727
20e34ecc
RR
8728 enablestring=
8729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8730echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8731 no_cache=0
8732 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8733if test "${enable_dataviewctrl+set}" = set; then
8734 enableval="$enable_dataviewctrl"
8735
8736 if test "$enableval" = yes; then
8737 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8738 else
8739 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8740 fi
8741
8742else
8743
8744 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8745 if test "x$LINE" != x ; then
8746 eval "DEFAULT_$LINE"
8747 else
8748 no_cache=1
8749 fi
8750
8751 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8752
8753fi;
8754
8755 eval "$ac_cv_use_dataviewctrl"
8756 if test "$no_cache" != 1; then
8757 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8758 fi
8759
8760 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8761 echo "$as_me:$LINENO: result: yes" >&5
8762echo "${ECHO_T}yes" >&6
8763 else
8764 echo "$as_me:$LINENO: result: no" >&5
8765echo "${ECHO_T}no" >&6
8766 fi
8767
8768
6954625c
VZ
8769 enablestring=
8770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8771echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8772 no_cache=0
8773 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8774if test "${enable_hyperlink+set}" = set; then
8775 enableval="$enable_hyperlink"
8776
8777 if test "$enableval" = yes; then
8778 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8779 else
8780 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8781 fi
8782
8783else
8784
8785 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8786 if test "x$LINE" != x ; then
8787 eval "DEFAULT_$LINE"
8788 else
8789 no_cache=1
8790 fi
8791
8792 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8793
8794fi;
8795
8796 eval "$ac_cv_use_hyperlink"
8797 if test "$no_cache" != 1; then
8798 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8799 fi
8800
8801 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8802 echo "$as_me:$LINENO: result: yes" >&5
8803echo "${ECHO_T}yes" >&6
8804 else
8805 echo "$as_me:$LINENO: result: no" >&5
8806echo "${ECHO_T}no" >&6
8807 fi
8808
8809
a848cd7e
SC
8810 enablestring=
8811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8812echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8813 no_cache=0
8814 # Check whether --enable-imaglist or --disable-imaglist was given.
8815if test "${enable_imaglist+set}" = set; then
8816 enableval="$enable_imaglist"
8817
8818 if test "$enableval" = yes; then
8819 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8820 else
8821 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8822 fi
8823
8824else
8825
8826 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8827 if test "x$LINE" != x ; then
8828 eval "DEFAULT_$LINE"
8829 else
8830 no_cache=1
8831 fi
8832
8833 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8834
8835fi;
8836
8837 eval "$ac_cv_use_imaglist"
8838 if test "$no_cache" != 1; then
8839 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8840 fi
8841
8842 if test "$wxUSE_IMAGLIST" = yes; then
8843 echo "$as_me:$LINENO: result: yes" >&5
8844echo "${ECHO_T}yes" >&6
8845 else
8846 echo "$as_me:$LINENO: result: no" >&5
8847echo "${ECHO_T}no" >&6
8848 fi
8849
8850
8851 enablestring=
8852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8853echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8854 no_cache=0
8855 # Check whether --enable-listbook or --disable-listbook was given.
8856if test "${enable_listbook+set}" = set; then
8857 enableval="$enable_listbook"
8858
8859 if test "$enableval" = yes; then
8860 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8861 else
8862 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8863 fi
8864
8865else
8866
8867 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8868 if test "x$LINE" != x ; then
8869 eval "DEFAULT_$LINE"
8870 else
8871 no_cache=1
8872 fi
8873
8874 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8875
8876fi;
8877
8878 eval "$ac_cv_use_listbook"
8879 if test "$no_cache" != 1; then
8880 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8881 fi
8882
8883 if test "$wxUSE_LISTBOOK" = yes; then
8884 echo "$as_me:$LINENO: result: yes" >&5
8885echo "${ECHO_T}yes" >&6
8886 else
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
8889 fi
8890
8891
8892 enablestring=
8893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8894echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8895 no_cache=0
8896 # Check whether --enable-listbox or --disable-listbox was given.
8897if test "${enable_listbox+set}" = set; then
8898 enableval="$enable_listbox"
8899
8900 if test "$enableval" = yes; then
8901 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8902 else
8903 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8904 fi
8905
8906else
8907
8908 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8909 if test "x$LINE" != x ; then
8910 eval "DEFAULT_$LINE"
8911 else
8912 no_cache=1
8913 fi
8914
8915 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8916
8917fi;
8918
8919 eval "$ac_cv_use_listbox"
8920 if test "$no_cache" != 1; then
8921 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8922 fi
8923
8924 if test "$wxUSE_LISTBOX" = yes; then
8925 echo "$as_me:$LINENO: result: yes" >&5
8926echo "${ECHO_T}yes" >&6
8927 else
8928 echo "$as_me:$LINENO: result: no" >&5
8929echo "${ECHO_T}no" >&6
8930 fi
8931
8932
8933 enablestring=
8934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8935echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8936 no_cache=0
8937 # Check whether --enable-listctrl or --disable-listctrl was given.
8938if test "${enable_listctrl+set}" = set; then
8939 enableval="$enable_listctrl"
8940
8941 if test "$enableval" = yes; then
8942 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8943 else
8944 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8945 fi
8946
8947else
8948
8949 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8950 if test "x$LINE" != x ; then
8951 eval "DEFAULT_$LINE"
8952 else
8953 no_cache=1
8954 fi
8955
8956 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8957
8958fi;
8959
8960 eval "$ac_cv_use_listctrl"
8961 if test "$no_cache" != 1; then
8962 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8963 fi
8964
8965 if test "$wxUSE_LISTCTRL" = yes; then
8966 echo "$as_me:$LINENO: result: yes" >&5
8967echo "${ECHO_T}yes" >&6
8968 else
8969 echo "$as_me:$LINENO: result: no" >&5
8970echo "${ECHO_T}no" >&6
8971 fi
8972
8973
8974 enablestring=
8975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8976echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8977 no_cache=0
8978 # Check whether --enable-notebook or --disable-notebook was given.
8979if test "${enable_notebook+set}" = set; then
8980 enableval="$enable_notebook"
8981
8982 if test "$enableval" = yes; then
8983 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8984 else
8985 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8986 fi
8987
8988else
8989
8990 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8991 if test "x$LINE" != x ; then
8992 eval "DEFAULT_$LINE"
8993 else
8994 no_cache=1
8995 fi
8996
8997 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8998
8999fi;
9000
9001 eval "$ac_cv_use_notebook"
9002 if test "$no_cache" != 1; then
9003 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9004 fi
9005
9006 if test "$wxUSE_NOTEBOOK" = yes; then
9007 echo "$as_me:$LINENO: result: yes" >&5
9008echo "${ECHO_T}yes" >&6
9009 else
9010 echo "$as_me:$LINENO: result: no" >&5
9011echo "${ECHO_T}no" >&6
9012 fi
9013
9014
642bcba9 9015 enablestring=
a57d600f
VZ
9016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9017echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9018 no_cache=0
a57d600f
VZ
9019 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9020if test "${enable_odcombobox+set}" = set; then
9021 enableval="$enable_odcombobox"
642bcba9
VZ
9022
9023 if test "$enableval" = yes; then
a57d600f 9024 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9025 else
a57d600f 9026 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9027 fi
9028
9029else
9030
a57d600f 9031 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9032 if test "x$LINE" != x ; then
9033 eval "DEFAULT_$LINE"
9034 else
9035 no_cache=1
9036 fi
9037
a57d600f 9038 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9039
9040fi;
9041
a57d600f 9042 eval "$ac_cv_use_odcombobox"
642bcba9 9043 if test "$no_cache" != 1; then
a57d600f 9044 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9045 fi
9046
a57d600f 9047 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9048 echo "$as_me:$LINENO: result: yes" >&5
9049echo "${ECHO_T}yes" >&6
9050 else
9051 echo "$as_me:$LINENO: result: no" >&5
9052echo "${ECHO_T}no" >&6
9053 fi
9054
9055
a848cd7e
SC
9056 enablestring=
9057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9058echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9059 no_cache=0
9060 # Check whether --enable-radiobox or --disable-radiobox was given.
9061if test "${enable_radiobox+set}" = set; then
9062 enableval="$enable_radiobox"
9063
9064 if test "$enableval" = yes; then
9065 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9066 else
9067 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9068 fi
9069
9070else
9071
9072 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9073 if test "x$LINE" != x ; then
9074 eval "DEFAULT_$LINE"
9075 else
9076 no_cache=1
9077 fi
9078
9079 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9080
9081fi;
9082
9083 eval "$ac_cv_use_radiobox"
9084 if test "$no_cache" != 1; then
9085 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9086 fi
9087
9088 if test "$wxUSE_RADIOBOX" = yes; then
9089 echo "$as_me:$LINENO: result: yes" >&5
9090echo "${ECHO_T}yes" >&6
9091 else
9092 echo "$as_me:$LINENO: result: no" >&5
9093echo "${ECHO_T}no" >&6
9094 fi
9095
9096
9097 enablestring=
9098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9099echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9100 no_cache=0
9101 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9102if test "${enable_radiobtn+set}" = set; then
9103 enableval="$enable_radiobtn"
9104
9105 if test "$enableval" = yes; then
9106 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9107 else
9108 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9109 fi
9110
9111else
9112
9113 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9114 if test "x$LINE" != x ; then
9115 eval "DEFAULT_$LINE"
9116 else
9117 no_cache=1
9118 fi
9119
9120 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9121
9122fi;
9123
9124 eval "$ac_cv_use_radiobtn"
9125 if test "$no_cache" != 1; then
9126 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9127 fi
9128
9129 if test "$wxUSE_RADIOBTN" = yes; then
9130 echo "$as_me:$LINENO: result: yes" >&5
9131echo "${ECHO_T}yes" >&6
9132 else
9133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
9135 fi
9136
9137
9138 enablestring=
9139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9140echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9141 no_cache=0
9142 # Check whether --enable-sash or --disable-sash was given.
9143if test "${enable_sash+set}" = set; then
9144 enableval="$enable_sash"
9145
9146 if test "$enableval" = yes; then
9147 ac_cv_use_sash='wxUSE_SASH=yes'
9148 else
9149 ac_cv_use_sash='wxUSE_SASH=no'
9150 fi
9151
9152else
9153
9154 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9155 if test "x$LINE" != x ; then
9156 eval "DEFAULT_$LINE"
9157 else
9158 no_cache=1
9159 fi
9160
9161 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9162
9163fi;
9164
9165 eval "$ac_cv_use_sash"
9166 if test "$no_cache" != 1; then
9167 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9168 fi
9169
9170 if test "$wxUSE_SASH" = yes; then
9171 echo "$as_me:$LINENO: result: yes" >&5
9172echo "${ECHO_T}yes" >&6
9173 else
9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
9176 fi
9177
9178
9179 enablestring=
9180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9181echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9182 no_cache=0
9183 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9184if test "${enable_scrollbar+set}" = set; then
9185 enableval="$enable_scrollbar"
9186
9187 if test "$enableval" = yes; then
9188 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9189 else
9190 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9191 fi
9192
9193else
9194
9195 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9196 if test "x$LINE" != x ; then
9197 eval "DEFAULT_$LINE"
9198 else
9199 no_cache=1
9200 fi
9201
9202 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9203
9204fi;
9205
9206 eval "$ac_cv_use_scrollbar"
9207 if test "$no_cache" != 1; then
9208 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9209 fi
9210
9211 if test "$wxUSE_SCROLLBAR" = yes; then
9212 echo "$as_me:$LINENO: result: yes" >&5
9213echo "${ECHO_T}yes" >&6
9214 else
9215 echo "$as_me:$LINENO: result: no" >&5
9216echo "${ECHO_T}no" >&6
9217 fi
9218
9219
9220 enablestring=
9221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9222echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9223 no_cache=0
9224 # Check whether --enable-slider or --disable-slider was given.
9225if test "${enable_slider+set}" = set; then
9226 enableval="$enable_slider"
9227
9228 if test "$enableval" = yes; then
9229 ac_cv_use_slider='wxUSE_SLIDER=yes'
9230 else
9231 ac_cv_use_slider='wxUSE_SLIDER=no'
9232 fi
9233
9234else
9235
9236 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9237 if test "x$LINE" != x ; then
9238 eval "DEFAULT_$LINE"
9239 else
9240 no_cache=1
9241 fi
9242
9243 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9244
9245fi;
9246
9247 eval "$ac_cv_use_slider"
9248 if test "$no_cache" != 1; then
9249 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9250 fi
9251
9252 if test "$wxUSE_SLIDER" = yes; then
9253 echo "$as_me:$LINENO: result: yes" >&5
9254echo "${ECHO_T}yes" >&6
9255 else
9256 echo "$as_me:$LINENO: result: no" >&5
9257echo "${ECHO_T}no" >&6
9258 fi
9259
9260
9261 enablestring=
9262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9263echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9264 no_cache=0
9265 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9266if test "${enable_spinbtn+set}" = set; then
9267 enableval="$enable_spinbtn"
9268
9269 if test "$enableval" = yes; then
9270 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9271 else
9272 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9273 fi
9274
9275else
9276
9277 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9278 if test "x$LINE" != x ; then
9279 eval "DEFAULT_$LINE"
9280 else
9281 no_cache=1
9282 fi
9283
9284 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9285
9286fi;
9287
9288 eval "$ac_cv_use_spinbtn"
9289 if test "$no_cache" != 1; then
9290 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9291 fi
9292
9293 if test "$wxUSE_SPINBTN" = yes; then
9294 echo "$as_me:$LINENO: result: yes" >&5
9295echo "${ECHO_T}yes" >&6
9296 else
9297 echo "$as_me:$LINENO: result: no" >&5
9298echo "${ECHO_T}no" >&6
9299 fi
9300
9301
9302 enablestring=
9303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9304echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9305 no_cache=0
9306 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9307if test "${enable_spinctrl+set}" = set; then
9308 enableval="$enable_spinctrl"
9309
9310 if test "$enableval" = yes; then
9311 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9312 else
9313 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9314 fi
9315
9316else
9317
9318 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9319 if test "x$LINE" != x ; then
9320 eval "DEFAULT_$LINE"
9321 else
9322 no_cache=1
9323 fi
9324
9325 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9326
9327fi;
9328
9329 eval "$ac_cv_use_spinctrl"
9330 if test "$no_cache" != 1; then
9331 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9332 fi
9333
9334 if test "$wxUSE_SPINCTRL" = yes; then
9335 echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6
9337 else
9338 echo "$as_me:$LINENO: result: no" >&5
9339echo "${ECHO_T}no" >&6
9340 fi
9341
9342
9343 enablestring=
9344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9345echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9346 no_cache=0
9347 # Check whether --enable-splitter or --disable-splitter was given.
9348if test "${enable_splitter+set}" = set; then
9349 enableval="$enable_splitter"
9350
9351 if test "$enableval" = yes; then
9352 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9353 else
9354 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9355 fi
9356
9357else
9358
9359 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9360 if test "x$LINE" != x ; then
9361 eval "DEFAULT_$LINE"
9362 else
9363 no_cache=1
9364 fi
9365
9366 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9367
9368fi;
9369
9370 eval "$ac_cv_use_splitter"
9371 if test "$no_cache" != 1; then
9372 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9373 fi
9374
9375 if test "$wxUSE_SPLITTER" = yes; then
9376 echo "$as_me:$LINENO: result: yes" >&5
9377echo "${ECHO_T}yes" >&6
9378 else
9379 echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
9381 fi
9382
9383
9384 enablestring=
9385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9386echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9387 no_cache=0
9388 # Check whether --enable-statbmp or --disable-statbmp was given.
9389if test "${enable_statbmp+set}" = set; then
9390 enableval="$enable_statbmp"
9391
9392 if test "$enableval" = yes; then
9393 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9394 else
9395 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9396 fi
9397
9398else
9399
9400 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9401 if test "x$LINE" != x ; then
9402 eval "DEFAULT_$LINE"
9403 else
9404 no_cache=1
9405 fi
9406
9407 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9408
9409fi;
9410
9411 eval "$ac_cv_use_statbmp"
9412 if test "$no_cache" != 1; then
9413 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9414 fi
9415
9416 if test "$wxUSE_STATBMP" = yes; then
9417 echo "$as_me:$LINENO: result: yes" >&5
9418echo "${ECHO_T}yes" >&6
9419 else
9420 echo "$as_me:$LINENO: result: no" >&5
9421echo "${ECHO_T}no" >&6
9422 fi
9423
9424
9425 enablestring=
9426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9427echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9428 no_cache=0
9429 # Check whether --enable-statbox or --disable-statbox was given.
9430if test "${enable_statbox+set}" = set; then
9431 enableval="$enable_statbox"
9432
9433 if test "$enableval" = yes; then
9434 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9435 else
9436 ac_cv_use_statbox='wxUSE_STATBOX=no'
9437 fi
9438
9439else
9440
9441 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9442 if test "x$LINE" != x ; then
9443 eval "DEFAULT_$LINE"
9444 else
9445 no_cache=1
9446 fi
9447
9448 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9449
9450fi;
9451
9452 eval "$ac_cv_use_statbox"
9453 if test "$no_cache" != 1; then
9454 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9455 fi
9456
9457 if test "$wxUSE_STATBOX" = yes; then
9458 echo "$as_me:$LINENO: result: yes" >&5
9459echo "${ECHO_T}yes" >&6
9460 else
9461 echo "$as_me:$LINENO: result: no" >&5
9462echo "${ECHO_T}no" >&6
9463 fi
9464
9465
9466 enablestring=
9467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9468echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9469 no_cache=0
9470 # Check whether --enable-statline or --disable-statline was given.
9471if test "${enable_statline+set}" = set; then
9472 enableval="$enable_statline"
9473
9474 if test "$enableval" = yes; then
9475 ac_cv_use_statline='wxUSE_STATLINE=yes'
9476 else
9477 ac_cv_use_statline='wxUSE_STATLINE=no'
9478 fi
9479
9480else
9481
9482 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9483 if test "x$LINE" != x ; then
9484 eval "DEFAULT_$LINE"
9485 else
9486 no_cache=1
9487 fi
9488
9489 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9490
9491fi;
9492
9493 eval "$ac_cv_use_statline"
9494 if test "$no_cache" != 1; then
9495 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9496 fi
9497
9498 if test "$wxUSE_STATLINE" = yes; then
9499 echo "$as_me:$LINENO: result: yes" >&5
9500echo "${ECHO_T}yes" >&6
9501 else
9502 echo "$as_me:$LINENO: result: no" >&5
9503echo "${ECHO_T}no" >&6
9504 fi
9505
9506
9507 enablestring=
9508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9509echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9510 no_cache=0
9511 # Check whether --enable-stattext or --disable-stattext was given.
9512if test "${enable_stattext+set}" = set; then
9513 enableval="$enable_stattext"
9514
9515 if test "$enableval" = yes; then
9516 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9517 else
9518 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9519 fi
9520
9521else
9522
9523 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9524 if test "x$LINE" != x ; then
9525 eval "DEFAULT_$LINE"
9526 else
9527 no_cache=1
9528 fi
9529
9530 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9531
9532fi;
9533
9534 eval "$ac_cv_use_stattext"
9535 if test "$no_cache" != 1; then
9536 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9537 fi
9538
9539 if test "$wxUSE_STATTEXT" = yes; then
9540 echo "$as_me:$LINENO: result: yes" >&5
9541echo "${ECHO_T}yes" >&6
9542 else
9543 echo "$as_me:$LINENO: result: no" >&5
9544echo "${ECHO_T}no" >&6
9545 fi
9546
9547
9548 enablestring=
9549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9550echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9551 no_cache=0
9552 # Check whether --enable-statusbar or --disable-statusbar was given.
9553if test "${enable_statusbar+set}" = set; then
9554 enableval="$enable_statusbar"
9555
9556 if test "$enableval" = yes; then
9557 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9558 else
9559 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9560 fi
9561
9562else
9563
9564 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9565 if test "x$LINE" != x ; then
9566 eval "DEFAULT_$LINE"
9567 else
9568 no_cache=1
9569 fi
9570
9571 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9572
9573fi;
9574
9575 eval "$ac_cv_use_statusbar"
9576 if test "$no_cache" != 1; then
9577 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9578 fi
9579
9580 if test "$wxUSE_STATUSBAR" = yes; then
9581 echo "$as_me:$LINENO: result: yes" >&5
9582echo "${ECHO_T}yes" >&6
9583 else
9584 echo "$as_me:$LINENO: result: no" >&5
9585echo "${ECHO_T}no" >&6
9586 fi
9587
9588
9589 enablestring=
9590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9591echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9592 no_cache=0
9593 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9594if test "${enable_tabdialog+set}" = set; then
9595 enableval="$enable_tabdialog"
9596
9597 if test "$enableval" = yes; then
f10e38c4 9598 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9599 else
f10e38c4 9600 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9601 fi
9602
9603else
9604
f10e38c4 9605 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9606 if test "x$LINE" != x ; then
9607 eval "DEFAULT_$LINE"
9608 else
9609 no_cache=1
9610 fi
9611
f10e38c4 9612 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9613
9614fi;
9615
9616 eval "$ac_cv_use_tabdialog"
9617 if test "$no_cache" != 1; then
9618 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9619 fi
9620
f10e38c4 9621 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9622 echo "$as_me:$LINENO: result: yes" >&5
9623echo "${ECHO_T}yes" >&6
9624 else
9625 echo "$as_me:$LINENO: result: no" >&5
9626echo "${ECHO_T}no" >&6
9627 fi
9628
9629
9630 enablestring=
9631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9632echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9633 no_cache=0
9634 # Check whether --enable-textctrl or --disable-textctrl was given.
9635if test "${enable_textctrl+set}" = set; then
9636 enableval="$enable_textctrl"
9637
9638 if test "$enableval" = yes; then
9639 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9640 else
9641 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9642 fi
9643
9644else
9645
9646 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9647 if test "x$LINE" != x ; then
9648 eval "DEFAULT_$LINE"
9649 else
9650 no_cache=1
9651 fi
9652
9653 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9654
9655fi;
9656
9657 eval "$ac_cv_use_textctrl"
9658 if test "$no_cache" != 1; then
9659 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9660 fi
9661
9662 if test "$wxUSE_TEXTCTRL" = yes; then
9663 echo "$as_me:$LINENO: result: yes" >&5
9664echo "${ECHO_T}yes" >&6
9665 else
9666 echo "$as_me:$LINENO: result: no" >&5
9667echo "${ECHO_T}no" >&6
9668 fi
9669
9670
9671 enablestring=
9672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9673echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9674 no_cache=0
9675 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9676if test "${enable_togglebtn+set}" = set; then
9677 enableval="$enable_togglebtn"
9678
9679 if test "$enableval" = yes; then
9680 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9681 else
9682 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9683 fi
9684
9685else
9686
9687 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9688 if test "x$LINE" != x ; then
9689 eval "DEFAULT_$LINE"
9690 else
9691 no_cache=1
9692 fi
9693
9694 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9695
9696fi;
9697
9698 eval "$ac_cv_use_togglebtn"
9699 if test "$no_cache" != 1; then
9700 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9701 fi
9702
9703 if test "$wxUSE_TOGGLEBTN" = yes; then
9704 echo "$as_me:$LINENO: result: yes" >&5
9705echo "${ECHO_T}yes" >&6
9706 else
9707 echo "$as_me:$LINENO: result: no" >&5
9708echo "${ECHO_T}no" >&6
9709 fi
9710
9711
9712 enablestring=
9713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9714echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9715 no_cache=0
9716 # Check whether --enable-toolbar or --disable-toolbar was given.
9717if test "${enable_toolbar+set}" = set; then
9718 enableval="$enable_toolbar"
9719
9720 if test "$enableval" = yes; then
9721 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9722 else
9723 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9724 fi
9725
9726else
9727
9728 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9729 if test "x$LINE" != x ; then
9730 eval "DEFAULT_$LINE"
9731 else
9732 no_cache=1
9733 fi
9734
9735 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9736
9737fi;
9738
9739 eval "$ac_cv_use_toolbar"
9740 if test "$no_cache" != 1; then
9741 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9742 fi
9743
9744 if test "$wxUSE_TOOLBAR" = yes; then
9745 echo "$as_me:$LINENO: result: yes" >&5
9746echo "${ECHO_T}yes" >&6
9747 else
9748 echo "$as_me:$LINENO: result: no" >&5
9749echo "${ECHO_T}no" >&6
9750 fi
9751
9752
9753 enablestring=
9754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9755echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9756 no_cache=0
9757 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9758if test "${enable_tbarnative+set}" = set; then
9759 enableval="$enable_tbarnative"
9760
9761 if test "$enableval" = yes; then
9762 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9763 else
9764 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9765 fi
9766
9767else
9768
9769 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9770 if test "x$LINE" != x ; then
9771 eval "DEFAULT_$LINE"
9772 else
9773 no_cache=1
9774 fi
9775
9776 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9777
9778fi;
9779
9780 eval "$ac_cv_use_tbarnative"
9781 if test "$no_cache" != 1; then
9782 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9783 fi
9784
9785 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9786 echo "$as_me:$LINENO: result: yes" >&5
9787echo "${ECHO_T}yes" >&6
9788 else
9789 echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
9791 fi
9792
9793
0093c2fc
VZ
9794 enablestring=
9795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9796echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9797 no_cache=0
9798 # Check whether --enable-treebook or --disable-treebook was given.
9799if test "${enable_treebook+set}" = set; then
9800 enableval="$enable_treebook"
9801
9802 if test "$enableval" = yes; then
9803 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9804 else
9805 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9806 fi
9807
9808else
9809
9810 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9811 if test "x$LINE" != x ; then
9812 eval "DEFAULT_$LINE"
9813 else
9814 no_cache=1
9815 fi
9816
9817 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9818
9819fi;
9820
9821 eval "$ac_cv_use_treebook"
9822 if test "$no_cache" != 1; then
9823 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9824 fi
9825
9826 if test "$wxUSE_TREEBOOK" = yes; then
9827 echo "$as_me:$LINENO: result: yes" >&5
9828echo "${ECHO_T}yes" >&6
9829 else
9830 echo "$as_me:$LINENO: result: no" >&5
9831echo "${ECHO_T}no" >&6
9832 fi
9833
9834
5ec3bc43
JS
9835 enablestring=
9836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9837echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9838 no_cache=0
9839 # Check whether --enable-toolbook or --disable-toolbook was given.
9840if test "${enable_toolbook+set}" = set; then
9841 enableval="$enable_toolbook"
9842
9843 if test "$enableval" = yes; then
9844 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9845 else
9846 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9847 fi
9848
9849else
9850
9851 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9852 if test "x$LINE" != x ; then
9853 eval "DEFAULT_$LINE"
9854 else
9855 no_cache=1
9856 fi
9857
9858 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9859
9860fi;
9861
9862 eval "$ac_cv_use_toolbook"
9863 if test "$no_cache" != 1; then
9864 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9865 fi
9866
9867 if test "$wxUSE_TOOLBOOK" = yes; then
9868 echo "$as_me:$LINENO: result: yes" >&5
9869echo "${ECHO_T}yes" >&6
9870 else
9871 echo "$as_me:$LINENO: result: no" >&5
9872echo "${ECHO_T}no" >&6
9873 fi
9874
9875
a848cd7e
SC
9876 enablestring=
9877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9878echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9879 no_cache=0
9880 # Check whether --enable-treectrl or --disable-treectrl was given.
9881if test "${enable_treectrl+set}" = set; then
9882 enableval="$enable_treectrl"
9883
9884 if test "$enableval" = yes; then
9885 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9886 else
9887 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9888 fi
9889
9890else
9891
9892 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9893 if test "x$LINE" != x ; then
9894 eval "DEFAULT_$LINE"
9895 else
9896 no_cache=1
9897 fi
9898
9899 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9900
9901fi;
9902
9903 eval "$ac_cv_use_treectrl"
9904 if test "$no_cache" != 1; then
9905 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9906 fi
9907
9908 if test "$wxUSE_TREECTRL" = yes; then
9909 echo "$as_me:$LINENO: result: yes" >&5
9910echo "${ECHO_T}yes" >&6
9911 else
9912 echo "$as_me:$LINENO: result: no" >&5
9913echo "${ECHO_T}no" >&6
9914 fi
9915
9916
9917 enablestring=
9918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9919echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9920 no_cache=0
9921 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9922if test "${enable_tipwindow+set}" = set; then
9923 enableval="$enable_tipwindow"
9924
9925 if test "$enableval" = yes; then
9926 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9927 else
9928 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9929 fi
9930
9931else
9932
9933 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9934 if test "x$LINE" != x ; then
9935 eval "DEFAULT_$LINE"
9936 else
9937 no_cache=1
9938 fi
9939
9940 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9941
9942fi;
9943
9944 eval "$ac_cv_use_tipwindow"
9945 if test "$no_cache" != 1; then
9946 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9947 fi
9948
9949 if test "$wxUSE_TIPWINDOW" = yes; then
9950 echo "$as_me:$LINENO: result: yes" >&5
9951echo "${ECHO_T}yes" >&6
9952 else
9953 echo "$as_me:$LINENO: result: no" >&5
9954echo "${ECHO_T}no" >&6
9955 fi
9956
9957
9958 enablestring=
9959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9960echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9961 no_cache=0
9962 # Check whether --enable-popupwin or --disable-popupwin was given.
9963if test "${enable_popupwin+set}" = set; then
9964 enableval="$enable_popupwin"
9965
9966 if test "$enableval" = yes; then
9967 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9968 else
9969 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9970 fi
9971
9972else
9973
9974 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9975 if test "x$LINE" != x ; then
9976 eval "DEFAULT_$LINE"
9977 else
9978 no_cache=1
9979 fi
9980
9981 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9982
9983fi;
9984
9985 eval "$ac_cv_use_popupwin"
9986 if test "$no_cache" != 1; then
9987 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9988 fi
9989
9990 if test "$wxUSE_POPUPWIN" = yes; then
9991 echo "$as_me:$LINENO: result: yes" >&5
9992echo "${ECHO_T}yes" >&6
9993 else
9994 echo "$as_me:$LINENO: result: no" >&5
9995echo "${ECHO_T}no" >&6
9996 fi
9997
9998
9999
10000
10001 enablestring=
10002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10003echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10004 no_cache=0
10005 # Check whether --enable-commondlg or --disable-commondlg was given.
10006if test "${enable_commondlg+set}" = set; then
10007 enableval="$enable_commondlg"
10008
10009 if test "$enableval" = yes; then
10010 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10011 else
10012 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10013 fi
10014
10015else
10016
10017 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10018 if test "x$LINE" != x ; then
10019 eval "DEFAULT_$LINE"
10020 else
10021 no_cache=1
10022 fi
10023
10024 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10025
10026fi;
10027
10028 eval "$ac_cv_use_commondlg"
10029 if test "$no_cache" != 1; then
10030 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10031 fi
10032
10033 if test "$wxUSE_COMMONDLGS" = yes; then
10034 echo "$as_me:$LINENO: result: yes" >&5
10035echo "${ECHO_T}yes" >&6
10036 else
10037 echo "$as_me:$LINENO: result: no" >&5
10038echo "${ECHO_T}no" >&6
10039 fi
10040
10041
10042 enablestring=
10043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10044echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10045 no_cache=0
10046 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10047if test "${enable_choicedlg+set}" = set; then
10048 enableval="$enable_choicedlg"
10049
10050 if test "$enableval" = yes; then
10051 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10052 else
10053 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10054 fi
10055
10056else
10057
10058 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10059 if test "x$LINE" != x ; then
10060 eval "DEFAULT_$LINE"
10061 else
10062 no_cache=1
10063 fi
10064
10065 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10066
10067fi;
10068
10069 eval "$ac_cv_use_choicedlg"
10070 if test "$no_cache" != 1; then
10071 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10072 fi
10073
10074 if test "$wxUSE_CHOICEDLG" = yes; then
10075 echo "$as_me:$LINENO: result: yes" >&5
10076echo "${ECHO_T}yes" >&6
10077 else
10078 echo "$as_me:$LINENO: result: no" >&5
10079echo "${ECHO_T}no" >&6
10080 fi
10081
10082
10083 enablestring=
10084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10085echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10086 no_cache=0
10087 # Check whether --enable-coldlg or --disable-coldlg was given.
10088if test "${enable_coldlg+set}" = set; then
10089 enableval="$enable_coldlg"
10090
10091 if test "$enableval" = yes; then
10092 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10093 else
10094 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10095 fi
10096
10097else
10098
10099 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10100 if test "x$LINE" != x ; then
10101 eval "DEFAULT_$LINE"
10102 else
10103 no_cache=1
10104 fi
10105
10106 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10107
10108fi;
10109
10110 eval "$ac_cv_use_coldlg"
10111 if test "$no_cache" != 1; then
10112 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10113 fi
10114
10115 if test "$wxUSE_COLOURDLG" = yes; then
10116 echo "$as_me:$LINENO: result: yes" >&5
10117echo "${ECHO_T}yes" >&6
10118 else
10119 echo "$as_me:$LINENO: result: no" >&5
10120echo "${ECHO_T}no" >&6
10121 fi
10122
10123
10124 enablestring=
10125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10126echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10127 no_cache=0
10128 # Check whether --enable-filedlg or --disable-filedlg was given.
10129if test "${enable_filedlg+set}" = set; then
10130 enableval="$enable_filedlg"
10131
10132 if test "$enableval" = yes; then
10133 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10134 else
10135 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10136 fi
10137
10138else
10139
10140 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10141 if test "x$LINE" != x ; then
10142 eval "DEFAULT_$LINE"
10143 else
10144 no_cache=1
10145 fi
10146
10147 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10148
10149fi;
10150
10151 eval "$ac_cv_use_filedlg"
10152 if test "$no_cache" != 1; then
10153 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10154 fi
10155
10156 if test "$wxUSE_FILEDLG" = yes; then
10157 echo "$as_me:$LINENO: result: yes" >&5
10158echo "${ECHO_T}yes" >&6
10159 else
10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
10162 fi
10163
10164
10165 enablestring=
10166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10167echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10168 no_cache=0
10169 # Check whether --enable-finddlg or --disable-finddlg was given.
10170if test "${enable_finddlg+set}" = set; then
10171 enableval="$enable_finddlg"
10172
10173 if test "$enableval" = yes; then
10174 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10175 else
10176 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10177 fi
10178
10179else
10180
10181 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10182 if test "x$LINE" != x ; then
10183 eval "DEFAULT_$LINE"
10184 else
10185 no_cache=1
10186 fi
10187
10188 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10189
10190fi;
10191
10192 eval "$ac_cv_use_finddlg"
10193 if test "$no_cache" != 1; then
10194 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10195 fi
10196
10197 if test "$wxUSE_FINDREPLDLG" = yes; then
10198 echo "$as_me:$LINENO: result: yes" >&5
10199echo "${ECHO_T}yes" >&6
10200 else
10201 echo "$as_me:$LINENO: result: no" >&5
10202echo "${ECHO_T}no" >&6
10203 fi
10204
10205
10206 enablestring=
10207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10208echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10209 no_cache=0
10210 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10211if test "${enable_fontdlg+set}" = set; then
10212 enableval="$enable_fontdlg"
10213
10214 if test "$enableval" = yes; then
10215 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10216 else
10217 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10218 fi
10219
10220else
10221
10222 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10223 if test "x$LINE" != x ; then
10224 eval "DEFAULT_$LINE"
10225 else
10226 no_cache=1
10227 fi
10228
10229 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10230
10231fi;
10232
10233 eval "$ac_cv_use_fontdlg"
10234 if test "$no_cache" != 1; then
10235 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10236 fi
10237
10238 if test "$wxUSE_FONTDLG" = yes; then
10239 echo "$as_me:$LINENO: result: yes" >&5
10240echo "${ECHO_T}yes" >&6
10241 else
10242 echo "$as_me:$LINENO: result: no" >&5
10243echo "${ECHO_T}no" >&6
10244 fi
10245
10246
10247 enablestring=
10248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10249echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10250 no_cache=0
10251 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10252if test "${enable_dirdlg+set}" = set; then
10253 enableval="$enable_dirdlg"
10254
10255 if test "$enableval" = yes; then
10256 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10257 else
10258 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10259 fi
10260
10261else
10262
10263 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10264 if test "x$LINE" != x ; then
10265 eval "DEFAULT_$LINE"
10266 else
10267 no_cache=1
10268 fi
10269
10270 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10271
10272fi;
10273
10274 eval "$ac_cv_use_dirdlg"
10275 if test "$no_cache" != 1; then
10276 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10277 fi
10278
10279 if test "$wxUSE_DIRDLG" = yes; then
10280 echo "$as_me:$LINENO: result: yes" >&5
10281echo "${ECHO_T}yes" >&6
10282 else
10283 echo "$as_me:$LINENO: result: no" >&5
10284echo "${ECHO_T}no" >&6
10285 fi
10286
10287
10288 enablestring=
10289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10290echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10291 no_cache=0
10292 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10293if test "${enable_msgdlg+set}" = set; then
10294 enableval="$enable_msgdlg"
10295
10296 if test "$enableval" = yes; then
10297 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10298 else
10299 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10300 fi
10301
10302else
10303
10304 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10305 if test "x$LINE" != x ; then
10306 eval "DEFAULT_$LINE"
10307 else
10308 no_cache=1
10309 fi
10310
10311 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10312
10313fi;
10314
10315 eval "$ac_cv_use_msgdlg"
10316 if test "$no_cache" != 1; then
10317 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10318 fi
10319
10320 if test "$wxUSE_MSGDLG" = yes; then
10321 echo "$as_me:$LINENO: result: yes" >&5
10322echo "${ECHO_T}yes" >&6
10323 else
10324 echo "$as_me:$LINENO: result: no" >&5
10325echo "${ECHO_T}no" >&6
10326 fi
10327
10328
10329 enablestring=
10330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10331echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10332 no_cache=0
10333 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10334if test "${enable_numberdlg+set}" = set; then
10335 enableval="$enable_numberdlg"
10336
10337 if test "$enableval" = yes; then
10338 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10339 else
10340 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10341 fi
10342
10343else
10344
10345 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10346 if test "x$LINE" != x ; then
10347 eval "DEFAULT_$LINE"
10348 else
10349 no_cache=1
10350 fi
10351
10352 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10353
10354fi;
10355
10356 eval "$ac_cv_use_numberdlg"
10357 if test "$no_cache" != 1; then
10358 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10359 fi
10360
10361 if test "$wxUSE_NUMBERDLG" = yes; then
10362 echo "$as_me:$LINENO: result: yes" >&5
10363echo "${ECHO_T}yes" >&6
10364 else
10365 echo "$as_me:$LINENO: result: no" >&5
10366echo "${ECHO_T}no" >&6
10367 fi
10368
10369
10370 enablestring=
10371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10372echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10373 no_cache=0
10374 # Check whether --enable-splash or --disable-splash was given.
10375if test "${enable_splash+set}" = set; then
10376 enableval="$enable_splash"
10377
10378 if test "$enableval" = yes; then
10379 ac_cv_use_splash='wxUSE_SPLASH=yes'
10380 else
10381 ac_cv_use_splash='wxUSE_SPLASH=no'
10382 fi
10383
10384else
10385
10386 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10387 if test "x$LINE" != x ; then
10388 eval "DEFAULT_$LINE"
10389 else
10390 no_cache=1
10391 fi
10392
10393 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10394
10395fi;
10396
10397 eval "$ac_cv_use_splash"
10398 if test "$no_cache" != 1; then
10399 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10400 fi
10401
10402 if test "$wxUSE_SPLASH" = yes; then
10403 echo "$as_me:$LINENO: result: yes" >&5
10404echo "${ECHO_T}yes" >&6
10405 else
10406 echo "$as_me:$LINENO: result: no" >&5
10407echo "${ECHO_T}no" >&6
10408 fi
10409
10410
10411 enablestring=
10412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10413echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10414 no_cache=0
10415 # Check whether --enable-textdlg or --disable-textdlg was given.
10416if test "${enable_textdlg+set}" = set; then
10417 enableval="$enable_textdlg"
10418
10419 if test "$enableval" = yes; then
10420 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10421 else
10422 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10423 fi
10424
10425else
10426
10427 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10428 if test "x$LINE" != x ; then
10429 eval "DEFAULT_$LINE"
10430 else
10431 no_cache=1
10432 fi
10433
10434 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10435
10436fi;
10437
10438 eval "$ac_cv_use_textdlg"
10439 if test "$no_cache" != 1; then
10440 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10441 fi
10442
10443 if test "$wxUSE_TEXTDLG" = yes; then
10444 echo "$as_me:$LINENO: result: yes" >&5
10445echo "${ECHO_T}yes" >&6
10446 else
10447 echo "$as_me:$LINENO: result: no" >&5
10448echo "${ECHO_T}no" >&6
10449 fi
10450
10451
10452 enablestring=
10453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10454echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10455 no_cache=0
10456 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10457if test "${enable_tipdlg+set}" = set; then
10458 enableval="$enable_tipdlg"
10459
10460 if test "$enableval" = yes; then
10461 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10462 else
10463 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10464 fi
10465
10466else
10467
10468 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10469 if test "x$LINE" != x ; then
10470 eval "DEFAULT_$LINE"
10471 else
10472 no_cache=1
10473 fi
10474
10475 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10476
10477fi;
10478
10479 eval "$ac_cv_use_tipdlg"
10480 if test "$no_cache" != 1; then
10481 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10482 fi
10483
10484 if test "$wxUSE_STARTUP_TIPS" = yes; then
10485 echo "$as_me:$LINENO: result: yes" >&5
10486echo "${ECHO_T}yes" >&6
10487 else
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
10490 fi
10491
10492
10493 enablestring=
10494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10495echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10496 no_cache=0
10497 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10498if test "${enable_progressdlg+set}" = set; then
10499 enableval="$enable_progressdlg"
10500
10501 if test "$enableval" = yes; then
10502 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10503 else
10504 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10505 fi
10506
10507else
10508
10509 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10510 if test "x$LINE" != x ; then
10511 eval "DEFAULT_$LINE"
10512 else
10513 no_cache=1
10514 fi
10515
10516 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10517
10518fi;
10519
10520 eval "$ac_cv_use_progressdlg"
10521 if test "$no_cache" != 1; then
10522 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10523 fi
10524
10525 if test "$wxUSE_PROGRESSDLG" = yes; then
10526 echo "$as_me:$LINENO: result: yes" >&5
10527echo "${ECHO_T}yes" >&6
10528 else
10529 echo "$as_me:$LINENO: result: no" >&5
10530echo "${ECHO_T}no" >&6
10531 fi
10532
10533
10534 enablestring=
10535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10536echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10537 no_cache=0
10538 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10539if test "${enable_wizarddlg+set}" = set; then
10540 enableval="$enable_wizarddlg"
10541
10542 if test "$enableval" = yes; then
10543 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10544 else
10545 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10546 fi
10547
10548else
10549
10550 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10551 if test "x$LINE" != x ; then
10552 eval "DEFAULT_$LINE"
10553 else
10554 no_cache=1
10555 fi
10556
10557 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10558
10559fi;
10560
10561 eval "$ac_cv_use_wizarddlg"
10562 if test "$no_cache" != 1; then
10563 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10564 fi
10565
10566 if test "$wxUSE_WIZARDDLG" = yes; then
10567 echo "$as_me:$LINENO: result: yes" >&5
10568echo "${ECHO_T}yes" >&6
10569 else
10570 echo "$as_me:$LINENO: result: no" >&5
10571echo "${ECHO_T}no" >&6
10572 fi
10573
10574
10575
10576
10577 enablestring=
10578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10579echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10580 no_cache=0
10581 # Check whether --enable-menus or --disable-menus was given.
10582if test "${enable_menus+set}" = set; then
10583 enableval="$enable_menus"
10584
10585 if test "$enableval" = yes; then
10586 ac_cv_use_menus='wxUSE_MENUS=yes'
10587 else
10588 ac_cv_use_menus='wxUSE_MENUS=no'
10589 fi
10590
10591else
10592
10593 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10594 if test "x$LINE" != x ; then
10595 eval "DEFAULT_$LINE"
10596 else
10597 no_cache=1
10598 fi
10599
10600 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10601
10602fi;
10603
10604 eval "$ac_cv_use_menus"
10605 if test "$no_cache" != 1; then
10606 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10607 fi
10608
10609 if test "$wxUSE_MENUS" = yes; then
10610 echo "$as_me:$LINENO: result: yes" >&5
10611echo "${ECHO_T}yes" >&6
10612 else
10613 echo "$as_me:$LINENO: result: no" >&5
10614echo "${ECHO_T}no" >&6
10615 fi
10616
10617
10618 enablestring=
10619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10620echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10621 no_cache=0
10622 # Check whether --enable-miniframe or --disable-miniframe was given.
10623if test "${enable_miniframe+set}" = set; then
10624 enableval="$enable_miniframe"
10625
10626 if test "$enableval" = yes; then
10627 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10628 else
10629 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10630 fi
10631
10632else
10633
10634 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10635 if test "x$LINE" != x ; then
10636 eval "DEFAULT_$LINE"
10637 else
10638 no_cache=1
10639 fi
10640
10641 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10642
10643fi;
10644
10645 eval "$ac_cv_use_miniframe"
10646 if test "$no_cache" != 1; then
10647 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10648 fi
10649
10650 if test "$wxUSE_MINIFRAME" = yes; then
10651 echo "$as_me:$LINENO: result: yes" >&5
10652echo "${ECHO_T}yes" >&6
10653 else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656 fi
10657
10658
10659 enablestring=
10660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10661echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10662 no_cache=0
10663 # Check whether --enable-tooltips or --disable-tooltips was given.
10664if test "${enable_tooltips+set}" = set; then
10665 enableval="$enable_tooltips"
10666
10667 if test "$enableval" = yes; then
10668 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10669 else
10670 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10671 fi
10672
10673else
10674
10675 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10676 if test "x$LINE" != x ; then
10677 eval "DEFAULT_$LINE"
10678 else
10679 no_cache=1
10680 fi
10681
10682 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10683
10684fi;
10685
10686 eval "$ac_cv_use_tooltips"
10687 if test "$no_cache" != 1; then
10688 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10689 fi
10690
10691 if test "$wxUSE_TOOLTIPS" = yes; then
10692 echo "$as_me:$LINENO: result: yes" >&5
10693echo "${ECHO_T}yes" >&6
10694 else
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
10697 fi
10698
10699
10700 enablestring=
10701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10702echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10703 no_cache=0
10704 # Check whether --enable-splines or --disable-splines was given.
10705if test "${enable_splines+set}" = set; then
10706 enableval="$enable_splines"
10707
10708 if test "$enableval" = yes; then
10709 ac_cv_use_splines='wxUSE_SPLINES=yes'
10710 else
10711 ac_cv_use_splines='wxUSE_SPLINES=no'
10712 fi
10713
10714else
10715
10716 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10717 if test "x$LINE" != x ; then
10718 eval "DEFAULT_$LINE"
10719 else
10720 no_cache=1
10721 fi
10722
10723 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10724
10725fi;
10726
10727 eval "$ac_cv_use_splines"
10728 if test "$no_cache" != 1; then
10729 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10730 fi
10731
10732 if test "$wxUSE_SPLINES" = yes; then
10733 echo "$as_me:$LINENO: result: yes" >&5
10734echo "${ECHO_T}yes" >&6
10735 else
10736 echo "$as_me:$LINENO: result: no" >&5
10737echo "${ECHO_T}no" >&6
10738 fi
10739
10740
fbe2ca43
SN
10741 enablestring=
10742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10743echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10744 no_cache=0
10745 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10746if test "${enable_mousewheel+set}" = set; then
10747 enableval="$enable_mousewheel"
10748
10749 if test "$enableval" = yes; then
10750 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10751 else
10752 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10753 fi
10754
10755else
10756
10757 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10758 if test "x$LINE" != x ; then
10759 eval "DEFAULT_$LINE"
10760 else
10761 no_cache=1
10762 fi
10763
10764 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10765
10766fi;
10767
10768 eval "$ac_cv_use_mousewheel"
10769 if test "$no_cache" != 1; then
10770 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10771 fi
10772
10773 if test "$wxUSE_MOUSEWHEEL" = yes; then
10774 echo "$as_me:$LINENO: result: yes" >&5
10775echo "${ECHO_T}yes" >&6
10776 else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779 fi
10780
10781
a848cd7e
SC
10782 enablestring=
10783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10784echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10785 no_cache=0
10786 # Check whether --enable-validators or --disable-validators was given.
10787if test "${enable_validators+set}" = set; then
10788 enableval="$enable_validators"
10789
10790 if test "$enableval" = yes; then
10791 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10792 else
10793 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10794 fi
10795
10796else
10797
10798 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10799 if test "x$LINE" != x ; then
10800 eval "DEFAULT_$LINE"
10801 else
10802 no_cache=1
10803 fi
10804
10805 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10806
10807fi;
10808
10809 eval "$ac_cv_use_validators"
10810 if test "$no_cache" != 1; then
10811 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10812 fi
10813
10814 if test "$wxUSE_VALIDATORS" = yes; then
10815 echo "$as_me:$LINENO: result: yes" >&5
10816echo "${ECHO_T}yes" >&6
10817 else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820 fi
10821
10822
10823 enablestring=
10824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10825echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10826 no_cache=0
10827 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10828if test "${enable_busyinfo+set}" = set; then
10829 enableval="$enable_busyinfo"
10830
10831 if test "$enableval" = yes; then
10832 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10833 else
10834 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10835 fi
10836
10837else
10838
10839 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10840 if test "x$LINE" != x ; then
10841 eval "DEFAULT_$LINE"
10842 else
10843 no_cache=1
10844 fi
10845
10846 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10847
10848fi;
10849
10850 eval "$ac_cv_use_busyinfo"
10851 if test "$no_cache" != 1; then
10852 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10853 fi
10854
10855 if test "$wxUSE_BUSYINFO" = yes; then
10856 echo "$as_me:$LINENO: result: yes" >&5
10857echo "${ECHO_T}yes" >&6
10858 else
10859 echo "$as_me:$LINENO: result: no" >&5
10860echo "${ECHO_T}no" >&6
10861 fi
10862
10863
10864 enablestring=
10865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10866echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10867 no_cache=0
10868 # Check whether --enable-joystick or --disable-joystick was given.
10869if test "${enable_joystick+set}" = set; then
10870 enableval="$enable_joystick"
10871
10872 if test "$enableval" = yes; then
10873 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10874 else
10875 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10876 fi
10877
10878else
10879
10880 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10881 if test "x$LINE" != x ; then
10882 eval "DEFAULT_$LINE"
10883 else
10884 no_cache=1
10885 fi
10886
10887 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10888
10889fi;
10890
10891 eval "$ac_cv_use_joystick"
10892 if test "$no_cache" != 1; then
10893 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10894 fi
10895
10896 if test "$wxUSE_JOYSTICK" = yes; then
10897 echo "$as_me:$LINENO: result: yes" >&5
10898echo "${ECHO_T}yes" >&6
10899 else
10900 echo "$as_me:$LINENO: result: no" >&5
10901echo "${ECHO_T}no" >&6
10902 fi
10903
10904
10905 enablestring=
10906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10907echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10908 no_cache=0
10909 # Check whether --enable-metafile or --disable-metafile was given.
10910if test "${enable_metafile+set}" = set; then
10911 enableval="$enable_metafile"
10912
10913 if test "$enableval" = yes; then
10914 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10915 else
10916 ac_cv_use_metafile='wxUSE_METAFILE=no'
10917 fi
10918
10919else
10920
10921 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10922 if test "x$LINE" != x ; then
10923 eval "DEFAULT_$LINE"
10924 else
10925 no_cache=1
10926 fi
10927
10928 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10929
10930fi;
10931
10932 eval "$ac_cv_use_metafile"
10933 if test "$no_cache" != 1; then
10934 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10935 fi
10936
10937 if test "$wxUSE_METAFILE" = yes; then
10938 echo "$as_me:$LINENO: result: yes" >&5
10939echo "${ECHO_T}yes" >&6
10940 else
10941 echo "$as_me:$LINENO: result: no" >&5
10942echo "${ECHO_T}no" >&6
10943 fi
10944
10945
10946 enablestring=
10947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10948echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10949 no_cache=0
10950 # Check whether --enable-dragimage or --disable-dragimage was given.
10951if test "${enable_dragimage+set}" = set; then
10952 enableval="$enable_dragimage"
10953
10954 if test "$enableval" = yes; then
10955 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10956 else
10957 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10958 fi
10959
10960else
10961
10962 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10963 if test "x$LINE" != x ; then
10964 eval "DEFAULT_$LINE"
10965 else
10966 no_cache=1
10967 fi
10968
10969 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10970
10971fi;
10972
10973 eval "$ac_cv_use_dragimage"
10974 if test "$no_cache" != 1; then
10975 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10976 fi
10977
10978 if test "$wxUSE_DRAGIMAGE" = yes; then
10979 echo "$as_me:$LINENO: result: yes" >&5
10980echo "${ECHO_T}yes" >&6
10981 else
10982 echo "$as_me:$LINENO: result: no" >&5
10983echo "${ECHO_T}no" >&6
10984 fi
10985
10986
10987 enablestring=
10988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10989echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10990 no_cache=0
10991 # Check whether --enable-accessibility or --disable-accessibility was given.
10992if test "${enable_accessibility+set}" = set; then
10993 enableval="$enable_accessibility"
10994
10995 if test "$enableval" = yes; then
10996 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10997 else
10998 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10999 fi
11000
11001else
11002
11003 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11004 if test "x$LINE" != x ; then
11005 eval "DEFAULT_$LINE"
11006 else
11007 no_cache=1
11008 fi
11009
11010 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11011
11012fi;
11013
11014 eval "$ac_cv_use_accessibility"
11015 if test "$no_cache" != 1; then
11016 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11017 fi
11018
11019 if test "$wxUSE_ACCESSIBILITY" = yes; then
11020 echo "$as_me:$LINENO: result: yes" >&5
11021echo "${ECHO_T}yes" >&6
11022 else
11023 echo "$as_me:$LINENO: result: no" >&5
11024echo "${ECHO_T}no" >&6
11025 fi
11026
11027
38b4a946
VZ
11028if test "$wxUSE_MSW" = "1"; then
11029
11030 enablestring=
11031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11032echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11033 no_cache=0
11034 # Check whether --enable-dccache or --disable-dccache was given.
11035if test "${enable_dccache+set}" = set; then
11036 enableval="$enable_dccache"
11037
11038 if test "$enableval" = yes; then
11039 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11040 else
11041 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11042 fi
11043
11044else
11045
11046 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11047 if test "x$LINE" != x ; then
11048 eval "DEFAULT_$LINE"
11049 else
11050 no_cache=1
11051 fi
11052
11053 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11054
11055fi;
11056
11057 eval "$ac_cv_use_dccache"
11058 if test "$no_cache" != 1; then
11059 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11060 fi
11061
11062 if test "$wxUSE_DC_CACHEING" = yes; then
11063 echo "$as_me:$LINENO: result: yes" >&5
11064echo "${ECHO_T}yes" >&6
11065 else
11066 echo "$as_me:$LINENO: result: no" >&5
11067echo "${ECHO_T}no" >&6
11068 fi
11069
11070fi
11071
a848cd7e
SC
11072
11073
11074 enablestring=
11075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11076echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11077 no_cache=0
11078 # Check whether --enable-palette or --disable-palette was given.
11079if test "${enable_palette+set}" = set; then
11080 enableval="$enable_palette"
11081
11082 if test "$enableval" = yes; then
11083 ac_cv_use_palette='wxUSE_PALETTE=yes'
11084 else
11085 ac_cv_use_palette='wxUSE_PALETTE=no'
11086 fi
11087
11088else
11089
11090 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11091 if test "x$LINE" != x ; then
11092 eval "DEFAULT_$LINE"
11093 else
11094 no_cache=1
11095 fi
11096
11097 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11098
11099fi;
11100
11101 eval "$ac_cv_use_palette"
11102 if test "$no_cache" != 1; then
11103 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11104 fi
11105
11106 if test "$wxUSE_PALETTE" = yes; then
11107 echo "$as_me:$LINENO: result: yes" >&5
11108echo "${ECHO_T}yes" >&6
11109 else
11110 echo "$as_me:$LINENO: result: no" >&5
11111echo "${ECHO_T}no" >&6
11112 fi
11113
11114
11115 enablestring=
11116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11117echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11118 no_cache=0
11119 # Check whether --enable-image or --disable-image was given.
11120if test "${enable_image+set}" = set; then
11121 enableval="$enable_image"
11122
11123 if test "$enableval" = yes; then
11124 ac_cv_use_image='wxUSE_IMAGE=yes'
11125 else
11126 ac_cv_use_image='wxUSE_IMAGE=no'
11127 fi
11128
11129else
11130
11131 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11132 if test "x$LINE" != x ; then
11133 eval "DEFAULT_$LINE"
11134 else
11135 no_cache=1
11136 fi
11137
11138 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11139
11140fi;
11141
11142 eval "$ac_cv_use_image"
11143 if test "$no_cache" != 1; then
11144 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11145 fi
11146
11147 if test "$wxUSE_IMAGE" = yes; then
11148 echo "$as_me:$LINENO: result: yes" >&5
11149echo "${ECHO_T}yes" >&6
11150 else
11151 echo "$as_me:$LINENO: result: no" >&5
11152echo "${ECHO_T}no" >&6
11153 fi
11154
11155
11156 enablestring=
11157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11158echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11159 no_cache=0
11160 # Check whether --enable-gif or --disable-gif was given.
11161if test "${enable_gif+set}" = set; then
11162 enableval="$enable_gif"
11163
11164 if test "$enableval" = yes; then
11165 ac_cv_use_gif='wxUSE_GIF=yes'
11166 else
11167 ac_cv_use_gif='wxUSE_GIF=no'
11168 fi
11169
11170else
11171
11172 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11173 if test "x$LINE" != x ; then
11174 eval "DEFAULT_$LINE"
11175 else
11176 no_cache=1
11177 fi
11178
11179 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11180
11181fi;
11182
11183 eval "$ac_cv_use_gif"
11184 if test "$no_cache" != 1; then
11185 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11186 fi
11187
11188 if test "$wxUSE_GIF" = yes; then
11189 echo "$as_me:$LINENO: result: yes" >&5
11190echo "${ECHO_T}yes" >&6
11191 else
11192 echo "$as_me:$LINENO: result: no" >&5
11193echo "${ECHO_T}no" >&6
11194 fi
11195
11196
11197 enablestring=
11198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11199echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11200 no_cache=0
11201 # Check whether --enable-pcx or --disable-pcx was given.
11202if test "${enable_pcx+set}" = set; then
11203 enableval="$enable_pcx"
11204
11205 if test "$enableval" = yes; then
11206 ac_cv_use_pcx='wxUSE_PCX=yes'
11207 else
11208 ac_cv_use_pcx='wxUSE_PCX=no'
11209 fi
11210
11211else
11212
11213 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11214 if test "x$LINE" != x ; then
11215 eval "DEFAULT_$LINE"
11216 else
11217 no_cache=1
11218 fi
11219
11220 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11221
11222fi;
11223
11224 eval "$ac_cv_use_pcx"
11225 if test "$no_cache" != 1; then
11226 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11227 fi
11228
11229 if test "$wxUSE_PCX" = yes; then
11230 echo "$as_me:$LINENO: result: yes" >&5
11231echo "${ECHO_T}yes" >&6
11232 else
11233 echo "$as_me:$LINENO: result: no" >&5
11234echo "${ECHO_T}no" >&6
11235 fi
11236
11237
11238 enablestring=
11239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11240echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11241 no_cache=0
11242 # Check whether --enable-iff or --disable-iff was given.
11243if test "${enable_iff+set}" = set; then
11244 enableval="$enable_iff"
11245
11246 if test "$enableval" = yes; then
11247 ac_cv_use_iff='wxUSE_IFF=yes'
11248 else
11249 ac_cv_use_iff='wxUSE_IFF=no'
11250 fi
11251
11252else
11253
11254 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11255 if test "x$LINE" != x ; then
11256 eval "DEFAULT_$LINE"
11257 else
11258 no_cache=1
11259 fi
11260
11261 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11262
11263fi;
11264
11265 eval "$ac_cv_use_iff"
11266 if test "$no_cache" != 1; then
11267 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11268 fi
11269
11270 if test "$wxUSE_IFF" = yes; then
11271 echo "$as_me:$LINENO: result: yes" >&5
11272echo "${ECHO_T}yes" >&6
11273 else
11274 echo "$as_me:$LINENO: result: no" >&5
11275echo "${ECHO_T}no" >&6
11276 fi
11277
11278
11279 enablestring=
11280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11281echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11282 no_cache=0
11283 # Check whether --enable-pnm or --disable-pnm was given.
11284if test "${enable_pnm+set}" = set; then
11285 enableval="$enable_pnm"
11286
11287 if test "$enableval" = yes; then
11288 ac_cv_use_pnm='wxUSE_PNM=yes'
11289 else
11290 ac_cv_use_pnm='wxUSE_PNM=no'
11291 fi
11292
11293else
11294
11295 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11296 if test "x$LINE" != x ; then
11297 eval "DEFAULT_$LINE"
11298 else
11299 no_cache=1
11300 fi
11301
11302 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11303
11304fi;
11305
11306 eval "$ac_cv_use_pnm"
11307 if test "$no_cache" != 1; then
11308 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11309 fi
11310
11311 if test "$wxUSE_PNM" = yes; then
11312 echo "$as_me:$LINENO: result: yes" >&5
11313echo "${ECHO_T}yes" >&6
11314 else
11315 echo "$as_me:$LINENO: result: no" >&5
11316echo "${ECHO_T}no" >&6
11317 fi
11318
11319
11320 enablestring=
11321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11322echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11323 no_cache=0
11324 # Check whether --enable-xpm or --disable-xpm was given.
11325if test "${enable_xpm+set}" = set; then
11326 enableval="$enable_xpm"
11327
11328 if test "$enableval" = yes; then
11329 ac_cv_use_xpm='wxUSE_XPM=yes'
11330 else
11331 ac_cv_use_xpm='wxUSE_XPM=no'
11332 fi
11333
11334else
11335
11336 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11337 if test "x$LINE" != x ; then
11338 eval "DEFAULT_$LINE"
11339 else
11340 no_cache=1
11341 fi
11342
11343 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11344
11345fi;
11346
11347 eval "$ac_cv_use_xpm"
11348 if test "$no_cache" != 1; then
11349 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11350 fi
11351
11352 if test "$wxUSE_XPM" = yes; then
11353 echo "$as_me:$LINENO: result: yes" >&5
11354echo "${ECHO_T}yes" >&6
11355 else
11356 echo "$as_me:$LINENO: result: no" >&5
11357echo "${ECHO_T}no" >&6
11358 fi
11359
11360
11361 enablestring=
11362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11363echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11364 no_cache=0
11365 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11366if test "${enable_ico_cur+set}" = set; then
11367 enableval="$enable_ico_cur"
11368
11369 if test "$enableval" = yes; then
11370 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11371 else
11372 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11373 fi
11374
11375else
11376
11377 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11378 if test "x$LINE" != x ; then
11379 eval "DEFAULT_$LINE"
11380 else
11381 no_cache=1
11382 fi
11383
11384 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11385
11386fi;
11387
11388 eval "$ac_cv_use_ico_cur"
11389 if test "$no_cache" != 1; then
11390 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11391 fi
11392
11393 if test "$wxUSE_ICO_CUR" = yes; then
11394 echo "$as_me:$LINENO: result: yes" >&5
11395echo "${ECHO_T}yes" >&6
11396 else
11397 echo "$as_me:$LINENO: result: no" >&5
11398echo "${ECHO_T}no" >&6
11399 fi
11400
11401
11402fi
11403
11404
11405
ceec2216
RL
11406# Check whether --with-flavour or --without-flavour was given.
11407if test "${with_flavour+set}" = set; then
11408 withval="$with_flavour"
11409 WX_FLAVOUR="$withval"
11410fi;
11411
11412
11413
a848cd7e
SC
11414 enablestring=
11415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11416echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11417 no_cache=0
11418 # Check whether --enable-official_build or --disable-official_build was given.
11419if test "${enable_official_build+set}" = set; then
11420 enableval="$enable_official_build"
11421
11422 if test "$enableval" = yes; then
11423 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11424 else
11425 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11426 fi
11427
11428else
11429
11430 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11431 if test "x$LINE" != x ; then
11432 eval "DEFAULT_$LINE"
11433 else
11434 no_cache=1
11435 fi
11436
11437 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11438
11439fi;
11440
11441 eval "$ac_cv_use_official_build"
11442 if test "$no_cache" != 1; then
11443 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11444 fi
11445
11446 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11447 echo "$as_me:$LINENO: result: yes" >&5
11448echo "${ECHO_T}yes" >&6
11449 else
11450 echo "$as_me:$LINENO: result: no" >&5
11451echo "${ECHO_T}no" >&6
11452 fi
11453
11454# Check whether --enable-vendor or --disable-vendor was given.
11455if test "${enable_vendor+set}" = set; then
11456 enableval="$enable_vendor"
11457 VENDOR="$enableval"
11458fi;
11459if test "x$VENDOR" = "x"; then
11460 VENDOR="custom"
11461fi
11462
a848cd7e
SC
11463
11464
11465
11466 echo "saving argument cache $wx_arg_cache_file"
11467 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11468
11469
11470
11471echo "$as_me:$LINENO: checking for toolkit" >&5
11472echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11473
11474# In Wine, we need to default to MSW, not GTK or MOTIF
11475if test "$wxUSE_WINE" = "yes"; then
11476 DEFAULT_DEFAULT_wxUSE_GTK=0
11477 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11478 DEFAULT_DEFAULT_wxUSE_MSW=1
11479 wxUSE_SHARED=no
11480fi
11481
f597b41c 11482
a848cd7e
SC
11483if test "$wxUSE_GUI" = "yes"; then
11484
11485 if test "$USE_BEOS" = 1; then
11486 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11487echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11488 { (exit 1); exit 1; }; }
11489 fi
11490
11491 if test "$TOOLKIT_GIVEN" = 1; then
11492 for toolkit in `echo $ALL_TOOLKITS`; do
11493 var=wxUSE_$toolkit
11494 eval "value=\$${var}"
f34ca037
MW
11495 if test "x$value" = "xno"; then
11496 eval "$var=0"
11497 elif test "x$value" != "x"; then
11498 eval "$var=1"
11499 fi
11500
11501 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11502 eval "wx${toolkit}_VERSION=$value"
11503 fi
a848cd7e
SC
11504 done
11505 else
11506 for toolkit in `echo $ALL_TOOLKITS`; do
11507 if test "$has_toolkit_in_cache" != 1; then
11508 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11509 else
11510 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11511
11512 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11513 if test "x$version" != "x"; then
11514 eval "wx${toolkit}_VERSION=$version"
11515 fi
a848cd7e
SC
11516 fi
11517 eval "wxUSE_$toolkit=\$${var}"
11518 done
11519 fi
11520
11521 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11522 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11523 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11524
11525 case "${host}" in
11526 *-pc-os2_emx | *-pc-os2-emx )
11527 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11528 esac
11529
11530 case "$NUM_TOOLKITS" in
11531 1)
11532 ;;
11533 0)
11534 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11535echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11536 { (exit 1); exit 1; }; }
11537 ;;
11538 *)
11539 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11540echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11541 { (exit 1); exit 1; }; }
11542 esac
11543
f34ca037
MW
11544 # to be removed when --disable-gtk2 isn't needed
11545 if test "x$wxUSE_GTK2" = "xyes"; then
11546 wxGTK_VERSION=2
11547 elif test "x$wxUSE_GTK2" = "xno"; then
11548 wxGTK_VERSION=1
11549 fi
11550
a848cd7e
SC
11551 for toolkit in `echo $ALL_TOOLKITS`; do
11552 var=wxUSE_$toolkit
11553 eval "value=\$${var}"
11554 if test "x$value" != x; then
11555 cache_var=CACHE_$toolkit
11556 eval "cache=\$${cache_var}"
11557 if test "$cache" = 1; then
11558 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11559 eval "version=\$wx${toolkit}_VERSION"
11560 if test "x$version" != "x"; then
11561 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11562 fi
a848cd7e
SC
11563 fi
11564 if test "$value" = 1; then
11565 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11566 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11567echo "${ECHO_T}$toolkit_echo" >&6
11568 fi
11569 fi
11570 done
11571else
11572 if test "x$host_alias" != "x"; then
11573 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11574echo "${ECHO_T}base ($host_alias hosted) only" >&6
11575 else
11576 echo "$as_me:$LINENO: result: base only" >&5
11577echo "${ECHO_T}base only" >&6
11578 fi
11579fi
11580
11581wants_win32=0
11582doesnt_want_win32=0
11583case "${host}" in
11584 *-*-cygwin*)
11585 if test "$wxUSE_MSW" = 1 ; then
11586 wants_win32=1
7275146d 11587 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11588 else
11589 doesnt_want_win32=1
11590 fi
11591 ;;
11592 *-*-mingw*)
11593 wants_win32=1
11594 ;;
11595esac
11596
11597if test "$wxUSE_WINE" = "yes"; then
11598 wants_win32=1
11599 CC=winegcc
11600 CXX=wineg++
a848cd7e
SC
11601 LDFLAGS_GUI="-mwindows"
11602fi
11603
11604if test "$wants_win32" = 1 ; then
11605 USE_UNIX=0
11606 USE_WIN32=1
11607 cat >>confdefs.h <<\_ACEOF
11608#define __WIN32__ 1
11609_ACEOF
11610
11611 cat >>confdefs.h <<\_ACEOF
11612#define __WIN95__ 1
11613_ACEOF
11614
11615 cat >>confdefs.h <<\_ACEOF
11616#define __WINDOWS__ 1
11617_ACEOF
11618
11619 cat >>confdefs.h <<\_ACEOF
11620#define __GNUWIN32__ 1
11621_ACEOF
11622
11623 cat >>confdefs.h <<\_ACEOF
11624#define STRICT 1
11625_ACEOF
11626
11627 cat >>confdefs.h <<\_ACEOF
11628#define WINVER 0x0400
11629_ACEOF
11630
11631fi
11632if test "$doesnt_want_win32" = 1 ; then
11633 USE_UNIX=1
11634 USE_WIN32=0
11635fi
11636
11637if test "$USE_UNIX" = 1 ; then
11638 wxUSE_UNIX=yes
11639 cat >>confdefs.h <<\_ACEOF
11640#define __UNIX__ 1
11641_ACEOF
11642
11643fi
11644
11645
11646cat >confcache <<\_ACEOF
11647# This file is a shell script that caches the results of configure
11648# tests run on this system so they can be shared between configure
11649# scripts and configure runs, see configure's option --config-cache.
11650# It is not useful on other systems. If it contains results you don't
11651# want to keep, you may remove or edit it.
11652#
11653# config.status only pays attention to the cache file if you give it
11654# the --recheck option to rerun configure.
11655#
11656# `ac_cv_env_foo' variables (set or unset) will be overridden when
11657# loading this file, other *unset* `ac_cv_foo' will be assigned the
11658# following values.
11659
11660_ACEOF
11661
11662# The following way of writing the cache mishandles newlines in values,
11663# but we know of no workaround that is simple, portable, and efficient.
11664# So, don't put newlines in cache variables' values.
11665# Ultrix sh set writes to stderr and can't be redirected directly,
11666# and sets the high bit in the cache file unless we assign to the vars.
11667{
11668 (set) 2>&1 |
11669 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11670 *ac_space=\ *)
11671 # `set' does not quote correctly, so add quotes (double-quote
11672 # substitution turns \\\\ into \\, and sed turns \\ into \).
11673 sed -n \
ac1cb8d3
VS
11674 "s/'/'\\\\''/g;
11675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11676 ;;
11677 *)
11678 # `set' quotes correctly as required by POSIX, so do not add quotes.
11679 sed -n \
ac1cb8d3 11680 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11681 ;;
11682 esac;
11683} |
11684 sed '
11685 t clear
11686 : clear
11687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11688 t end
11689 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11690 : end' >>confcache
11691if diff $cache_file confcache >/dev/null 2>&1; then :; else
11692 if test -w $cache_file; then
11693 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11694 cat confcache >$cache_file
11695 else
11696 echo "not updating unwritable cache $cache_file"
11697 fi
11698fi
11699rm -f confcache
11700
a848cd7e 11701CFLAGS=${CFLAGS:=}
6dcfc289
DE
11702
11703
3006edc0 11704
6dcfc289 11705 ac_ext=c
a848cd7e
SC
11706ac_cpp='$CPP $CPPFLAGS'
11707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709ac_compiler_gnu=$ac_cv_c_compiler_gnu
11710if test -n "$ac_tool_prefix"; then
11711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11712set dummy ${ac_tool_prefix}gcc; ac_word=$2
11713echo "$as_me:$LINENO: checking for $ac_word" >&5
11714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11715if test "${ac_cv_prog_CC+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 if test -n "$CC"; then
11719 ac_cv_prog_CC="$CC" # Let the user override the test.
11720else
11721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722for as_dir in $PATH
11723do
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11731 fi
11732done
11733done
11734
11735fi
11736fi
11737CC=$ac_cv_prog_CC
11738if test -n "$CC"; then
11739 echo "$as_me:$LINENO: result: $CC" >&5
11740echo "${ECHO_T}$CC" >&6
11741else
11742 echo "$as_me:$LINENO: result: no" >&5
11743echo "${ECHO_T}no" >&6
11744fi
11745
11746fi
11747if test -z "$ac_cv_prog_CC"; then
11748 ac_ct_CC=$CC
11749 # Extract the first word of "gcc", so it can be a program name with args.
11750set dummy gcc; ac_word=$2
11751echo "$as_me:$LINENO: checking for $ac_word" >&5
11752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11753if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 if test -n "$ac_ct_CC"; then
11757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11758else
11759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760for as_dir in $PATH
11761do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766 ac_cv_prog_ac_ct_CC="gcc"
11767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 break 2
11769 fi
11770done
11771done
11772
11773fi
11774fi
11775ac_ct_CC=$ac_cv_prog_ac_ct_CC
11776if test -n "$ac_ct_CC"; then
11777 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11778echo "${ECHO_T}$ac_ct_CC" >&6
11779else
11780 echo "$as_me:$LINENO: result: no" >&5
11781echo "${ECHO_T}no" >&6
11782fi
11783
11784 CC=$ac_ct_CC
11785else
11786 CC="$ac_cv_prog_CC"
11787fi
11788
11789if test -z "$CC"; then
11790 if test -n "$ac_tool_prefix"; then
11791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11792set dummy ${ac_tool_prefix}cc; ac_word=$2
11793echo "$as_me:$LINENO: checking for $ac_word" >&5
11794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795if test "${ac_cv_prog_CC+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 if test -n "$CC"; then
11799 ac_cv_prog_CC="$CC" # Let the user override the test.
11800else
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_CC="${ac_tool_prefix}cc"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812done
11813done
11814
11815fi
11816fi
11817CC=$ac_cv_prog_CC
11818if test -n "$CC"; then
11819 echo "$as_me:$LINENO: result: $CC" >&5
11820echo "${ECHO_T}$CC" >&6
11821else
11822 echo "$as_me:$LINENO: result: no" >&5
11823echo "${ECHO_T}no" >&6
11824fi
11825
11826fi
11827if test -z "$ac_cv_prog_CC"; then
11828 ac_ct_CC=$CC
11829 # Extract the first word of "cc", so it can be a program name with args.
11830set dummy cc; ac_word=$2
11831echo "$as_me:$LINENO: checking for $ac_word" >&5
11832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835else
11836 if test -n "$ac_ct_CC"; then
11837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11838else
11839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $PATH
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846 ac_cv_prog_ac_ct_CC="cc"
11847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11849 fi
11850done
11851done
11852
11853fi
11854fi
11855ac_ct_CC=$ac_cv_prog_ac_ct_CC
11856if test -n "$ac_ct_CC"; then
11857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11858echo "${ECHO_T}$ac_ct_CC" >&6
11859else
11860 echo "$as_me:$LINENO: result: no" >&5
11861echo "${ECHO_T}no" >&6
11862fi
11863
11864 CC=$ac_ct_CC
11865else
11866 CC="$ac_cv_prog_CC"
11867fi
11868
11869fi
11870if test -z "$CC"; then
11871 # Extract the first word of "cc", so it can be a program name with args.
11872set dummy cc; ac_word=$2
11873echo "$as_me:$LINENO: checking for $ac_word" >&5
11874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11875if test "${ac_cv_prog_CC+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878 if test -n "$CC"; then
11879 ac_cv_prog_CC="$CC" # Let the user override the test.
11880else
11881 ac_prog_rejected=no
11882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883for as_dir in $PATH
11884do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11890 ac_prog_rejected=yes
11891 continue
11892 fi
11893 ac_cv_prog_CC="cc"
11894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897done
11898done
11899
11900if test $ac_prog_rejected = yes; then
11901 # We found a bogon in the path, so make sure we never use it.
11902 set dummy $ac_cv_prog_CC
11903 shift
11904 if test $# != 0; then
11905 # We chose a different compiler from the bogus one.
11906 # However, it has the same basename, so the bogon will be chosen
11907 # first if we set CC to just the basename; use the full file name.
11908 shift
11909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11910 fi
11911fi
11912fi
11913fi
11914CC=$ac_cv_prog_CC
11915if test -n "$CC"; then
11916 echo "$as_me:$LINENO: result: $CC" >&5
11917echo "${ECHO_T}$CC" >&6
11918else
11919 echo "$as_me:$LINENO: result: no" >&5
11920echo "${ECHO_T}no" >&6
11921fi
11922
11923fi
11924if test -z "$CC"; then
11925 if test -n "$ac_tool_prefix"; then
11926 for ac_prog in cl
11927 do
11928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11929set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11930echo "$as_me:$LINENO: checking for $ac_word" >&5
11931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11932if test "${ac_cv_prog_CC+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 if test -n "$CC"; then
11936 ac_cv_prog_CC="$CC" # Let the user override the test.
11937else
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11945 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11948 fi
11949done
11950done
11951
11952fi
11953fi
11954CC=$ac_cv_prog_CC
11955if test -n "$CC"; then
11956 echo "$as_me:$LINENO: result: $CC" >&5
11957echo "${ECHO_T}$CC" >&6
11958else
11959 echo "$as_me:$LINENO: result: no" >&5
11960echo "${ECHO_T}no" >&6
11961fi
11962
11963 test -n "$CC" && break
11964 done
11965fi
11966if test -z "$CC"; then
11967 ac_ct_CC=$CC
11968 for ac_prog in cl
11969do
11970 # Extract the first word of "$ac_prog", so it can be a program name with args.
11971set dummy $ac_prog; ac_word=$2
11972echo "$as_me:$LINENO: checking for $ac_word" >&5
11973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11974if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 if test -n "$ac_ct_CC"; then
11978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11979else
11980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981for as_dir in $PATH
11982do
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_prog_ac_ct_CC="$ac_prog"
11988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11990 fi
11991done
11992done
11993
11994fi
11995fi
11996ac_ct_CC=$ac_cv_prog_ac_ct_CC
11997if test -n "$ac_ct_CC"; then
11998 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11999echo "${ECHO_T}$ac_ct_CC" >&6
12000else
12001 echo "$as_me:$LINENO: result: no" >&5
12002echo "${ECHO_T}no" >&6
12003fi
12004
12005 test -n "$ac_ct_CC" && break
12006done
12007
12008 CC=$ac_ct_CC
12009fi
12010
12011fi
12012
12013
12014test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12015See \`config.log' for more details." >&5
12016echo "$as_me: error: no acceptable C compiler found in \$PATH
12017See \`config.log' for more details." >&2;}
12018 { (exit 1); exit 1; }; }
12019
12020# Provide some information about the compiler.
12021echo "$as_me:$LINENO:" \
12022 "checking for C compiler version" >&5
12023ac_compiler=`set X $ac_compile; echo $2`
12024{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12025 (eval $ac_compiler --version </dev/null >&5) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }
12029{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12030 (eval $ac_compiler -v </dev/null >&5) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }
12034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12035 (eval $ac_compiler -V </dev/null >&5) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }
12039
12040cat >conftest.$ac_ext <<_ACEOF
12041/* confdefs.h. */
12042_ACEOF
12043cat confdefs.h >>conftest.$ac_ext
12044cat >>conftest.$ac_ext <<_ACEOF
12045/* end confdefs.h. */
12046
12047int
12048main ()
12049{
12050
12051 ;
12052 return 0;
12053}
12054_ACEOF
12055ac_clean_files_save=$ac_clean_files
12056ac_clean_files="$ac_clean_files a.out a.exe b.out"
12057# Try to create an executable without -o first, disregard a.out.
12058# It will help us diagnose broken compilers, and finding out an intuition
12059# of exeext.
ac1cb8d3
VS
12060echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12061echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12062ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12063if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12064 (eval $ac_link_default) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; then
12068 # Find the output, starting from the most likely. This scheme is
12069# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12070# resort.
12071
12072# Be careful to initialize this variable, since it used to be cached.
12073# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12074ac_cv_exeext=
12075# b.out is created by i960 compilers.
12076for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12077do
12078 test -f "$ac_file" || continue
12079 case $ac_file in
12080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12081 ;;
a848cd7e 12082 conftest.$ac_ext )
ac1cb8d3
VS
12083 # This is the source file.
12084 ;;
a848cd7e 12085 [ab].out )
ac1cb8d3
VS
12086 # We found the default executable, but exeext='' is most
12087 # certainly right.
12088 break;;
a848cd7e 12089 *.* )
ac1cb8d3
VS
12090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12091 # FIXME: I believe we export ac_cv_exeext for Libtool,
12092 # but it would be cool to find out if it's true. Does anybody
12093 # maintain Libtool? --akim.
12094 export ac_cv_exeext
12095 break;;
a848cd7e 12096 * )
ac1cb8d3 12097 break;;
a848cd7e
SC
12098 esac
12099done
12100else
12101 echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12105See \`config.log' for more details." >&5
12106echo "$as_me: error: C compiler cannot create executables
12107See \`config.log' for more details." >&2;}
12108 { (exit 77); exit 77; }; }
12109fi
12110
12111ac_exeext=$ac_cv_exeext
12112echo "$as_me:$LINENO: result: $ac_file" >&5
12113echo "${ECHO_T}$ac_file" >&6
12114
12115# Check the compiler produces executables we can run. If not, either
12116# the compiler is broken, or we cross compile.
12117echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12118echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12119# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12120# If not cross compiling, check that we can run a simple program.
12121if test "$cross_compiling" != yes; then
12122 if { ac_try='./$ac_file'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 cross_compiling=no
12129 else
12130 if test "$cross_compiling" = maybe; then
12131 cross_compiling=yes
12132 else
12133 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12134If you meant to cross compile, use \`--host'.
12135See \`config.log' for more details." >&5
12136echo "$as_me: error: cannot run C compiled programs.
12137If you meant to cross compile, use \`--host'.
12138See \`config.log' for more details." >&2;}
12139 { (exit 1); exit 1; }; }
12140 fi
12141 fi
12142fi
12143echo "$as_me:$LINENO: result: yes" >&5
12144echo "${ECHO_T}yes" >&6
12145
12146rm -f a.out a.exe conftest$ac_cv_exeext b.out
12147ac_clean_files=$ac_clean_files_save
12148# Check the compiler produces executables we can run. If not, either
12149# the compiler is broken, or we cross compile.
12150echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12151echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12152echo "$as_me:$LINENO: result: $cross_compiling" >&5
12153echo "${ECHO_T}$cross_compiling" >&6
12154
12155echo "$as_me:$LINENO: checking for suffix of executables" >&5
12156echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; then
12162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12163# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12164# work properly (i.e., refer to `conftest.exe'), while it won't with
12165# `rm'.
12166for ac_file in conftest.exe conftest conftest.*; do
12167 test -f "$ac_file" || continue
12168 case $ac_file in
12169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12171 export ac_cv_exeext
12172 break;;
a848cd7e
SC
12173 * ) break;;
12174 esac
12175done
12176else
12177 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12178See \`config.log' for more details." >&5
12179echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12180See \`config.log' for more details." >&2;}
12181 { (exit 1); exit 1; }; }
12182fi
12183
12184rm -f conftest$ac_cv_exeext
12185echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12186echo "${ECHO_T}$ac_cv_exeext" >&6
12187
12188rm -f conftest.$ac_ext
12189EXEEXT=$ac_cv_exeext
12190ac_exeext=$EXEEXT
12191echo "$as_me:$LINENO: checking for suffix of object files" >&5
12192echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12193if test "${ac_cv_objext+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 cat >conftest.$ac_ext <<_ACEOF
12197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202
12203int
12204main ()
12205{
12206
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211rm -f conftest.o conftest.obj
12212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; then
12217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12218 case $ac_file in
12219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12221 break;;
12222 esac
12223done
12224else
12225 echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12229See \`config.log' for more details." >&5
12230echo "$as_me: error: cannot compute suffix of object files: cannot compile
12231See \`config.log' for more details." >&2;}
12232 { (exit 1); exit 1; }; }
12233fi
12234
12235rm -f conftest.$ac_cv_objext conftest.$ac_ext
12236fi
12237echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12238echo "${ECHO_T}$ac_cv_objext" >&6
12239OBJEXT=$ac_cv_objext
12240ac_objext=$OBJEXT
12241echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12242echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12243if test "${ac_cv_c_compiler_gnu+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245else
12246 cat >conftest.$ac_ext <<_ACEOF
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
12252
12253int
12254main ()
12255{
12256#ifndef __GNUC__
12257 choke me
12258#endif
12259
12260 ;
12261 return 0;
12262}
12263_ACEOF
12264rm -f conftest.$ac_objext
12265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12266 (eval $ac_compile) 2>conftest.er1
a848cd7e 12267 ac_status=$?
ac1cb8d3
VS
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
a848cd7e
SC
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
ca5c6ac3 12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_compiler_gnu=yes
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290ac_compiler_gnu=no
12291fi
ac1cb8d3 12292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12293ac_cv_c_compiler_gnu=$ac_compiler_gnu
12294
12295fi
12296echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12297echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12298GCC=`test $ac_compiler_gnu = yes && echo yes`
12299ac_test_CFLAGS=${CFLAGS+set}
12300ac_save_CFLAGS=$CFLAGS
15291213 12301CFLAGS="-g"
a848cd7e
SC
12302echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12303echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12304if test "${ac_cv_prog_cc_g+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313
12314int
12315main ()
12316{
12317
12318 ;
12319 return 0;
12320}
12321_ACEOF
12322rm -f conftest.$ac_objext
12323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12324 (eval $ac_compile) 2>conftest.er1
a848cd7e 12325 ac_status=$?
ac1cb8d3
VS
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
a848cd7e
SC
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
ca5c6ac3 12331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_prog_cc_g=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348ac_cv_prog_cc_g=no
12349fi
ac1cb8d3 12350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12351fi
12352echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12353echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12354if test "$ac_test_CFLAGS" = set; then
12355 CFLAGS=$ac_save_CFLAGS
12356elif test $ac_cv_prog_cc_g = yes; then
12357 if test "$GCC" = yes; then
12358 CFLAGS="-g -O2"
12359 else
12360 CFLAGS="-g"
12361 fi
12362else
12363 if test "$GCC" = yes; then
12364 CFLAGS="-O2"
12365 else
12366 CFLAGS=
12367 fi
12368fi
12369echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12370echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12371if test "${ac_cv_prog_cc_stdc+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374 ac_cv_prog_cc_stdc=no
12375ac_save_CC=$CC
12376cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382#include <stdarg.h>
12383#include <stdio.h>
12384#include <sys/types.h>
12385#include <sys/stat.h>
12386/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12387struct buf { int x; };
12388FILE * (*rcsopen) (struct buf *, struct stat *, int);
12389static char *e (p, i)
12390 char **p;
12391 int i;
12392{
12393 return p[i];
12394}
12395static char *f (char * (*g) (char **, int), char **p, ...)
12396{
12397 char *s;
12398 va_list v;
12399 va_start (v,p);
12400 s = g (p, va_arg (v,int));
12401 va_end (v);
12402 return s;
12403}
ac1cb8d3
VS
12404
12405/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12406 function prototypes and stuff, but not '\xHH' hex character constants.
12407 These don't provoke an error unfortunately, instead are silently treated
12408 as 'x'. The following induces an error, until -std1 is added to get
12409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12410 array size at least. It's necessary to write '\x00'==0 to get something
12411 that's true only with -std1. */
12412int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12413
a848cd7e
SC
12414int test (int i, double x);
12415struct s1 {int (*f) (int a);};
12416struct s2 {int (*f) (double a);};
12417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12418int argc;
12419char **argv;
12420int
12421main ()
12422{
12423return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12424 ;
12425 return 0;
12426}
12427_ACEOF
12428# Don't try gcc -ansi; that turns off useful extensions and
12429# breaks some systems' header files.
12430# AIX -qlanglvl=ansi
12431# Ultrix and OSF/1 -std1
12432# HP-UX 10.20 and later -Ae
12433# HP-UX older versions -Aa -D_HPUX_SOURCE
12434# SVR4 -Xc -D__EXTENSIONS__
12435for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12436do
12437 CC="$ac_save_CC $ac_arg"
12438 rm -f conftest.$ac_objext
12439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12440 (eval $ac_compile) 2>conftest.er1
a848cd7e 12441 ac_status=$?
ac1cb8d3
VS
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
a848cd7e
SC
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
ca5c6ac3 12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_prog_cc_stdc=$ac_arg
12460break
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465fi
ac1cb8d3 12466rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12467done
12468rm -f conftest.$ac_ext conftest.$ac_objext
12469CC=$ac_save_CC
12470
12471fi
12472
12473case "x$ac_cv_prog_cc_stdc" in
12474 x|xno)
12475 echo "$as_me:$LINENO: result: none needed" >&5
12476echo "${ECHO_T}none needed" >&6 ;;
12477 *)
12478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12479echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12480 CC="$CC $ac_cv_prog_cc_stdc" ;;
12481esac
12482
12483# Some people use a C++ compiler to compile C. Since we use `exit',
12484# in C++ we need to declare it. In case someone uses the same compiler
12485# for both compiling C and C++ we need to have the C++ compiler decide
12486# the declaration of exit, since it's the most demanding environment.
12487cat >conftest.$ac_ext <<_ACEOF
12488#ifndef __cplusplus
12489 choke me
12490#endif
12491_ACEOF
12492rm -f conftest.$ac_objext
12493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12494 (eval $ac_compile) 2>conftest.er1
a848cd7e 12495 ac_status=$?
ac1cb8d3
VS
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
a848cd7e
SC
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
ca5c6ac3 12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 for ac_declaration in \
ac1cb8d3 12514 '' \
a848cd7e
SC
12515 'extern "C" void std::exit (int) throw (); using std::exit;' \
12516 'extern "C" void std::exit (int); using std::exit;' \
12517 'extern "C" void exit (int) throw ();' \
12518 'extern "C" void exit (int);' \
12519 'void exit (int);'
12520do
12521 cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
de59c161 12527$ac_declaration
ac1cb8d3 12528#include <stdlib.h>
a848cd7e
SC
12529int
12530main ()
12531{
12532exit (42);
12533 ;
12534 return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext
12538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12539 (eval $ac_compile) 2>conftest.er1
a848cd7e 12540 ac_status=$?
ac1cb8d3
VS
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
a848cd7e
SC
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
ca5c6ac3 12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 :
12559else
12560 echo "$as_me: failed program was:" >&5
12561sed 's/^/| /' conftest.$ac_ext >&5
12562
12563continue
12564fi
ac1cb8d3 12565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12566 cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
12572$ac_declaration
12573int
12574main ()
12575{
12576exit (42);
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581rm -f conftest.$ac_objext
12582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12583 (eval $ac_compile) 2>conftest.er1
a848cd7e 12584 ac_status=$?
ac1cb8d3
VS
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
a848cd7e
SC
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
ca5c6ac3 12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 break
12603else
12604 echo "$as_me: failed program was:" >&5
12605sed 's/^/| /' conftest.$ac_ext >&5
12606
12607fi
ac1cb8d3 12608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12609done
12610rm -f conftest*
12611if test -n "$ac_declaration"; then
12612 echo '#ifdef __cplusplus' >>confdefs.h
12613 echo $ac_declaration >>confdefs.h
12614 echo '#endif' >>confdefs.h
12615fi
12616
12617else
12618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621fi
ac1cb8d3 12622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12623ac_ext=c
12624ac_cpp='$CPP $CPPFLAGS'
12625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627ac_compiler_gnu=$ac_cv_c_compiler_gnu
12628
ab0ad5f1
VZ
12629
12630
12631 ac_ext=c
12632ac_cpp='$CPP $CPPFLAGS'
12633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12635ac_compiler_gnu=$ac_cv_c_compiler_gnu
12636
12637 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12638echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12639if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641else
12642 cat >conftest.$ac_ext <<_ACEOF
12643/* confdefs.h. */
12644_ACEOF
12645cat confdefs.h >>conftest.$ac_ext
12646cat >>conftest.$ac_ext <<_ACEOF
12647/* end confdefs.h. */
12648
12649int
12650main ()
12651{
12652
12653 #ifndef __INTEL_COMPILER
12654 choke me
12655 #endif
12656
12657 ;
12658 return 0;
12659}
12660_ACEOF
12661rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
ca5c6ac3 12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12683else
12684 echo "$as_me: failed program was:" >&5
12685sed 's/^/| /' conftest.$ac_ext >&5
12686
12687bakefile_cv_c_compiler___INTEL_COMPILER=no
12688
12689fi
12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691
12692
12693fi
12694echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12695echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12696 ac_ext=c
12697ac_cpp='$CPP $CPPFLAGS'
12698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12703 :; INTELCC=yes
12704 else
12705 :;
12706 fi
12707
12708
12709 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12710 if test "xCC" = "xC"; then
12711 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12712echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12713if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715else
12716 cat >conftest.$ac_ext <<_ACEOF
12717/* confdefs.h. */
12718_ACEOF
12719cat confdefs.h >>conftest.$ac_ext
12720cat >>conftest.$ac_ext <<_ACEOF
12721/* end confdefs.h. */
12722
12723int
12724main ()
12725{
12726
12727 ;
12728 return 0;
12729}
12730_ACEOF
12731rm -f conftest.$ac_objext conftest.$ac_ext.o
12732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; then
12737 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12738 case $ac_file in
12739 conftest.$ac_ext.o)
0093c2fc 12740 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12741 ;;
12742 *)
12743 ;;
12744 esac
12745done
12746else
12747 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12748See \`config.log' for more details." >&5
12749echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12750See \`config.log' for more details." >&2;}
12751 { (exit 1); exit 1; }; }
12752
12753fi
12754
12755rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12756
12757fi
0093c2fc
VZ
12758echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12759echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12760if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12761 if test "c" = "c"; then
0093c2fc 12762 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12763 fi
12764 if test "c" = "cxx"; then
0093c2fc 12765 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12766 fi
12767fi
12768
0093c2fc 12769 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12770 unset ac_cv_prog_cc_g
12771 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12772ac_save_CFLAGS=$CFLAGS
15291213 12773CFLAGS="-g"
480ccd21
DE
12774echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12775echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12776if test "${ac_cv_prog_cc_g+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778else
12779 cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
12785
12786int
12787main ()
12788{
12789
12790 ;
12791 return 0;
12792}
12793_ACEOF
12794rm -f conftest.$ac_objext
12795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
ca5c6ac3 12803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_prog_cc_g=yes
12816else
12817 echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820ac_cv_prog_cc_g=no
12821fi
12822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12823fi
12824echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12825echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12826if test "$ac_test_CFLAGS" = set; then
12827 CFLAGS=$ac_save_CFLAGS
12828elif test $ac_cv_prog_cc_g = yes; then
12829 if test "$GCC" = yes; then
12830 CFLAGS="-g -O2"
12831 else
12832 CFLAGS="-g"
12833 fi
12834else
12835 if test "$GCC" = yes; then
12836 CFLAGS="-O2"
12837 else
12838 CFLAGS=
12839 fi
12840fi
3006edc0 12841 fi
ab0ad5f1 12842 fi
3006edc0
VZ
12843
12844 case `uname -s` in
12845 AIX*)
12846 ac_ext=c
12847ac_cpp='$CPP $CPPFLAGS'
12848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850ac_compiler_gnu=$ac_cv_c_compiler_gnu
12851
12852echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12853echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12854if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856else
12857 cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863
12864int
12865main ()
12866{
12867#ifndef __xlC__
12868 choke me
12869#endif
12870
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875rm -f conftest.$ac_objext
12876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
ca5c6ac3 12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
0093c2fc 12896 bakefile_compiler_xlc=yes
3006edc0
VZ
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
0093c2fc 12901bakefile_compiler_xlc=no
3006edc0
VZ
12902fi
12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12904 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12905
12906fi
0093c2fc
VZ
12907echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12908echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12909
0093c2fc 12910XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12911ac_ext=c
12912ac_cpp='$CPP $CPPFLAGS'
12913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915ac_compiler_gnu=$ac_cv_c_compiler_gnu
12916
12917
12918 ;;
12919
12920 Darwin)
12921 ac_ext=c
95986553
DE
12922ac_cpp='$CPP $CPPFLAGS'
12923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925ac_compiler_gnu=$ac_cv_c_compiler_gnu
12926
12927echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12928echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12929if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931else
12932 cat >conftest.$ac_ext <<_ACEOF
12933/* confdefs.h. */
12934_ACEOF
12935cat confdefs.h >>conftest.$ac_ext
12936cat >>conftest.$ac_ext <<_ACEOF
12937/* end confdefs.h. */
12938
12939int
12940main ()
12941{
12942#ifndef __MWERKS__
12943 choke me
12944#endif
12945
12946 ;
12947 return 0;
12948}
12949_ACEOF
12950rm -f conftest.$ac_objext
12951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952 (eval $ac_compile) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
ca5c6ac3 12959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 bakefile_compiler_mwerks=yes
12972else
12973 echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
12976bakefile_compiler_mwerks=no
12977fi
12978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12980
12981fi
12982echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12983echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12984
0e6fa1d9 12985MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12986ac_ext=c
12987ac_cpp='$CPP $CPPFLAGS'
12988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990ac_compiler_gnu=$ac_cv_c_compiler_gnu
12991
12992
3006edc0 12993 ac_ext=c
9273ffba
DE
12994ac_cpp='$CPP $CPPFLAGS'
12995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998
12999echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13000echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13001if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004 cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010
13011int
13012main ()
13013{
13014#ifndef __xlC__
13015 choke me
13016#endif
13017
13018 ;
13019 return 0;
13020}
13021_ACEOF
13022rm -f conftest.$ac_objext
13023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
ca5c6ac3 13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
0093c2fc 13043 bakefile_compiler_xlc=yes
9273ffba
DE
13044else
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
0093c2fc 13048bakefile_compiler_xlc=no
9273ffba
DE
13049fi
13050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13051 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13052
13053fi
0093c2fc
VZ
13054echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13055echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13056
0093c2fc 13057XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13058ac_ext=c
13059ac_cpp='$CPP $CPPFLAGS'
13060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13062ac_compiler_gnu=$ac_cv_c_compiler_gnu
13063
13064
3006edc0
VZ
13065 ;;
13066
13067 IRIX*)
a848cd7e 13068
6dcfc289 13069
0ad5d837
VZ
13070 ac_ext=c
13071ac_cpp='$CPP $CPPFLAGS'
13072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074ac_compiler_gnu=$ac_cv_c_compiler_gnu
13075
13076 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13077echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13078if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080else
13081 cat >conftest.$ac_ext <<_ACEOF
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
13087
13088int
13089main ()
13090{
13091
13092 #ifndef _SGI_COMPILER_VERSION
13093 choke me
13094 #endif
13095
13096 ;
13097 return 0;
13098}
13099_ACEOF
13100rm -f conftest.$ac_objext
13101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
ca5c6ac3 13109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13127
13128fi
13129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13130
13131
13132fi
13133echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13134echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13135 ac_ext=c
13136ac_cpp='$CPP $CPPFLAGS'
13137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13139ac_compiler_gnu=$ac_cv_c_compiler_gnu
13140
13141 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13142 :; SGICC=yes
13143 else
13144 :;
13145 fi
13146
13147
3006edc0
VZ
13148 ;;
13149
0093c2fc 13150 HP-UX*)
3006edc0
VZ
13151
13152
13153 ac_ext=c
13154ac_cpp='$CPP $CPPFLAGS'
13155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13157ac_compiler_gnu=$ac_cv_c_compiler_gnu
13158
0093c2fc
VZ
13159 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13160echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13161if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163else
13164 cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170
13171int
13172main ()
13173{
13174
0093c2fc 13175 #ifndef __HP_cc
3006edc0
VZ
13176 choke me
13177 #endif
13178
13179 ;
13180 return 0;
13181}
13182_ACEOF
13183rm -f conftest.$ac_objext
13184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>conftest.er1
13186 ac_status=$?
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } &&
ca5c6ac3 13192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
0093c2fc 13204 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
0093c2fc 13209bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13210
13211fi
13212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13213
13214
13215fi
0093c2fc
VZ
13216echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13217echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13218 ac_ext=c
13219ac_cpp='$CPP $CPPFLAGS'
13220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
0093c2fc
VZ
13224 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13225 :; HPCC=yes
a1aa0349
VZ
13226 else
13227 :;
13228 fi
13229
13230
13231 ;;
13232
0093c2fc 13233 OSF1)
a1aa0349
VZ
13234
13235
13236 ac_ext=c
13237ac_cpp='$CPP $CPPFLAGS'
13238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_c_compiler_gnu
13241
0093c2fc
VZ
13242 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13243echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13244if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247 cat >conftest.$ac_ext <<_ACEOF
13248/* confdefs.h. */
13249_ACEOF
13250cat confdefs.h >>conftest.$ac_ext
13251cat >>conftest.$ac_ext <<_ACEOF
13252/* end confdefs.h. */
13253
13254int
13255main ()
13256{
13257
0093c2fc 13258 #ifndef __DECC
a1aa0349
VZ
13259 choke me
13260 #endif
13261
13262 ;
13263 return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext
13267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13268 (eval $ac_compile) 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
ca5c6ac3 13275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
0093c2fc 13287 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
0093c2fc 13292bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13293
13294fi
13295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13296
13297
13298fi
0093c2fc
VZ
13299echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13300echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13301 ac_ext=c
13302ac_cpp='$CPP $CPPFLAGS'
13303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305ac_compiler_gnu=$ac_cv_c_compiler_gnu
13306
0093c2fc
VZ
13307 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13308 :; COMPAQCC=yes
13309 else
13310 :;
13311 fi
13312
13313
13314 ;;
13315
13316 SunOS)
13317
13318
13319 ac_ext=c
13320ac_cpp='$CPP $CPPFLAGS'
13321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323ac_compiler_gnu=$ac_cv_c_compiler_gnu
13324
13325 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13326echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13327if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
13330 cat >conftest.$ac_ext <<_ACEOF
13331/* confdefs.h. */
13332_ACEOF
13333cat confdefs.h >>conftest.$ac_ext
13334cat >>conftest.$ac_ext <<_ACEOF
13335/* end confdefs.h. */
13336
13337int
13338main ()
13339{
13340
13341 #ifndef __SUNPRO_C
13342 choke me
13343 #endif
13344
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349rm -f conftest.$ac_objext
13350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13351 (eval $ac_compile) 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
ca5c6ac3 13358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 bakefile_cv_c_compiler___SUNPRO_C=yes
13371else
13372 echo "$as_me: failed program was:" >&5
13373sed 's/^/| /' conftest.$ac_ext >&5
13374
13375bakefile_cv_c_compiler___SUNPRO_C=no
13376
13377fi
13378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13379
13380
13381fi
13382echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13383echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13384 ac_ext=c
13385ac_cpp='$CPP $CPPFLAGS'
13386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13388ac_compiler_gnu=$ac_cv_c_compiler_gnu
13389
13390 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13391 :; SUNCC=yes
3006edc0
VZ
13392 else
13393 :;
13394 fi
13395
13396
13397 ;;
13398 esac
ab0ad5f1 13399 fi
a9e5b1f0
MW
13400
13401
3006edc0 13402
a848cd7e
SC
13403ac_ext=c
13404ac_cpp='$CPP $CPPFLAGS'
13405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13407ac_compiler_gnu=$ac_cv_c_compiler_gnu
13408echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13409echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13410# On Suns, sometimes $CPP names a directory.
13411if test -n "$CPP" && test -d "$CPP"; then
13412 CPP=
13413fi
13414if test -z "$CPP"; then
13415 if test "${ac_cv_prog_CPP+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13417else
13418 # Double quotes because CPP needs to be expanded
13419 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13420 do
13421 ac_preproc_ok=false
13422for ac_c_preproc_warn_flag in '' yes
13423do
13424 # Use a header file that comes with gcc, so configuring glibc
13425 # with a fresh cross-compiler works.
13426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13427 # <limits.h> exists even on freestanding compilers.
13428 # On the NeXT, cc -E runs the code through the compiler's parser,
13429 # not just through cpp. "Syntax error" is here to catch this case.
13430 cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h. */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h. */
13436#ifdef __STDC__
13437# include <limits.h>
13438#else
13439# include <assert.h>
13440#endif
ac1cb8d3 13441 Syntax error
a848cd7e
SC
13442_ACEOF
13443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } >/dev/null; then
13451 if test -s conftest.err; then
13452 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13454 else
13455 ac_cpp_err=
13456 fi
13457else
13458 ac_cpp_err=yes
13459fi
13460if test -z "$ac_cpp_err"; then
13461 :
13462else
13463 echo "$as_me: failed program was:" >&5
13464sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 # Broken: fails on valid input.
13467continue
13468fi
13469rm -f conftest.err conftest.$ac_ext
13470
13471 # OK, works on sane cases. Now check whether non-existent headers
13472 # can be detected and how.
13473 cat >conftest.$ac_ext <<_ACEOF
13474/* confdefs.h. */
13475_ACEOF
13476cat confdefs.h >>conftest.$ac_ext
13477cat >>conftest.$ac_ext <<_ACEOF
13478/* end confdefs.h. */
13479#include <ac_nonexistent.h>
13480_ACEOF
13481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } >/dev/null; then
13489 if test -s conftest.err; then
13490 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13492 else
13493 ac_cpp_err=
13494 fi
13495else
13496 ac_cpp_err=yes
13497fi
13498if test -z "$ac_cpp_err"; then
13499 # Broken: success on invalid input.
13500continue
13501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 # Passes both tests.
13506ac_preproc_ok=:
13507break
13508fi
13509rm -f conftest.err conftest.$ac_ext
13510
13511done
13512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13513rm -f conftest.err conftest.$ac_ext
13514if $ac_preproc_ok; then
13515 break
13516fi
13517
13518 done
13519 ac_cv_prog_CPP=$CPP
13520
13521fi
13522 CPP=$ac_cv_prog_CPP
13523else
13524 ac_cv_prog_CPP=$CPP
13525fi
13526echo "$as_me:$LINENO: result: $CPP" >&5
13527echo "${ECHO_T}$CPP" >&6
13528ac_preproc_ok=false
13529for ac_c_preproc_warn_flag in '' yes
13530do
13531 # Use a header file that comes with gcc, so configuring glibc
13532 # with a fresh cross-compiler works.
13533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13534 # <limits.h> exists even on freestanding compilers.
13535 # On the NeXT, cc -E runs the code through the compiler's parser,
13536 # not just through cpp. "Syntax error" is here to catch this case.
13537 cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543#ifdef __STDC__
13544# include <limits.h>
13545#else
13546# include <assert.h>
13547#endif
ac1cb8d3 13548 Syntax error
a848cd7e
SC
13549_ACEOF
13550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } >/dev/null; then
13558 if test -s conftest.err; then
13559 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13561 else
13562 ac_cpp_err=
13563 fi
13564else
13565 ac_cpp_err=yes
13566fi
13567if test -z "$ac_cpp_err"; then
13568 :
13569else
13570 echo "$as_me: failed program was:" >&5
13571sed 's/^/| /' conftest.$ac_ext >&5
13572
13573 # Broken: fails on valid input.
13574continue
13575fi
13576rm -f conftest.err conftest.$ac_ext
13577
13578 # OK, works on sane cases. Now check whether non-existent headers
13579 # can be detected and how.
13580 cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h. */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h. */
13586#include <ac_nonexistent.h>
13587_ACEOF
13588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } >/dev/null; then
13596 if test -s conftest.err; then
13597 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13599 else
13600 ac_cpp_err=
13601 fi
13602else
13603 ac_cpp_err=yes
13604fi
13605if test -z "$ac_cpp_err"; then
13606 # Broken: success on invalid input.
13607continue
13608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
13612 # Passes both tests.
13613ac_preproc_ok=:
13614break
13615fi
13616rm -f conftest.err conftest.$ac_ext
13617
13618done
13619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13620rm -f conftest.err conftest.$ac_ext
13621if $ac_preproc_ok; then
13622 :
13623else
13624 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13625See \`config.log' for more details." >&5
13626echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13627See \`config.log' for more details." >&2;}
13628 { (exit 1); exit 1; }; }
13629fi
13630
13631ac_ext=c
13632ac_cpp='$CPP $CPPFLAGS'
13633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635ac_compiler_gnu=$ac_cv_c_compiler_gnu
13636
13637
13638echo "$as_me:$LINENO: checking for egrep" >&5
13639echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13640if test "${ac_cv_prog_egrep+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
13643 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13644 then ac_cv_prog_egrep='grep -E'
13645 else ac_cv_prog_egrep='egrep'
13646 fi
13647fi
13648echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13649echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13650 EGREP=$ac_cv_prog_egrep
13651
13652
13653if test $ac_cv_c_compiler_gnu = yes; then
13654 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13655echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13656if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659 ac_pattern="Autoconf.*'x'"
13660 cat >conftest.$ac_ext <<_ACEOF
13661/* confdefs.h. */
13662_ACEOF
13663cat confdefs.h >>conftest.$ac_ext
13664cat >>conftest.$ac_ext <<_ACEOF
13665/* end confdefs.h. */
13666#include <sgtty.h>
13667Autoconf TIOCGETP
13668_ACEOF
13669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13671 ac_cv_prog_gcc_traditional=yes
13672else
13673 ac_cv_prog_gcc_traditional=no
13674fi
13675rm -f conftest*
13676
13677
13678 if test $ac_cv_prog_gcc_traditional = no; then
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685#include <termio.h>
13686Autoconf TCGETA
13687_ACEOF
13688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13690 ac_cv_prog_gcc_traditional=yes
13691fi
13692rm -f conftest*
13693
13694 fi
13695fi
13696echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13697echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13698 if test $ac_cv_prog_gcc_traditional = yes; then
13699 CC="$CC -traditional"
13700 fi
13701fi
13702
13703
a848cd7e
SC
13704ac_ext=cc
13705ac_cpp='$CXXCPP $CPPFLAGS'
13706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13709
13710
13711CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13712
13713
3006edc0 13714
6dcfc289 13715 ac_ext=cc
a848cd7e
SC
13716ac_cpp='$CXXCPP $CPPFLAGS'
13717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13720if test -n "$ac_tool_prefix"; then
13721 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13722 do
13723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13725echo "$as_me:$LINENO: checking for $ac_word" >&5
13726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13727if test "${ac_cv_prog_CXX+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730 if test -n "$CXX"; then
13731 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13732else
13733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734for as_dir in $PATH
13735do
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13743 fi
13744done
13745done
13746
13747fi
13748fi
13749CXX=$ac_cv_prog_CXX
13750if test -n "$CXX"; then
13751 echo "$as_me:$LINENO: result: $CXX" >&5
13752echo "${ECHO_T}$CXX" >&6
13753else
13754 echo "$as_me:$LINENO: result: no" >&5
13755echo "${ECHO_T}no" >&6
13756fi
13757
13758 test -n "$CXX" && break
13759 done
13760fi
13761if test -z "$CXX"; then
13762 ac_ct_CXX=$CXX
13763 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13764do
13765 # Extract the first word of "$ac_prog", so it can be a program name with args.
13766set dummy $ac_prog; ac_word=$2
13767echo "$as_me:$LINENO: checking for $ac_word" >&5
13768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13769if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772 if test -n "$ac_ct_CXX"; then
13773 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13774else
13775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776for as_dir in $PATH
13777do
13778 IFS=$as_save_IFS
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
13781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13782 ac_cv_prog_ac_ct_CXX="$ac_prog"
13783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 break 2
13785 fi
13786done
13787done
13788
13789fi
13790fi
13791ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13792if test -n "$ac_ct_CXX"; then
13793 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13794echo "${ECHO_T}$ac_ct_CXX" >&6
13795else
13796 echo "$as_me:$LINENO: result: no" >&5
13797echo "${ECHO_T}no" >&6
13798fi
13799
13800 test -n "$ac_ct_CXX" && break
13801done
13802test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13803
13804 CXX=$ac_ct_CXX
13805fi
13806
13807
13808# Provide some information about the compiler.
13809echo "$as_me:$LINENO:" \
13810 "checking for C++ compiler version" >&5
13811ac_compiler=`set X $ac_compile; echo $2`
13812{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13813 (eval $ac_compiler --version </dev/null >&5) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }
13817{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13818 (eval $ac_compiler -v </dev/null >&5) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }
13822{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13823 (eval $ac_compiler -V </dev/null >&5) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }
13827
13828echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13829echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13830if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832else
13833 cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839
13840int
13841main ()
13842{
13843#ifndef __GNUC__
13844 choke me
13845#endif
13846
13847 ;
13848 return 0;
13849}
13850_ACEOF
13851rm -f conftest.$ac_objext
13852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13853 (eval $ac_compile) 2>conftest.er1
a848cd7e 13854 ac_status=$?
ac1cb8d3
VS
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
a848cd7e
SC
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
ca5c6ac3 13860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; } &&
13866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_compiler_gnu=yes
13873else
13874 echo "$as_me: failed program was:" >&5
13875sed 's/^/| /' conftest.$ac_ext >&5
13876
13877ac_compiler_gnu=no
13878fi
ac1cb8d3 13879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13880ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13881
13882fi
13883echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13884echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13885GXX=`test $ac_compiler_gnu = yes && echo yes`
13886ac_test_CXXFLAGS=${CXXFLAGS+set}
13887ac_save_CXXFLAGS=$CXXFLAGS
13888CXXFLAGS="-g"
13889echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13890echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13891if test "${ac_cv_prog_cxx_g+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894 cat >conftest.$ac_ext <<_ACEOF
13895/* confdefs.h. */
13896_ACEOF
13897cat confdefs.h >>conftest.$ac_ext
13898cat >>conftest.$ac_ext <<_ACEOF
13899/* end confdefs.h. */
13900
13901int
13902main ()
13903{
13904
13905 ;
13906 return 0;
13907}
13908_ACEOF
13909rm -f conftest.$ac_objext
13910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13911 (eval $ac_compile) 2>conftest.er1
a848cd7e 13912 ac_status=$?
ac1cb8d3
VS
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
a848cd7e
SC
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
ca5c6ac3 13918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_cv_prog_cxx_g=yes
13931else
13932 echo "$as_me: failed program was:" >&5
13933sed 's/^/| /' conftest.$ac_ext >&5
13934
13935ac_cv_prog_cxx_g=no
13936fi
ac1cb8d3 13937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13938fi
13939echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13940echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13941if test "$ac_test_CXXFLAGS" = set; then
13942 CXXFLAGS=$ac_save_CXXFLAGS
13943elif test $ac_cv_prog_cxx_g = yes; then
13944 if test "$GXX" = yes; then
15291213 13945 CXXFLAGS="-g -O2"
a848cd7e 13946 else
15291213 13947 CXXFLAGS="-g"
a848cd7e
SC
13948 fi
13949else
13950 if test "$GXX" = yes; then
13951 CXXFLAGS="-O2"
13952 else
13953 CXXFLAGS=
13954 fi
13955fi
13956for ac_declaration in \
ac1cb8d3 13957 '' \
a848cd7e
SC
13958 'extern "C" void std::exit (int) throw (); using std::exit;' \
13959 'extern "C" void std::exit (int); using std::exit;' \
13960 'extern "C" void exit (int) throw ();' \
13961 'extern "C" void exit (int);' \
13962 'void exit (int);'
13963do
13964 cat >conftest.$ac_ext <<_ACEOF
13965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h. */
de59c161 13970$ac_declaration
ac1cb8d3 13971#include <stdlib.h>
a848cd7e
SC
13972int
13973main ()
13974{
13975exit (42);
13976 ;
13977 return 0;
13978}
13979_ACEOF
13980rm -f conftest.$ac_objext
13981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13982 (eval $ac_compile) 2>conftest.er1
a848cd7e 13983 ac_status=$?
ac1cb8d3
VS
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
a848cd7e
SC
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
ca5c6ac3 13989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 :
14002else
14003 echo "$as_me: failed program was:" >&5
14004sed 's/^/| /' conftest.$ac_ext >&5
14005
14006continue
14007fi
ac1cb8d3 14008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14009 cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015$ac_declaration
14016int
14017main ()
14018{
14019exit (42);
14020 ;
14021 return 0;
14022}
14023_ACEOF
14024rm -f conftest.$ac_objext
14025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14026 (eval $ac_compile) 2>conftest.er1
a848cd7e 14027 ac_status=$?
ac1cb8d3
VS
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
a848cd7e
SC
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
ca5c6ac3 14033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 break
14046else
14047 echo "$as_me: failed program was:" >&5
14048sed 's/^/| /' conftest.$ac_ext >&5
14049
14050fi
ac1cb8d3 14051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14052done
14053rm -f conftest*
14054if test -n "$ac_declaration"; then
14055 echo '#ifdef __cplusplus' >>confdefs.h
14056 echo $ac_declaration >>confdefs.h
14057 echo '#endif' >>confdefs.h
14058fi
14059
14060ac_ext=cc
14061ac_cpp='$CXXCPP $CPPFLAGS'
14062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14065
ab0ad5f1
VZ
14066
14067
14068 ac_ext=cc
14069ac_cpp='$CXXCPP $CPPFLAGS'
14070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14073
14074 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14075echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14076if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078else
14079 cat >conftest.$ac_ext <<_ACEOF
14080/* confdefs.h. */
14081_ACEOF
14082cat confdefs.h >>conftest.$ac_ext
14083cat >>conftest.$ac_ext <<_ACEOF
14084/* end confdefs.h. */
14085
14086int
14087main ()
14088{
14089
14090 #ifndef __INTEL_COMPILER
14091 choke me
14092 #endif
14093
14094 ;
14095 return 0;
14096}
14097_ACEOF
14098rm -f conftest.$ac_objext
14099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14100 (eval $ac_compile) 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
ca5c6ac3 14107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
14124bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14125
14126fi
14127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14128
14129
14130fi
14131echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14132echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14133 ac_ext=cc
14134ac_cpp='$CXXCPP $CPPFLAGS'
14135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14138
14139 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14140 :; INTELCXX=yes
14141 else
14142 :;
14143 fi
14144
14145
3006edc0
VZ
14146 if test "x$GCXX" != "xyes"; then
14147 if test "xCXX" = "xC"; then
14148 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14149echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14150if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152else
14153 cat >conftest.$ac_ext <<_ACEOF
14154/* confdefs.h. */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
14158/* end confdefs.h. */
14159
14160int
14161main ()
14162{
14163
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168rm -f conftest.$ac_objext conftest.$ac_ext.o
14169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; then
14174 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14175 case $ac_file in
14176 conftest.$ac_ext.o)
0093c2fc 14177 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14178 ;;
14179 *)
14180 ;;
14181 esac
14182done
14183else
14184 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14185See \`config.log' for more details." >&5
14186echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14187See \`config.log' for more details." >&2;}
14188 { (exit 1); exit 1; }; }
14189
14190fi
14191
14192rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14193
14194fi
0093c2fc
VZ
14195echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14196echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14197if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14198 if test "cxx" = "c"; then
0093c2fc 14199 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14200 fi
14201 if test "cxx" = "cxx"; then
0093c2fc 14202 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14203 fi
14204fi
14205
0093c2fc 14206 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14207 unset ac_cv_prog_cc_g
14208 ac_test_CFLAGS=${CFLAGS+set}
14209ac_save_CFLAGS=$CFLAGS
15291213 14210CFLAGS="-g"
3006edc0
VZ
14211echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14212echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14213if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 cat >conftest.$ac_ext <<_ACEOF
14217/* confdefs.h. */
14218_ACEOF
14219cat confdefs.h >>conftest.$ac_ext
14220cat >>conftest.$ac_ext <<_ACEOF
14221/* end confdefs.h. */
14222
14223int
14224main ()
14225{
14226
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231rm -f conftest.$ac_objext
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
ca5c6ac3 14240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
3006edc0 14252 ac_cv_prog_cc_g=yes
480ccd21
DE
14253else
14254 echo "$as_me: failed program was:" >&5
14255sed 's/^/| /' conftest.$ac_ext >&5
14256
3006edc0 14257ac_cv_prog_cc_g=no
480ccd21
DE
14258fi
14259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14260fi
3006edc0
VZ
14261echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14263if test "$ac_test_CFLAGS" = set; then
14264 CFLAGS=$ac_save_CFLAGS
14265elif test $ac_cv_prog_cc_g = yes; then
14266 if test "$GCC" = yes; then
14267 CFLAGS="-g -O2"
480ccd21 14268 else
3006edc0 14269 CFLAGS="-g"
480ccd21
DE
14270 fi
14271else
3006edc0
VZ
14272 if test "$GCC" = yes; then
14273 CFLAGS="-O2"
480ccd21 14274 else
3006edc0 14275 CFLAGS=
480ccd21
DE
14276 fi
14277fi
3006edc0 14278 fi
ab0ad5f1 14279 fi
3006edc0
VZ
14280
14281 case `uname -s` in
14282 AIX*)
14283 ac_ext=cc
14284ac_cpp='$CXXCPP $CPPFLAGS'
14285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14288
14289echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14290echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14291if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293else
14294 cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
14300
14301int
14302main ()
14303{
14304#ifndef __xlC__
14305 choke me
14306#endif
14307
14308 ;
14309 return 0;
14310}
14311_ACEOF
14312rm -f conftest.$ac_objext
14313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
ca5c6ac3 14321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
0093c2fc 14333 bakefile_compiler_xlc=yes
3006edc0
VZ
14334else
14335 echo "$as_me: failed program was:" >&5
14336sed 's/^/| /' conftest.$ac_ext >&5
14337
0093c2fc 14338bakefile_compiler_xlc=no
3006edc0
VZ
14339fi
14340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14341 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14342
14343fi
0093c2fc
VZ
14344echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14345echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14346
0093c2fc 14347XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14348ac_ext=cc
14349ac_cpp='$CXXCPP $CPPFLAGS'
14350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14353
14354
14355 ;;
14356
14357 Darwin)
14358 ac_ext=cc
95986553
DE
14359ac_cpp='$CXXCPP $CPPFLAGS'
14360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14363
14364echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14365echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14366if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368else
14369 cat >conftest.$ac_ext <<_ACEOF
14370/* confdefs.h. */
14371_ACEOF
14372cat confdefs.h >>conftest.$ac_ext
14373cat >>conftest.$ac_ext <<_ACEOF
14374/* end confdefs.h. */
14375
14376int
14377main ()
14378{
14379#ifndef __MWERKS__
14380 choke me
14381#endif
14382
14383 ;
14384 return 0;
14385}
14386_ACEOF
14387rm -f conftest.$ac_objext
14388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
ca5c6ac3 14396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest.$ac_objext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 bakefile_compiler_mwerks=yes
14409else
14410 echo "$as_me: failed program was:" >&5
14411sed 's/^/| /' conftest.$ac_ext >&5
14412
14413bakefile_compiler_mwerks=no
14414fi
14415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14416 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14417
14418fi
14419echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14420echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14421
0e6fa1d9 14422MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14423ac_ext=cc
14424ac_cpp='$CXXCPP $CPPFLAGS'
14425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14428
14429
3006edc0 14430 ac_ext=cc
9273ffba
DE
14431ac_cpp='$CXXCPP $CPPFLAGS'
14432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14435
14436echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14437echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14438if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440else
14441 cat >conftest.$ac_ext <<_ACEOF
14442/* confdefs.h. */
14443_ACEOF
14444cat confdefs.h >>conftest.$ac_ext
14445cat >>conftest.$ac_ext <<_ACEOF
14446/* end confdefs.h. */
14447
14448int
14449main ()
14450{
14451#ifndef __xlC__
14452 choke me
14453#endif
14454
14455 ;
14456 return 0;
14457}
14458_ACEOF
14459rm -f conftest.$ac_objext
14460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
ca5c6ac3 14468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; } &&
14474 { ac_try='test -s conftest.$ac_objext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
0093c2fc 14480 bakefile_compiler_xlc=yes
9273ffba
DE
14481else
14482 echo "$as_me: failed program was:" >&5
14483sed 's/^/| /' conftest.$ac_ext >&5
14484
0093c2fc 14485bakefile_compiler_xlc=no
9273ffba
DE
14486fi
14487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14488 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14489
14490fi
0093c2fc
VZ
14491echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14492echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14493
0093c2fc 14494XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14495ac_ext=cc
14496ac_cpp='$CXXCPP $CPPFLAGS'
14497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14500
14501
3006edc0
VZ
14502 ;;
14503
14504 IRIX*)
95986553 14505
6dcfc289 14506
0ad5d837
VZ
14507 ac_ext=cc
14508ac_cpp='$CXXCPP $CPPFLAGS'
14509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14512
14513 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14514echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14515if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517else
14518 cat >conftest.$ac_ext <<_ACEOF
14519/* confdefs.h. */
14520_ACEOF
14521cat confdefs.h >>conftest.$ac_ext
14522cat >>conftest.$ac_ext <<_ACEOF
14523/* end confdefs.h. */
14524
14525int
14526main ()
14527{
14528
14529 #ifndef _SGI_COMPILER_VERSION
14530 choke me
14531 #endif
14532
14533 ;
14534 return 0;
14535}
14536_ACEOF
14537rm -f conftest.$ac_objext
14538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539 (eval $ac_compile) 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
ca5c6ac3 14546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; } &&
14552 { ac_try='test -s conftest.$ac_objext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14559else
14560 echo "$as_me: failed program was:" >&5
14561sed 's/^/| /' conftest.$ac_ext >&5
14562
14563bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14564
14565fi
14566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14567
14568
14569fi
14570echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14571echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14572 ac_ext=cc
14573ac_cpp='$CXXCPP $CPPFLAGS'
14574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14577
14578 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14579 :; SGICXX=yes
14580 else
14581 :;
14582 fi
14583
14584
3006edc0
VZ
14585 ;;
14586
0093c2fc 14587 HP-UX*)
3006edc0
VZ
14588
14589
14590 ac_ext=cc
14591ac_cpp='$CXXCPP $CPPFLAGS'
14592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14595
0093c2fc
VZ
14596 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14597echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14598if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600else
14601 cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607
14608int
14609main ()
14610{
14611
0093c2fc 14612 #ifndef __HP_aCC
3006edc0
VZ
14613 choke me
14614 #endif
14615
14616 ;
14617 return 0;
14618}
14619_ACEOF
14620rm -f conftest.$ac_objext
14621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14622 (eval $ac_compile) 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
ca5c6ac3 14629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
0093c2fc 14641 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14642else
14643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
0093c2fc 14646bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14647
14648fi
14649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14650
14651
14652fi
0093c2fc
VZ
14653echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14654echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14655 ac_ext=cc
14656ac_cpp='$CXXCPP $CPPFLAGS'
14657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14660
0093c2fc
VZ
14661 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14662 :; HPCXX=yes
a1aa0349
VZ
14663 else
14664 :;
14665 fi
14666
14667
14668 ;;
14669
0093c2fc 14670 OSF1)
a1aa0349
VZ
14671
14672
14673 ac_ext=cc
14674ac_cpp='$CXXCPP $CPPFLAGS'
14675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14678
0093c2fc
VZ
14679 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14680echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14681if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683else
14684 cat >conftest.$ac_ext <<_ACEOF
14685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h. */
14690
14691int
14692main ()
14693{
14694
0093c2fc 14695 #ifndef __DECCXX
a1aa0349
VZ
14696 choke me
14697 #endif
14698
14699 ;
14700 return 0;
14701}
14702_ACEOF
14703rm -f conftest.$ac_objext
14704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705 (eval $ac_compile) 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
ca5c6ac3 14712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
0093c2fc 14724 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14725else
14726 echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
0093c2fc 14729bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14730
14731fi
14732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14733
14734
14735fi
0093c2fc
VZ
14736echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14737echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14738 ac_ext=cc
14739ac_cpp='$CXXCPP $CPPFLAGS'
14740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14743
0093c2fc
VZ
14744 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14745 :; COMPAQCXX=yes
14746 else
14747 :;
14748 fi
14749
14750
14751 ;;
14752
14753 SunOS)
14754
14755
14756 ac_ext=cc
14757ac_cpp='$CXXCPP $CPPFLAGS'
14758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14761
14762 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14763echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14764if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767 cat >conftest.$ac_ext <<_ACEOF
14768/* confdefs.h. */
14769_ACEOF
14770cat confdefs.h >>conftest.$ac_ext
14771cat >>conftest.$ac_ext <<_ACEOF
14772/* end confdefs.h. */
14773
14774int
14775main ()
14776{
14777
14778 #ifndef __SUNPRO_CC
14779 choke me
14780 #endif
14781
14782 ;
14783 return 0;
14784}
14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
ca5c6ac3 14795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14808else
14809 echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
14812bakefile_cv_cxx_compiler___SUNPRO_CC=no
14813
14814fi
14815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14816
14817
14818fi
14819echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14820echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14821 ac_ext=cc
14822ac_cpp='$CXXCPP $CPPFLAGS'
14823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14826
14827 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14828 :; SUNCXX=yes
3006edc0
VZ
14829 else
14830 :;
ab0ad5f1 14831 fi
a9e5b1f0
MW
14832
14833
3006edc0
VZ
14834 ;;
14835 esac
14836 fi
14837
14838
14839
a848cd7e
SC
14840if test -n "$ac_tool_prefix"; then
14841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14842set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14843echo "$as_me:$LINENO: checking for $ac_word" >&5
14844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14845if test "${ac_cv_prog_RANLIB+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847else
14848 if test -n "$RANLIB"; then
14849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14850else
14851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852for as_dir in $PATH
14853do
14854 IFS=$as_save_IFS
14855 test -z "$as_dir" && as_dir=.
14856 for ac_exec_ext in '' $ac_executable_extensions; do
14857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14860 break 2
14861 fi
14862done
14863done
14864
14865fi
14866fi
14867RANLIB=$ac_cv_prog_RANLIB
14868if test -n "$RANLIB"; then
14869 echo "$as_me:$LINENO: result: $RANLIB" >&5
14870echo "${ECHO_T}$RANLIB" >&6
14871else
14872 echo "$as_me:$LINENO: result: no" >&5
14873echo "${ECHO_T}no" >&6
14874fi
14875
14876fi
14877if test -z "$ac_cv_prog_RANLIB"; then
14878 ac_ct_RANLIB=$RANLIB
14879 # Extract the first word of "ranlib", so it can be a program name with args.
14880set dummy ranlib; ac_word=$2
14881echo "$as_me:$LINENO: checking for $ac_word" >&5
14882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14883if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885else
14886 if test -n "$ac_ct_RANLIB"; then
14887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14888else
14889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890for as_dir in $PATH
14891do
14892 IFS=$as_save_IFS
14893 test -z "$as_dir" && as_dir=.
14894 for ac_exec_ext in '' $ac_executable_extensions; do
14895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14896 ac_cv_prog_ac_ct_RANLIB="ranlib"
14897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14898 break 2
14899 fi
14900done
14901done
14902
14903 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14904fi
14905fi
14906ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14907if test -n "$ac_ct_RANLIB"; then
14908 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14909echo "${ECHO_T}$ac_ct_RANLIB" >&6
14910else
14911 echo "$as_me:$LINENO: result: no" >&5
14912echo "${ECHO_T}no" >&6
14913fi
14914
14915 RANLIB=$ac_ct_RANLIB
14916else
14917 RANLIB="$ac_cv_prog_RANLIB"
14918fi
14919
14920
8c80d384
DE
14921if test -n "$ac_tool_prefix"; then
14922 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14923set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14924echo "$as_me:$LINENO: checking for $ac_word" >&5
14925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14926if test "${ac_cv_prog_AR+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14928else
14929 if test -n "$AR"; then
14930 ac_cv_prog_AR="$AR" # Let the user override the test.
14931else
14932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933for as_dir in $PATH
14934do
14935 IFS=$as_save_IFS
14936 test -z "$as_dir" && as_dir=.
14937 for ac_exec_ext in '' $ac_executable_extensions; do
14938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14939 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14941 break 2
14942 fi
14943done
14944done
14945
14946fi
14947fi
14948AR=$ac_cv_prog_AR
14949if test -n "$AR"; then
14950 echo "$as_me:$LINENO: result: $AR" >&5
14951echo "${ECHO_T}$AR" >&6
14952else
14953 echo "$as_me:$LINENO: result: no" >&5
14954echo "${ECHO_T}no" >&6
14955fi
14956
8c80d384
DE
14957fi
14958if test -z "$ac_cv_prog_AR"; then
14959 ac_ct_AR=$AR
14960 # Extract the first word of "ar", so it can be a program name with args.
14961set dummy ar; ac_word=$2
14962echo "$as_me:$LINENO: checking for $ac_word" >&5
14963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14964if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966else
14967 if test -n "$ac_ct_AR"; then
14968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14969else
14970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14971for as_dir in $PATH
14972do
14973 IFS=$as_save_IFS
14974 test -z "$as_dir" && as_dir=.
14975 for ac_exec_ext in '' $ac_executable_extensions; do
14976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14977 ac_cv_prog_ac_ct_AR="ar"
14978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14979 break 2
14980 fi
14981done
14982done
14983
14984fi
14985fi
14986ac_ct_AR=$ac_cv_prog_ac_ct_AR
14987if test -n "$ac_ct_AR"; then
14988 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14989echo "${ECHO_T}$ac_ct_AR" >&6
14990else
14991 echo "$as_me:$LINENO: result: no" >&5
14992echo "${ECHO_T}no" >&6
14993fi
14994
14995 AR=$ac_ct_AR
14996else
14997 AR="$ac_cv_prog_AR"
14998fi
14999
a848cd7e 15000if test "x$AR" = "x" ; then
77ffb593
JS
15001 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15002echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15003 { (exit 1); exit 1; }; }
15004fi
15005
15006# Find a good install program. We prefer a C program (faster),
15007# so one script is as good as another. But avoid the broken or
15008# incompatible versions:
15009# SysV /etc/install, /usr/sbin/install
15010# SunOS /usr/etc/install
15011# IRIX /sbin/install
15012# AIX /bin/install
15013# AmigaOS /C/install, which installs bootblocks on floppy discs
15014# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15015# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15016# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15017# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15018# ./install, which can be erroneously created by make from ./install.sh.
15019echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15020echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15021if test -z "$INSTALL"; then
15022if test "${ac_cv_path_install+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024else
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026for as_dir in $PATH
15027do
15028 IFS=$as_save_IFS
15029 test -z "$as_dir" && as_dir=.
15030 # Account for people who put trailing slashes in PATH elements.
15031case $as_dir/ in
15032 ./ | .// | /cC/* | \
15033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15034 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15035 /usr/ucb/* ) ;;
15036 *)
15037 # OSF1 and SCO ODT 3.0 have their own names for install.
15038 # Don't use installbsd from OSF since it installs stuff as root
15039 # by default.
15040 for ac_prog in ginstall scoinst install; do
15041 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15042 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15043 if test $ac_prog = install &&
15044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15045 # AIX install. It has an incompatible calling convention.
15046 :
15047 elif test $ac_prog = install &&
15048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15049 # program-specific install script used by HP pwplus--don't use.
15050 :
15051 else
15052 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15053 break 3
15054 fi
15055 fi
a848cd7e
SC
15056 done
15057 done
15058 ;;
15059esac
15060done
15061
15062
15063fi
15064 if test "${ac_cv_path_install+set}" = set; then
15065 INSTALL=$ac_cv_path_install
15066 else
15067 # As a last resort, use the slow shell script. We don't cache a
15068 # path for INSTALL within a source directory, because that will
15069 # break other packages using the cache if that directory is
15070 # removed, or if the path is relative.
15071 INSTALL=$ac_install_sh
15072 fi
15073fi
15074echo "$as_me:$LINENO: result: $INSTALL" >&5
15075echo "${ECHO_T}$INSTALL" >&6
15076
15077# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15078# It thinks the first close brace ends the variable substitution.
15079test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15080
15081test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15082
15083test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15084
15085
15086case ${INSTALL} in
15087 /* ) # Absolute
15088 ;;
15089 ?:* ) # Drive letter, considered as absolute.
15090 ;;
15091 *)
15092 INSTALL=`pwd`/${INSTALL} ;;
15093esac
15094
a848cd7e
SC
15095
15096case "${host}" in
15097
cfda0ea8 15098 *-*-darwin* )
a848cd7e
SC
15099 INSTALL_PROGRAM="cp -fp"
15100 INSTALL_DATA="cp -fp"
15101 ;;
15102 *)
15103 ;;
15104esac
15105
8c80d384
DE
15106if test -n "$ac_tool_prefix"; then
15107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15108set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15109echo "$as_me:$LINENO: checking for $ac_word" >&5
15110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15111if test "${ac_cv_prog_STRIP+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
15114 if test -n "$STRIP"; then
15115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15116else
15117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118for as_dir in $PATH
15119do
15120 IFS=$as_save_IFS
15121 test -z "$as_dir" && as_dir=.
15122 for ac_exec_ext in '' $ac_executable_extensions; do
15123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15124 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15126 break 2
15127 fi
15128done
15129done
15130
a848cd7e
SC
15131fi
15132fi
15133STRIP=$ac_cv_prog_STRIP
15134if test -n "$STRIP"; then
15135 echo "$as_me:$LINENO: result: $STRIP" >&5
15136echo "${ECHO_T}$STRIP" >&6
15137else
15138 echo "$as_me:$LINENO: result: no" >&5
15139echo "${ECHO_T}no" >&6
15140fi
15141
8c80d384
DE
15142fi
15143if test -z "$ac_cv_prog_STRIP"; then
15144 ac_ct_STRIP=$STRIP
15145 # Extract the first word of "strip", so it can be a program name with args.
15146set dummy strip; ac_word=$2
15147echo "$as_me:$LINENO: checking for $ac_word" >&5
15148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15149if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151else
15152 if test -n "$ac_ct_STRIP"; then
15153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15154else
15155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15156for as_dir in $PATH
15157do
15158 IFS=$as_save_IFS
15159 test -z "$as_dir" && as_dir=.
15160 for ac_exec_ext in '' $ac_executable_extensions; do
15161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15162 ac_cv_prog_ac_ct_STRIP="strip"
15163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15164 break 2
15165 fi
15166done
15167done
15168
15169 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15170fi
15171fi
15172ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15173if test -n "$ac_ct_STRIP"; then
15174 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15175echo "${ECHO_T}$ac_ct_STRIP" >&6
15176else
15177 echo "$as_me:$LINENO: result: no" >&5
15178echo "${ECHO_T}no" >&6
15179fi
15180
15181 STRIP=$ac_ct_STRIP
15182else
15183 STRIP="$ac_cv_prog_STRIP"
15184fi
15185
15186
15187if test "$wxUSE_WINE" = "yes"; then
15188 if test -n "$ac_tool_prefix"; then
15189 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15190set dummy ${ac_tool_prefix}wrc; ac_word=$2
15191echo "$as_me:$LINENO: checking for $ac_word" >&5
15192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15193if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
8ced02f6
DE
15196 if test -n "$WINDRES"; then
15197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15198else
15199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200for as_dir in $PATH
15201do
15202 IFS=$as_save_IFS
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15206 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15208 break 2
15209 fi
15210done
15211done
15212
15213fi
15214fi
8ced02f6
DE
15215WINDRES=$ac_cv_prog_WINDRES
15216if test -n "$WINDRES"; then
15217 echo "$as_me:$LINENO: result: $WINDRES" >&5
15218echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15219else
15220 echo "$as_me:$LINENO: result: no" >&5
15221echo "${ECHO_T}no" >&6
15222fi
15223
15224fi
8ced02f6
DE
15225if test -z "$ac_cv_prog_WINDRES"; then
15226 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15227 # Extract the first word of "wrc", so it can be a program name with args.
15228set dummy wrc; ac_word=$2
15229echo "$as_me:$LINENO: checking for $ac_word" >&5
15230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15231if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
8ced02f6
DE
15234 if test -n "$ac_ct_WINDRES"; then
15235 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15236else
15237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238for as_dir in $PATH
15239do
15240 IFS=$as_save_IFS
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15244 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15246 break 2
15247 fi
15248done
15249done
15250
15251fi
15252fi
8ced02f6
DE
15253ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15254if test -n "$ac_ct_WINDRES"; then
15255 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15256echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15257else
15258 echo "$as_me:$LINENO: result: no" >&5
15259echo "${ECHO_T}no" >&6
15260fi
15261
8ced02f6 15262 WINDRES=$ac_ct_WINDRES
8c80d384 15263else
8ced02f6 15264 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15265fi
15266
004ee6da 15267 RESCOMP="$WINDRES"
8c80d384
DE
15268else
15269 case "${host}" in
15270 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15271 if test -n "$ac_tool_prefix"; then
15272 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15273set dummy ${ac_tool_prefix}windres; ac_word=$2
15274echo "$as_me:$LINENO: checking for $ac_word" >&5
15275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15276if test "${ac_cv_prog_WINDRES+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 if test -n "$WINDRES"; then
15280 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15281else
15282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15283for as_dir in $PATH
15284do
15285 IFS=$as_save_IFS
15286 test -z "$as_dir" && as_dir=.
15287 for ac_exec_ext in '' $ac_executable_extensions; do
15288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15289 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15291 break 2
15292 fi
15293done
15294done
15295
15296fi
15297fi
15298WINDRES=$ac_cv_prog_WINDRES
15299if test -n "$WINDRES"; then
15300 echo "$as_me:$LINENO: result: $WINDRES" >&5
15301echo "${ECHO_T}$WINDRES" >&6
15302else
15303 echo "$as_me:$LINENO: result: no" >&5
15304echo "${ECHO_T}no" >&6
15305fi
15306
15307fi
15308if test -z "$ac_cv_prog_WINDRES"; then
15309 ac_ct_WINDRES=$WINDRES
15310 # Extract the first word of "windres", so it can be a program name with args.
15311set dummy windres; ac_word=$2
15312echo "$as_me:$LINENO: checking for $ac_word" >&5
15313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15314if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317 if test -n "$ac_ct_WINDRES"; then
15318 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15319else
15320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15321for as_dir in $PATH
15322do
15323 IFS=$as_save_IFS
15324 test -z "$as_dir" && as_dir=.
15325 for ac_exec_ext in '' $ac_executable_extensions; do
15326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15327 ac_cv_prog_ac_ct_WINDRES="windres"
15328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15329 break 2
15330 fi
15331done
15332done
15333
15334fi
15335fi
15336ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15337if test -n "$ac_ct_WINDRES"; then
15338 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15339echo "${ECHO_T}$ac_ct_WINDRES" >&6
15340else
15341 echo "$as_me:$LINENO: result: no" >&5
15342echo "${ECHO_T}no" >&6
15343fi
15344
15345 WINDRES=$ac_ct_WINDRES
15346else
15347 WINDRES="$ac_cv_prog_WINDRES"
15348fi
15349
15350 RESCOMP="$WINDRES"
15351 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15352 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15353set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15354echo "$as_me:$LINENO: checking for $ac_word" >&5
15355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15356if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358else
15359 if test -n "$DLLTOOL"; then
15360 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15361else
15362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363for as_dir in $PATH
15364do
15365 IFS=$as_save_IFS
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 break 2
15372 fi
15373done
15374done
15375
15376fi
15377fi
15378DLLTOOL=$ac_cv_prog_DLLTOOL
15379if test -n "$DLLTOOL"; then
15380 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15381echo "${ECHO_T}$DLLTOOL" >&6
15382else
15383 echo "$as_me:$LINENO: result: no" >&5
15384echo "${ECHO_T}no" >&6
15385fi
15386
15387fi
15388if test -z "$ac_cv_prog_DLLTOOL"; then
15389 ac_ct_DLLTOOL=$DLLTOOL
15390 # Extract the first word of "dlltool", so it can be a program name with args.
15391set dummy dlltool; ac_word=$2
15392echo "$as_me:$LINENO: checking for $ac_word" >&5
15393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15394if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15396else
15397 if test -n "$ac_ct_DLLTOOL"; then
15398 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15399else
15400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401for as_dir in $PATH
15402do
15403 IFS=$as_save_IFS
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
15406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15409 break 2
15410 fi
15411done
15412done
15413
15414fi
15415fi
15416ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15417if test -n "$ac_ct_DLLTOOL"; then
15418 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15419echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15420else
15421 echo "$as_me:$LINENO: result: no" >&5
15422echo "${ECHO_T}no" >&6
15423fi
15424
15425 DLLTOOL=$ac_ct_DLLTOOL
15426else
15427 DLLTOOL="$ac_cv_prog_DLLTOOL"
15428fi
15429
15430 ;;
15431 esac
15432fi
a848cd7e
SC
15433
15434echo "$as_me:$LINENO: checking if make is GNU make" >&5
15435echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15436if test "${wx_cv_prog_makeisgnu+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15438else
15439
15440 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15441 egrep -s GNU > /dev/null); then
15442 wx_cv_prog_makeisgnu="yes"
15443 else
15444 wx_cv_prog_makeisgnu="no"
15445 fi
15446
15447fi
15448echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15449echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15450
15451if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15452 IF_GNU_MAKE=""
15453else
15454 IF_GNU_MAKE="#"
15455fi
15456
15457
15458
15459if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15460echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15461echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15462if test "${wx_cv_prog_makevpath+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464else
15465
15466cat - << EOF > confMake
15467check : file
15468 cp \$? \$@
15469 cp \$? final_file
15470EOF
15471
15472if test ! -d sub ; then
15473 mkdir sub
15474fi
15475echo dummy > sub/file
15476${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15477RESULT=$?
15478rm -f sub/file check final_file confMake
15479rmdir sub
15480if test "$RESULT" = 0; then
15481 wx_cv_prog_makevpath="yes"
15482else
15483 wx_cv_prog_makevpath="no"
15484fi
15485
15486fi
15487echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15488echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15489
15490if test "x$wx_cv_prog_makevpath" != "xyes"; then
15491{ { echo "$as_me:$LINENO: error:
15492You need a make-utility that is able to use the variable
15493VPATH correctly.
15494If your version of make does not support VPATH correctly,
15495please install GNU-make (possibly as gmake), and start
15496configure with the following command:
15497export MAKE=gmake; ./configure for sh-type shells
15498setenv MAKE gmake; ./configure for csh-type shells
15499Also please do remember to use gmake in this case every time
15500you are trying to compile.
15501" >&5
15502echo "$as_me: error:
15503You need a make-utility that is able to use the variable
15504VPATH correctly.
15505If your version of make does not support VPATH correctly,
15506please install GNU-make (possibly as gmake), and start
15507configure with the following command:
15508export MAKE=gmake; ./configure for sh-type shells
15509setenv MAKE gmake; ./configure for csh-type shells
15510Also please do remember to use gmake in this case every time
15511you are trying to compile.
15512" >&2;}
15513 { (exit 1); exit 1; }; }
15514fi fi
15515echo "$as_me:$LINENO: checking whether ln -s works" >&5
15516echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15517LN_S=$as_ln_s
15518if test "$LN_S" = "ln -s"; then
15519 echo "$as_me:$LINENO: result: yes" >&5
15520echo "${ECHO_T}yes" >&6
15521else
15522 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15523echo "${ECHO_T}no, using $LN_S" >&6
15524fi
15525
15526
bcaab0f9 15527
a848cd7e 15528
2113bc77 15529if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15530 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15531fi
15532
4d7ec9f1
DE
15533case "${host}" in
15534 powerpc-*-darwin* )
15535 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15536echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15537 cat >conftest.$ac_ext <<_ACEOF
15538/* confdefs.h. */
15539_ACEOF
15540cat confdefs.h >>conftest.$ac_ext
15541cat >>conftest.$ac_ext <<_ACEOF
15542/* end confdefs.h. */
15543
15544int
15545main ()
15546{
15547#ifndef __POWERPC__
15548 choke me for lack of PowerPC
15549#endif
15550
15551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest.$ac_objext
15556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
ca5c6ac3 15564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest.$ac_objext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 echo "$as_me:$LINENO: result: yes" >&5
15577echo "${ECHO_T}yes" >&6
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582echo "$as_me:$LINENO: result: no" >&5
15583echo "${ECHO_T}no" >&6
15584 cat >>confdefs.h <<\_ACEOF
15585#define __POWERPC__ 1
15586_ACEOF
15587
15588
15589fi
15590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15591 ;;
15592esac
15593
15594case "${host}" in
15595 *-*-darwin* )
4d7ec9f1
DE
15596 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15597echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604#include <CoreFoundation/CFBase.h>
15605
15606int
15607main ()
15608{
15609
15610 ;
15611 return 0;
15612}
15613_ACEOF
15614rm -f conftest.$ac_objext
15615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616 (eval $ac_compile) 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
ca5c6ac3 15623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try='test -s conftest.$ac_objext'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 echo "$as_me:$LINENO: result: yes" >&5
15636echo "${ECHO_T}yes" >&6
15637else
15638 echo "$as_me: failed program was:" >&5
15639sed 's/^/| /' conftest.$ac_ext >&5
15640
15641echo "$as_me:$LINENO: result: no" >&5
15642echo "${ECHO_T}no" >&6
15643 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15644echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15645 cat >conftest.$ac_ext <<_ACEOF
15646/* confdefs.h. */
15647_ACEOF
15648cat confdefs.h >>conftest.$ac_ext
15649cat >>conftest.$ac_ext <<_ACEOF
15650/* end confdefs.h. */
15651#define __CF_USE_FRAMEWORK_INCLUDES__
15652#include <CoreFoundation/CFBase.h>
15653
15654int
15655main ()
15656{
15657
15658 ;
15659 return 0;
15660}
15661_ACEOF
15662rm -f conftest.$ac_objext
15663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15664 (eval $ac_compile) 2>conftest.er1
15665 ac_status=$?
15666 grep -v '^ *+' conftest.er1 >conftest.err
15667 rm -f conftest.er1
15668 cat conftest.err >&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
ca5c6ac3 15671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } &&
15677 { ac_try='test -s conftest.$ac_objext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 echo "$as_me:$LINENO: result: yes" >&5
15684echo "${ECHO_T}yes" >&6
c92ad099 15685 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15686else
15687 echo "$as_me: failed program was:" >&5
15688sed 's/^/| /' conftest.$ac_ext >&5
15689
15690{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15691See \`config.log' for more details." >&5
15692echo "$as_me: error: no. CoreFoundation not available.
15693See \`config.log' for more details." >&2;}
15694 { (exit 1); exit 1; }; }
15695
15696fi
15697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15698
15699
15700fi
15701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15702 ;;
15703esac
15704
a848cd7e
SC
15705case "${host}" in
15706 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15707 ac_ext=c
15708ac_cpp='$CPP $CPPFLAGS'
15709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15711ac_compiler_gnu=$ac_cv_c_compiler_gnu
15712
15713 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15714 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15715echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15716if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718else
15719 ac_check_lib_save_LIBS=$LIBS
15720LIBS="-lcExt $LIBS"
15721cat >conftest.$ac_ext <<_ACEOF
15722/* confdefs.h. */
15723_ACEOF
15724cat confdefs.h >>conftest.$ac_ext
15725cat >>conftest.$ac_ext <<_ACEOF
15726/* end confdefs.h. */
15727
15728/* Override any gcc2 internal prototype to avoid an error. */
15729#ifdef __cplusplus
15730extern "C"
15731#endif
15732/* We use char because int might match the return type of a gcc2
15733 builtin and then its argument prototype would still apply. */
15734char drand48 ();
15735int
15736main ()
15737{
15738drand48 ();
15739 ;
15740 return 0;
15741}
15742_ACEOF
15743rm -f conftest.$ac_objext conftest$ac_exeext
15744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15745 (eval $ac_link) 2>conftest.er1
a848cd7e 15746 ac_status=$?
ac1cb8d3
VS
15747 grep -v '^ *+' conftest.er1 >conftest.err
15748 rm -f conftest.er1
15749 cat conftest.err >&5
a848cd7e
SC
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } &&
ca5c6ac3 15752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_cv_lib_cExt_drand48=yes
15765else
15766 echo "$as_me: failed program was:" >&5
15767sed 's/^/| /' conftest.$ac_ext >&5
15768
15769ac_cv_lib_cExt_drand48=no
15770fi
ac1cb8d3
VS
15771rm -f conftest.err conftest.$ac_objext \
15772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15773LIBS=$ac_check_lib_save_LIBS
15774fi
15775echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15776echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15777if test $ac_cv_lib_cExt_drand48 = yes; then
15778 LIBS="$LIBS -lcExt"
15779fi
15780
15781 else
15782 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15783 fi
69120ee4
VZ
15784 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15785echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15786if test "${wx_cv_gccversion+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15788else
15789
391a765e
VS
15790 if test "$cross_compiling" = yes; then
15791 wx_cv_gccversion="EMX2"
15792
15793else
15794 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800
391a765e 15801 #include <stdio.h>
a848cd7e 15802
391a765e
VS
15803 int main()
15804 {
15805 FILE *f=fopen("conftestval", "w");
15806 if (!f) exit(1);
15807 fprintf(f,
a848cd7e 15808 #if (__GNUC__ < 3)
391a765e
VS
15809 "EMX2"
15810 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15811 "EMX3"
15812 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15813 "Innotek5"
15814 #else
15815 "Innotek6"
a848cd7e 15816 #endif
5039a2df 15817 );
391a765e
VS
15818 exit(0);
15819 }
a848cd7e 15820
a848cd7e 15821_ACEOF
391a765e
VS
15822rm -f conftest$ac_exeext
15823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824 (eval $ac_link) 2>&5
ac1cb8d3
VS
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
391a765e 15833 wx_cv_gccversion=`cat conftestval`
a848cd7e 15834else
391a765e
VS
15835 echo "$as_me: program exited with status $ac_status" >&5
15836echo "$as_me: failed program was:" >&5
a848cd7e
SC
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
391a765e
VS
15839( exit $ac_status )
15840wx_cv_gccversion="EMX2"
a848cd7e 15841fi
391a765e 15842rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15843fi
a848cd7e
SC
15844
15845fi
15846echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15847echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15848 ac_ext=cc
15849ac_cpp='$CXXCPP $CPPFLAGS'
15850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15853
391a765e 15854 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15855 LIBS="$LIBS -lstdcpp"
15856 LDFLAGS="$LDFLAGS -Zsysv-signals"
15857 else
391a765e 15858 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15859 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15860 LDFLAGS="$LDFLAGS -Zsysv-signals"
15861 else
15862 LIBS="$LIBS -lstdc++"
15863 fi
15864 fi
94acd38e
DE
15865 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15866 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15867echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15868 wxUSE_OMF=yes
2da0c077 15869 enable_omf=yes
a848cd7e
SC
15870 fi
15871 ;;
15872 *)
15873
95986553 15874 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15875echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15876if test "${ac_cv_string_strcasecmp+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878else
15879
15880 cat >conftest.$ac_ext <<_ACEOF
15881/* confdefs.h. */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h. */
15886
15887 #include <string.h>
15888
15889int
15890main ()
15891{
15892
15893 strcasecmp("foo", "bar");
15894
15895 ;
15896 return 0;
15897}
15898_ACEOF
15899rm -f conftest.$ac_objext conftest$ac_exeext
15900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15901 (eval $ac_link) 2>conftest.er1
a848cd7e 15902 ac_status=$?
ac1cb8d3
VS
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
a848cd7e
SC
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
ca5c6ac3 15908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_cv_string_strcasecmp=yes
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925ac_cv_string_strcasecmp=no
15926
15927fi
ac1cb8d3
VS
15928rm -f conftest.err conftest.$ac_objext \
15929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15930
15931fi
15932echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15933echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15934
15935 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15936 cat >>confdefs.h <<\_ACEOF
15937#define HAVE_STRCASECMP_IN_STRING_H 1
15938_ACEOF
15939
15940 else
15941 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15942echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15943if test "${ac_cv_strings_strcasecmp+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945else
15946
15947 cat >conftest.$ac_ext <<_ACEOF
15948/* confdefs.h. */
15949_ACEOF
15950cat confdefs.h >>conftest.$ac_ext
15951cat >>conftest.$ac_ext <<_ACEOF
15952/* end confdefs.h. */
15953
15954 #include <strings.h>
15955
15956int
15957main ()
15958{
15959
15960 strcasecmp("foo", "bar");
15961
15962 ;
15963 return 0;
15964}
15965_ACEOF
15966rm -f conftest.$ac_objext conftest$ac_exeext
15967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15968 (eval $ac_link) 2>conftest.er1
a848cd7e 15969 ac_status=$?
ac1cb8d3
VS
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
a848cd7e
SC
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
ca5c6ac3 15975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 ac_cv_strings_strcasecmp=yes
15988else
15989 echo "$as_me: failed program was:" >&5
15990sed 's/^/| /' conftest.$ac_ext >&5
15991
15992ac_cv_strings_strcasecmp=no
15993
15994fi
ac1cb8d3
VS
15995rm -f conftest.err conftest.$ac_objext \
15996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15997
15998fi
15999echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16000echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16001
0c3c69fc 16002 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16003 cat >>confdefs.h <<\_ACEOF
16004#define HAVE_STRCASECMP_IN_STRINGS_H 1
16005_ACEOF
16006
16007 else
16008 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16009echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16010 { (exit 1); exit 1; }; }
16011 fi
16012 fi
16013
a848cd7e
SC
16014 ;;
16015esac
16016
16017
5d7b7554
VZ
16018ac_ext=cc
16019ac_cpp='$CXXCPP $CPPFLAGS'
16020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16023echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16024echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16025if test -z "$CXXCPP"; then
16026 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028else
16029 # Double quotes because CXXCPP needs to be expanded
16030 for CXXCPP in "$CXX -E" "/lib/cpp"
16031 do
16032 ac_preproc_ok=false
16033for ac_cxx_preproc_warn_flag in '' yes
16034do
16035 # Use a header file that comes with gcc, so configuring glibc
16036 # with a fresh cross-compiler works.
16037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16038 # <limits.h> exists even on freestanding compilers.
16039 # On the NeXT, cc -E runs the code through the compiler's parser,
16040 # not just through cpp. "Syntax error" is here to catch this case.
16041 cat >conftest.$ac_ext <<_ACEOF
16042/* confdefs.h. */
16043_ACEOF
16044cat confdefs.h >>conftest.$ac_ext
16045cat >>conftest.$ac_ext <<_ACEOF
16046/* end confdefs.h. */
16047#ifdef __STDC__
16048# include <limits.h>
16049#else
16050# include <assert.h>
16051#endif
16052 Syntax error
16053_ACEOF
16054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16056 ac_status=$?
16057 grep -v '^ *+' conftest.er1 >conftest.err
16058 rm -f conftest.er1
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } >/dev/null; then
16062 if test -s conftest.err; then
16063 ac_cpp_err=$ac_cxx_preproc_warn_flag
16064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16065 else
16066 ac_cpp_err=
16067 fi
16068else
16069 ac_cpp_err=yes
16070fi
16071if test -z "$ac_cpp_err"; then
16072 :
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 # Broken: fails on valid input.
16078continue
16079fi
16080rm -f conftest.err conftest.$ac_ext
16081
16082 # OK, works on sane cases. Now check whether non-existent headers
16083 # can be detected and how.
16084 cat >conftest.$ac_ext <<_ACEOF
16085/* confdefs.h. */
16086_ACEOF
16087cat confdefs.h >>conftest.$ac_ext
16088cat >>conftest.$ac_ext <<_ACEOF
16089/* end confdefs.h. */
16090#include <ac_nonexistent.h>
16091_ACEOF
16092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16094 ac_status=$?
16095 grep -v '^ *+' conftest.er1 >conftest.err
16096 rm -f conftest.er1
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } >/dev/null; then
16100 if test -s conftest.err; then
16101 ac_cpp_err=$ac_cxx_preproc_warn_flag
16102 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16103 else
16104 ac_cpp_err=
16105 fi
16106else
16107 ac_cpp_err=yes
16108fi
16109if test -z "$ac_cpp_err"; then
16110 # Broken: success on invalid input.
16111continue
16112else
16113 echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 # Passes both tests.
16117ac_preproc_ok=:
16118break
16119fi
16120rm -f conftest.err conftest.$ac_ext
16121
16122done
16123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16124rm -f conftest.err conftest.$ac_ext
16125if $ac_preproc_ok; then
16126 break
16127fi
16128
16129 done
16130 ac_cv_prog_CXXCPP=$CXXCPP
16131
16132fi
16133 CXXCPP=$ac_cv_prog_CXXCPP
16134else
16135 ac_cv_prog_CXXCPP=$CXXCPP
16136fi
16137echo "$as_me:$LINENO: result: $CXXCPP" >&5
16138echo "${ECHO_T}$CXXCPP" >&6
16139ac_preproc_ok=false
16140for ac_cxx_preproc_warn_flag in '' yes
16141do
16142 # Use a header file that comes with gcc, so configuring glibc
16143 # with a fresh cross-compiler works.
16144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16145 # <limits.h> exists even on freestanding compilers.
16146 # On the NeXT, cc -E runs the code through the compiler's parser,
16147 # not just through cpp. "Syntax error" is here to catch this case.
16148 cat >conftest.$ac_ext <<_ACEOF
16149/* confdefs.h. */
16150_ACEOF
16151cat confdefs.h >>conftest.$ac_ext
16152cat >>conftest.$ac_ext <<_ACEOF
16153/* end confdefs.h. */
16154#ifdef __STDC__
16155# include <limits.h>
16156#else
16157# include <assert.h>
16158#endif
16159 Syntax error
16160_ACEOF
16161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16163 ac_status=$?
16164 grep -v '^ *+' conftest.er1 >conftest.err
16165 rm -f conftest.er1
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } >/dev/null; then
16169 if test -s conftest.err; then
16170 ac_cpp_err=$ac_cxx_preproc_warn_flag
16171 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16172 else
16173 ac_cpp_err=
16174 fi
16175else
16176 ac_cpp_err=yes
16177fi
16178if test -z "$ac_cpp_err"; then
16179 :
16180else
16181 echo "$as_me: failed program was:" >&5
16182sed 's/^/| /' conftest.$ac_ext >&5
16183
16184 # Broken: fails on valid input.
16185continue
16186fi
16187rm -f conftest.err conftest.$ac_ext
16188
16189 # OK, works on sane cases. Now check whether non-existent headers
16190 # can be detected and how.
16191 cat >conftest.$ac_ext <<_ACEOF
16192/* confdefs.h. */
16193_ACEOF
16194cat confdefs.h >>conftest.$ac_ext
16195cat >>conftest.$ac_ext <<_ACEOF
16196/* end confdefs.h. */
16197#include <ac_nonexistent.h>
16198_ACEOF
16199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } >/dev/null; then
16207 if test -s conftest.err; then
16208 ac_cpp_err=$ac_cxx_preproc_warn_flag
16209 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16210 else
16211 ac_cpp_err=
16212 fi
16213else
16214 ac_cpp_err=yes
16215fi
16216if test -z "$ac_cpp_err"; then
16217 # Broken: success on invalid input.
16218continue
16219else
16220 echo "$as_me: failed program was:" >&5
16221sed 's/^/| /' conftest.$ac_ext >&5
16222
16223 # Passes both tests.
16224ac_preproc_ok=:
16225break
16226fi
16227rm -f conftest.err conftest.$ac_ext
16228
16229done
16230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16231rm -f conftest.err conftest.$ac_ext
16232if $ac_preproc_ok; then
16233 :
16234else
16235 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16236See \`config.log' for more details." >&5
16237echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16238See \`config.log' for more details." >&2;}
16239 { (exit 1); exit 1; }; }
16240fi
16241
16242ac_ext=cc
16243ac_cpp='$CXXCPP $CPPFLAGS'
16244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16247
16248
a848cd7e
SC
16249echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16250echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16251if test "${ac_cv_header_stdc+set}" = set; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16253else
16254 cat >conftest.$ac_ext <<_ACEOF
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
16260#include <stdlib.h>
16261#include <stdarg.h>
16262#include <string.h>
16263#include <float.h>
16264
16265int
16266main ()
16267{
16268
16269 ;
16270 return 0;
16271}
16272_ACEOF
16273rm -f conftest.$ac_objext
16274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16275 (eval $ac_compile) 2>conftest.er1
a848cd7e 16276 ac_status=$?
ac1cb8d3
VS
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
a848cd7e
SC
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
ca5c6ac3 16282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ac_cv_header_stdc=yes
16295else
16296 echo "$as_me: failed program was:" >&5
16297sed 's/^/| /' conftest.$ac_ext >&5
16298
16299ac_cv_header_stdc=no
16300fi
ac1cb8d3 16301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16302
16303if test $ac_cv_header_stdc = yes; then
16304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16305 cat >conftest.$ac_ext <<_ACEOF
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311#include <string.h>
16312
16313_ACEOF
16314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 $EGREP "memchr" >/dev/null 2>&1; then
16316 :
16317else
16318 ac_cv_header_stdc=no
16319fi
16320rm -f conftest*
16321
16322fi
16323
16324if test $ac_cv_header_stdc = yes; then
16325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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#include <stdlib.h>
16333
16334_ACEOF
16335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16336 $EGREP "free" >/dev/null 2>&1; then
16337 :
16338else
16339 ac_cv_header_stdc=no
16340fi
16341rm -f conftest*
16342
16343fi
16344
16345if test $ac_cv_header_stdc = yes; then
16346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16347 if test "$cross_compiling" = yes; then
16348 :
16349else
16350 cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356#include <ctype.h>
16357#if ((' ' & 0x0FF) == 0x020)
16358# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16359# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16360#else
16361# define ISLOWER(c) \
ac1cb8d3
VS
16362 (('a' <= (c) && (c) <= 'i') \
16363 || ('j' <= (c) && (c) <= 'r') \
16364 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16365# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16366#endif
16367
16368#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16369int
16370main ()
16371{
16372 int i;
16373 for (i = 0; i < 256; i++)
16374 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16375 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16376 exit(2);
16377 exit (0);
16378}
16379_ACEOF
16380rm -f conftest$ac_exeext
16381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 :
16392else
16393 echo "$as_me: program exited with status $ac_status" >&5
16394echo "$as_me: failed program was:" >&5
16395sed 's/^/| /' conftest.$ac_ext >&5
16396
16397( exit $ac_status )
16398ac_cv_header_stdc=no
16399fi
ac1cb8d3 16400rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16401fi
16402fi
16403fi
16404echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16405echo "${ECHO_T}$ac_cv_header_stdc" >&6
16406if test $ac_cv_header_stdc = yes; then
16407
16408cat >>confdefs.h <<\_ACEOF
16409#define STDC_HEADERS 1
16410_ACEOF
16411
16412fi
16413
16414# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16425 inttypes.h stdint.h unistd.h
a848cd7e
SC
16426do
16427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16428echo "$as_me:$LINENO: checking for $ac_header" >&5
16429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16430if eval "test \"\${$as_ac_Header+set}\" = set"; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16432else
16433 cat >conftest.$ac_ext <<_ACEOF
16434/* confdefs.h. */
16435_ACEOF
16436cat confdefs.h >>conftest.$ac_ext
16437cat >>conftest.$ac_ext <<_ACEOF
16438/* end confdefs.h. */
16439$ac_includes_default
16440
16441#include <$ac_header>
16442_ACEOF
16443rm -f conftest.$ac_objext
16444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16445 (eval $ac_compile) 2>conftest.er1
a848cd7e 16446 ac_status=$?
ac1cb8d3
VS
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
a848cd7e
SC
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
ca5c6ac3 16452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 eval "$as_ac_Header=yes"
16465else
16466 echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
16469eval "$as_ac_Header=no"
16470fi
ac1cb8d3 16471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16472fi
16473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16475if test `eval echo '${'$as_ac_Header'}'` = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16478_ACEOF
16479
16480fi
16481
16482done
16483
16484
16485
16486for ac_header in stdlib.h
16487do
16488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16489if eval "test \"\${$as_ac_Header+set}\" = set"; then
16490 echo "$as_me:$LINENO: checking for $ac_header" >&5
16491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16492if eval "test \"\${$as_ac_Header+set}\" = set"; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494fi
16495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16497else
16498 # Is the header compilable?
16499echo "$as_me:$LINENO: checking $ac_header usability" >&5
16500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16501cat >conftest.$ac_ext <<_ACEOF
16502/* confdefs.h. */
16503_ACEOF
16504cat confdefs.h >>conftest.$ac_ext
16505cat >>conftest.$ac_ext <<_ACEOF
16506/* end confdefs.h. */
16507$ac_includes_default
16508#include <$ac_header>
16509_ACEOF
16510rm -f conftest.$ac_objext
16511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16512 (eval $ac_compile) 2>conftest.er1
a848cd7e 16513 ac_status=$?
ac1cb8d3
VS
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
a848cd7e
SC
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
ca5c6ac3 16519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 ac_header_compiler=yes
16532else
16533 echo "$as_me: failed program was:" >&5
16534sed 's/^/| /' conftest.$ac_ext >&5
16535
16536ac_header_compiler=no
16537fi
ac1cb8d3 16538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16540echo "${ECHO_T}$ac_header_compiler" >&6
16541
16542# Is the header present?
16543echo "$as_me:$LINENO: checking $ac_header presence" >&5
16544echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
16552_ACEOF
16553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } >/dev/null; then
16561 if test -s conftest.err; then
5d7b7554
VZ
16562 ac_cpp_err=$ac_cxx_preproc_warn_flag
16563 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16564 else
16565 ac_cpp_err=
16566 fi
16567else
16568 ac_cpp_err=yes
16569fi
16570if test -z "$ac_cpp_err"; then
16571 ac_header_preproc=yes
16572else
16573 echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 ac_header_preproc=no
16577fi
16578rm -f conftest.err conftest.$ac_ext
16579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580echo "${ECHO_T}$ac_header_preproc" >&6
16581
16582# So? What about this header?
5d7b7554 16583case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16584 yes:no: )
a848cd7e
SC
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16589 ac_header_preproc=yes
a848cd7e 16590 ;;
ac1cb8d3 16591 no:yes:* )
a848cd7e
SC
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16604 (
16605 cat <<\_ASBOX
ac1cb8d3
VS
16606## ----------------------------------------- ##
16607## Report this to wx-dev@lists.wxwidgets.org ##
16608## ----------------------------------------- ##
a848cd7e
SC
16609_ASBOX
16610 ) |
16611 sed "s/^/$as_me: WARNING: /" >&2
16612 ;;
16613esac
16614echo "$as_me:$LINENO: checking for $ac_header" >&5
16615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16616if eval "test \"\${$as_ac_Header+set}\" = set"; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618else
ac1cb8d3 16619 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16620fi
16621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16623
16624fi
16625if test `eval echo '${'$as_ac_Header'}'` = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16628_ACEOF
16629
16630fi
16631
16632done
16633
16634
16635for ac_header in malloc.h
16636do
16637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16638if eval "test \"\${$as_ac_Header+set}\" = set"; then
16639 echo "$as_me:$LINENO: checking for $ac_header" >&5
16640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16641if eval "test \"\${$as_ac_Header+set}\" = set"; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643fi
16644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16646else
16647 # Is the header compilable?
16648echo "$as_me:$LINENO: checking $ac_header usability" >&5
16649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16650cat >conftest.$ac_ext <<_ACEOF
16651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
16655/* end confdefs.h. */
16656$ac_includes_default
16657#include <$ac_header>
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16661 (eval $ac_compile) 2>conftest.er1
a848cd7e 16662 ac_status=$?
ac1cb8d3
VS
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
a848cd7e
SC
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
ca5c6ac3 16668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_header_compiler=yes
16681else
16682 echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
16685ac_header_compiler=no
16686fi
ac1cb8d3 16687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16688echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16689echo "${ECHO_T}$ac_header_compiler" >&6
16690
16691# Is the header present?
16692echo "$as_me:$LINENO: checking $ac_header presence" >&5
16693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16694cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700#include <$ac_header>
16701_ACEOF
16702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } >/dev/null; then
16710 if test -s conftest.err; then
5d7b7554
VZ
16711 ac_cpp_err=$ac_cxx_preproc_warn_flag
16712 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16713 else
16714 ac_cpp_err=
16715 fi
16716else
16717 ac_cpp_err=yes
16718fi
16719if test -z "$ac_cpp_err"; then
16720 ac_header_preproc=yes
16721else
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 ac_header_preproc=no
16726fi
16727rm -f conftest.err conftest.$ac_ext
16728echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16729echo "${ECHO_T}$ac_header_preproc" >&6
16730
16731# So? What about this header?
5d7b7554 16732case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16733 yes:no: )
a848cd7e
SC
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16735echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16737echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16738 ac_header_preproc=yes
a848cd7e 16739 ;;
ac1cb8d3 16740 no:yes:* )
a848cd7e
SC
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16742echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16744echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16746echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16748echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16750echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16752echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16753 (
16754 cat <<\_ASBOX
ac1cb8d3
VS
16755## ----------------------------------------- ##
16756## Report this to wx-dev@lists.wxwidgets.org ##
16757## ----------------------------------------- ##
a848cd7e
SC
16758_ASBOX
16759 ) |
16760 sed "s/^/$as_me: WARNING: /" >&2
16761 ;;
16762esac
16763echo "$as_me:$LINENO: checking for $ac_header" >&5
16764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16765if eval "test \"\${$as_ac_Header+set}\" = set"; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
ac1cb8d3 16768 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16769fi
16770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16772
16773fi
16774if test `eval echo '${'$as_ac_Header'}'` = yes; then
16775 cat >>confdefs.h <<_ACEOF
16776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16777_ACEOF
16778
16779fi
16780
16781done
16782
16783
16784for ac_header in unistd.h
16785do
16786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16787if eval "test \"\${$as_ac_Header+set}\" = set"; then
16788 echo "$as_me:$LINENO: checking for $ac_header" >&5
16789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16790if eval "test \"\${$as_ac_Header+set}\" = set"; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16792fi
16793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16795else
16796 # Is the header compilable?
16797echo "$as_me:$LINENO: checking $ac_header usability" >&5
16798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16799cat >conftest.$ac_ext <<_ACEOF
16800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
16805$ac_includes_default
16806#include <$ac_header>
16807_ACEOF
16808rm -f conftest.$ac_objext
16809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16810 (eval $ac_compile) 2>conftest.er1
a848cd7e 16811 ac_status=$?
ac1cb8d3
VS
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
a848cd7e
SC
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
ca5c6ac3 16817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_header_compiler=yes
16830else
16831 echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834ac_header_compiler=no
16835fi
ac1cb8d3 16836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16838echo "${ECHO_T}$ac_header_compiler" >&6
16839
16840# Is the header present?
16841echo "$as_me:$LINENO: checking $ac_header presence" >&5
16842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16843cat >conftest.$ac_ext <<_ACEOF
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
16849#include <$ac_header>
16850_ACEOF
16851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16853 ac_status=$?
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } >/dev/null; then
16859 if test -s conftest.err; then
5d7b7554
VZ
16860 ac_cpp_err=$ac_cxx_preproc_warn_flag
16861 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16862 else
16863 ac_cpp_err=
16864 fi
16865else
16866 ac_cpp_err=yes
16867fi
16868if test -z "$ac_cpp_err"; then
16869 ac_header_preproc=yes
16870else
16871 echo "$as_me: failed program was:" >&5
16872sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 ac_header_preproc=no
16875fi
16876rm -f conftest.err conftest.$ac_ext
16877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16878echo "${ECHO_T}$ac_header_preproc" >&6
16879
16880# So? What about this header?
5d7b7554 16881case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16882 yes:no: )
a848cd7e
SC
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16887 ac_header_preproc=yes
a848cd7e 16888 ;;
ac1cb8d3 16889 no:yes:* )
a848cd7e
SC
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16902 (
16903 cat <<\_ASBOX
ac1cb8d3
VS
16904## ----------------------------------------- ##
16905## Report this to wx-dev@lists.wxwidgets.org ##
16906## ----------------------------------------- ##
a848cd7e
SC
16907_ASBOX
16908 ) |
16909 sed "s/^/$as_me: WARNING: /" >&2
16910 ;;
16911esac
16912echo "$as_me:$LINENO: checking for $ac_header" >&5
16913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16914if eval "test \"\${$as_ac_Header+set}\" = set"; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16916else
ac1cb8d3 16917 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16918fi
16919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16921
16922fi
16923if test `eval echo '${'$as_ac_Header'}'` = yes; then
16924 cat >>confdefs.h <<_ACEOF
16925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16926_ACEOF
16927
16928fi
16929
16930done
16931
16932
16933for ac_header in wchar.h
16934do
16935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16936if eval "test \"\${$as_ac_Header+set}\" = set"; then
16937 echo "$as_me:$LINENO: checking for $ac_header" >&5
16938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16939if eval "test \"\${$as_ac_Header+set}\" = set"; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16941fi
16942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16944else
16945 # Is the header compilable?
16946echo "$as_me:$LINENO: checking $ac_header usability" >&5
16947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16948cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
16954$ac_includes_default
16955#include <$ac_header>
16956_ACEOF
16957rm -f conftest.$ac_objext
16958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16959 (eval $ac_compile) 2>conftest.er1
a848cd7e 16960 ac_status=$?
ac1cb8d3
VS
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
a848cd7e
SC
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
ca5c6ac3 16966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_header_compiler=yes
16979else
16980 echo "$as_me: failed program was:" >&5
16981sed 's/^/| /' conftest.$ac_ext >&5
16982
16983ac_header_compiler=no
16984fi
ac1cb8d3 16985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16987echo "${ECHO_T}$ac_header_compiler" >&6
16988
16989# Is the header present?
16990echo "$as_me:$LINENO: checking $ac_header presence" >&5
16991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16992cat >conftest.$ac_ext <<_ACEOF
16993/* confdefs.h. */
16994_ACEOF
16995cat confdefs.h >>conftest.$ac_ext
16996cat >>conftest.$ac_ext <<_ACEOF
16997/* end confdefs.h. */
16998#include <$ac_header>
16999_ACEOF
17000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } >/dev/null; then
17008 if test -s conftest.err; then
5d7b7554
VZ
17009 ac_cpp_err=$ac_cxx_preproc_warn_flag
17010 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17011 else
17012 ac_cpp_err=
17013 fi
17014else
17015 ac_cpp_err=yes
17016fi
17017if test -z "$ac_cpp_err"; then
17018 ac_header_preproc=yes
17019else
17020 echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ac_header_preproc=no
17024fi
17025rm -f conftest.err conftest.$ac_ext
17026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17027echo "${ECHO_T}$ac_header_preproc" >&6
17028
17029# So? What about this header?
5d7b7554 17030case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17031 yes:no: )
a848cd7e
SC
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17036 ac_header_preproc=yes
a848cd7e 17037 ;;
ac1cb8d3 17038 no:yes:* )
a848cd7e
SC
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17051 (
17052 cat <<\_ASBOX
ac1cb8d3
VS
17053## ----------------------------------------- ##
17054## Report this to wx-dev@lists.wxwidgets.org ##
17055## ----------------------------------------- ##
a848cd7e
SC
17056_ASBOX
17057 ) |
17058 sed "s/^/$as_me: WARNING: /" >&2
17059 ;;
17060esac
17061echo "$as_me:$LINENO: checking for $ac_header" >&5
17062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17063if eval "test \"\${$as_ac_Header+set}\" = set"; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
ac1cb8d3 17066 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17067fi
17068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17070
17071fi
17072if test `eval echo '${'$as_ac_Header'}'` = yes; then
17073 cat >>confdefs.h <<_ACEOF
17074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17075_ACEOF
17076
17077fi
17078
17079done
17080
17081
17082if test "$ac_cv_header_wchar_h" != "yes"; then
17083
17084for ac_header in wcstr.h
17085do
17086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17087if eval "test \"\${$as_ac_Header+set}\" = set"; then
17088 echo "$as_me:$LINENO: checking for $ac_header" >&5
17089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17090if eval "test \"\${$as_ac_Header+set}\" = set"; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092fi
17093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17095else
17096 # Is the header compilable?
17097echo "$as_me:$LINENO: checking $ac_header usability" >&5
17098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17099cat >conftest.$ac_ext <<_ACEOF
17100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h. */
17105$ac_includes_default
17106#include <$ac_header>
17107_ACEOF
17108rm -f conftest.$ac_objext
17109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17110 (eval $ac_compile) 2>conftest.er1
a848cd7e 17111 ac_status=$?
ac1cb8d3
VS
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
a848cd7e
SC
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
ca5c6ac3 17117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_header_compiler=yes
17130else
17131 echo "$as_me: failed program was:" >&5
17132sed 's/^/| /' conftest.$ac_ext >&5
17133
17134ac_header_compiler=no
17135fi
ac1cb8d3 17136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17138echo "${ECHO_T}$ac_header_compiler" >&6
17139
17140# Is the header present?
17141echo "$as_me:$LINENO: checking $ac_header presence" >&5
17142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17143cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149#include <$ac_header>
17150_ACEOF
17151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17153 ac_status=$?
17154 grep -v '^ *+' conftest.er1 >conftest.err
17155 rm -f conftest.er1
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } >/dev/null; then
17159 if test -s conftest.err; then
5d7b7554
VZ
17160 ac_cpp_err=$ac_cxx_preproc_warn_flag
17161 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17162 else
17163 ac_cpp_err=
17164 fi
17165else
17166 ac_cpp_err=yes
17167fi
17168if test -z "$ac_cpp_err"; then
17169 ac_header_preproc=yes
17170else
17171 echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 ac_header_preproc=no
17175fi
17176rm -f conftest.err conftest.$ac_ext
17177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17178echo "${ECHO_T}$ac_header_preproc" >&6
17179
17180# So? What about this header?
5d7b7554 17181case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17182 yes:no: )
a848cd7e
SC
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17187 ac_header_preproc=yes
a848cd7e 17188 ;;
ac1cb8d3 17189 no:yes:* )
a848cd7e
SC
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17202 (
17203 cat <<\_ASBOX
ac1cb8d3
VS
17204## ----------------------------------------- ##
17205## Report this to wx-dev@lists.wxwidgets.org ##
17206## ----------------------------------------- ##
a848cd7e
SC
17207_ASBOX
17208 ) |
17209 sed "s/^/$as_me: WARNING: /" >&2
17210 ;;
17211esac
17212echo "$as_me:$LINENO: checking for $ac_header" >&5
17213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17214if eval "test \"\${$as_ac_Header+set}\" = set"; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216else
ac1cb8d3 17217 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17218fi
17219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17221
17222fi
17223if test `eval echo '${'$as_ac_Header'}'` = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17226_ACEOF
17227
17228fi
17229
17230done
17231
17232fi
17233
17234
17235for ac_header in fnmatch.h
17236do
17237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17238if eval "test \"\${$as_ac_Header+set}\" = set"; then
17239 echo "$as_me:$LINENO: checking for $ac_header" >&5
17240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17241if eval "test \"\${$as_ac_Header+set}\" = set"; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243fi
17244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17246else
17247 # Is the header compilable?
17248echo "$as_me:$LINENO: checking $ac_header usability" >&5
17249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17250cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h. */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h. */
17256$ac_includes_default
17257#include <$ac_header>
17258_ACEOF
17259rm -f conftest.$ac_objext
17260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17261 (eval $ac_compile) 2>conftest.er1
a848cd7e 17262 ac_status=$?
ac1cb8d3
VS
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
a848cd7e
SC
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
ca5c6ac3 17268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; }; then
17280 ac_header_compiler=yes
17281else
17282 echo "$as_me: failed program was:" >&5
17283sed 's/^/| /' conftest.$ac_ext >&5
17284
17285ac_header_compiler=no
17286fi
ac1cb8d3 17287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17289echo "${ECHO_T}$ac_header_compiler" >&6
17290
17291# Is the header present?
17292echo "$as_me:$LINENO: checking $ac_header presence" >&5
17293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17294cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300#include <$ac_header>
17301_ACEOF
17302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17304 ac_status=$?
17305 grep -v '^ *+' conftest.er1 >conftest.err
17306 rm -f conftest.er1
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } >/dev/null; then
17310 if test -s conftest.err; then
5d7b7554
VZ
17311 ac_cpp_err=$ac_cxx_preproc_warn_flag
17312 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17313 else
17314 ac_cpp_err=
17315 fi
17316else
17317 ac_cpp_err=yes
17318fi
17319if test -z "$ac_cpp_err"; then
17320 ac_header_preproc=yes
17321else
17322 echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
17324
17325 ac_header_preproc=no
17326fi
17327rm -f conftest.err conftest.$ac_ext
17328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17329echo "${ECHO_T}$ac_header_preproc" >&6
17330
17331# So? What about this header?
5d7b7554 17332case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17333 yes:no: )
a848cd7e
SC
17334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17338 ac_header_preproc=yes
a848cd7e 17339 ;;
ac1cb8d3 17340 no:yes:* )
a848cd7e
SC
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17353 (
17354 cat <<\_ASBOX
ac1cb8d3
VS
17355## ----------------------------------------- ##
17356## Report this to wx-dev@lists.wxwidgets.org ##
17357## ----------------------------------------- ##
a848cd7e
SC
17358_ASBOX
17359 ) |
17360 sed "s/^/$as_me: WARNING: /" >&2
17361 ;;
17362esac
17363echo "$as_me:$LINENO: checking for $ac_header" >&5
17364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17365if eval "test \"\${$as_ac_Header+set}\" = set"; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17367else
ac1cb8d3 17368 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17369fi
17370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17372
17373fi
17374if test `eval echo '${'$as_ac_Header'}'` = yes; then
17375 cat >>confdefs.h <<_ACEOF
17376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17377_ACEOF
17378
17379fi
17380
17381done
17382
17383
a848cd7e
SC
17384
17385for ac_header in langinfo.h
17386do
17387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17388if eval "test \"\${$as_ac_Header+set}\" = set"; then
17389 echo "$as_me:$LINENO: checking for $ac_header" >&5
17390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17391if eval "test \"\${$as_ac_Header+set}\" = set"; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393fi
17394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17396else
17397 # Is the header compilable?
17398echo "$as_me:$LINENO: checking $ac_header usability" >&5
17399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17400cat >conftest.$ac_ext <<_ACEOF
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
17406$ac_includes_default
17407#include <$ac_header>
17408_ACEOF
17409rm -f conftest.$ac_objext
17410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17411 (eval $ac_compile) 2>conftest.er1
a848cd7e 17412 ac_status=$?
ac1cb8d3
VS
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
a848cd7e
SC
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
ca5c6ac3 17418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; } &&
17424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; }; then
17430 ac_header_compiler=yes
17431else
17432 echo "$as_me: failed program was:" >&5
17433sed 's/^/| /' conftest.$ac_ext >&5
17434
17435ac_header_compiler=no
17436fi
ac1cb8d3 17437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17439echo "${ECHO_T}$ac_header_compiler" >&6
17440
17441# Is the header present?
17442echo "$as_me:$LINENO: checking $ac_header presence" >&5
17443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17444cat >conftest.$ac_ext <<_ACEOF
17445/* confdefs.h. */
17446_ACEOF
17447cat confdefs.h >>conftest.$ac_ext
17448cat >>conftest.$ac_ext <<_ACEOF
17449/* end confdefs.h. */
17450#include <$ac_header>
17451_ACEOF
17452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } >/dev/null; then
17460 if test -s conftest.err; then
5d7b7554
VZ
17461 ac_cpp_err=$ac_cxx_preproc_warn_flag
17462 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17463 else
17464 ac_cpp_err=
17465 fi
17466else
17467 ac_cpp_err=yes
17468fi
17469if test -z "$ac_cpp_err"; then
17470 ac_header_preproc=yes
17471else
17472 echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475 ac_header_preproc=no
17476fi
17477rm -f conftest.err conftest.$ac_ext
17478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17479echo "${ECHO_T}$ac_header_preproc" >&6
17480
17481# So? What about this header?
5d7b7554 17482case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17483 yes:no: )
a848cd7e
SC
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17488 ac_header_preproc=yes
a848cd7e 17489 ;;
ac1cb8d3 17490 no:yes:* )
a848cd7e
SC
17491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17503 (
17504 cat <<\_ASBOX
ac1cb8d3
VS
17505## ----------------------------------------- ##
17506## Report this to wx-dev@lists.wxwidgets.org ##
17507## ----------------------------------------- ##
a848cd7e
SC
17508_ASBOX
17509 ) |
17510 sed "s/^/$as_me: WARNING: /" >&2
17511 ;;
17512esac
17513echo "$as_me:$LINENO: checking for $ac_header" >&5
17514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17515if eval "test \"\${$as_ac_Header+set}\" = set"; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517else
ac1cb8d3 17518 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17519fi
17520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17522
17523fi
17524if test `eval echo '${'$as_ac_Header'}'` = yes; then
17525 cat >>confdefs.h <<_ACEOF
17526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17527_ACEOF
17528
17529fi
17530
17531done
17532
17533
17534case "${host}" in
17535 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17536 if test $ac_cv_header_langinfo_h = "yes" \
17537 -a \( "$wx_cv_gccversion" = "EMX2" \
17538 -o "$wx_cv_gccversion" = "EMX3" \
17539 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17540 LIBS="$LIBS -lintl"
17541 fi
17542 ;;
17543esac
17544
bc023abb
MW
17545if test "$USE_UNIX" = 1 ; then
17546
17547for ac_header in sys/select.h
17548do
17549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17550if eval "test \"\${$as_ac_Header+set}\" = set"; then
17551 echo "$as_me:$LINENO: checking for $ac_header" >&5
17552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17553if eval "test \"\${$as_ac_Header+set}\" = set"; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17555fi
17556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17558else
17559 # Is the header compilable?
17560echo "$as_me:$LINENO: checking $ac_header usability" >&5
17561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17562cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
17568$ac_includes_default
17569#include <$ac_header>
17570_ACEOF
17571rm -f conftest.$ac_objext
17572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17573 (eval $ac_compile) 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
ca5c6ac3 17580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest.$ac_objext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_header_compiler=yes
17593else
17594 echo "$as_me: failed program was:" >&5
17595sed 's/^/| /' conftest.$ac_ext >&5
17596
17597ac_header_compiler=no
17598fi
17599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17601echo "${ECHO_T}$ac_header_compiler" >&6
17602
17603# Is the header present?
17604echo "$as_me:$LINENO: checking $ac_header presence" >&5
17605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17606cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h. */
17612#include <$ac_header>
17613_ACEOF
17614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } >/dev/null; then
17622 if test -s conftest.err; then
17623 ac_cpp_err=$ac_cxx_preproc_warn_flag
17624 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17625 else
17626 ac_cpp_err=
17627 fi
17628else
17629 ac_cpp_err=yes
17630fi
17631if test -z "$ac_cpp_err"; then
17632 ac_header_preproc=yes
17633else
17634 echo "$as_me: failed program was:" >&5
17635sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 ac_header_preproc=no
17638fi
17639rm -f conftest.err conftest.$ac_ext
17640echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17641echo "${ECHO_T}$ac_header_preproc" >&6
17642
17643# So? What about this header?
17644case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17645 yes:no: )
17646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17650 ac_header_preproc=yes
17651 ;;
17652 no:yes:* )
17653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17665 (
17666 cat <<\_ASBOX
17667## ----------------------------------------- ##
17668## Report this to wx-dev@lists.wxwidgets.org ##
17669## ----------------------------------------- ##
17670_ASBOX
17671 ) |
17672 sed "s/^/$as_me: WARNING: /" >&2
17673 ;;
17674esac
17675echo "$as_me:$LINENO: checking for $ac_header" >&5
17676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17677if eval "test \"\${$as_ac_Header+set}\" = set"; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679else
17680 eval "$as_ac_Header=\$ac_header_preproc"
17681fi
17682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17684
17685fi
17686if test `eval echo '${'$as_ac_Header'}'` = yes; then
17687 cat >>confdefs.h <<_ACEOF
17688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17689_ACEOF
17690
17691fi
17692
17693done
17694
17695fi
17696
a848cd7e
SC
17697
17698echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17699echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17700if test "${ac_cv_c_const+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702else
17703 cat >conftest.$ac_ext <<_ACEOF
17704/* confdefs.h. */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
17708/* end confdefs.h. */
17709
17710int
17711main ()
17712{
17713/* FIXME: Include the comments suggested by Paul. */
17714#ifndef __cplusplus
17715 /* Ultrix mips cc rejects this. */
17716 typedef int charset[2];
17717 const charset x;
17718 /* SunOS 4.1.1 cc rejects this. */
17719 char const *const *ccp;
17720 char **p;
17721 /* NEC SVR4.0.2 mips cc rejects this. */
17722 struct point {int x, y;};
17723 static struct point const zero = {0,0};
17724 /* AIX XL C 1.02.0.0 rejects this.
17725 It does not let you subtract one const X* pointer from another in
17726 an arm of an if-expression whose if-part is not a constant
17727 expression */
17728 const char *g = "string";
17729 ccp = &g + (g ? g-g : 0);
17730 /* HPUX 7.0 cc rejects these. */
17731 ++ccp;
17732 p = (char**) ccp;
17733 ccp = (char const *const *) p;
17734 { /* SCO 3.2v4 cc rejects this. */
17735 char *t;
17736 char const *s = 0 ? (char *) 0 : (char const *) 0;
17737
17738 *t++ = 0;
17739 }
17740 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17741 int x[] = {25, 17};
17742 const int *foo = &x[0];
17743 ++foo;
17744 }
17745 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17746 typedef const int *iptr;
17747 iptr p = 0;
17748 ++p;
17749 }
17750 { /* AIX XL C 1.02.0.0 rejects this saying
17751 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17752 struct s { int j; const int *ap[3]; };
17753 struct s *b; b->j = 5;
17754 }
17755 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17756 const int foo = 10;
17757 }
17758#endif
17759
17760 ;
17761 return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext
17765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17766 (eval $ac_compile) 2>conftest.er1
a848cd7e 17767 ac_status=$?
ac1cb8d3
VS
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
a848cd7e
SC
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
ca5c6ac3 17773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 ac_cv_c_const=yes
17786else
17787 echo "$as_me: failed program was:" >&5
17788sed 's/^/| /' conftest.$ac_ext >&5
17789
17790ac_cv_c_const=no
17791fi
ac1cb8d3 17792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17793fi
17794echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17795echo "${ECHO_T}$ac_cv_c_const" >&6
17796if test $ac_cv_c_const = no; then
17797
17798cat >>confdefs.h <<\_ACEOF
17799#define const
17800_ACEOF
17801
17802fi
17803
17804echo "$as_me:$LINENO: checking for inline" >&5
17805echo $ECHO_N "checking for inline... $ECHO_C" >&6
17806if test "${ac_cv_c_inline+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808else
17809 ac_cv_c_inline=no
17810for ac_kw in inline __inline__ __inline; do
17811 cat >conftest.$ac_ext <<_ACEOF
17812/* confdefs.h. */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h. */
17817#ifndef __cplusplus
17818typedef int foo_t;
17819static $ac_kw foo_t static_foo () {return 0; }
17820$ac_kw foo_t foo () {return 0; }
17821#endif
17822
17823_ACEOF
17824rm -f conftest.$ac_objext
17825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17826 (eval $ac_compile) 2>conftest.er1
a848cd7e 17827 ac_status=$?
ac1cb8d3
VS
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
a848cd7e
SC
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
ca5c6ac3 17833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_c_inline=$ac_kw; break
17846else
17847 echo "$as_me: failed program was:" >&5
17848sed 's/^/| /' conftest.$ac_ext >&5
17849
17850fi
ac1cb8d3 17851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17852done
17853
17854fi
17855echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17856echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17857
17858
a848cd7e
SC
17859case $ac_cv_c_inline in
17860 inline | yes) ;;
ac1cb8d3
VS
17861 *)
17862 case $ac_cv_c_inline in
17863 no) ac_val=;;
17864 *) ac_val=$ac_cv_c_inline;;
17865 esac
17866 cat >>confdefs.h <<_ACEOF
17867#ifndef __cplusplus
17868#define inline $ac_val
17869#endif
de59c161 17870_ACEOF
ac1cb8d3 17871 ;;
a848cd7e
SC
17872esac
17873
17874
17875echo "$as_me:$LINENO: checking for char" >&5
17876echo $ECHO_N "checking for char... $ECHO_C" >&6
17877if test "${ac_cv_type_char+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879else
17880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
17886$ac_includes_default
17887int
17888main ()
17889{
17890if ((char *) 0)
17891 return 0;
17892if (sizeof (char))
17893 return 0;
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext
17899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17900 (eval $ac_compile) 2>conftest.er1
a848cd7e 17901 ac_status=$?
ac1cb8d3
VS
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
a848cd7e
SC
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
ca5c6ac3 17907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; } &&
17913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_cv_type_char=yes
17920else
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
17924ac_cv_type_char=no
17925fi
ac1cb8d3 17926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17927fi
17928echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17929echo "${ECHO_T}$ac_cv_type_char" >&6
17930
17931echo "$as_me:$LINENO: checking size of char" >&5
17932echo $ECHO_N "checking size of char... $ECHO_C" >&6
17933if test "${ac_cv_sizeof_char+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17935else
17936 if test "$ac_cv_type_char" = yes; then
17937 # The cast to unsigned long works around a bug in the HP C Compiler
17938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17940 # This bug is HP SR number 8606223364.
17941 if test "$cross_compiling" = yes; then
17942 # Depending upon the size, compute the lo and hi bounds.
17943cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949$ac_includes_default
17950int
17951main ()
17952{
17953static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17954test_array [0] = 0
17955
17956 ;
17957 return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext
17961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17962 (eval $ac_compile) 2>conftest.er1
a848cd7e 17963 ac_status=$?
ac1cb8d3
VS
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
a848cd7e
SC
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
ca5c6ac3 17969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_lo=0 ac_mid=0
17982 while :; do
17983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989$ac_includes_default
17990int
17991main ()
17992{
17993static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17994test_array [0] = 0
17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext
18001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18002 (eval $ac_compile) 2>conftest.er1
a848cd7e 18003 ac_status=$?
ac1cb8d3
VS
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
a848cd7e
SC
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
ca5c6ac3 18009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_hi=$ac_mid; break
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18027 if test $ac_lo -le $ac_mid; then
18028 ac_lo= ac_hi=
18029 break
18030 fi
18031 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18032fi
ac1cb8d3 18033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18034 done
18035else
18036 echo "$as_me: failed program was:" >&5
18037sed 's/^/| /' conftest.$ac_ext >&5
18038
18039cat >conftest.$ac_ext <<_ACEOF
18040/* confdefs.h. */
18041_ACEOF
18042cat confdefs.h >>conftest.$ac_ext
18043cat >>conftest.$ac_ext <<_ACEOF
18044/* end confdefs.h. */
18045$ac_includes_default
18046int
18047main ()
18048{
18049static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18050test_array [0] = 0
18051
18052 ;
18053 return 0;
18054}
18055_ACEOF
18056rm -f conftest.$ac_objext
18057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18058 (eval $ac_compile) 2>conftest.er1
a848cd7e 18059 ac_status=$?
ac1cb8d3
VS
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
a848cd7e
SC
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
ca5c6ac3 18065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } &&
18071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 ac_hi=-1 ac_mid=-1
18078 while :; do
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085$ac_includes_default
18086int
18087main ()
18088{
18089static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18090test_array [0] = 0
18091
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext
18097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18098 (eval $ac_compile) 2>conftest.er1
a848cd7e 18099 ac_status=$?
ac1cb8d3
VS
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
a848cd7e
SC
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
ca5c6ac3 18105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_lo=$ac_mid; break
18118else
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18123 if test $ac_mid -le $ac_hi; then
18124 ac_lo= ac_hi=
18125 break
18126 fi
18127 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18128fi
ac1cb8d3 18129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18130 done
18131else
18132 echo "$as_me: failed program was:" >&5
18133sed 's/^/| /' conftest.$ac_ext >&5
18134
18135ac_lo= ac_hi=
18136fi
ac1cb8d3 18137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18138fi
ac1cb8d3 18139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18140# Binary search between lo and hi bounds.
18141while test "x$ac_lo" != "x$ac_hi"; do
18142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18143 cat >conftest.$ac_ext <<_ACEOF
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
18149$ac_includes_default
18150int
18151main ()
18152{
18153static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18154test_array [0] = 0
18155
18156 ;
18157 return 0;
18158}
18159_ACEOF
18160rm -f conftest.$ac_objext
18161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18162 (eval $ac_compile) 2>conftest.er1
a848cd7e 18163 ac_status=$?
ac1cb8d3
VS
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
a848cd7e
SC
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
ca5c6ac3 18169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 ac_hi=$ac_mid
18182else
18183 echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
18186ac_lo=`expr '(' $ac_mid ')' + 1`
18187fi
ac1cb8d3 18188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18189done
18190case $ac_lo in
18191?*) ac_cv_sizeof_char=$ac_lo;;
18192'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18193See \`config.log' for more details." >&5
18194echo "$as_me: error: cannot compute sizeof (char), 77
18195See \`config.log' for more details." >&2;}
18196 { (exit 1); exit 1; }; } ;;
18197esac
18198else
18199 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18200 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18201echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18202 { (exit 1); exit 1; }; }
18203else
18204 cat >conftest.$ac_ext <<_ACEOF
18205/* confdefs.h. */
18206_ACEOF
18207cat confdefs.h >>conftest.$ac_ext
18208cat >>conftest.$ac_ext <<_ACEOF
18209/* end confdefs.h. */
18210$ac_includes_default
18211long longval () { return (long) (sizeof (char)); }
18212unsigned long ulongval () { return (long) (sizeof (char)); }
18213#include <stdio.h>
18214#include <stdlib.h>
18215int
18216main ()
18217{
18218
18219 FILE *f = fopen ("conftest.val", "w");
18220 if (! f)
18221 exit (1);
18222 if (((long) (sizeof (char))) < 0)
18223 {
18224 long i = longval ();
18225 if (i != ((long) (sizeof (char))))
18226 exit (1);
18227 fprintf (f, "%ld\n", i);
18228 }
18229 else
18230 {
18231 unsigned long i = ulongval ();
18232 if (i != ((long) (sizeof (char))))
18233 exit (1);
18234 fprintf (f, "%lu\n", i);
18235 }
18236 exit (ferror (f) || fclose (f) != 0);
18237
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242rm -f conftest$ac_exeext
18243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18244 (eval $ac_link) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 ac_cv_sizeof_char=`cat conftest.val`
18254else
18255 echo "$as_me: program exited with status $ac_status" >&5
18256echo "$as_me: failed program was:" >&5
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259( exit $ac_status )
18260{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18261See \`config.log' for more details." >&5
18262echo "$as_me: error: cannot compute sizeof (char), 77
18263See \`config.log' for more details." >&2;}
18264 { (exit 1); exit 1; }; }
18265fi
ac1cb8d3 18266rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18267fi
18268fi
18269rm -f conftest.val
18270else
18271 ac_cv_sizeof_char=0
18272fi
18273fi
18274echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18275echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18276cat >>confdefs.h <<_ACEOF
18277#define SIZEOF_CHAR $ac_cv_sizeof_char
18278_ACEOF
18279
18280
18281echo "$as_me:$LINENO: checking for short" >&5
18282echo $ECHO_N "checking for short... $ECHO_C" >&6
18283if test "${ac_cv_type_short+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18285else
18286 cat >conftest.$ac_ext <<_ACEOF
18287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
18291/* end confdefs.h. */
18292$ac_includes_default
18293int
18294main ()
18295{
18296if ((short *) 0)
18297 return 0;
18298if (sizeof (short))
18299 return 0;
18300 ;
18301 return 0;
18302}
18303_ACEOF
18304rm -f conftest.$ac_objext
18305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18306 (eval $ac_compile) 2>conftest.er1
a848cd7e 18307 ac_status=$?
ac1cb8d3
VS
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
a848cd7e
SC
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
ca5c6ac3 18313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 ac_cv_type_short=yes
18326else
18327 echo "$as_me: failed program was:" >&5
18328sed 's/^/| /' conftest.$ac_ext >&5
18329
18330ac_cv_type_short=no
18331fi
ac1cb8d3 18332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18333fi
18334echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18335echo "${ECHO_T}$ac_cv_type_short" >&6
18336
18337echo "$as_me:$LINENO: checking size of short" >&5
18338echo $ECHO_N "checking size of short... $ECHO_C" >&6
18339if test "${ac_cv_sizeof_short+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18341else
18342 if test "$ac_cv_type_short" = yes; then
18343 # The cast to unsigned long works around a bug in the HP C Compiler
18344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18346 # This bug is HP SR number 8606223364.
18347 if test "$cross_compiling" = yes; then
18348 # Depending upon the size, compute the lo and hi bounds.
18349cat >conftest.$ac_ext <<_ACEOF
18350/* confdefs.h. */
18351_ACEOF
18352cat confdefs.h >>conftest.$ac_ext
18353cat >>conftest.$ac_ext <<_ACEOF
18354/* end confdefs.h. */
18355$ac_includes_default
18356int
18357main ()
18358{
18359static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18360test_array [0] = 0
18361
18362 ;
18363 return 0;
18364}
18365_ACEOF
18366rm -f conftest.$ac_objext
18367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18368 (eval $ac_compile) 2>conftest.er1
a848cd7e 18369 ac_status=$?
ac1cb8d3
VS
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
a848cd7e
SC
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
ca5c6ac3 18375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_lo=0 ac_mid=0
18388 while :; do
18389 cat >conftest.$ac_ext <<_ACEOF
18390/* confdefs.h. */
18391_ACEOF
18392cat confdefs.h >>conftest.$ac_ext
18393cat >>conftest.$ac_ext <<_ACEOF
18394/* end confdefs.h. */
18395$ac_includes_default
18396int
18397main ()
18398{
18399static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18400test_array [0] = 0
18401
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext
18407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18408 (eval $ac_compile) 2>conftest.er1
a848cd7e 18409 ac_status=$?
ac1cb8d3
VS
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
a848cd7e
SC
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
ca5c6ac3 18415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 ac_hi=$ac_mid; break
18428else
18429 echo "$as_me: failed program was:" >&5
18430sed 's/^/| /' conftest.$ac_ext >&5
18431
18432ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18433 if test $ac_lo -le $ac_mid; then
18434 ac_lo= ac_hi=
18435 break
18436 fi
18437 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18438fi
ac1cb8d3 18439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18440 done
18441else
18442 echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445cat >conftest.$ac_ext <<_ACEOF
18446/* confdefs.h. */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
18450/* end confdefs.h. */
18451$ac_includes_default
18452int
18453main ()
18454{
18455static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18456test_array [0] = 0
18457
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest.$ac_objext
18463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18464 (eval $ac_compile) 2>conftest.er1
a848cd7e 18465 ac_status=$?
ac1cb8d3
VS
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
a848cd7e
SC
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
ca5c6ac3 18471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_hi=-1 ac_mid=-1
18484 while :; do
18485 cat >conftest.$ac_ext <<_ACEOF
18486/* confdefs.h. */
18487_ACEOF
18488cat confdefs.h >>conftest.$ac_ext
18489cat >>conftest.$ac_ext <<_ACEOF
18490/* end confdefs.h. */
18491$ac_includes_default
18492int
18493main ()
18494{
18495static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18496test_array [0] = 0
18497
18498 ;
18499 return 0;
18500}
18501_ACEOF
18502rm -f conftest.$ac_objext
18503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18504 (eval $ac_compile) 2>conftest.er1
a848cd7e 18505 ac_status=$?
ac1cb8d3
VS
18506 grep -v '^ *+' conftest.er1 >conftest.err
18507 rm -f conftest.er1
18508 cat conftest.err >&5
a848cd7e
SC
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
ca5c6ac3 18511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_lo=$ac_mid; break
18524else
18525 echo "$as_me: failed program was:" >&5
18526sed 's/^/| /' conftest.$ac_ext >&5
18527
18528ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18529 if test $ac_mid -le $ac_hi; then
18530 ac_lo= ac_hi=
18531 break
18532 fi
18533 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18534fi
ac1cb8d3 18535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18536 done
18537else
18538 echo "$as_me: failed program was:" >&5
18539sed 's/^/| /' conftest.$ac_ext >&5
18540
18541ac_lo= ac_hi=
18542fi
ac1cb8d3 18543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18544fi
ac1cb8d3 18545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18546# Binary search between lo and hi bounds.
18547while test "x$ac_lo" != "x$ac_hi"; do
18548 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18549 cat >conftest.$ac_ext <<_ACEOF
18550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h. */
18555$ac_includes_default
18556int
18557main ()
18558{
18559static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18560test_array [0] = 0
18561
18562 ;
18563 return 0;
18564}
18565_ACEOF
18566rm -f conftest.$ac_objext
18567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18568 (eval $ac_compile) 2>conftest.er1
a848cd7e 18569 ac_status=$?
ac1cb8d3
VS
18570 grep -v '^ *+' conftest.er1 >conftest.err
18571 rm -f conftest.er1
18572 cat conftest.err >&5
a848cd7e
SC
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
ca5c6ac3 18575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 ac_hi=$ac_mid
18588else
18589 echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592ac_lo=`expr '(' $ac_mid ')' + 1`
18593fi
ac1cb8d3 18594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18595done
18596case $ac_lo in
18597?*) ac_cv_sizeof_short=$ac_lo;;
18598'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18599See \`config.log' for more details." >&5
18600echo "$as_me: error: cannot compute sizeof (short), 77
18601See \`config.log' for more details." >&2;}
18602 { (exit 1); exit 1; }; } ;;
18603esac
18604else
18605 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18606 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18607echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18608 { (exit 1); exit 1; }; }
18609else
18610 cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h. */
18616$ac_includes_default
18617long longval () { return (long) (sizeof (short)); }
18618unsigned long ulongval () { return (long) (sizeof (short)); }
18619#include <stdio.h>
18620#include <stdlib.h>
18621int
18622main ()
18623{
18624
18625 FILE *f = fopen ("conftest.val", "w");
18626 if (! f)
18627 exit (1);
18628 if (((long) (sizeof (short))) < 0)
18629 {
18630 long i = longval ();
18631 if (i != ((long) (sizeof (short))))
18632 exit (1);
18633 fprintf (f, "%ld\n", i);
18634 }
18635 else
18636 {
18637 unsigned long i = ulongval ();
18638 if (i != ((long) (sizeof (short))))
18639 exit (1);
18640 fprintf (f, "%lu\n", i);
18641 }
18642 exit (ferror (f) || fclose (f) != 0);
18643
18644 ;
18645 return 0;
18646}
18647_ACEOF
18648rm -f conftest$ac_exeext
18649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_cv_sizeof_short=`cat conftest.val`
18660else
18661 echo "$as_me: program exited with status $ac_status" >&5
18662echo "$as_me: failed program was:" >&5
18663sed 's/^/| /' conftest.$ac_ext >&5
18664
18665( exit $ac_status )
18666{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18667See \`config.log' for more details." >&5
18668echo "$as_me: error: cannot compute sizeof (short), 77
18669See \`config.log' for more details." >&2;}
18670 { (exit 1); exit 1; }; }
18671fi
ac1cb8d3 18672rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18673fi
18674fi
18675rm -f conftest.val
18676else
18677 ac_cv_sizeof_short=0
18678fi
18679fi
18680echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18681echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18682cat >>confdefs.h <<_ACEOF
18683#define SIZEOF_SHORT $ac_cv_sizeof_short
18684_ACEOF
18685
18686
18687echo "$as_me:$LINENO: checking for void *" >&5
18688echo $ECHO_N "checking for void *... $ECHO_C" >&6
18689if test "${ac_cv_type_void_p+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691else
18692 cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698$ac_includes_default
18699int
18700main ()
18701{
18702if ((void * *) 0)
18703 return 0;
18704if (sizeof (void *))
18705 return 0;
18706 ;
18707 return 0;
18708}
18709_ACEOF
18710rm -f conftest.$ac_objext
18711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18712 (eval $ac_compile) 2>conftest.er1
a848cd7e 18713 ac_status=$?
ac1cb8d3
VS
18714 grep -v '^ *+' conftest.er1 >conftest.err
18715 rm -f conftest.er1
18716 cat conftest.err >&5
a848cd7e
SC
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
ca5c6ac3 18719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 ac_cv_type_void_p=yes
18732else
18733 echo "$as_me: failed program was:" >&5
18734sed 's/^/| /' conftest.$ac_ext >&5
18735
18736ac_cv_type_void_p=no
18737fi
ac1cb8d3 18738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18739fi
18740echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18741echo "${ECHO_T}$ac_cv_type_void_p" >&6
18742
18743echo "$as_me:$LINENO: checking size of void *" >&5
18744echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18745if test "${ac_cv_sizeof_void_p+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748 if test "$ac_cv_type_void_p" = yes; then
18749 # The cast to unsigned long works around a bug in the HP C Compiler
18750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18752 # This bug is HP SR number 8606223364.
18753 if test "$cross_compiling" = yes; then
18754 # Depending upon the size, compute the lo and hi bounds.
18755cat >conftest.$ac_ext <<_ACEOF
18756/* confdefs.h. */
18757_ACEOF
18758cat confdefs.h >>conftest.$ac_ext
18759cat >>conftest.$ac_ext <<_ACEOF
18760/* end confdefs.h. */
18761$ac_includes_default
18762int
18763main ()
18764{
18765static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18766test_array [0] = 0
18767
18768 ;
18769 return 0;
18770}
18771_ACEOF
18772rm -f conftest.$ac_objext
18773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18774 (eval $ac_compile) 2>conftest.er1
a848cd7e 18775 ac_status=$?
ac1cb8d3
VS
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
a848cd7e
SC
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
ca5c6ac3 18781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_lo=0 ac_mid=0
18794 while :; do
18795 cat >conftest.$ac_ext <<_ACEOF
18796/* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
18801$ac_includes_default
18802int
18803main ()
18804{
18805static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18806test_array [0] = 0
18807
18808 ;
18809 return 0;
18810}
18811_ACEOF
18812rm -f conftest.$ac_objext
18813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18814 (eval $ac_compile) 2>conftest.er1
a848cd7e 18815 ac_status=$?
ac1cb8d3
VS
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
a848cd7e
SC
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
ca5c6ac3 18821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_hi=$ac_mid; break
18834else
18835 echo "$as_me: failed program was:" >&5
18836sed 's/^/| /' conftest.$ac_ext >&5
18837
18838ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18839 if test $ac_lo -le $ac_mid; then
18840 ac_lo= ac_hi=
18841 break
18842 fi
18843 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18844fi
ac1cb8d3 18845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18846 done
18847else
18848 echo "$as_me: failed program was:" >&5
18849sed 's/^/| /' conftest.$ac_ext >&5
18850
18851cat >conftest.$ac_ext <<_ACEOF
18852/* confdefs.h. */
18853_ACEOF
18854cat confdefs.h >>conftest.$ac_ext
18855cat >>conftest.$ac_ext <<_ACEOF
18856/* end confdefs.h. */
18857$ac_includes_default
18858int
18859main ()
18860{
18861static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18862test_array [0] = 0
18863
18864 ;
18865 return 0;
18866}
18867_ACEOF
18868rm -f conftest.$ac_objext
18869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18870 (eval $ac_compile) 2>conftest.er1
a848cd7e 18871 ac_status=$?
ac1cb8d3
VS
18872 grep -v '^ *+' conftest.er1 >conftest.err
18873 rm -f conftest.er1
18874 cat conftest.err >&5
a848cd7e
SC
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } &&
ca5c6ac3 18877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_hi=-1 ac_mid=-1
18890 while :; do
18891 cat >conftest.$ac_ext <<_ACEOF
18892/* confdefs.h. */
18893_ACEOF
18894cat confdefs.h >>conftest.$ac_ext
18895cat >>conftest.$ac_ext <<_ACEOF
18896/* end confdefs.h. */
18897$ac_includes_default
18898int
18899main ()
18900{
18901static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18902test_array [0] = 0
18903
18904 ;
18905 return 0;
18906}
18907_ACEOF
18908rm -f conftest.$ac_objext
18909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18910 (eval $ac_compile) 2>conftest.er1
a848cd7e 18911 ac_status=$?
ac1cb8d3
VS
18912 grep -v '^ *+' conftest.er1 >conftest.err
18913 rm -f conftest.er1
18914 cat conftest.err >&5
a848cd7e
SC
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
ca5c6ac3 18917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_lo=$ac_mid; break
18930else
18931 echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18935 if test $ac_mid -le $ac_hi; then
18936 ac_lo= ac_hi=
18937 break
18938 fi
18939 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18940fi
ac1cb8d3 18941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18942 done
18943else
18944 echo "$as_me: failed program was:" >&5
18945sed 's/^/| /' conftest.$ac_ext >&5
18946
18947ac_lo= ac_hi=
18948fi
ac1cb8d3 18949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18950fi
ac1cb8d3 18951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18952# Binary search between lo and hi bounds.
18953while test "x$ac_lo" != "x$ac_hi"; do
18954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18955 cat >conftest.$ac_ext <<_ACEOF
18956/* confdefs.h. */
18957_ACEOF
18958cat confdefs.h >>conftest.$ac_ext
18959cat >>conftest.$ac_ext <<_ACEOF
18960/* end confdefs.h. */
18961$ac_includes_default
18962int
18963main ()
18964{
18965static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18966test_array [0] = 0
18967
18968 ;
18969 return 0;
18970}
18971_ACEOF
18972rm -f conftest.$ac_objext
18973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18974 (eval $ac_compile) 2>conftest.er1
a848cd7e 18975 ac_status=$?
ac1cb8d3
VS
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
a848cd7e
SC
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
ca5c6ac3 18981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_hi=$ac_mid
18994else
18995 echo "$as_me: failed program was:" >&5
18996sed 's/^/| /' conftest.$ac_ext >&5
18997
18998ac_lo=`expr '(' $ac_mid ')' + 1`
18999fi
ac1cb8d3 19000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19001done
19002case $ac_lo in
19003?*) ac_cv_sizeof_void_p=$ac_lo;;
19004'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19005See \`config.log' for more details." >&5
19006echo "$as_me: error: cannot compute sizeof (void *), 77
19007See \`config.log' for more details." >&2;}
19008 { (exit 1); exit 1; }; } ;;
19009esac
19010else
19011 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
19012 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19013echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19014 { (exit 1); exit 1; }; }
19015else
19016 cat >conftest.$ac_ext <<_ACEOF
19017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
19022$ac_includes_default
19023long longval () { return (long) (sizeof (void *)); }
19024unsigned long ulongval () { return (long) (sizeof (void *)); }
19025#include <stdio.h>
19026#include <stdlib.h>
19027int
19028main ()
19029{
19030
19031 FILE *f = fopen ("conftest.val", "w");
19032 if (! f)
19033 exit (1);
19034 if (((long) (sizeof (void *))) < 0)
19035 {
19036 long i = longval ();
19037 if (i != ((long) (sizeof (void *))))
19038 exit (1);
19039 fprintf (f, "%ld\n", i);
19040 }
19041 else
19042 {
19043 unsigned long i = ulongval ();
19044 if (i != ((long) (sizeof (void *))))
19045 exit (1);
19046 fprintf (f, "%lu\n", i);
19047 }
19048 exit (ferror (f) || fclose (f) != 0);
19049
19050 ;
19051 return 0;
19052}
19053_ACEOF
19054rm -f conftest$ac_exeext
19055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19056 (eval $ac_link) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_cv_sizeof_void_p=`cat conftest.val`
19066else
19067 echo "$as_me: program exited with status $ac_status" >&5
19068echo "$as_me: failed program was:" >&5
19069sed 's/^/| /' conftest.$ac_ext >&5
19070
19071( exit $ac_status )
19072{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19073See \`config.log' for more details." >&5
19074echo "$as_me: error: cannot compute sizeof (void *), 77
19075See \`config.log' for more details." >&2;}
19076 { (exit 1); exit 1; }; }
19077fi
ac1cb8d3 19078rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19079fi
19080fi
19081rm -f conftest.val
19082else
19083 ac_cv_sizeof_void_p=0
19084fi
19085fi
19086echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19087echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19088cat >>confdefs.h <<_ACEOF
19089#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19090_ACEOF
19091
19092
19093echo "$as_me:$LINENO: checking for int" >&5
19094echo $ECHO_N "checking for int... $ECHO_C" >&6
19095if test "${ac_cv_type_int+set}" = set; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19097else
19098 cat >conftest.$ac_ext <<_ACEOF
19099/* confdefs.h. */
19100_ACEOF
19101cat confdefs.h >>conftest.$ac_ext
19102cat >>conftest.$ac_ext <<_ACEOF
19103/* end confdefs.h. */
19104$ac_includes_default
19105int
19106main ()
19107{
19108if ((int *) 0)
19109 return 0;
19110if (sizeof (int))
19111 return 0;
19112 ;
19113 return 0;
19114}
19115_ACEOF
19116rm -f conftest.$ac_objext
19117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19118 (eval $ac_compile) 2>conftest.er1
a848cd7e 19119 ac_status=$?
ac1cb8d3
VS
19120 grep -v '^ *+' conftest.er1 >conftest.err
19121 rm -f conftest.er1
19122 cat conftest.err >&5
a848cd7e
SC
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
ca5c6ac3 19125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; } &&
19131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_type_int=yes
19138else
19139 echo "$as_me: failed program was:" >&5
19140sed 's/^/| /' conftest.$ac_ext >&5
19141
19142ac_cv_type_int=no
19143fi
ac1cb8d3 19144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19145fi
19146echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19147echo "${ECHO_T}$ac_cv_type_int" >&6
19148
19149echo "$as_me:$LINENO: checking size of int" >&5
19150echo $ECHO_N "checking size of int... $ECHO_C" >&6
19151if test "${ac_cv_sizeof_int+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153else
19154 if test "$ac_cv_type_int" = yes; then
19155 # The cast to unsigned long works around a bug in the HP C Compiler
19156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19158 # This bug is HP SR number 8606223364.
19159 if test "$cross_compiling" = yes; then
19160 # Depending upon the size, compute the lo and hi bounds.
19161cat >conftest.$ac_ext <<_ACEOF
19162/* confdefs.h. */
19163_ACEOF
19164cat confdefs.h >>conftest.$ac_ext
19165cat >>conftest.$ac_ext <<_ACEOF
19166/* end confdefs.h. */
19167$ac_includes_default
19168int
19169main ()
19170{
19171static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19172test_array [0] = 0
19173
19174 ;
19175 return 0;
19176}
19177_ACEOF
19178rm -f conftest.$ac_objext
19179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19180 (eval $ac_compile) 2>conftest.er1
a848cd7e 19181 ac_status=$?
ac1cb8d3
VS
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
a848cd7e
SC
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
ca5c6ac3 19187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_lo=0 ac_mid=0
19200 while :; do
19201 cat >conftest.$ac_ext <<_ACEOF
19202/* confdefs.h. */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h. */
19207$ac_includes_default
19208int
19209main ()
19210{
19211static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19212test_array [0] = 0
19213
19214 ;
19215 return 0;
19216}
19217_ACEOF
19218rm -f conftest.$ac_objext
19219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19220 (eval $ac_compile) 2>conftest.er1
a848cd7e 19221 ac_status=$?
ac1cb8d3
VS
19222 grep -v '^ *+' conftest.er1 >conftest.err
19223 rm -f conftest.er1
19224 cat conftest.err >&5
a848cd7e
SC
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
ca5c6ac3 19227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_hi=$ac_mid; break
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19245 if test $ac_lo -le $ac_mid; then
19246 ac_lo= ac_hi=
19247 break
19248 fi
19249 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19250fi
ac1cb8d3 19251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19252 done
19253else
19254 echo "$as_me: failed program was:" >&5
19255sed 's/^/| /' conftest.$ac_ext >&5
19256
19257cat >conftest.$ac_ext <<_ACEOF
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263$ac_includes_default
19264int
19265main ()
19266{
19267static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19268test_array [0] = 0
19269
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19276 (eval $ac_compile) 2>conftest.er1
a848cd7e 19277 ac_status=$?
ac1cb8d3
VS
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
a848cd7e
SC
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
ca5c6ac3 19283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_hi=-1 ac_mid=-1
19296 while :; do
19297 cat >conftest.$ac_ext <<_ACEOF
19298/* confdefs.h. */
19299_ACEOF
19300cat confdefs.h >>conftest.$ac_ext
19301cat >>conftest.$ac_ext <<_ACEOF
19302/* end confdefs.h. */
19303$ac_includes_default
19304int
19305main ()
19306{
19307static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19308test_array [0] = 0
19309
19310 ;
19311 return 0;
19312}
19313_ACEOF
19314rm -f conftest.$ac_objext
19315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19316 (eval $ac_compile) 2>conftest.er1
a848cd7e 19317 ac_status=$?
ac1cb8d3
VS
19318 grep -v '^ *+' conftest.er1 >conftest.err
19319 rm -f conftest.er1
19320 cat conftest.err >&5
a848cd7e
SC
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
ca5c6ac3 19323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_lo=$ac_mid; break
19336else
19337 echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19341 if test $ac_mid -le $ac_hi; then
19342 ac_lo= ac_hi=
19343 break
19344 fi
19345 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19346fi
ac1cb8d3 19347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19348 done
19349else
19350 echo "$as_me: failed program was:" >&5
19351sed 's/^/| /' conftest.$ac_ext >&5
19352
19353ac_lo= ac_hi=
19354fi
ac1cb8d3 19355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19356fi
ac1cb8d3 19357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19358# Binary search between lo and hi bounds.
19359while test "x$ac_lo" != "x$ac_hi"; do
19360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19361 cat >conftest.$ac_ext <<_ACEOF
19362/* confdefs.h. */
19363_ACEOF
19364cat confdefs.h >>conftest.$ac_ext
19365cat >>conftest.$ac_ext <<_ACEOF
19366/* end confdefs.h. */
19367$ac_includes_default
19368int
19369main ()
19370{
19371static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19372test_array [0] = 0
19373
19374 ;
19375 return 0;
19376}
19377_ACEOF
19378rm -f conftest.$ac_objext
19379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19380 (eval $ac_compile) 2>conftest.er1
a848cd7e 19381 ac_status=$?
ac1cb8d3
VS
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
a848cd7e
SC
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
ca5c6ac3 19387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_hi=$ac_mid
19400else
19401 echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404ac_lo=`expr '(' $ac_mid ')' + 1`
19405fi
ac1cb8d3 19406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19407done
19408case $ac_lo in
19409?*) ac_cv_sizeof_int=$ac_lo;;
19410'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19411See \`config.log' for more details." >&5
19412echo "$as_me: error: cannot compute sizeof (int), 77
19413See \`config.log' for more details." >&2;}
19414 { (exit 1); exit 1; }; } ;;
19415esac
19416else
19417 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
19418 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19419echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19420 { (exit 1); exit 1; }; }
19421else
19422 cat >conftest.$ac_ext <<_ACEOF
19423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428$ac_includes_default
19429long longval () { return (long) (sizeof (int)); }
19430unsigned long ulongval () { return (long) (sizeof (int)); }
19431#include <stdio.h>
19432#include <stdlib.h>
19433int
19434main ()
19435{
19436
19437 FILE *f = fopen ("conftest.val", "w");
19438 if (! f)
19439 exit (1);
19440 if (((long) (sizeof (int))) < 0)
19441 {
19442 long i = longval ();
19443 if (i != ((long) (sizeof (int))))
19444 exit (1);
19445 fprintf (f, "%ld\n", i);
19446 }
19447 else
19448 {
19449 unsigned long i = ulongval ();
19450 if (i != ((long) (sizeof (int))))
19451 exit (1);
19452 fprintf (f, "%lu\n", i);
19453 }
19454 exit (ferror (f) || fclose (f) != 0);
19455
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest$ac_exeext
19461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462 (eval $ac_link) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 ac_cv_sizeof_int=`cat conftest.val`
19472else
19473 echo "$as_me: program exited with status $ac_status" >&5
19474echo "$as_me: failed program was:" >&5
19475sed 's/^/| /' conftest.$ac_ext >&5
19476
19477( exit $ac_status )
19478{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19479See \`config.log' for more details." >&5
19480echo "$as_me: error: cannot compute sizeof (int), 77
19481See \`config.log' for more details." >&2;}
19482 { (exit 1); exit 1; }; }
19483fi
ac1cb8d3 19484rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19485fi
19486fi
19487rm -f conftest.val
19488else
19489 ac_cv_sizeof_int=0
19490fi
19491fi
19492echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19493echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19494cat >>confdefs.h <<_ACEOF
19495#define SIZEOF_INT $ac_cv_sizeof_int
19496_ACEOF
19497
19498
19499echo "$as_me:$LINENO: checking for long" >&5
19500echo $ECHO_N "checking for long... $ECHO_C" >&6
19501if test "${ac_cv_type_long+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503else
19504 cat >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{
19514if ((long *) 0)
19515 return 0;
19516if (sizeof (long))
19517 return 0;
19518 ;
19519 return 0;
19520}
19521_ACEOF
19522rm -f conftest.$ac_objext
19523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19524 (eval $ac_compile) 2>conftest.er1
a848cd7e 19525 ac_status=$?
ac1cb8d3
VS
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
a848cd7e
SC
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
ca5c6ac3 19531 { ac_try='test -z "$ac_cxx_werror_flag" || 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_cv_type_long=yes
19544else
19545 echo "$as_me: failed program was:" >&5
19546sed 's/^/| /' conftest.$ac_ext >&5
19547
19548ac_cv_type_long=no
19549fi
ac1cb8d3 19550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19551fi
19552echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19553echo "${ECHO_T}$ac_cv_type_long" >&6
19554
19555echo "$as_me:$LINENO: checking size of long" >&5
19556echo $ECHO_N "checking size of long... $ECHO_C" >&6
19557if test "${ac_cv_sizeof_long+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19559else
19560 if test "$ac_cv_type_long" = yes; then
19561 # The cast to unsigned long works around a bug in the HP C Compiler
19562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19564 # This bug is HP SR number 8606223364.
19565 if test "$cross_compiling" = yes; then
19566 # Depending upon the size, compute the lo and hi bounds.
19567cat >conftest.$ac_ext <<_ACEOF
19568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
19572/* end confdefs.h. */
19573$ac_includes_default
19574int
19575main ()
19576{
19577static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19578test_array [0] = 0
19579
19580 ;
19581 return 0;
19582}
19583_ACEOF
19584rm -f conftest.$ac_objext
19585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19586 (eval $ac_compile) 2>conftest.er1
a848cd7e 19587 ac_status=$?
ac1cb8d3
VS
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
a848cd7e
SC
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
ca5c6ac3 19593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; } &&
19599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19602 ac_status=$?
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19605 ac_lo=0 ac_mid=0
19606 while :; do
19607 cat >conftest.$ac_ext <<_ACEOF
19608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h. */
19613$ac_includes_default
19614int
19615main ()
19616{
19617static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19618test_array [0] = 0
19619
19620 ;
19621 return 0;
19622}
19623_ACEOF
19624rm -f conftest.$ac_objext
19625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19626 (eval $ac_compile) 2>conftest.er1
a848cd7e 19627 ac_status=$?
ac1cb8d3
VS
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
a848cd7e
SC
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
ca5c6ac3 19633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 ac_hi=$ac_mid; break
19646else
19647 echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
19650ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19651 if test $ac_lo -le $ac_mid; then
19652 ac_lo= ac_hi=
19653 break
19654 fi
19655 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19656fi
ac1cb8d3 19657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19658 done
19659else
19660 echo "$as_me: failed program was:" >&5
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
19663cat >conftest.$ac_ext <<_ACEOF
19664/* confdefs.h. */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h. */
19669$ac_includes_default
19670int
19671main ()
19672{
19673static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19674test_array [0] = 0
19675
19676 ;
19677 return 0;
19678}
19679_ACEOF
19680rm -f conftest.$ac_objext
19681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19682 (eval $ac_compile) 2>conftest.er1
a848cd7e 19683 ac_status=$?
ac1cb8d3
VS
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
a848cd7e
SC
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
ca5c6ac3 19689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 ac_hi=-1 ac_mid=-1
19702 while :; do
19703 cat >conftest.$ac_ext <<_ACEOF
19704/* confdefs.h. */
19705_ACEOF
19706cat confdefs.h >>conftest.$ac_ext
19707cat >>conftest.$ac_ext <<_ACEOF
19708/* end confdefs.h. */
19709$ac_includes_default
19710int
19711main ()
19712{
19713static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19714test_array [0] = 0
19715
19716 ;
19717 return 0;
19718}
19719_ACEOF
19720rm -f conftest.$ac_objext
19721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19722 (eval $ac_compile) 2>conftest.er1
a848cd7e 19723 ac_status=$?
ac1cb8d3
VS
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
a848cd7e
SC
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
ca5c6ac3 19729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; } &&
19735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19741 ac_lo=$ac_mid; break
19742else
19743 echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19747 if test $ac_mid -le $ac_hi; then
19748 ac_lo= ac_hi=
19749 break
19750 fi
19751 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19752fi
ac1cb8d3 19753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19754 done
19755else
19756 echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759ac_lo= ac_hi=
19760fi
ac1cb8d3 19761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19762fi
ac1cb8d3 19763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19764# Binary search between lo and hi bounds.
19765while test "x$ac_lo" != "x$ac_hi"; do
19766 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19767 cat >conftest.$ac_ext <<_ACEOF
19768/* confdefs.h. */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
19772/* end confdefs.h. */
19773$ac_includes_default
19774int
19775main ()
19776{
19777static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19778test_array [0] = 0
19779
19780 ;
19781 return 0;
19782}
19783_ACEOF
19784rm -f conftest.$ac_objext
19785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19786 (eval $ac_compile) 2>conftest.er1
a848cd7e 19787 ac_status=$?
ac1cb8d3
VS
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
a848cd7e
SC
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
ca5c6ac3 19793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_hi=$ac_mid
19806else
19807 echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810ac_lo=`expr '(' $ac_mid ')' + 1`
19811fi
ac1cb8d3 19812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19813done
19814case $ac_lo in
19815?*) ac_cv_sizeof_long=$ac_lo;;
19816'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19817See \`config.log' for more details." >&5
19818echo "$as_me: error: cannot compute sizeof (long), 77
19819See \`config.log' for more details." >&2;}
19820 { (exit 1); exit 1; }; } ;;
19821esac
19822else
19823 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
19824 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19825echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19826 { (exit 1); exit 1; }; }
19827else
19828 cat >conftest.$ac_ext <<_ACEOF
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
19833/* end confdefs.h. */
19834$ac_includes_default
19835long longval () { return (long) (sizeof (long)); }
19836unsigned long ulongval () { return (long) (sizeof (long)); }
19837#include <stdio.h>
19838#include <stdlib.h>
19839int
19840main ()
19841{
19842
19843 FILE *f = fopen ("conftest.val", "w");
19844 if (! f)
19845 exit (1);
19846 if (((long) (sizeof (long))) < 0)
19847 {
19848 long i = longval ();
19849 if (i != ((long) (sizeof (long))))
19850 exit (1);
19851 fprintf (f, "%ld\n", i);
19852 }
19853 else
19854 {
19855 unsigned long i = ulongval ();
19856 if (i != ((long) (sizeof (long))))
19857 exit (1);
19858 fprintf (f, "%lu\n", i);
19859 }
19860 exit (ferror (f) || fclose (f) != 0);
19861
19862 ;
19863 return 0;
19864}
19865_ACEOF
19866rm -f conftest$ac_exeext
19867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19868 (eval $ac_link) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_cv_sizeof_long=`cat conftest.val`
19878else
19879 echo "$as_me: program exited with status $ac_status" >&5
19880echo "$as_me: failed program was:" >&5
19881sed 's/^/| /' conftest.$ac_ext >&5
19882
19883( exit $ac_status )
19884{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19885See \`config.log' for more details." >&5
19886echo "$as_me: error: cannot compute sizeof (long), 77
19887See \`config.log' for more details." >&2;}
19888 { (exit 1); exit 1; }; }
19889fi
ac1cb8d3 19890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19891fi
19892fi
19893rm -f conftest.val
19894else
19895 ac_cv_sizeof_long=0
19896fi
19897fi
19898echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19899echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19900cat >>confdefs.h <<_ACEOF
19901#define SIZEOF_LONG $ac_cv_sizeof_long
19902_ACEOF
19903
19904
19905echo "$as_me:$LINENO: checking for size_t" >&5
19906echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19907if test "${ac_cv_type_size_t+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909else
19910 cat >conftest.$ac_ext <<_ACEOF
19911/* confdefs.h. */
19912_ACEOF
19913cat confdefs.h >>conftest.$ac_ext
19914cat >>conftest.$ac_ext <<_ACEOF
19915/* end confdefs.h. */
19916$ac_includes_default
19917int
19918main ()
19919{
19920if ((size_t *) 0)
19921 return 0;
19922if (sizeof (size_t))
19923 return 0;
19924 ;
19925 return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext
19929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19930 (eval $ac_compile) 2>conftest.er1
a848cd7e 19931 ac_status=$?
ac1cb8d3
VS
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
a848cd7e
SC
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
ca5c6ac3 19937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ac_cv_type_size_t=yes
19950else
19951 echo "$as_me: failed program was:" >&5
19952sed 's/^/| /' conftest.$ac_ext >&5
19953
19954ac_cv_type_size_t=no
19955fi
ac1cb8d3 19956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19957fi
19958echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19959echo "${ECHO_T}$ac_cv_type_size_t" >&6
19960
19961echo "$as_me:$LINENO: checking size of size_t" >&5
19962echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19963if test "${ac_cv_sizeof_size_t+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966 if test "$ac_cv_type_size_t" = yes; then
19967 # The cast to unsigned long works around a bug in the HP C Compiler
19968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19970 # This bug is HP SR number 8606223364.
19971 if test "$cross_compiling" = yes; then
19972 # Depending upon the size, compute the lo and hi bounds.
19973cat >conftest.$ac_ext <<_ACEOF
19974/* confdefs.h. */
19975_ACEOF
19976cat confdefs.h >>conftest.$ac_ext
19977cat >>conftest.$ac_ext <<_ACEOF
19978/* end confdefs.h. */
19979$ac_includes_default
19980int
19981main ()
19982{
19983static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19984test_array [0] = 0
19985
19986 ;
19987 return 0;
19988}
19989_ACEOF
19990rm -f conftest.$ac_objext
19991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19992 (eval $ac_compile) 2>conftest.er1
a848cd7e 19993 ac_status=$?
ac1cb8d3
VS
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
a848cd7e
SC
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
ca5c6ac3 19999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; } &&
20005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 ac_lo=0 ac_mid=0
20012 while :; do
20013 cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
20019$ac_includes_default
20020int
20021main ()
20022{
20023static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20024test_array [0] = 0
20025
20026 ;
20027 return 0;
20028}
20029_ACEOF
20030rm -f conftest.$ac_objext
20031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20032 (eval $ac_compile) 2>conftest.er1
a848cd7e 20033 ac_status=$?
ac1cb8d3
VS
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
a848cd7e
SC
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
ca5c6ac3 20039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 ac_hi=$ac_mid; break
20052else
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20057 if test $ac_lo -le $ac_mid; then
20058 ac_lo= ac_hi=
20059 break
20060 fi
20061 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20062fi
ac1cb8d3 20063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20064 done
20065else
20066 echo "$as_me: failed program was:" >&5
20067sed 's/^/| /' conftest.$ac_ext >&5
20068
20069cat >conftest.$ac_ext <<_ACEOF
20070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
20075$ac_includes_default
20076int
20077main ()
20078{
20079static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20080test_array [0] = 0
20081
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086rm -f conftest.$ac_objext
20087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20088 (eval $ac_compile) 2>conftest.er1
a848cd7e 20089 ac_status=$?
ac1cb8d3
VS
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
a848cd7e
SC
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
ca5c6ac3 20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 ac_hi=-1 ac_mid=-1
20108 while :; do
20109 cat >conftest.$ac_ext <<_ACEOF
20110/* confdefs.h. */
20111_ACEOF
20112cat confdefs.h >>conftest.$ac_ext
20113cat >>conftest.$ac_ext <<_ACEOF
20114/* end confdefs.h. */
20115$ac_includes_default
20116int
20117main ()
20118{
20119static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20120test_array [0] = 0
20121
20122 ;
20123 return 0;
20124}
20125_ACEOF
20126rm -f conftest.$ac_objext
20127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20128 (eval $ac_compile) 2>conftest.er1
a848cd7e 20129 ac_status=$?
ac1cb8d3
VS
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
a848cd7e
SC
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } &&
ca5c6ac3 20135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_lo=$ac_mid; break
20148else
20149 echo "$as_me: failed program was:" >&5
20150sed 's/^/| /' conftest.$ac_ext >&5
20151
20152ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20153 if test $ac_mid -le $ac_hi; then
20154 ac_lo= ac_hi=
20155 break
20156 fi
20157 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20158fi
ac1cb8d3 20159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20160 done
20161else
20162 echo "$as_me: failed program was:" >&5
20163sed 's/^/| /' conftest.$ac_ext >&5
20164
20165ac_lo= ac_hi=
20166fi
ac1cb8d3 20167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20168fi
ac1cb8d3 20169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20170# Binary search between lo and hi bounds.
20171while test "x$ac_lo" != "x$ac_hi"; do
20172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20173 cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
20179$ac_includes_default
20180int
20181main ()
20182{
20183static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20184test_array [0] = 0
20185
20186 ;
20187 return 0;
20188}
20189_ACEOF
20190rm -f conftest.$ac_objext
20191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20192 (eval $ac_compile) 2>conftest.er1
a848cd7e 20193 ac_status=$?
ac1cb8d3
VS
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
a848cd7e
SC
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
ca5c6ac3 20199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_hi=$ac_mid
20212else
20213 echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216ac_lo=`expr '(' $ac_mid ')' + 1`
20217fi
ac1cb8d3 20218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20219done
20220case $ac_lo in
20221?*) ac_cv_sizeof_size_t=$ac_lo;;
20222'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20223See \`config.log' for more details." >&5
20224echo "$as_me: error: cannot compute sizeof (size_t), 77
20225See \`config.log' for more details." >&2;}
20226 { (exit 1); exit 1; }; } ;;
20227esac
20228else
20229 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
20230 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20231echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20232 { (exit 1); exit 1; }; }
20233else
20234 cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h. */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h. */
20240$ac_includes_default
20241long longval () { return (long) (sizeof (size_t)); }
20242unsigned long ulongval () { return (long) (sizeof (size_t)); }
20243#include <stdio.h>
20244#include <stdlib.h>
20245int
20246main ()
20247{
20248
20249 FILE *f = fopen ("conftest.val", "w");
20250 if (! f)
20251 exit (1);
20252 if (((long) (sizeof (size_t))) < 0)
20253 {
20254 long i = longval ();
20255 if (i != ((long) (sizeof (size_t))))
20256 exit (1);
20257 fprintf (f, "%ld\n", i);
20258 }
20259 else
20260 {
20261 unsigned long i = ulongval ();
20262 if (i != ((long) (sizeof (size_t))))
20263 exit (1);
20264 fprintf (f, "%lu\n", i);
20265 }
20266 exit (ferror (f) || fclose (f) != 0);
20267
20268 ;
20269 return 0;
20270}
20271_ACEOF
20272rm -f conftest$ac_exeext
20273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20274 (eval $ac_link) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_sizeof_size_t=`cat conftest.val`
20284else
20285 echo "$as_me: program exited with status $ac_status" >&5
20286echo "$as_me: failed program was:" >&5
20287sed 's/^/| /' conftest.$ac_ext >&5
20288
20289( exit $ac_status )
20290{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20291See \`config.log' for more details." >&5
20292echo "$as_me: error: cannot compute sizeof (size_t), 77
20293See \`config.log' for more details." >&2;}
20294 { (exit 1); exit 1; }; }
20295fi
ac1cb8d3 20296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20297fi
20298fi
20299rm -f conftest.val
20300else
20301 ac_cv_sizeof_size_t=0
20302fi
20303fi
20304echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20305echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20306cat >>confdefs.h <<_ACEOF
20307#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20308_ACEOF
20309
20310
20311
20312case "${host}" in
20313 arm-*-linux* )
20314 echo "$as_me:$LINENO: checking for long long" >&5
20315echo $ECHO_N "checking for long long... $ECHO_C" >&6
20316if test "${ac_cv_type_long_long+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318else
20319 cat >conftest.$ac_ext <<_ACEOF
20320/* confdefs.h. */
20321_ACEOF
20322cat confdefs.h >>conftest.$ac_ext
20323cat >>conftest.$ac_ext <<_ACEOF
20324/* end confdefs.h. */
20325$ac_includes_default
20326int
20327main ()
20328{
20329if ((long long *) 0)
20330 return 0;
20331if (sizeof (long long))
20332 return 0;
20333 ;
20334 return 0;
20335}
20336_ACEOF
20337rm -f conftest.$ac_objext
20338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20339 (eval $ac_compile) 2>conftest.er1
a848cd7e 20340 ac_status=$?
ac1cb8d3
VS
20341 grep -v '^ *+' conftest.er1 >conftest.err
20342 rm -f conftest.er1
20343 cat conftest.err >&5
a848cd7e
SC
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
ca5c6ac3 20346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 ac_cv_type_long_long=yes
20359else
20360 echo "$as_me: failed program was:" >&5
20361sed 's/^/| /' conftest.$ac_ext >&5
20362
20363ac_cv_type_long_long=no
20364fi
ac1cb8d3 20365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20366fi
20367echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20368echo "${ECHO_T}$ac_cv_type_long_long" >&6
20369
20370echo "$as_me:$LINENO: checking size of long long" >&5
20371echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20372if test "${ac_cv_sizeof_long_long+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20374else
20375 if test "$ac_cv_type_long_long" = yes; then
20376 # The cast to unsigned long works around a bug in the HP C Compiler
20377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20379 # This bug is HP SR number 8606223364.
20380 if test "$cross_compiling" = yes; then
20381 # Depending upon the size, compute the lo and hi bounds.
20382cat >conftest.$ac_ext <<_ACEOF
20383/* confdefs.h. */
20384_ACEOF
20385cat confdefs.h >>conftest.$ac_ext
20386cat >>conftest.$ac_ext <<_ACEOF
20387/* end confdefs.h. */
20388$ac_includes_default
20389int
20390main ()
20391{
20392static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20393test_array [0] = 0
20394
20395 ;
20396 return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext
20400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20401 (eval $ac_compile) 2>conftest.er1
a848cd7e 20402 ac_status=$?
ac1cb8d3
VS
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
a848cd7e
SC
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
ca5c6ac3 20408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; }; then
20420 ac_lo=0 ac_mid=0
20421 while :; do
20422 cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h. */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h. */
20428$ac_includes_default
20429int
20430main ()
20431{
20432static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20433test_array [0] = 0
20434
20435 ;
20436 return 0;
20437}
20438_ACEOF
20439rm -f conftest.$ac_objext
20440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20441 (eval $ac_compile) 2>conftest.er1
a848cd7e 20442 ac_status=$?
ac1cb8d3
VS
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
a848cd7e
SC
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
ca5c6ac3 20448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ac_hi=$ac_mid; break
20461else
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20466 if test $ac_lo -le $ac_mid; then
20467 ac_lo= ac_hi=
20468 break
20469 fi
20470 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20471fi
ac1cb8d3 20472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20473 done
20474else
20475 echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478cat >conftest.$ac_ext <<_ACEOF
20479/* confdefs.h. */
20480_ACEOF
20481cat confdefs.h >>conftest.$ac_ext
20482cat >>conftest.$ac_ext <<_ACEOF
20483/* end confdefs.h. */
20484$ac_includes_default
20485int
20486main ()
20487{
20488static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20489test_array [0] = 0
20490
20491 ;
20492 return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20497 (eval $ac_compile) 2>conftest.er1
a848cd7e 20498 ac_status=$?
ac1cb8d3
VS
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
a848cd7e
SC
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
ca5c6ac3 20504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_hi=-1 ac_mid=-1
20517 while :; do
20518 cat >conftest.$ac_ext <<_ACEOF
20519/* confdefs.h. */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
20523/* end confdefs.h. */
20524$ac_includes_default
20525int
20526main ()
20527{
20528static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20529test_array [0] = 0
20530
20531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest.$ac_objext
20536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20537 (eval $ac_compile) 2>conftest.er1
a848cd7e 20538 ac_status=$?
ac1cb8d3
VS
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
a848cd7e
SC
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
ca5c6ac3 20544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_lo=$ac_mid; break
20557else
20558 echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
20560
20561ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20562 if test $ac_mid -le $ac_hi; then
20563 ac_lo= ac_hi=
20564 break
20565 fi
20566 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20567fi
ac1cb8d3 20568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20569 done
20570else
20571 echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
20573
20574ac_lo= ac_hi=
20575fi
ac1cb8d3 20576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20577fi
ac1cb8d3 20578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20579# Binary search between lo and hi bounds.
20580while test "x$ac_lo" != "x$ac_hi"; do
20581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20582 cat >conftest.$ac_ext <<_ACEOF
20583/* confdefs.h. */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h. */
20588$ac_includes_default
20589int
20590main ()
20591{
20592static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20593test_array [0] = 0
20594
20595 ;
20596 return 0;
20597}
20598_ACEOF
20599rm -f conftest.$ac_objext
20600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20601 (eval $ac_compile) 2>conftest.er1
a848cd7e 20602 ac_status=$?
ac1cb8d3
VS
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
a848cd7e
SC
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
ca5c6ac3 20608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20611 ac_status=$?
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; } &&
20614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 ac_hi=$ac_mid
20621else
20622 echo "$as_me: failed program was:" >&5
20623sed 's/^/| /' conftest.$ac_ext >&5
20624
20625ac_lo=`expr '(' $ac_mid ')' + 1`
20626fi
ac1cb8d3 20627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20628done
20629case $ac_lo in
20630?*) ac_cv_sizeof_long_long=$ac_lo;;
20631'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20632See \`config.log' for more details." >&5
20633echo "$as_me: error: cannot compute sizeof (long long), 77
20634See \`config.log' for more details." >&2;}
20635 { (exit 1); exit 1; }; } ;;
20636esac
20637else
20638 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
20639 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20640echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20641 { (exit 1); exit 1; }; }
20642else
20643 cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h. */
20649$ac_includes_default
20650long longval () { return (long) (sizeof (long long)); }
20651unsigned long ulongval () { return (long) (sizeof (long long)); }
20652#include <stdio.h>
20653#include <stdlib.h>
20654int
20655main ()
20656{
20657
20658 FILE *f = fopen ("conftest.val", "w");
20659 if (! f)
20660 exit (1);
20661 if (((long) (sizeof (long long))) < 0)
20662 {
20663 long i = longval ();
20664 if (i != ((long) (sizeof (long long))))
20665 exit (1);
20666 fprintf (f, "%ld\n", i);
20667 }
20668 else
20669 {
20670 unsigned long i = ulongval ();
20671 if (i != ((long) (sizeof (long long))))
20672 exit (1);
20673 fprintf (f, "%lu\n", i);
20674 }
20675 exit (ferror (f) || fclose (f) != 0);
20676
20677 ;
20678 return 0;
20679}
20680_ACEOF
20681rm -f conftest$ac_exeext
20682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20683 (eval $ac_link) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
20692 ac_cv_sizeof_long_long=`cat conftest.val`
20693else
20694 echo "$as_me: program exited with status $ac_status" >&5
20695echo "$as_me: failed program was:" >&5
20696sed 's/^/| /' conftest.$ac_ext >&5
20697
20698( exit $ac_status )
20699{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20700See \`config.log' for more details." >&5
20701echo "$as_me: error: cannot compute sizeof (long long), 77
20702See \`config.log' for more details." >&2;}
20703 { (exit 1); exit 1; }; }
20704fi
ac1cb8d3 20705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20706fi
20707fi
20708rm -f conftest.val
20709else
20710 ac_cv_sizeof_long_long=0
20711fi
20712fi
20713echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20714echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20715cat >>confdefs.h <<_ACEOF
20716#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20717_ACEOF
20718
20719
20720 ;;
20721 *-hp-hpux* )
20722 echo "$as_me:$LINENO: checking for long long" >&5
20723echo $ECHO_N "checking for long long... $ECHO_C" >&6
20724if test "${ac_cv_type_long_long+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726else
20727 cat >conftest.$ac_ext <<_ACEOF
20728/* confdefs.h. */
20729_ACEOF
20730cat confdefs.h >>conftest.$ac_ext
20731cat >>conftest.$ac_ext <<_ACEOF
20732/* end confdefs.h. */
20733$ac_includes_default
20734int
20735main ()
20736{
20737if ((long long *) 0)
20738 return 0;
20739if (sizeof (long long))
20740 return 0;
20741 ;
20742 return 0;
20743}
20744_ACEOF
20745rm -f conftest.$ac_objext
20746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20747 (eval $ac_compile) 2>conftest.er1
a848cd7e 20748 ac_status=$?
ac1cb8d3
VS
20749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
a848cd7e
SC
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
ca5c6ac3 20754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 ac_cv_type_long_long=yes
20767else
20768 echo "$as_me: failed program was:" >&5
20769sed 's/^/| /' conftest.$ac_ext >&5
20770
20771ac_cv_type_long_long=no
20772fi
ac1cb8d3 20773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20774fi
20775echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20776echo "${ECHO_T}$ac_cv_type_long_long" >&6
20777
20778echo "$as_me:$LINENO: checking size of long long" >&5
20779echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20780if test "${ac_cv_sizeof_long_long+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20782else
20783 if test "$ac_cv_type_long_long" = yes; then
20784 # The cast to unsigned long works around a bug in the HP C Compiler
20785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20787 # This bug is HP SR number 8606223364.
20788 if test "$cross_compiling" = yes; then
20789 # Depending upon the size, compute the lo and hi bounds.
20790cat >conftest.$ac_ext <<_ACEOF
20791/* confdefs.h. */
20792_ACEOF
20793cat confdefs.h >>conftest.$ac_ext
20794cat >>conftest.$ac_ext <<_ACEOF
20795/* end confdefs.h. */
20796$ac_includes_default
20797int
20798main ()
20799{
20800static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20801test_array [0] = 0
20802
20803 ;
20804 return 0;
20805}
20806_ACEOF
20807rm -f conftest.$ac_objext
20808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20809 (eval $ac_compile) 2>conftest.er1
a848cd7e 20810 ac_status=$?
ac1cb8d3
VS
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
a848cd7e
SC
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
ca5c6ac3 20816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_lo=0 ac_mid=0
20829 while :; do
20830 cat >conftest.$ac_ext <<_ACEOF
20831/* confdefs.h. */
20832_ACEOF
20833cat confdefs.h >>conftest.$ac_ext
20834cat >>conftest.$ac_ext <<_ACEOF
20835/* end confdefs.h. */
20836$ac_includes_default
20837int
20838main ()
20839{
20840static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20841test_array [0] = 0
20842
20843 ;
20844 return 0;
20845}
20846_ACEOF
20847rm -f conftest.$ac_objext
20848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20849 (eval $ac_compile) 2>conftest.er1
a848cd7e 20850 ac_status=$?
ac1cb8d3
VS
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
a848cd7e
SC
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
ca5c6ac3 20856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; } &&
20862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ac_hi=$ac_mid; break
20869else
20870 echo "$as_me: failed program was:" >&5
20871sed 's/^/| /' conftest.$ac_ext >&5
20872
20873ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20874 if test $ac_lo -le $ac_mid; then
20875 ac_lo= ac_hi=
20876 break
20877 fi
20878 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20879fi
ac1cb8d3 20880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20881 done
20882else
20883 echo "$as_me: failed program was:" >&5
20884sed 's/^/| /' conftest.$ac_ext >&5
20885
20886cat >conftest.$ac_ext <<_ACEOF
20887/* confdefs.h. */
20888_ACEOF
20889cat confdefs.h >>conftest.$ac_ext
20890cat >>conftest.$ac_ext <<_ACEOF
20891/* end confdefs.h. */
20892$ac_includes_default
20893int
20894main ()
20895{
20896static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20897test_array [0] = 0
20898
20899 ;
20900 return 0;
20901}
20902_ACEOF
20903rm -f conftest.$ac_objext
20904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20905 (eval $ac_compile) 2>conftest.er1
a848cd7e 20906 ac_status=$?
ac1cb8d3
VS
20907 grep -v '^ *+' conftest.er1 >conftest.err
20908 rm -f conftest.er1
20909 cat conftest.err >&5
a848cd7e
SC
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
ca5c6ac3 20912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; } &&
20918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20921 ac_status=$?
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 ac_hi=-1 ac_mid=-1
20925 while :; do
20926 cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h. */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h. */
20932$ac_includes_default
20933int
20934main ()
20935{
20936static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20937test_array [0] = 0
20938
20939 ;
20940 return 0;
20941}
20942_ACEOF
20943rm -f conftest.$ac_objext
20944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20945 (eval $ac_compile) 2>conftest.er1
a848cd7e 20946 ac_status=$?
ac1cb8d3
VS
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
a848cd7e
SC
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
ca5c6ac3 20952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 ac_lo=$ac_mid; break
20965else
20966 echo "$as_me: failed program was:" >&5
20967sed 's/^/| /' conftest.$ac_ext >&5
20968
20969ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20970 if test $ac_mid -le $ac_hi; then
20971 ac_lo= ac_hi=
20972 break
20973 fi
20974 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20975fi
ac1cb8d3 20976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20977 done
20978else
20979 echo "$as_me: failed program was:" >&5
20980sed 's/^/| /' conftest.$ac_ext >&5
20981
20982ac_lo= ac_hi=
20983fi
ac1cb8d3 20984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20985fi
ac1cb8d3 20986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20987# Binary search between lo and hi bounds.
20988while test "x$ac_lo" != "x$ac_hi"; do
20989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20990 cat >conftest.$ac_ext <<_ACEOF
20991/* confdefs.h. */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h. */
20996$ac_includes_default
20997int
20998main ()
20999{
21000static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21001test_array [0] = 0
21002
21003 ;
21004 return 0;
21005}
21006_ACEOF
21007rm -f conftest.$ac_objext
21008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21009 (eval $ac_compile) 2>conftest.er1
a848cd7e 21010 ac_status=$?
ac1cb8d3
VS
21011 grep -v '^ *+' conftest.er1 >conftest.err
21012 rm -f conftest.er1
21013 cat conftest.err >&5
a848cd7e
SC
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
ca5c6ac3 21016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; } &&
21022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 ac_hi=$ac_mid
21029else
21030 echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033ac_lo=`expr '(' $ac_mid ')' + 1`
21034fi
ac1cb8d3 21035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21036done
21037case $ac_lo in
21038?*) ac_cv_sizeof_long_long=$ac_lo;;
21039'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21040See \`config.log' for more details." >&5
21041echo "$as_me: error: cannot compute sizeof (long long), 77
21042See \`config.log' for more details." >&2;}
21043 { (exit 1); exit 1; }; } ;;
21044esac
21045else
21046 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21047 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21048echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21049 { (exit 1); exit 1; }; }
21050else
21051 cat >conftest.$ac_ext <<_ACEOF
21052/* confdefs.h. */
21053_ACEOF
21054cat confdefs.h >>conftest.$ac_ext
21055cat >>conftest.$ac_ext <<_ACEOF
21056/* end confdefs.h. */
21057$ac_includes_default
21058long longval () { return (long) (sizeof (long long)); }
21059unsigned long ulongval () { return (long) (sizeof (long long)); }
21060#include <stdio.h>
21061#include <stdlib.h>
21062int
21063main ()
21064{
21065
21066 FILE *f = fopen ("conftest.val", "w");
21067 if (! f)
21068 exit (1);
21069 if (((long) (sizeof (long long))) < 0)
21070 {
21071 long i = longval ();
21072 if (i != ((long) (sizeof (long long))))
21073 exit (1);
21074 fprintf (f, "%ld\n", i);
21075 }
21076 else
21077 {
21078 unsigned long i = ulongval ();
21079 if (i != ((long) (sizeof (long long))))
21080 exit (1);
21081 fprintf (f, "%lu\n", i);
21082 }
21083 exit (ferror (f) || fclose (f) != 0);
21084
21085 ;
21086 return 0;
21087}
21088_ACEOF
21089rm -f conftest$ac_exeext
21090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21091 (eval $ac_link) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_sizeof_long_long=`cat conftest.val`
21101else
21102 echo "$as_me: program exited with status $ac_status" >&5
21103echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
21106( exit $ac_status )
21107{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21108See \`config.log' for more details." >&5
21109echo "$as_me: error: cannot compute sizeof (long long), 77
21110See \`config.log' for more details." >&2;}
21111 { (exit 1); exit 1; }; }
21112fi
ac1cb8d3 21113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21114fi
21115fi
21116rm -f conftest.val
21117else
21118 ac_cv_sizeof_long_long=0
21119fi
21120fi
21121echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21122echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21123cat >>confdefs.h <<_ACEOF
21124#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21125_ACEOF
21126
21127
21128 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21129 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21130 fi
21131 ;;
21132 * )
21133 echo "$as_me:$LINENO: checking for long long" >&5
21134echo $ECHO_N "checking for long long... $ECHO_C" >&6
21135if test "${ac_cv_type_long_long+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21137else
21138 cat >conftest.$ac_ext <<_ACEOF
21139/* confdefs.h. */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
21143/* end confdefs.h. */
21144$ac_includes_default
21145int
21146main ()
21147{
21148if ((long long *) 0)
21149 return 0;
21150if (sizeof (long long))
21151 return 0;
21152 ;
21153 return 0;
21154}
21155_ACEOF
21156rm -f conftest.$ac_objext
21157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21158 (eval $ac_compile) 2>conftest.er1
a848cd7e 21159 ac_status=$?
ac1cb8d3
VS
21160 grep -v '^ *+' conftest.er1 >conftest.err
21161 rm -f conftest.er1
21162 cat conftest.err >&5
a848cd7e
SC
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } &&
ca5c6ac3 21165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; } &&
21171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_type_long_long=yes
21178else
21179 echo "$as_me: failed program was:" >&5
21180sed 's/^/| /' conftest.$ac_ext >&5
21181
21182ac_cv_type_long_long=no
21183fi
ac1cb8d3 21184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21185fi
21186echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21187echo "${ECHO_T}$ac_cv_type_long_long" >&6
21188
21189echo "$as_me:$LINENO: checking size of long long" >&5
21190echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21191if test "${ac_cv_sizeof_long_long+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193else
21194 if test "$ac_cv_type_long_long" = yes; then
21195 # The cast to unsigned long works around a bug in the HP C Compiler
21196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21198 # This bug is HP SR number 8606223364.
21199 if test "$cross_compiling" = yes; then
21200 # Depending upon the size, compute the lo and hi bounds.
21201cat >conftest.$ac_ext <<_ACEOF
21202/* confdefs.h. */
21203_ACEOF
21204cat confdefs.h >>conftest.$ac_ext
21205cat >>conftest.$ac_ext <<_ACEOF
21206/* end confdefs.h. */
21207$ac_includes_default
21208int
21209main ()
21210{
21211static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21212test_array [0] = 0
21213
21214 ;
21215 return 0;
21216}
21217_ACEOF
21218rm -f conftest.$ac_objext
21219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21220 (eval $ac_compile) 2>conftest.er1
a848cd7e 21221 ac_status=$?
ac1cb8d3
VS
21222 grep -v '^ *+' conftest.er1 >conftest.err
21223 rm -f conftest.er1
21224 cat conftest.err >&5
a848cd7e
SC
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
ca5c6ac3 21227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; } &&
21233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21239 ac_lo=0 ac_mid=0
21240 while :; do
21241 cat >conftest.$ac_ext <<_ACEOF
21242/* confdefs.h. */
21243_ACEOF
21244cat confdefs.h >>conftest.$ac_ext
21245cat >>conftest.$ac_ext <<_ACEOF
21246/* end confdefs.h. */
21247$ac_includes_default
21248int
21249main ()
21250{
21251static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21252test_array [0] = 0
21253
21254 ;
21255 return 0;
21256}
21257_ACEOF
21258rm -f conftest.$ac_objext
21259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21260 (eval $ac_compile) 2>conftest.er1
a848cd7e 21261 ac_status=$?
ac1cb8d3
VS
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
a848cd7e
SC
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
ca5c6ac3 21267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_hi=$ac_mid; break
21280else
21281 echo "$as_me: failed program was:" >&5
21282sed 's/^/| /' conftest.$ac_ext >&5
21283
21284ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21285 if test $ac_lo -le $ac_mid; then
21286 ac_lo= ac_hi=
21287 break
21288 fi
21289 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21290fi
ac1cb8d3 21291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21292 done
21293else
21294 echo "$as_me: failed program was:" >&5
21295sed 's/^/| /' conftest.$ac_ext >&5
21296
21297cat >conftest.$ac_ext <<_ACEOF
21298/* confdefs.h. */
21299_ACEOF
21300cat confdefs.h >>conftest.$ac_ext
21301cat >>conftest.$ac_ext <<_ACEOF
21302/* end confdefs.h. */
21303$ac_includes_default
21304int
21305main ()
21306{
21307static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21308test_array [0] = 0
21309
21310 ;
21311 return 0;
21312}
21313_ACEOF
21314rm -f conftest.$ac_objext
21315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21316 (eval $ac_compile) 2>conftest.er1
a848cd7e 21317 ac_status=$?
ac1cb8d3
VS
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
a848cd7e
SC
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
ca5c6ac3 21323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; } &&
21329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 ac_hi=-1 ac_mid=-1
21336 while :; do
21337 cat >conftest.$ac_ext <<_ACEOF
21338/* confdefs.h. */
21339_ACEOF
21340cat confdefs.h >>conftest.$ac_ext
21341cat >>conftest.$ac_ext <<_ACEOF
21342/* end confdefs.h. */
21343$ac_includes_default
21344int
21345main ()
21346{
21347static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21348test_array [0] = 0
21349
21350 ;
21351 return 0;
21352}
21353_ACEOF
21354rm -f conftest.$ac_objext
21355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21356 (eval $ac_compile) 2>conftest.er1
a848cd7e 21357 ac_status=$?
ac1cb8d3
VS
21358 grep -v '^ *+' conftest.er1 >conftest.err
21359 rm -f conftest.er1
21360 cat conftest.err >&5
a848cd7e
SC
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
ca5c6ac3 21363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_lo=$ac_mid; break
21376else
21377 echo "$as_me: failed program was:" >&5
21378sed 's/^/| /' conftest.$ac_ext >&5
21379
21380ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21381 if test $ac_mid -le $ac_hi; then
21382 ac_lo= ac_hi=
21383 break
21384 fi
21385 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21386fi
ac1cb8d3 21387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21388 done
21389else
21390 echo "$as_me: failed program was:" >&5
21391sed 's/^/| /' conftest.$ac_ext >&5
21392
21393ac_lo= ac_hi=
21394fi
ac1cb8d3 21395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21396fi
ac1cb8d3 21397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21398# Binary search between lo and hi bounds.
21399while test "x$ac_lo" != "x$ac_hi"; do
21400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21401 cat >conftest.$ac_ext <<_ACEOF
21402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
21407$ac_includes_default
21408int
21409main ()
21410{
21411static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21412test_array [0] = 0
21413
21414 ;
21415 return 0;
21416}
21417_ACEOF
21418rm -f conftest.$ac_objext
21419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21420 (eval $ac_compile) 2>conftest.er1
a848cd7e 21421 ac_status=$?
ac1cb8d3
VS
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
a848cd7e
SC
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
ca5c6ac3 21427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; } &&
21433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_hi=$ac_mid
21440else
21441 echo "$as_me: failed program was:" >&5
21442sed 's/^/| /' conftest.$ac_ext >&5
21443
21444ac_lo=`expr '(' $ac_mid ')' + 1`
21445fi
ac1cb8d3 21446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21447done
21448case $ac_lo in
21449?*) ac_cv_sizeof_long_long=$ac_lo;;
21450'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21451See \`config.log' for more details." >&5
21452echo "$as_me: error: cannot compute sizeof (long long), 77
21453See \`config.log' for more details." >&2;}
21454 { (exit 1); exit 1; }; } ;;
21455esac
21456else
21457 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21458 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21459echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21460 { (exit 1); exit 1; }; }
21461else
21462 cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468$ac_includes_default
21469long longval () { return (long) (sizeof (long long)); }
21470unsigned long ulongval () { return (long) (sizeof (long long)); }
21471#include <stdio.h>
21472#include <stdlib.h>
21473int
21474main ()
21475{
21476
21477 FILE *f = fopen ("conftest.val", "w");
21478 if (! f)
21479 exit (1);
21480 if (((long) (sizeof (long long))) < 0)
21481 {
21482 long i = longval ();
21483 if (i != ((long) (sizeof (long long))))
21484 exit (1);
21485 fprintf (f, "%ld\n", i);
21486 }
21487 else
21488 {
21489 unsigned long i = ulongval ();
21490 if (i != ((long) (sizeof (long long))))
21491 exit (1);
21492 fprintf (f, "%lu\n", i);
21493 }
21494 exit (ferror (f) || fclose (f) != 0);
21495
21496 ;
21497 return 0;
21498}
21499_ACEOF
21500rm -f conftest$ac_exeext
21501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21502 (eval $ac_link) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 ac_cv_sizeof_long_long=`cat conftest.val`
21512else
21513 echo "$as_me: program exited with status $ac_status" >&5
21514echo "$as_me: failed program was:" >&5
21515sed 's/^/| /' conftest.$ac_ext >&5
21516
21517( exit $ac_status )
21518{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21519See \`config.log' for more details." >&5
21520echo "$as_me: error: cannot compute sizeof (long long), 77
21521See \`config.log' for more details." >&2;}
21522 { (exit 1); exit 1; }; }
21523fi
ac1cb8d3 21524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21525fi
21526fi
21527rm -f conftest.val
21528else
21529 ac_cv_sizeof_long_long=0
21530fi
21531fi
21532echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21533echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21534cat >>confdefs.h <<_ACEOF
21535#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21536_ACEOF
21537
21538
21539esac
21540
238ecede
MW
21541echo "$as_me:$LINENO: checking for wchar_t" >&5
21542echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21543if test "${ac_cv_type_wchar_t+set}" = set; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21545else
21546 cat >conftest.$ac_ext <<_ACEOF
21547/* confdefs.h. */
21548_ACEOF
21549cat confdefs.h >>conftest.$ac_ext
21550cat >>conftest.$ac_ext <<_ACEOF
21551/* end confdefs.h. */
21552
83d8eb47
MW
21553 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21554 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21555 # error "fake wchar_t"
21556 #endif
21557 #ifdef HAVE_WCHAR_H
21558 # ifdef __CYGWIN__
21559 # include <stddef.h>
21560 # endif
21561 # include <wchar.h>
21562 #endif
21563 #ifdef HAVE_STDLIB_H
21564 # include <stdlib.h>
21565 #endif
21566 #include <stdio.h>
21567
21568
21569
21570int
21571main ()
21572{
21573if ((wchar_t *) 0)
21574 return 0;
21575if (sizeof (wchar_t))
21576 return 0;
21577 ;
21578 return 0;
21579}
21580_ACEOF
21581rm -f conftest.$ac_objext
21582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21583 (eval $ac_compile) 2>conftest.er1
21584 ac_status=$?
21585 grep -v '^ *+' conftest.er1 >conftest.err
21586 rm -f conftest.er1
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
ca5c6ac3 21590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 ac_cv_type_wchar_t=yes
21603else
21604 echo "$as_me: failed program was:" >&5
21605sed 's/^/| /' conftest.$ac_ext >&5
21606
21607ac_cv_type_wchar_t=no
21608fi
21609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21610fi
21611echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21612echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21613
a848cd7e
SC
21614echo "$as_me:$LINENO: checking size of wchar_t" >&5
21615echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21616if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618else
238ecede
MW
21619 if test "$ac_cv_type_wchar_t" = yes; then
21620 # The cast to unsigned long works around a bug in the HP C Compiler
21621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21623 # This bug is HP SR number 8606223364.
21624 if test "$cross_compiling" = yes; then
21625 # Depending upon the size, compute the lo and hi bounds.
21626cat >conftest.$ac_ext <<_ACEOF
21627/* confdefs.h. */
21628_ACEOF
21629cat confdefs.h >>conftest.$ac_ext
21630cat >>conftest.$ac_ext <<_ACEOF
21631/* end confdefs.h. */
21632
83d8eb47
MW
21633 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21634 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21635 # error "fake wchar_t"
21636 #endif
21637 #ifdef HAVE_WCHAR_H
21638 # ifdef __CYGWIN__
21639 # include <stddef.h>
21640 # endif
21641 # include <wchar.h>
21642 #endif
21643 #ifdef HAVE_STDLIB_H
21644 # include <stdlib.h>
21645 #endif
21646 #include <stdio.h>
21647
21648
21649
21650int
21651main ()
21652{
21653static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21654test_array [0] = 0
21655
21656 ;
21657 return 0;
21658}
21659_ACEOF
21660rm -f conftest.$ac_objext
21661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21662 (eval $ac_compile) 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } &&
ca5c6ac3 21669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; } &&
21675 { ac_try='test -s conftest.$ac_objext'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 ac_lo=0 ac_mid=0
21682 while :; do
21683 cat >conftest.$ac_ext <<_ACEOF
21684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
21689
83d8eb47
MW
21690 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21691 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21692 # error "fake wchar_t"
21693 #endif
21694 #ifdef HAVE_WCHAR_H
21695 # ifdef __CYGWIN__
21696 # include <stddef.h>
21697 # endif
21698 # include <wchar.h>
21699 #endif
21700 #ifdef HAVE_STDLIB_H
21701 # include <stdlib.h>
21702 #endif
21703 #include <stdio.h>
21704
21705
21706
21707int
21708main ()
21709{
21710static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21711test_array [0] = 0
21712
21713 ;
21714 return 0;
21715}
21716_ACEOF
21717rm -f conftest.$ac_objext
21718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21719 (eval $ac_compile) 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } &&
ca5c6ac3 21726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest.$ac_objext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 ac_hi=$ac_mid; break
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743ac_lo=`expr $ac_mid + 1`
21744 if test $ac_lo -le $ac_mid; then
21745 ac_lo= ac_hi=
21746 break
21747 fi
21748 ac_mid=`expr 2 '*' $ac_mid + 1`
21749fi
21750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21751 done
21752else
21753 echo "$as_me: failed program was:" >&5
21754sed 's/^/| /' conftest.$ac_ext >&5
21755
21756cat >conftest.$ac_ext <<_ACEOF
21757/* confdefs.h. */
21758_ACEOF
21759cat confdefs.h >>conftest.$ac_ext
21760cat >>conftest.$ac_ext <<_ACEOF
21761/* end confdefs.h. */
21762
83d8eb47
MW
21763 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21764 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21765 # error "fake wchar_t"
21766 #endif
21767 #ifdef HAVE_WCHAR_H
21768 # ifdef __CYGWIN__
21769 # include <stddef.h>
21770 # endif
21771 # include <wchar.h>
21772 #endif
21773 #ifdef HAVE_STDLIB_H
21774 # include <stdlib.h>
21775 #endif
21776 #include <stdio.h>
21777
21778
21779
21780int
21781main ()
21782{
21783static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21784test_array [0] = 0
21785
21786 ;
21787 return 0;
21788}
21789_ACEOF
21790rm -f conftest.$ac_objext
21791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21792 (eval $ac_compile) 2>conftest.er1
21793 ac_status=$?
21794 grep -v '^ *+' conftest.er1 >conftest.err
21795 rm -f conftest.er1
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } &&
ca5c6ac3 21799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; } &&
21805 { ac_try='test -s conftest.$ac_objext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_hi=-1 ac_mid=-1
21812 while :; do
21813 cat >conftest.$ac_ext <<_ACEOF
21814/* confdefs.h. */
21815_ACEOF
21816cat confdefs.h >>conftest.$ac_ext
21817cat >>conftest.$ac_ext <<_ACEOF
21818/* end confdefs.h. */
21819
83d8eb47
MW
21820 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21821 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21822 # error "fake wchar_t"
21823 #endif
21824 #ifdef HAVE_WCHAR_H
21825 # ifdef __CYGWIN__
21826 # include <stddef.h>
21827 # endif
21828 # include <wchar.h>
21829 #endif
21830 #ifdef HAVE_STDLIB_H
21831 # include <stdlib.h>
21832 #endif
21833 #include <stdio.h>
21834
21835
21836
21837int
21838main ()
21839{
21840static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21841test_array [0] = 0
21842
21843 ;
21844 return 0;
21845}
21846_ACEOF
21847rm -f conftest.$ac_objext
21848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849 (eval $ac_compile) 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
ca5c6ac3 21856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; } &&
21862 { ac_try='test -s conftest.$ac_objext'
21863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864 (eval $ac_try) 2>&5
21865 ac_status=$?
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_lo=$ac_mid; break
21869else
21870 echo "$as_me: failed program was:" >&5
21871sed 's/^/| /' conftest.$ac_ext >&5
21872
21873ac_hi=`expr '(' $ac_mid ')' - 1`
21874 if test $ac_mid -le $ac_hi; then
21875 ac_lo= ac_hi=
21876 break
21877 fi
21878 ac_mid=`expr 2 '*' $ac_mid`
21879fi
21880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21881 done
21882else
21883 echo "$as_me: failed program was:" >&5
21884sed 's/^/| /' conftest.$ac_ext >&5
21885
21886ac_lo= ac_hi=
21887fi
21888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21889fi
21890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21891# Binary search between lo and hi bounds.
21892while test "x$ac_lo" != "x$ac_hi"; do
21893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21894 cat >conftest.$ac_ext <<_ACEOF
21895/* confdefs.h. */
21896_ACEOF
21897cat confdefs.h >>conftest.$ac_ext
21898cat >>conftest.$ac_ext <<_ACEOF
21899/* end confdefs.h. */
21900
83d8eb47
MW
21901 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21902 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21903 # error "fake wchar_t"
21904 #endif
21905 #ifdef HAVE_WCHAR_H
21906 # ifdef __CYGWIN__
21907 # include <stddef.h>
21908 # endif
21909 # include <wchar.h>
21910 #endif
21911 #ifdef HAVE_STDLIB_H
21912 # include <stdlib.h>
21913 #endif
21914 #include <stdio.h>
a848cd7e 21915
a848cd7e 21916
a848cd7e 21917
238ecede
MW
21918int
21919main ()
21920{
21921static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21922test_array [0] = 0
a848cd7e 21923
238ecede
MW
21924 ;
21925 return 0;
21926}
21927_ACEOF
21928rm -f conftest.$ac_objext
21929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21930 (eval $ac_compile) 2>conftest.er1
21931 ac_status=$?
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } &&
ca5c6ac3 21937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_hi=$ac_mid
21950else
21951 echo "$as_me: failed program was:" >&5
21952sed 's/^/| /' conftest.$ac_ext >&5
21953
21954ac_lo=`expr '(' $ac_mid ')' + 1`
21955fi
21956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21957done
21958case $ac_lo in
21959?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21960'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21961See \`config.log' for more details." >&5
21962echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21963See \`config.log' for more details." >&2;}
21964 { (exit 1); exit 1; }; } ;;
21965esac
21966else
21967 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21968 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21969echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21970 { (exit 1); exit 1; }; }
a848cd7e
SC
21971else
21972 cat >conftest.$ac_ext <<_ACEOF
21973/* confdefs.h. */
21974_ACEOF
21975cat confdefs.h >>conftest.$ac_ext
21976cat >>conftest.$ac_ext <<_ACEOF
21977/* end confdefs.h. */
21978
83d8eb47
MW
21979 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21980 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21981 # error "fake wchar_t"
21982 #endif
21983 #ifdef HAVE_WCHAR_H
21984 # ifdef __CYGWIN__
21985 # include <stddef.h>
21986 # endif
21987 # include <wchar.h>
21988 #endif
21989 #ifdef HAVE_STDLIB_H
21990 # include <stdlib.h>
21991 #endif
21992 #include <stdio.h>
21993
21994
21995
21996long longval () { return (long) (sizeof (wchar_t)); }
21997unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21998#include <stdio.h>
21999#include <stdlib.h>
22000int
22001main ()
22002{
a848cd7e 22003
238ecede
MW
22004 FILE *f = fopen ("conftest.val", "w");
22005 if (! f)
22006 exit (1);
22007 if (((long) (sizeof (wchar_t))) < 0)
22008 {
22009 long i = longval ();
22010 if (i != ((long) (sizeof (wchar_t))))
22011 exit (1);
22012 fprintf (f, "%ld\n", i);
22013 }
22014 else
22015 {
22016 unsigned long i = ulongval ();
22017 if (i != ((long) (sizeof (wchar_t))))
22018 exit (1);
22019 fprintf (f, "%lu\n", i);
22020 }
22021 exit (ferror (f) || fclose (f) != 0);
22022
22023 ;
22024 return 0;
22025}
a848cd7e
SC
22026_ACEOF
22027rm -f conftest$ac_exeext
22028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22029 (eval $ac_link) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
238ecede 22038 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22039else
22040 echo "$as_me: program exited with status $ac_status" >&5
22041echo "$as_me: failed program was:" >&5
22042sed 's/^/| /' conftest.$ac_ext >&5
22043
22044( exit $ac_status )
238ecede
MW
22045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22046See \`config.log' for more details." >&5
22047echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22048See \`config.log' for more details." >&2;}
22049 { (exit 1); exit 1; }; }
a848cd7e 22050fi
ac1cb8d3 22051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22052fi
a848cd7e 22053fi
238ecede
MW
22054rm -f conftest.val
22055else
22056 ac_cv_sizeof_wchar_t=0
22057fi
22058fi
22059echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22060echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22061cat >>confdefs.h <<_ACEOF
238ecede 22062#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22063_ACEOF
22064
22065
47a7e797
MW
22066if test "$ac_cv_sizeof_wchar_t" != "0"; then
22067 wxUSE_WCHAR_T=yes
22068else
22069 wxUSE_WCHAR_T=no
22070fi
238ecede 22071
ba3d13e1
VZ
22072echo "$as_me:$LINENO: checking for va_copy" >&5
22073echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22074if test "${wx_cv_func_va_copy+set}" = set; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22076else
22077
22078 cat >conftest.$ac_ext <<_ACEOF
22079
22080 #include <stdarg.h>
22081 void foo(char *f, ...)
22082 {
22083 va_list ap1, ap2;
22084 va_start(ap1, f);
22085 va_copy(ap2, ap1);
22086 va_end(ap2);
22087 va_end(ap1);
22088 }
5886b072
VZ
22089 int main()
22090 {
b902e639
VZ
22091 foo("hi", 17);
22092 return 0;
5886b072 22093 }
ba3d13e1
VZ
22094_ACEOF
22095rm -f conftest.$ac_objext conftest$ac_exeext
22096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22097 (eval $ac_link) 2>conftest.er1
22098 ac_status=$?
22099 grep -v '^ *+' conftest.er1 >conftest.err
22100 rm -f conftest.er1
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } &&
ca5c6ac3 22104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22106 (eval $ac_try) 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; } &&
22110 { ac_try='test -s conftest$ac_exeext'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
22116 wx_cv_func_va_copy=yes
22117else
22118 echo "$as_me: failed program was:" >&5
22119sed 's/^/| /' conftest.$ac_ext >&5
22120
22121wx_cv_func_va_copy=no
22122
22123fi
22124rm -f conftest.err conftest.$ac_objext \
22125 conftest$ac_exeext conftest.$ac_ext
22126
22127
22128fi
22129echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22130echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22131
22132if test $wx_cv_func_va_copy = "yes"; then
22133 cat >>confdefs.h <<\_ACEOF
22134#define HAVE_VA_COPY 1
22135_ACEOF
22136
22137else
22138 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22139echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22140if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22142else
22143
22144 if test "$cross_compiling" = yes; then
22145 wx_cv_type_va_list_lvalue=yes
22146
22147else
22148 cat >conftest.$ac_ext <<_ACEOF
22149
22150 #include <stdarg.h>
22151 int foo(char *f, ...)
22152 {
22153 va_list ap1, ap2;
22154 va_start(ap1, f);
22155 ap2 = ap1;
22156 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22157 return 1;
22158 va_end(ap2);
22159 va_end(ap1);
22160 return 0;
22161 }
22162 int main()
22163 {
22164 return foo("hi", 17);
22165 }
22166_ACEOF
22167rm -f conftest$ac_exeext
22168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22169 (eval $ac_link) 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 wx_cv_type_va_list_lvalue=yes
22179else
22180 echo "$as_me: program exited with status $ac_status" >&5
22181echo "$as_me: failed program was:" >&5
22182sed 's/^/| /' conftest.$ac_ext >&5
22183
22184( exit $ac_status )
22185wx_cv_type_va_list_lvalue=no
22186fi
22187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22188fi
22189
22190
22191fi
22192echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22193echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22194
22195 if test $wx_cv_type_va_list_lvalue != "yes"; then
22196 cat >>confdefs.h <<\_ACEOF
22197#define VA_LIST_IS_ARRAY 1
22198_ACEOF
22199
22200 fi
22201fi
22202
ca766534
VS
22203echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22204echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22205if test "${wx_cv_have_variadic_macros+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207else
22208
22209 cat >conftest.$ac_ext <<_ACEOF
22210/* confdefs.h. */
22211_ACEOF
22212cat confdefs.h >>conftest.$ac_ext
22213cat >>conftest.$ac_ext <<_ACEOF
22214/* end confdefs.h. */
22215
22216 #include <stdio.h>
22217 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22218
22219int
22220main ()
22221{
22222
22223 test("%s %d %p", "test", 1, 0);
22224
22225
22226 ;
22227 return 0;
22228}
22229_ACEOF
22230rm -f conftest.$ac_objext
22231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22232 (eval $ac_compile) 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } &&
ca5c6ac3 22239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241 (eval $ac_try) 2>&5
22242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }; } &&
22245 { ac_try='test -s conftest.$ac_objext'
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22248 ac_status=$?
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; }; then
22251 wx_cv_have_variadic_macros=yes
22252else
22253 echo "$as_me: failed program was:" >&5
22254sed 's/^/| /' conftest.$ac_ext >&5
22255
22256wx_cv_have_variadic_macros=no
22257
22258fi
22259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22260
22261
22262fi
22263echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22264echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22265
22266if test $wx_cv_have_variadic_macros = "yes"; then
22267 cat >>confdefs.h <<\_ACEOF
22268#define HAVE_VARIADIC_MACROS 1
22269_ACEOF
22270
22271fi
22272
a848cd7e
SC
22273# Check whether --enable-largefile or --disable-largefile was given.
22274if test "${enable_largefile+set}" = set; then
22275 enableval="$enable_largefile"
22276
22277fi;
22278if test "$enable_largefile" != no; then
22279 wx_largefile=no
22280
22281 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22282echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22283if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22285else
22286
22287 cat >conftest.$ac_ext <<_ACEOF
22288/* confdefs.h. */
22289_ACEOF
22290cat confdefs.h >>conftest.$ac_ext
22291cat >>conftest.$ac_ext <<_ACEOF
22292/* end confdefs.h. */
22293#define _FILE_OFFSET_BITS 64
22294 #include <sys/types.h>
22295int
22296main ()
22297{
22298typedef struct {
22299 unsigned int field: sizeof(off_t) == 8;
22300} wxlf;
22301
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext
22307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22308 (eval $ac_compile) 2>conftest.er1
a848cd7e 22309 ac_status=$?
ac1cb8d3
VS
22310 grep -v '^ *+' conftest.er1 >conftest.err
22311 rm -f conftest.er1
22312 cat conftest.err >&5
a848cd7e
SC
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } &&
ca5c6ac3 22315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5
22318 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } &&
22321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
22327 ac_cv_sys_file_offset_bits=64
22328else
22329 echo "$as_me: failed program was:" >&5
22330sed 's/^/| /' conftest.$ac_ext >&5
22331
22332ac_cv_sys_file_offset_bits=no
22333fi
ac1cb8d3 22334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22335
22336
22337fi
22338echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22339echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22340
22341 if test "$ac_cv_sys_file_offset_bits" != no; then
22342 wx_largefile=yes
22343 cat >>confdefs.h <<_ACEOF
22344#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22345_ACEOF
22346
22347 fi
22348
22349 if test "x$wx_largefile" != "xyes"; then
22350
22351 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22352echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22353if test "${ac_cv_sys_large_files+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22355else
22356
22357 cat >conftest.$ac_ext <<_ACEOF
22358/* confdefs.h. */
22359_ACEOF
22360cat confdefs.h >>conftest.$ac_ext
22361cat >>conftest.$ac_ext <<_ACEOF
22362/* end confdefs.h. */
22363#define _LARGE_FILES 1
22364 #include <sys/types.h>
22365int
22366main ()
22367{
22368typedef struct {
22369 unsigned int field: sizeof(off_t) == 8;
22370} wxlf;
22371
22372 ;
22373 return 0;
22374}
22375_ACEOF
22376rm -f conftest.$ac_objext
22377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22378 (eval $ac_compile) 2>conftest.er1
a848cd7e 22379 ac_status=$?
ac1cb8d3
VS
22380 grep -v '^ *+' conftest.er1 >conftest.err
22381 rm -f conftest.er1
22382 cat conftest.err >&5
a848cd7e
SC
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
ca5c6ac3 22385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; } &&
22391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 ac_cv_sys_large_files=1
22398else
22399 echo "$as_me: failed program was:" >&5
22400sed 's/^/| /' conftest.$ac_ext >&5
22401
22402ac_cv_sys_large_files=no
22403fi
ac1cb8d3 22404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22405
22406
22407fi
22408echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22409echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22410
22411 if test "$ac_cv_sys_large_files" != no; then
22412 wx_largefile=yes
22413 cat >>confdefs.h <<_ACEOF
22414#define _LARGE_FILES $ac_cv_sys_large_files
22415_ACEOF
22416
22417 fi
22418
22419 fi
22420
22421 echo "$as_me:$LINENO: checking if large file support is available" >&5
22422echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22423 if test "x$wx_largefile" = "xyes"; then
22424 cat >>confdefs.h <<\_ACEOF
22425#define HAVE_LARGEFILE_SUPPORT 1
22426_ACEOF
22427
22428 fi
22429 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22430echo "${ECHO_T}$wx_largefile" >&6
22431fi
22432
5b674b9d
DE
22433
22434if test "x$wx_largefile" = "xyes"; then
22435 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22436 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22437
22438 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22439 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22440echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22441if test "${wx_cv_STDC_EXT_required+set}" = set; then
22442 echo $ECHO_N "(cached) $ECHO_C" >&6
22443else
22444
00421666
MW
22445 cat >conftest.$ac_ext <<_ACEOF
22446/* confdefs.h. */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h. */
22451
22452int
22453main ()
22454{
22455
22456 #ifndef __STDC_EXT__
22457 choke me
22458 #endif
22459
22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext
22465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22466 (eval $ac_compile) 2>conftest.er1
22467 ac_status=$?
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } &&
ca5c6ac3 22473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 wx_cv_STDC_EXT_required=no
22486else
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490wx_cv_STDC_EXT_required=yes
22491
22492fi
22493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22494
22495
22496fi
22497echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22498echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22499 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22500 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22501 fi
22502 fi
5b674b9d 22503 else
5ff751d6 22504 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22505 fi
22506 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22507echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22508if test "${ac_cv_sys_largefile_source+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22510else
22511 while :; do
22512 ac_cv_sys_largefile_source=no
22513 cat >conftest.$ac_ext <<_ACEOF
22514/* confdefs.h. */
22515_ACEOF
22516cat confdefs.h >>conftest.$ac_ext
22517cat >>conftest.$ac_ext <<_ACEOF
22518/* end confdefs.h. */
22519#include <stdio.h>
22520int
22521main ()
22522{
22523return !fseeko;
22524 ;
22525 return 0;
22526}
22527_ACEOF
22528rm -f conftest.$ac_objext
22529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530 (eval $ac_compile) 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
ca5c6ac3 22537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; } &&
22543 { ac_try='test -s conftest.$ac_objext'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549 break
22550else
22551 echo "$as_me: failed program was:" >&5
22552sed 's/^/| /' conftest.$ac_ext >&5
22553
22554fi
22555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22556 cat >conftest.$ac_ext <<_ACEOF
22557/* confdefs.h. */
22558_ACEOF
22559cat confdefs.h >>conftest.$ac_ext
22560cat >>conftest.$ac_ext <<_ACEOF
22561/* end confdefs.h. */
22562#define _LARGEFILE_SOURCE 1
22563#include <stdio.h>
22564int
22565main ()
22566{
22567return !fseeko;
22568 ;
22569 return 0;
22570}
22571_ACEOF
22572rm -f conftest.$ac_objext
22573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22574 (eval $ac_compile) 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } &&
ca5c6ac3 22581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583 (eval $ac_try) 2>&5
22584 ac_status=$?
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; } &&
22587 { ac_try='test -s conftest.$ac_objext'
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; }; then
22593 ac_cv_sys_largefile_source=1; break
22594else
22595 echo "$as_me: failed program was:" >&5
22596sed 's/^/| /' conftest.$ac_ext >&5
22597
22598fi
22599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22600 break
22601done
22602fi
22603echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22604echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22605if test "$ac_cv_sys_largefile_source" != no; then
22606
22607cat >>confdefs.h <<_ACEOF
22608#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22609_ACEOF
22610
22611fi
22612rm -f conftest*
22613
22614# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22615# in glibc 2.1.3, but that breaks too many other things.
22616# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22617echo "$as_me:$LINENO: checking for fseeko" >&5
22618echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22619if test "${ac_cv_func_fseeko+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621else
22622 cat >conftest.$ac_ext <<_ACEOF
22623/* confdefs.h. */
22624_ACEOF
22625cat confdefs.h >>conftest.$ac_ext
22626cat >>conftest.$ac_ext <<_ACEOF
22627/* end confdefs.h. */
22628#include <stdio.h>
22629int
22630main ()
22631{
22632return fseeko && fseeko (stdin, 0, 0);
22633 ;
22634 return 0;
22635}
22636_ACEOF
22637rm -f conftest.$ac_objext conftest$ac_exeext
22638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22639 (eval $ac_link) 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } &&
ca5c6ac3 22646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22649 ac_status=$?
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; } &&
22652 { ac_try='test -s conftest$ac_exeext'
22653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654 (eval $ac_try) 2>&5
22655 ac_status=$?
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; }; then
22658 ac_cv_func_fseeko=yes
22659else
22660 echo "$as_me: failed program was:" >&5
22661sed 's/^/| /' conftest.$ac_ext >&5
22662
22663ac_cv_func_fseeko=no
22664fi
22665rm -f conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext conftest.$ac_ext
22667fi
22668echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22669echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22670if test $ac_cv_func_fseeko = yes; then
22671
22672cat >>confdefs.h <<\_ACEOF
22673#define HAVE_FSEEKO 1
22674_ACEOF
22675
22676fi
22677
5b674b9d 22678 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22679 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22680 fi
a848cd7e
SC
22681fi
22682
22683echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22684echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22685if test "${ac_cv_c_bigendian+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22687else
22688 ac_cv_c_bigendian=unknown
22689# See if sys/param.h defines the BYTE_ORDER macro.
22690cat >conftest.$ac_ext <<_ACEOF
22691/* confdefs.h. */
22692_ACEOF
22693cat confdefs.h >>conftest.$ac_ext
22694cat >>conftest.$ac_ext <<_ACEOF
22695/* end confdefs.h. */
22696#include <sys/types.h>
22697#include <sys/param.h>
22698int
22699main ()
22700{
22701
22702#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22703 bogus endian macros
22704#endif
22705 ;
22706 return 0;
22707}
22708_ACEOF
22709rm -f conftest.$ac_objext
22710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22711 (eval $ac_compile) 2>conftest.er1
a848cd7e 22712 ac_status=$?
ac1cb8d3
VS
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
a848cd7e
SC
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } &&
ca5c6ac3 22718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; } &&
22724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; }; then
22730 # It does; now see whether it defined to BIG_ENDIAN or not.
22731cat >conftest.$ac_ext <<_ACEOF
22732/* confdefs.h. */
22733_ACEOF
22734cat confdefs.h >>conftest.$ac_ext
22735cat >>conftest.$ac_ext <<_ACEOF
22736/* end confdefs.h. */
22737#include <sys/types.h>
22738#include <sys/param.h>
22739int
22740main ()
22741{
22742
22743#if BYTE_ORDER != BIG_ENDIAN
22744 not big endian
22745#endif
22746 ;
22747 return 0;
22748}
22749_ACEOF
22750rm -f conftest.$ac_objext
22751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22752 (eval $ac_compile) 2>conftest.er1
a848cd7e 22753 ac_status=$?
ac1cb8d3
VS
22754 grep -v '^ *+' conftest.er1 >conftest.err
22755 rm -f conftest.er1
22756 cat conftest.err >&5
a848cd7e
SC
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } &&
ca5c6ac3 22759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
22765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; }; then
22771 ac_cv_c_bigendian=yes
22772else
22773 echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776ac_cv_c_bigendian=no
22777fi
ac1cb8d3 22778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22779else
22780 echo "$as_me: failed program was:" >&5
22781sed 's/^/| /' conftest.$ac_ext >&5
22782
22783fi
ac1cb8d3 22784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22785if test $ac_cv_c_bigendian = unknown; then
22786if test "$cross_compiling" = yes; then
22787 ac_cv_c_bigendian=unknown
22788else
22789 cat >conftest.$ac_ext <<_ACEOF
22790/* confdefs.h. */
22791_ACEOF
22792cat confdefs.h >>conftest.$ac_ext
22793cat >>conftest.$ac_ext <<_ACEOF
22794/* end confdefs.h. */
22795main () {
22796 /* Are we little or big endian? From Harbison&Steele. */
22797 union
22798 {
22799 long l;
22800 char c[sizeof (long)];
22801 } u;
22802 u.l = 1;
22803 exit (u.c[sizeof (long) - 1] == 1);
22804}
22805_ACEOF
22806rm -f conftest$ac_exeext
22807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22808 (eval $ac_link) 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22814 ac_status=$?
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; }; then
22817 ac_cv_c_bigendian=no
22818else
22819 echo "$as_me: program exited with status $ac_status" >&5
22820echo "$as_me: failed program was:" >&5
22821sed 's/^/| /' conftest.$ac_ext >&5
22822
22823( exit $ac_status )
22824ac_cv_c_bigendian=yes
22825fi
ac1cb8d3 22826rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22827fi
22828fi
22829fi
22830echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22831echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22832if test $ac_cv_c_bigendian = unknown; then
22833 { 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
22834echo "$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;}
22835fi
22836if test $ac_cv_c_bigendian = yes; then
22837 cat >>confdefs.h <<\_ACEOF
22838#define WORDS_BIGENDIAN 1
22839_ACEOF
22840
22841fi
22842
22843
a848cd7e
SC
22844
22845
22846
22847 ac_ext=cc
22848ac_cpp='$CXXCPP $CPPFLAGS'
22849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22852
22853
22854
22855for ac_header in iostream
22856do
22857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22858if eval "test \"\${$as_ac_Header+set}\" = set"; then
22859 echo "$as_me:$LINENO: checking for $ac_header" >&5
22860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22861if eval "test \"\${$as_ac_Header+set}\" = set"; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22863fi
22864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22866else
22867 # Is the header compilable?
22868echo "$as_me:$LINENO: checking $ac_header usability" >&5
22869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22870cat >conftest.$ac_ext <<_ACEOF
22871/* confdefs.h. */
22872_ACEOF
22873cat confdefs.h >>conftest.$ac_ext
22874cat >>conftest.$ac_ext <<_ACEOF
22875/* end confdefs.h. */
22876$ac_includes_default
22877#include <$ac_header>
22878_ACEOF
22879rm -f conftest.$ac_objext
22880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22881 (eval $ac_compile) 2>conftest.er1
a848cd7e 22882 ac_status=$?
ac1cb8d3
VS
22883 grep -v '^ *+' conftest.er1 >conftest.err
22884 rm -f conftest.er1
22885 cat conftest.err >&5
a848cd7e
SC
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } &&
ca5c6ac3 22888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; } &&
22894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22897 ac_status=$?
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; }; then
22900 ac_header_compiler=yes
22901else
22902 echo "$as_me: failed program was:" >&5
22903sed 's/^/| /' conftest.$ac_ext >&5
22904
22905ac_header_compiler=no
22906fi
ac1cb8d3 22907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22909echo "${ECHO_T}$ac_header_compiler" >&6
22910
22911# Is the header present?
22912echo "$as_me:$LINENO: checking $ac_header presence" >&5
22913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22914cat >conftest.$ac_ext <<_ACEOF
22915/* confdefs.h. */
22916_ACEOF
22917cat confdefs.h >>conftest.$ac_ext
22918cat >>conftest.$ac_ext <<_ACEOF
22919/* end confdefs.h. */
22920#include <$ac_header>
22921_ACEOF
22922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } >/dev/null; then
22930 if test -s conftest.err; then
22931 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22933 else
22934 ac_cpp_err=
22935 fi
22936else
22937 ac_cpp_err=yes
22938fi
22939if test -z "$ac_cpp_err"; then
22940 ac_header_preproc=yes
22941else
22942 echo "$as_me: failed program was:" >&5
22943sed 's/^/| /' conftest.$ac_ext >&5
22944
22945 ac_header_preproc=no
22946fi
22947rm -f conftest.err conftest.$ac_ext
22948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22949echo "${ECHO_T}$ac_header_preproc" >&6
22950
22951# So? What about this header?
ac1cb8d3
VS
22952case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22953 yes:no: )
a848cd7e
SC
22954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22958 ac_header_preproc=yes
a848cd7e 22959 ;;
ac1cb8d3 22960 no:yes:* )
a848cd7e
SC
22961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22964echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22968echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22973 (
22974 cat <<\_ASBOX
ac1cb8d3
VS
22975## ----------------------------------------- ##
22976## Report this to wx-dev@lists.wxwidgets.org ##
22977## ----------------------------------------- ##
a848cd7e
SC
22978_ASBOX
22979 ) |
22980 sed "s/^/$as_me: WARNING: /" >&2
22981 ;;
22982esac
22983echo "$as_me:$LINENO: checking for $ac_header" >&5
22984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22985if eval "test \"\${$as_ac_Header+set}\" = set"; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22987else
ac1cb8d3 22988 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22989fi
22990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22992
22993fi
22994if test `eval echo '${'$as_ac_Header'}'` = yes; then
22995 cat >>confdefs.h <<_ACEOF
22996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22997_ACEOF
22998
22999fi
23000
23001done
23002
23003
23004 if test "$ac_cv_header_iostream" = "yes" ; then
23005 :
23006 else
23007 cat >>confdefs.h <<\_ACEOF
23008#define wxUSE_IOSTREAMH 1
23009_ACEOF
23010
23011 fi
23012
5d7b7554
VZ
23013 ac_ext=cc
23014ac_cpp='$CXXCPP $CPPFLAGS'
23015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23018
23019
23020
23021
23022 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23023echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23024if test "${wx_cv_cpp_bool+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23026else
23027
23028
23029
23030 ac_ext=cc
23031ac_cpp='$CXXCPP $CPPFLAGS'
23032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23035
23036
23037 cat >conftest.$ac_ext <<_ACEOF
23038/* confdefs.h. */
23039_ACEOF
23040cat confdefs.h >>conftest.$ac_ext
23041cat >>conftest.$ac_ext <<_ACEOF
23042/* end confdefs.h. */
23043
23044
23045int
23046main ()
23047{
23048
23049 bool b = true;
23050
23051 return 0;
23052
23053 ;
23054 return 0;
23055}
23056_ACEOF
23057rm -f conftest.$ac_objext
23058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23059 (eval $ac_compile) 2>conftest.er1
a848cd7e 23060 ac_status=$?
ac1cb8d3
VS
23061 grep -v '^ *+' conftest.er1 >conftest.err
23062 rm -f conftest.er1
23063 cat conftest.err >&5
a848cd7e
SC
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } &&
ca5c6ac3 23066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068 (eval $ac_try) 2>&5
23069 ac_status=$?
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); }; } &&
23072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23074 (eval $ac_try) 2>&5
23075 ac_status=$?
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); }; }; then
23078
23079 wx_cv_cpp_bool=yes
23080
23081else
23082 echo "$as_me: failed program was:" >&5
23083sed 's/^/| /' conftest.$ac_ext >&5
23084
23085
23086 wx_cv_cpp_bool=no
23087
23088
23089fi
ac1cb8d3 23090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23091
5d7b7554
VZ
23092 ac_ext=cc
23093ac_cpp='$CXXCPP $CPPFLAGS'
23094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23097
23098
23099fi
23100echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23101echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23102
23103 if test "$wx_cv_cpp_bool" = "yes"; then
23104 cat >>confdefs.h <<\_ACEOF
23105#define HAVE_BOOL 1
23106_ACEOF
23107
23108 fi
23109
23110
23111
23112 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23113echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23114if test "${wx_cv_explicit+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23116else
23117
23118
23119
23120 ac_ext=cc
23121ac_cpp='$CXXCPP $CPPFLAGS'
23122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23125
23126
23127 cat >conftest.$ac_ext <<_ACEOF
23128/* confdefs.h. */
23129_ACEOF
23130cat confdefs.h >>conftest.$ac_ext
23131cat >>conftest.$ac_ext <<_ACEOF
23132/* end confdefs.h. */
23133
23134 class Foo { public: explicit Foo(int) {} };
23135
23136int
23137main ()
23138{
23139
23140 return 0;
23141
23142 ;
23143 return 0;
23144}
23145_ACEOF
23146rm -f conftest.$ac_objext
23147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23148 (eval $ac_compile) 2>conftest.er1
a848cd7e 23149 ac_status=$?
ac1cb8d3
VS
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
a848cd7e
SC
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
ca5c6ac3 23155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167
23168 cat >conftest.$ac_ext <<_ACEOF
23169/* confdefs.h. */
23170_ACEOF
23171cat confdefs.h >>conftest.$ac_ext
23172cat >>conftest.$ac_ext <<_ACEOF
23173/* end confdefs.h. */
23174
23175 class Foo { public: explicit Foo(int) {} };
23176 static void TakeFoo(const Foo& foo) { }
23177
23178int
23179main ()
23180{
23181
23182 TakeFoo(17);
23183 return 0;
23184
23185 ;
23186 return 0;
23187}
23188_ACEOF
23189rm -f conftest.$ac_objext
23190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23191 (eval $ac_compile) 2>conftest.er1
a848cd7e 23192 ac_status=$?
ac1cb8d3
VS
23193 grep -v '^ *+' conftest.er1 >conftest.err
23194 rm -f conftest.er1
23195 cat conftest.err >&5
a848cd7e
SC
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } &&
ca5c6ac3 23198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200 (eval $ac_try) 2>&5
23201 ac_status=$?
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; } &&
23204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23207 ac_status=$?
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; }; then
23210 wx_cv_explicit=no
23211else
23212 echo "$as_me: failed program was:" >&5
23213sed 's/^/| /' conftest.$ac_ext >&5
23214
23215wx_cv_explicit=yes
23216
23217fi
ac1cb8d3 23218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23219
23220else
23221 echo "$as_me: failed program was:" >&5
23222sed 's/^/| /' conftest.$ac_ext >&5
23223
23224wx_cv_explicit=no
23225
23226fi
ac1cb8d3 23227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23228
5d7b7554
VZ
23229 ac_ext=cc
23230ac_cpp='$CXXCPP $CPPFLAGS'
23231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23234
23235
23236fi
23237echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23238echo "${ECHO_T}$wx_cv_explicit" >&6
23239
23240 if test "$wx_cv_explicit" = "yes"; then
23241 cat >>confdefs.h <<\_ACEOF
23242#define HAVE_EXPLICIT 1
23243_ACEOF
23244
23245 fi
23246
23247
23248echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23249echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23250if test "${ac_cv_cxx_const_cast+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252else
23253
23254
23255 ac_ext=cc
23256ac_cpp='$CXXCPP $CPPFLAGS'
23257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23260
23261 cat >conftest.$ac_ext <<_ACEOF
23262/* confdefs.h. */
23263_ACEOF
23264cat confdefs.h >>conftest.$ac_ext
23265cat >>conftest.$ac_ext <<_ACEOF
23266/* end confdefs.h. */
23267
23268int
23269main ()
23270{
23271int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23272 ;
23273 return 0;
23274}
23275_ACEOF
23276rm -f conftest.$ac_objext
23277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23278 (eval $ac_compile) 2>conftest.er1
a848cd7e 23279 ac_status=$?
ac1cb8d3
VS
23280 grep -v '^ *+' conftest.er1 >conftest.err
23281 rm -f conftest.er1
23282 cat conftest.err >&5
a848cd7e
SC
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } &&
ca5c6ac3 23285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23288 ac_status=$?
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; } &&
23291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; }; then
23297 ac_cv_cxx_const_cast=yes
23298else
23299 echo "$as_me: failed program was:" >&5
23300sed 's/^/| /' conftest.$ac_ext >&5
23301
23302ac_cv_cxx_const_cast=no
23303fi
ac1cb8d3 23304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23305 ac_ext=cc
23306ac_cpp='$CXXCPP $CPPFLAGS'
23307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23310
23311
23312fi
23313echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23314echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23315if test "$ac_cv_cxx_const_cast" = yes; then
23316
23317cat >>confdefs.h <<\_ACEOF
23318#define HAVE_CONST_CAST
23319_ACEOF
23320
23321fi
23322
7714864e
RL
23323echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23324echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23325if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23326 echo $ECHO_N "(cached) $ECHO_C" >&6
23327else
23328
23329
23330 ac_ext=cc
23331ac_cpp='$CXXCPP $CPPFLAGS'
23332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23335
23336 cat >conftest.$ac_ext <<_ACEOF
23337/* confdefs.h. */
23338_ACEOF
23339cat confdefs.h >>conftest.$ac_ext
23340cat >>conftest.$ac_ext <<_ACEOF
23341/* end confdefs.h. */
23342#include <typeinfo>
23343class Base { public : Base () {} virtual void f () = 0;};
23344class Derived : public Base { public : Derived () {} virtual void f () {} };
23345class Unrelated { public : Unrelated () {} };
23346int g (Unrelated&) { return 0; }
23347int
23348main ()
23349{
23350
23351Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23352 ;
23353 return 0;
23354}
23355_ACEOF
23356rm -f conftest.$ac_objext
23357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23358 (eval $ac_compile) 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } &&
ca5c6ac3 23365 { ac_try='test -z "$ac_cxx_werror_flag" || 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); } &&
ca5c6ac3 23444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; } &&
23450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; }; then
23456 ac_cv_cxx_static_cast=yes
23457else
23458 echo "$as_me: failed program was:" >&5
23459sed 's/^/| /' conftest.$ac_ext >&5
23460
23461ac_cv_cxx_static_cast=no
23462fi
ac1cb8d3 23463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23464 ac_ext=cc
23465ac_cpp='$CXXCPP $CPPFLAGS'
23466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23469
23470
23471fi
23472echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23473echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23474if test "$ac_cv_cxx_static_cast" = yes; then
23475
23476cat >>confdefs.h <<\_ACEOF
23477#define HAVE_STATIC_CAST
23478_ACEOF
23479
23480fi
23481
23482
3c28b7cb 23483if test "x$SUNCXX" = xyes; then
c92ad099 23484 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23485fi
23486
9122d155 23487if test "x$SUNCC" = xyes; then
c92ad099 23488 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23489fi
23490
0ad5d837 23491if test "x$SGICC" = "xyes"; then
c92ad099 23492 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23493fi
23494if test "x$SGICXX" = "xyes"; then
c92ad099 23495 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23496fi
23497
2eef8513 23498if test "x$HPCC" = "xyes"; then
c92ad099 23499 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23500fi
23501if test "x$HPCXX" = "xyes"; then
c92ad099 23502 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23503fi
23504
23505if test "x$COMPAQCXX" = "xyes"; then
23506 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23507fi
23508
f56c22b4 23509if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23510 if test "$wxUSE_UNICODE" = "yes"; then
23511 std_string="std::wstring"
23512 char_type="wchar_t"
23513 else
23514 std_string="std::string"
23515 char_type="char"
23516 fi
23517
23518 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23519echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23520 cat >conftest.$ac_ext <<_ACEOF
23521/* confdefs.h. */
23522_ACEOF
23523cat confdefs.h >>conftest.$ac_ext
23524cat >>conftest.$ac_ext <<_ACEOF
23525/* end confdefs.h. */
23526#include <string>
a848cd7e
SC
23527int
23528main ()
23529{
f56c22b4 23530$std_string foo;
a848cd7e
SC
23531 ;
23532 return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext
23536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23537 (eval $ac_compile) 2>conftest.er1
a848cd7e 23538 ac_status=$?
ac1cb8d3
VS
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
a848cd7e
SC
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
ca5c6ac3 23544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 echo "$as_me:$LINENO: result: yes" >&5
23557echo "${ECHO_T}yes" >&6
0a08f02a
MB
23558 cat >>confdefs.h <<\_ACEOF
23559#define HAVE_STD_WSTRING 1
23560_ACEOF
23561
a848cd7e
SC
23562else
23563 echo "$as_me: failed program was:" >&5
23564sed 's/^/| /' conftest.$ac_ext >&5
23565
23566echo "$as_me:$LINENO: result: no" >&5
23567echo "${ECHO_T}no" >&6
f56c22b4
MW
23568 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23569echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23570 cat >conftest.$ac_ext <<_ACEOF
23571/* confdefs.h. */
23572_ACEOF
23573cat confdefs.h >>conftest.$ac_ext
23574cat >>conftest.$ac_ext <<_ACEOF
23575/* end confdefs.h. */
23576
23577 #ifdef HAVE_WCHAR_H
23578 # ifdef __CYGWIN__
23579 # include <stddef.h>
23580 # endif
23581 # include <wchar.h>
23582 #endif
23583 #ifdef HAVE_STDLIB_H
23584 # include <stdlib.h>
23585 #endif
23586 #include <stdio.h>
23587 #include <string>
23588
23589int
23590main ()
23591{
f56c22b4
MW
23592std::basic_string<$char_type> foo;
23593 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23594 ;
23595 return 0;
23596}
23597_ACEOF
23598rm -f conftest.$ac_objext
23599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23600 (eval $ac_compile) 2>conftest.er1
23601 ac_status=$?
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } &&
ca5c6ac3 23607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; } &&
23613 { ac_try='test -s conftest.$ac_objext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
23619 echo "$as_me:$LINENO: result: yes" >&5
23620echo "${ECHO_T}yes" >&6
23621else
23622 echo "$as_me: failed program was:" >&5
23623sed 's/^/| /' conftest.$ac_ext >&5
23624
23625echo "$as_me:$LINENO: result: no" >&5
23626echo "${ECHO_T}no" >&6
f56c22b4 23627 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23628 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23629echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23630 { (exit 1); exit 1; }; }
23631 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23632 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23633echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23634 { (exit 1); exit 1; }; }
f56c22b4
MW
23635 else
23636 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23637echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23638 wxUSE_STD_STRING=no
23639 fi
23640
0a08f02a 23641
a848cd7e 23642fi
ac1cb8d3 23643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23644
0a08f02a
MB
23645fi
23646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23647fi
23648
23649if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23650 echo "$as_me:$LINENO: checking for std::istream" >&5
23651echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23652if test "${ac_cv_type_std__istream+set}" = set; then
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23654else
23655 cat >conftest.$ac_ext <<_ACEOF
23656/* confdefs.h. */
23657_ACEOF
23658cat confdefs.h >>conftest.$ac_ext
23659cat >>conftest.$ac_ext <<_ACEOF
23660/* end confdefs.h. */
23661#include <iostream>
23662
23663int
23664main ()
23665{
23666if ((std::istream *) 0)
23667 return 0;
23668if (sizeof (std::istream))
23669 return 0;
23670 ;
23671 return 0;
23672}
23673_ACEOF
23674rm -f conftest.$ac_objext
23675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23676 (eval $ac_compile) 2>conftest.er1
23677 ac_status=$?
23678 grep -v '^ *+' conftest.er1 >conftest.err
23679 rm -f conftest.er1
23680 cat conftest.err >&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } &&
ca5c6ac3 23683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; } &&
23689 { ac_try='test -s conftest.$ac_objext'
23690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23691 (eval $ac_try) 2>&5
23692 ac_status=$?
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); }; }; then
23695 ac_cv_type_std__istream=yes
23696else
23697 echo "$as_me: failed program was:" >&5
23698sed 's/^/| /' conftest.$ac_ext >&5
23699
23700ac_cv_type_std__istream=no
23701fi
23702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23703fi
23704echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23705echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23706if test $ac_cv_type_std__istream = yes; then
23707
23708cat >>confdefs.h <<_ACEOF
23709#define HAVE_STD__ISTREAM 1
23710_ACEOF
23711
23712
23713else
23714 wxUSE_STD_IOSTREAM=no
23715fi
23716echo "$as_me:$LINENO: checking for std::ostream" >&5
23717echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23718if test "${ac_cv_type_std__ostream+set}" = set; then
23719 echo $ECHO_N "(cached) $ECHO_C" >&6
23720else
23721 cat >conftest.$ac_ext <<_ACEOF
23722/* confdefs.h. */
23723_ACEOF
23724cat confdefs.h >>conftest.$ac_ext
23725cat >>conftest.$ac_ext <<_ACEOF
23726/* end confdefs.h. */
23727#include <iostream>
23728
23729int
23730main ()
23731{
23732if ((std::ostream *) 0)
23733 return 0;
23734if (sizeof (std::ostream))
23735 return 0;
23736 ;
23737 return 0;
23738}
23739_ACEOF
23740rm -f conftest.$ac_objext
23741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23742 (eval $ac_compile) 2>conftest.er1
23743 ac_status=$?
23744 grep -v '^ *+' conftest.er1 >conftest.err
23745 rm -f conftest.er1
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } &&
ca5c6ac3 23749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; } &&
23755 { ac_try='test -s conftest.$ac_objext'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ac_cv_type_std__ostream=yes
23762else
23763 echo "$as_me: failed program was:" >&5
23764sed 's/^/| /' conftest.$ac_ext >&5
23765
23766ac_cv_type_std__ostream=no
23767fi
23768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23769fi
23770echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23771echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23772if test $ac_cv_type_std__ostream = yes; then
23773
23774cat >>confdefs.h <<_ACEOF
23775#define HAVE_STD__OSTREAM 1
23776_ACEOF
23777
23778
23779else
23780 wxUSE_STD_IOSTREAM=no
23781fi
23782
23783
23784 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23785 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23786 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23787echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23788 { (exit 1); exit 1; }; }
23789 else
23790 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23791echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23792 fi
f56c22b4 23793 fi
0a08f02a
MB
23794fi
23795
23796if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23797 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23798echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23799 cat >conftest.$ac_ext <<_ACEOF
23800/* confdefs.h. */
23801_ACEOF
23802cat confdefs.h >>conftest.$ac_ext
23803cat >>conftest.$ac_ext <<_ACEOF
23804/* end confdefs.h. */
23805#include <string>
0a08f02a
MB
23806 #include <functional>
23807 #include <algorithm>
23808 #include <vector>
23809 #include <list>
a848cd7e
SC
23810int
23811main ()
23812{
0a08f02a
MB
23813std::vector<int> moo;
23814 std::list<int> foo;
23815 std::vector<int>::iterator it =
23816 std::find_if(moo.begin(), moo.end(),
23817 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23818 ;
23819 return 0;
23820}
23821_ACEOF
23822rm -f conftest.$ac_objext
23823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23824 (eval $ac_compile) 2>conftest.er1
a848cd7e 23825 ac_status=$?
ac1cb8d3
VS
23826 grep -v '^ *+' conftest.er1 >conftest.err
23827 rm -f conftest.er1
23828 cat conftest.err >&5
a848cd7e
SC
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } &&
ca5c6ac3 23831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; } &&
23837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23843 echo "$as_me:$LINENO: result: yes" >&5
23844echo "${ECHO_T}yes" >&6
a848cd7e
SC
23845else
23846 echo "$as_me: failed program was:" >&5
23847sed 's/^/| /' conftest.$ac_ext >&5
23848
23849echo "$as_me:$LINENO: result: no" >&5
23850echo "${ECHO_T}no" >&6
0a08f02a
MB
23851 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23852echo "$as_me: error: Basic STL functionality missing" >&2;}
23853 { (exit 1); exit 1; }; }
a848cd7e 23854fi
ac1cb8d3 23855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23856
23857 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23858echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23859 cat >conftest.$ac_ext <<_ACEOF
23860/* confdefs.h. */
23861_ACEOF
23862cat confdefs.h >>conftest.$ac_ext
23863cat >>conftest.$ac_ext <<_ACEOF
23864/* end confdefs.h. */
23865#include <string>
23866int
23867main ()
23868{
23869std::string foo, bar;
23870 foo.compare(bar);
23871 foo.compare(1, 1, bar);
23872 foo.compare(1, 1, bar, 1, 1);
23873 foo.compare("");
23874 foo.compare(1, 1, "");
23875 foo.compare(1, 1, "", 2);
23876 ;
23877 return 0;
23878}
23879_ACEOF
23880rm -f conftest.$ac_objext
23881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23882 (eval $ac_compile) 2>conftest.er1
a848cd7e 23883 ac_status=$?
ac1cb8d3
VS
23884 grep -v '^ *+' conftest.er1 >conftest.err
23885 rm -f conftest.er1
23886 cat conftest.err >&5
a848cd7e
SC
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } &&
ca5c6ac3 23889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891 (eval $ac_try) 2>&5
23892 ac_status=$?
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; } &&
23895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897 (eval $ac_try) 2>&5
23898 ac_status=$?
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); }; }; then
23901 echo "$as_me:$LINENO: result: yes" >&5
23902echo "${ECHO_T}yes" >&6
23903 cat >>confdefs.h <<\_ACEOF
23904#define HAVE_STD_STRING_COMPARE 1
23905_ACEOF
23906
23907else
23908 echo "$as_me: failed program was:" >&5
23909sed 's/^/| /' conftest.$ac_ext >&5
23910
23911echo "$as_me:$LINENO: result: no" >&5
23912echo "${ECHO_T}no" >&6
23913fi
ac1cb8d3 23914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23915
23916 if test "${ac_cv_header_hash_map+set}" = set; then
23917 echo "$as_me:$LINENO: checking for hash_map" >&5
23918echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23919if test "${ac_cv_header_hash_map+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
23921fi
23922echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23923echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23924else
23925 # Is the header compilable?
23926echo "$as_me:$LINENO: checking hash_map usability" >&5
23927echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23928cat >conftest.$ac_ext <<_ACEOF
23929/* confdefs.h. */
23930_ACEOF
23931cat confdefs.h >>conftest.$ac_ext
23932cat >>conftest.$ac_ext <<_ACEOF
23933/* end confdefs.h. */
23934$ac_includes_default
23935#include <hash_map>
23936_ACEOF
23937rm -f conftest.$ac_objext
23938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23939 (eval $ac_compile) 2>conftest.er1
bdcade0a 23940 ac_status=$?
ac1cb8d3
VS
23941 grep -v '^ *+' conftest.er1 >conftest.err
23942 rm -f conftest.er1
23943 cat conftest.err >&5
bdcade0a
MB
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } &&
ca5c6ac3 23946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948 (eval $ac_try) 2>&5
23949 ac_status=$?
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); }; } &&
23952 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23954 (eval $ac_try) 2>&5
23955 ac_status=$?
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); }; }; then
23958 ac_header_compiler=yes
23959else
23960 echo "$as_me: failed program was:" >&5
23961sed 's/^/| /' conftest.$ac_ext >&5
23962
23963ac_header_compiler=no
23964fi
ac1cb8d3 23965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23967echo "${ECHO_T}$ac_header_compiler" >&6
23968
23969# Is the header present?
23970echo "$as_me:$LINENO: checking hash_map presence" >&5
23971echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23972cat >conftest.$ac_ext <<_ACEOF
23973/* confdefs.h. */
23974_ACEOF
23975cat confdefs.h >>conftest.$ac_ext
23976cat >>conftest.$ac_ext <<_ACEOF
23977/* end confdefs.h. */
23978#include <hash_map>
23979_ACEOF
23980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23982 ac_status=$?
23983 grep -v '^ *+' conftest.er1 >conftest.err
23984 rm -f conftest.er1
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } >/dev/null; then
23988 if test -s conftest.err; then
23989 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23991 else
23992 ac_cpp_err=
23993 fi
23994else
23995 ac_cpp_err=yes
23996fi
23997if test -z "$ac_cpp_err"; then
23998 ac_header_preproc=yes
23999else
24000 echo "$as_me: failed program was:" >&5
24001sed 's/^/| /' conftest.$ac_ext >&5
24002
24003 ac_header_preproc=no
24004fi
24005rm -f conftest.err conftest.$ac_ext
24006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24007echo "${ECHO_T}$ac_header_preproc" >&6
24008
24009# So? What about this header?
ac1cb8d3
VS
24010case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24011 yes:no: )
bdcade0a
MB
24012 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24013echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24014 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24015echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24016 ac_header_preproc=yes
bdcade0a 24017 ;;
ac1cb8d3 24018 no:yes:* )
bdcade0a
MB
24019 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24020echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24021 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24022echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24023 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24024echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24025 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24026echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24027 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24028echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24029 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24030echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24031 (
24032 cat <<\_ASBOX
ac1cb8d3
VS
24033## ----------------------------------------- ##
24034## Report this to wx-dev@lists.wxwidgets.org ##
24035## ----------------------------------------- ##
bdcade0a
MB
24036_ASBOX
24037 ) |
24038 sed "s/^/$as_me: WARNING: /" >&2
24039 ;;
24040esac
24041echo "$as_me:$LINENO: checking for hash_map" >&5
24042echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24043if test "${ac_cv_header_hash_map+set}" = set; then
24044 echo $ECHO_N "(cached) $ECHO_C" >&6
24045else
24046 ac_cv_header_hash_map=$ac_header_preproc
24047fi
24048echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24049echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24050
24051fi
24052if test $ac_cv_header_hash_map = yes; then
24053 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24054echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24055 cat >conftest.$ac_ext <<_ACEOF
24056/* confdefs.h. */
24057_ACEOF
24058cat confdefs.h >>conftest.$ac_ext
24059cat >>conftest.$ac_ext <<_ACEOF
24060/* end confdefs.h. */
24061#include <hash_map>
24062 #include <hash_set>
24063int
24064main ()
24065{
24066std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24067 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24068 ;
24069 return 0;
24070}
24071_ACEOF
24072rm -f conftest.$ac_objext
24073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24074 (eval $ac_compile) 2>conftest.er1
bdcade0a 24075 ac_status=$?
ac1cb8d3
VS
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
bdcade0a
MB
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
ca5c6ac3 24081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; } &&
24087 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; }; then
24093 echo "$as_me:$LINENO: result: yes" >&5
24094echo "${ECHO_T}yes" >&6
24095 cat >>confdefs.h <<\_ACEOF
24096#define HAVE_HASH_MAP 1
24097_ACEOF
24098
24099 cat >>confdefs.h <<\_ACEOF
24100#define HAVE_STD_HASH_MAP 1
24101_ACEOF
24102
24103else
24104 echo "$as_me: failed program was:" >&5
24105sed 's/^/| /' conftest.$ac_ext >&5
24106
24107echo "$as_me:$LINENO: result: no" >&5
24108echo "${ECHO_T}no" >&6
24109fi
ac1cb8d3 24110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24111
24112fi
24113
24114
24115
24116 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24117 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24118echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24119if test "${ac_cv_header_ext_hash_map+set}" = set; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24121fi
24122echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24123echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24124else
24125 # Is the header compilable?
24126echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24127echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24128cat >conftest.$ac_ext <<_ACEOF
24129/* confdefs.h. */
24130_ACEOF
24131cat confdefs.h >>conftest.$ac_ext
24132cat >>conftest.$ac_ext <<_ACEOF
24133/* end confdefs.h. */
24134$ac_includes_default
24135#include <ext/hash_map>
24136_ACEOF
24137rm -f conftest.$ac_objext
24138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24139 (eval $ac_compile) 2>conftest.er1
bdcade0a 24140 ac_status=$?
ac1cb8d3
VS
24141 grep -v '^ *+' conftest.er1 >conftest.err
24142 rm -f conftest.er1
24143 cat conftest.err >&5
bdcade0a
MB
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } &&
ca5c6ac3 24146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; } &&
24152 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24155 ac_status=$?
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; }; then
24158 ac_header_compiler=yes
24159else
24160 echo "$as_me: failed program was:" >&5
24161sed 's/^/| /' conftest.$ac_ext >&5
24162
24163ac_header_compiler=no
24164fi
ac1cb8d3 24165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24167echo "${ECHO_T}$ac_header_compiler" >&6
24168
24169# Is the header present?
24170echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24171echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24172cat >conftest.$ac_ext <<_ACEOF
24173/* confdefs.h. */
24174_ACEOF
24175cat confdefs.h >>conftest.$ac_ext
24176cat >>conftest.$ac_ext <<_ACEOF
24177/* end confdefs.h. */
24178#include <ext/hash_map>
24179_ACEOF
24180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24182 ac_status=$?
24183 grep -v '^ *+' conftest.er1 >conftest.err
24184 rm -f conftest.er1
24185 cat conftest.err >&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } >/dev/null; then
24188 if test -s conftest.err; then
24189 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24191 else
24192 ac_cpp_err=
24193 fi
24194else
24195 ac_cpp_err=yes
24196fi
24197if test -z "$ac_cpp_err"; then
24198 ac_header_preproc=yes
24199else
24200 echo "$as_me: failed program was:" >&5
24201sed 's/^/| /' conftest.$ac_ext >&5
24202
24203 ac_header_preproc=no
24204fi
24205rm -f conftest.err conftest.$ac_ext
24206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24207echo "${ECHO_T}$ac_header_preproc" >&6
24208
24209# So? What about this header?
ac1cb8d3
VS
24210case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24211 yes:no: )
bdcade0a
MB
24212 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24213echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24214 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24215echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24216 ac_header_preproc=yes
bdcade0a 24217 ;;
ac1cb8d3 24218 no:yes:* )
bdcade0a
MB
24219 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24220echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24221 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24222echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24223 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24224echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24225 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24226echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24227 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24228echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24229 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24230echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24231 (
24232 cat <<\_ASBOX
ac1cb8d3
VS
24233## ----------------------------------------- ##
24234## Report this to wx-dev@lists.wxwidgets.org ##
24235## ----------------------------------------- ##
bdcade0a
MB
24236_ASBOX
24237 ) |
24238 sed "s/^/$as_me: WARNING: /" >&2
24239 ;;
24240esac
24241echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24242echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24243if test "${ac_cv_header_ext_hash_map+set}" = set; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24245else
24246 ac_cv_header_ext_hash_map=$ac_header_preproc
24247fi
24248echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24249echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24250
24251fi
24252if test $ac_cv_header_ext_hash_map = yes; then
24253 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24254echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24255 cat >conftest.$ac_ext <<_ACEOF
24256/* confdefs.h. */
24257_ACEOF
24258cat confdefs.h >>conftest.$ac_ext
24259cat >>conftest.$ac_ext <<_ACEOF
24260/* end confdefs.h. */
24261#include <ext/hash_map>
24262 #include <ext/hash_set>
24263int
24264main ()
24265{
24266__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24267 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24268 ;
24269 return 0;
24270}
24271_ACEOF
24272rm -f conftest.$ac_objext
24273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24274 (eval $ac_compile) 2>conftest.er1
bdcade0a 24275 ac_status=$?
ac1cb8d3
VS
24276 grep -v '^ *+' conftest.er1 >conftest.err
24277 rm -f conftest.er1
24278 cat conftest.err >&5
bdcade0a
MB
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } &&
ca5c6ac3 24281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24283 (eval $ac_try) 2>&5
24284 ac_status=$?
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); }; } &&
24287 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
24293 echo "$as_me:$LINENO: result: yes" >&5
24294echo "${ECHO_T}yes" >&6
24295 cat >>confdefs.h <<\_ACEOF
24296#define HAVE_EXT_HASH_MAP 1
24297_ACEOF
24298
24299 cat >>confdefs.h <<\_ACEOF
24300#define HAVE_GNU_CXX_HASH_MAP 1
24301_ACEOF
24302
24303else
24304 echo "$as_me: failed program was:" >&5
24305sed 's/^/| /' conftest.$ac_ext >&5
24306
24307echo "$as_me:$LINENO: result: no" >&5
24308echo "${ECHO_T}no" >&6
24309fi
ac1cb8d3 24310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24311
24312fi
24313
24314
a848cd7e
SC
24315fi
24316
24317
24318SEARCH_INCLUDE="\
24319 /usr/local/include \
24320 \
24321 /usr/Motif-2.1/include \
24322 /usr/Motif-1.2/include \
24323 /usr/include/Motif1.2 \
a848cd7e
SC
24324 \
24325 /usr/dt/include \
24326 /usr/openwin/include \
24327 \
24328 /usr/include/Xm \
24329 \
24330 /usr/X11R6/include \
24331 /usr/X11R6.4/include \
24332 /usr/X11R5/include \
24333 /usr/X11R4/include \
24334 \
24335 /usr/include/X11R6 \
24336 /usr/include/X11R5 \
24337 /usr/include/X11R4 \
24338 \
24339 /usr/local/X11R6/include \
24340 /usr/local/X11R5/include \
24341 /usr/local/X11R4/include \
24342 \
24343 /usr/local/include/X11R6 \
24344 /usr/local/include/X11R5 \
24345 /usr/local/include/X11R4 \
24346 \
24347 /usr/X11/include \
24348 /usr/include/X11 \
24349 /usr/local/X11/include \
24350 /usr/local/include/X11 \
24351 \
a848cd7e 24352 /usr/XFree86/include/X11 \
e051b34e
MW
24353 /usr/pkg/include \
24354 \
a848cd7e
SC
24355 /usr/openwin/share/include"
24356
6f9cf1e6 24357echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24358echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24359
24360case "${host}" in
24361 *-*-irix6* )
24362 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24364else
24365
c687b303
VZ
24366 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24367 for e in a so sl dylib dll.a; do
24368 libc="$d/libc.$e"
24369 if test -f $libc; then
24370 save_LIBS="$LIBS"
24371 LIBS="$libc"
24372 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24373int main() { return 0; }
24374_ACEOF
24375rm -f conftest.$ac_objext conftest$ac_exeext
24376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24377 (eval $ac_link) 2>conftest.er1
24378 ac_status=$?
24379 grep -v '^ *+' conftest.er1 >conftest.err
24380 rm -f conftest.er1
24381 cat conftest.err >&5
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); } &&
ca5c6ac3 24384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24386 (eval $ac_try) 2>&5
24387 ac_status=$?
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); }; } &&
24390 { ac_try='test -s conftest$ac_exeext'
24391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); }; }; then
24396 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24397else
24398 echo "$as_me: failed program was:" >&5
24399sed 's/^/| /' conftest.$ac_ext >&5
24400
24401fi
24402rm -f conftest.err conftest.$ac_objext \
24403 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24404 LIBS="$save_LIBS"
24405 if test "x$wx_cv_std_libpath" != "x"; then
24406 break 2
24407 fi
24408 fi
24409 done
24410 done
24411 if test "x$wx_cv_std_libpath" = "x"; then
24412 wx_cv_std_libpath="lib"
0ad5d837 24413 fi
0ad5d837
VZ
24414
24415
24416fi
6f9cf1e6
MW
24417
24418 ;;
24419
24420 *-*-solaris2* )
24421 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24422 wx_cv_std_libpath="lib/64"
24423 else
24424 wx_cv_std_libpath="lib"
24425 fi
24426 ;;
24427
24428 *-*-linux* )
24429 if test "$ac_cv_sizeof_void_p" = 8 -a \
24430 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24431 wx_cv_std_libpath="lib64"
24432 else
24433 wx_cv_std_libpath="lib"
24434 fi
c687b303
VZ
24435 ;;
24436
24437 *)
24438 wx_cv_std_libpath="lib";
24439 ;;
24440esac
0ad5d837 24441
6f9cf1e6
MW
24442echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24443echo "${ECHO_T}$wx_cv_std_libpath" >&6
24444
24445SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24446
3eca31dc
MW
24447if test "$build" != "$host" -a "$GCC" = yes; then
24448 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24449 cross_root=`dirname $cross_root`
24450 cross_root=`dirname $cross_root`
24451
24452 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24453 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24454 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24455
24456 if test -z "$PKG_CONFIG_PATH"; then
24457 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24458 export PKG_CONFIG_PATH
24459 fi
24460
24461 if test -z "$x_includes" -o "$x_includes" = NONE; then
24462
24463ac_find_includes=
24464for ac_dir in $SEARCH_INCLUDE /usr/include;
24465 do
24466 if test -f "$ac_dir/X11/Intrinsic.h"; then
24467 ac_find_includes=$ac_dir
24468 break
24469 fi
24470 done
24471
24472 x_includes=$ac_find_includes
24473 fi
24474 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24475
0ad5d837
VZ
24476 ac_find_libraries=
24477 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24478 do
24479 for ac_extension in a so sl dylib dll.a; do
24480 if test -f "$ac_dir/libXt.$ac_extension"; then
24481 ac_find_libraries=$ac_dir
24482 break 2
24483 fi
24484 done
24485 done
24486
24487 x_libraries=$ac_find_libraries
24488 fi
24489 fi
24490fi
24491
a848cd7e
SC
24492
24493cat >confcache <<\_ACEOF
24494# This file is a shell script that caches the results of configure
24495# tests run on this system so they can be shared between configure
24496# scripts and configure runs, see configure's option --config-cache.
24497# It is not useful on other systems. If it contains results you don't
24498# want to keep, you may remove or edit it.
24499#
24500# config.status only pays attention to the cache file if you give it
24501# the --recheck option to rerun configure.
24502#
24503# `ac_cv_env_foo' variables (set or unset) will be overridden when
24504# loading this file, other *unset* `ac_cv_foo' will be assigned the
24505# following values.
24506
24507_ACEOF
24508
24509# The following way of writing the cache mishandles newlines in values,
24510# but we know of no workaround that is simple, portable, and efficient.
24511# So, don't put newlines in cache variables' values.
24512# Ultrix sh set writes to stderr and can't be redirected directly,
24513# and sets the high bit in the cache file unless we assign to the vars.
24514{
24515 (set) 2>&1 |
24516 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24517 *ac_space=\ *)
24518 # `set' does not quote correctly, so add quotes (double-quote
24519 # substitution turns \\\\ into \\, and sed turns \\ into \).
24520 sed -n \
ac1cb8d3
VS
24521 "s/'/'\\\\''/g;
24522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24523 ;;
24524 *)
24525 # `set' quotes correctly as required by POSIX, so do not add quotes.
24526 sed -n \
ac1cb8d3 24527 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24528 ;;
24529 esac;
24530} |
24531 sed '
24532 t clear
24533 : clear
24534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24535 t end
24536 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24537 : end' >>confcache
24538if diff $cache_file confcache >/dev/null 2>&1; then :; else
24539 if test -w $cache_file; then
24540 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24541 cat confcache >$cache_file
24542 else
24543 echo "not updating unwritable cache $cache_file"
24544 fi
24545fi
24546rm -f confcache
24547
24548if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24549 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24550echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24551if test "${wx_cv_lib_glibc21+set}" = set; then
24552 echo $ECHO_N "(cached) $ECHO_C" >&6
24553else
24554
24555 cat >conftest.$ac_ext <<_ACEOF
24556/* confdefs.h. */
24557_ACEOF
24558cat confdefs.h >>conftest.$ac_ext
24559cat >>conftest.$ac_ext <<_ACEOF
24560/* end confdefs.h. */
24561#include <features.h>
24562int
24563main ()
24564{
24565
24566 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24567 not glibc 2.1
a848cd7e
SC
24568 #endif
24569
24570 ;
24571 return 0;
24572}
24573_ACEOF
24574rm -f conftest.$ac_objext
24575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24576 (eval $ac_compile) 2>conftest.er1
a848cd7e 24577 ac_status=$?
ac1cb8d3
VS
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
a848cd7e
SC
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
ca5c6ac3 24583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595
24596 wx_cv_lib_glibc21=yes
24597
24598else
24599 echo "$as_me: failed program was:" >&5
24600sed 's/^/| /' conftest.$ac_ext >&5
24601
24602
24603 wx_cv_lib_glibc21=no
24604
24605
24606fi
ac1cb8d3 24607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24608
24609fi
24610echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24611echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24612 if test "$wx_cv_lib_glibc21" = "yes"; then
24613 cat >>confdefs.h <<\_ACEOF
24614#define wxHAVE_GLIBC2 1
24615_ACEOF
24616
24617 fi
24618fi
24619
24620if test "x$wx_cv_lib_glibc21" = "xyes"; then
24621 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24622 cat >>confdefs.h <<\_ACEOF
24623#define _GNU_SOURCE 1
24624_ACEOF
24625
24626 fi
24627fi
24628
5d7b7554
VZ
24629have_cos=0
24630have_floor=0
a848cd7e 24631
5d7b7554
VZ
24632for ac_func in cos
24633do
24634as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24635echo "$as_me:$LINENO: checking for $ac_func" >&5
24636echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24637if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24638 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24639else
5d7b7554 24640 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
5d7b7554
VZ
24646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24648#define $ac_func innocuous_$ac_func
24649
24650/* System header to define __stub macros and hopefully few prototypes,
24651 which can conflict with char $ac_func (); below.
24652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24653 <limits.h> exists even on freestanding compilers. */
24654
24655#ifdef __STDC__
24656# include <limits.h>
24657#else
24658# include <assert.h>
24659#endif
24660
24661#undef $ac_func
24662
24663/* Override any gcc2 internal prototype to avoid an error. */
24664#ifdef __cplusplus
24665extern "C"
24666{
24667#endif
24668/* We use char because int might match the return type of a gcc2
24669 builtin and then its argument prototype would still apply. */
24670char $ac_func ();
24671/* The GNU C library defines this for functions which it implements
24672 to always fail with ENOSYS. Some functions are actually named
24673 something starting with __ and the normal name is an alias. */
24674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24675choke me
24676#else
24677char (*f) () = $ac_func;
24678#endif
24679#ifdef __cplusplus
24680}
24681#endif
24682
24683int
24684main ()
24685{
24686return f != $ac_func;
24687 ;
24688 return 0;
24689}
a848cd7e 24690_ACEOF
5d7b7554
VZ
24691rm -f conftest.$ac_objext conftest$ac_exeext
24692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24693 (eval $ac_link) 2>conftest.er1
a848cd7e 24694 ac_status=$?
ac1cb8d3
VS
24695 grep -v '^ *+' conftest.er1 >conftest.err
24696 rm -f conftest.er1
24697 cat conftest.err >&5
a848cd7e
SC
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } &&
ca5c6ac3 24700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24702 (eval $ac_try) 2>&5
24703 ac_status=$?
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); }; } &&
5d7b7554 24706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24708 (eval $ac_try) 2>&5
24709 ac_status=$?
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); }; }; then
5d7b7554 24712 eval "$as_ac_var=yes"
a848cd7e
SC
24713else
24714 echo "$as_me: failed program was:" >&5
24715sed 's/^/| /' conftest.$ac_ext >&5
24716
5d7b7554 24717eval "$as_ac_var=no"
a848cd7e 24718fi
5d7b7554
VZ
24719rm -f conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24721fi
5d7b7554
VZ
24722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24724if test `eval echo '${'$as_ac_var'}'` = yes; then
24725 cat >>confdefs.h <<_ACEOF
24726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24727_ACEOF
24728 have_cos=1
a848cd7e 24729fi
5d7b7554 24730done
a848cd7e 24731
ab0f0edd 24732
5d7b7554 24733for ac_func in floor
a848cd7e
SC
24734do
24735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24736echo "$as_me:$LINENO: checking for $ac_func" >&5
24737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24738if eval "test \"\${$as_ac_var+set}\" = set"; then
24739 echo $ECHO_N "(cached) $ECHO_C" >&6
24740else
24741 cat >conftest.$ac_ext <<_ACEOF
24742/* confdefs.h. */
24743_ACEOF
24744cat confdefs.h >>conftest.$ac_ext
24745cat >>conftest.$ac_ext <<_ACEOF
24746/* end confdefs.h. */
ac1cb8d3
VS
24747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24749#define $ac_func innocuous_$ac_func
24750
a848cd7e
SC
24751/* System header to define __stub macros and hopefully few prototypes,
24752 which can conflict with char $ac_func (); below.
24753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24754 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24755
a848cd7e
SC
24756#ifdef __STDC__
24757# include <limits.h>
24758#else
24759# include <assert.h>
24760#endif
ac1cb8d3
VS
24761
24762#undef $ac_func
24763
a848cd7e
SC
24764/* Override any gcc2 internal prototype to avoid an error. */
24765#ifdef __cplusplus
24766extern "C"
24767{
24768#endif
24769/* We use char because int might match the return type of a gcc2
24770 builtin and then its argument prototype would still apply. */
24771char $ac_func ();
24772/* The GNU C library defines this for functions which it implements
24773 to always fail with ENOSYS. Some functions are actually named
24774 something starting with __ and the normal name is an alias. */
24775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24776choke me
24777#else
24778char (*f) () = $ac_func;
24779#endif
24780#ifdef __cplusplus
24781}
24782#endif
24783
24784int
24785main ()
24786{
24787return f != $ac_func;
24788 ;
24789 return 0;
24790}
24791_ACEOF
24792rm -f conftest.$ac_objext conftest$ac_exeext
24793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24794 (eval $ac_link) 2>conftest.er1
a848cd7e 24795 ac_status=$?
ac1cb8d3
VS
24796 grep -v '^ *+' conftest.er1 >conftest.err
24797 rm -f conftest.er1
24798 cat conftest.err >&5
a848cd7e
SC
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } &&
ca5c6ac3 24801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; } &&
24807 { ac_try='test -s conftest$ac_exeext'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 eval "$as_ac_var=yes"
24814else
24815 echo "$as_me: failed program was:" >&5
24816sed 's/^/| /' conftest.$ac_ext >&5
24817
24818eval "$as_ac_var=no"
24819fi
24820rm -f conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
24822fi
24823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24825if test `eval echo '${'$as_ac_var'}'` = yes; then
24826 cat >>confdefs.h <<_ACEOF
24827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24828_ACEOF
24829 have_floor=1
24830fi
24831done
24832
24833echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24834echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24835if test "$have_cos" = 1 -a "$have_floor" = 1; then
24836 echo "$as_me:$LINENO: result: yes" >&5
24837echo "${ECHO_T}yes" >&6
24838else
24839 echo "$as_me:$LINENO: result: no" >&5
24840echo "${ECHO_T}no" >&6
24841 LIBS="$LIBS -lm"
24842 # use different functions to avoid configure caching
24843 have_sin=0
24844 have_ceil=0
24845
24846for ac_func in sin
24847do
24848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24849echo "$as_me:$LINENO: checking for $ac_func" >&5
24850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24851if eval "test \"\${$as_ac_var+set}\" = set"; then
24852 echo $ECHO_N "(cached) $ECHO_C" >&6
24853else
24854 cat >conftest.$ac_ext <<_ACEOF
24855/* confdefs.h. */
24856_ACEOF
24857cat confdefs.h >>conftest.$ac_ext
24858cat >>conftest.$ac_ext <<_ACEOF
24859/* end confdefs.h. */
24860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24862#define $ac_func innocuous_$ac_func
24863
24864/* System header to define __stub macros and hopefully few prototypes,
24865 which can conflict with char $ac_func (); below.
24866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24867 <limits.h> exists even on freestanding compilers. */
24868
24869#ifdef __STDC__
24870# include <limits.h>
24871#else
24872# include <assert.h>
24873#endif
24874
24875#undef $ac_func
24876
24877/* Override any gcc2 internal prototype to avoid an error. */
24878#ifdef __cplusplus
24879extern "C"
24880{
24881#endif
24882/* We use char because int might match the return type of a gcc2
24883 builtin and then its argument prototype would still apply. */
24884char $ac_func ();
24885/* The GNU C library defines this for functions which it implements
24886 to always fail with ENOSYS. Some functions are actually named
24887 something starting with __ and the normal name is an alias. */
24888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24889choke me
24890#else
24891char (*f) () = $ac_func;
24892#endif
24893#ifdef __cplusplus
24894}
24895#endif
24896
24897int
24898main ()
24899{
24900return f != $ac_func;
24901 ;
24902 return 0;
24903}
24904_ACEOF
24905rm -f conftest.$ac_objext conftest$ac_exeext
24906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24907 (eval $ac_link) 2>conftest.er1
24908 ac_status=$?
24909 grep -v '^ *+' conftest.er1 >conftest.err
24910 rm -f conftest.er1
24911 cat conftest.err >&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); } &&
ca5c6ac3 24914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24917 ac_status=$?
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; } &&
24920 { ac_try='test -s conftest$ac_exeext'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926 eval "$as_ac_var=yes"
24927else
24928 echo "$as_me: failed program was:" >&5
24929sed 's/^/| /' conftest.$ac_ext >&5
24930
24931eval "$as_ac_var=no"
24932fi
24933rm -f conftest.err conftest.$ac_objext \
24934 conftest$ac_exeext conftest.$ac_ext
24935fi
24936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24937echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24938if test `eval echo '${'$as_ac_var'}'` = yes; then
24939 cat >>confdefs.h <<_ACEOF
24940#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24941_ACEOF
24942 have_sin=1
24943fi
24944done
24945
24946
24947for ac_func in ceil
24948do
24949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24950echo "$as_me:$LINENO: checking for $ac_func" >&5
24951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24952if eval "test \"\${$as_ac_var+set}\" = set"; then
24953 echo $ECHO_N "(cached) $ECHO_C" >&6
24954else
24955 cat >conftest.$ac_ext <<_ACEOF
24956/* confdefs.h. */
24957_ACEOF
24958cat confdefs.h >>conftest.$ac_ext
24959cat >>conftest.$ac_ext <<_ACEOF
24960/* end confdefs.h. */
24961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24963#define $ac_func innocuous_$ac_func
24964
24965/* System header to define __stub macros and hopefully few prototypes,
24966 which can conflict with char $ac_func (); below.
24967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24968 <limits.h> exists even on freestanding compilers. */
24969
24970#ifdef __STDC__
24971# include <limits.h>
24972#else
24973# include <assert.h>
24974#endif
24975
24976#undef $ac_func
24977
24978/* Override any gcc2 internal prototype to avoid an error. */
24979#ifdef __cplusplus
24980extern "C"
24981{
24982#endif
24983/* We use char because int might match the return type of a gcc2
24984 builtin and then its argument prototype would still apply. */
24985char $ac_func ();
24986/* The GNU C library defines this for functions which it implements
24987 to always fail with ENOSYS. Some functions are actually named
24988 something starting with __ and the normal name is an alias. */
24989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24990choke me
24991#else
24992char (*f) () = $ac_func;
24993#endif
24994#ifdef __cplusplus
24995}
24996#endif
24997
24998int
24999main ()
25000{
25001return f != $ac_func;
25002 ;
25003 return 0;
25004}
25005_ACEOF
25006rm -f conftest.$ac_objext conftest$ac_exeext
25007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25008 (eval $ac_link) 2>conftest.er1
25009 ac_status=$?
25010 grep -v '^ *+' conftest.er1 >conftest.err
25011 rm -f conftest.er1
25012 cat conftest.err >&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); } &&
ca5c6ac3 25015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017 (eval $ac_try) 2>&5
25018 ac_status=$?
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try='test -s conftest$ac_exeext'
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; }; then
25027 eval "$as_ac_var=yes"
25028else
25029 echo "$as_me: failed program was:" >&5
25030sed 's/^/| /' conftest.$ac_ext >&5
25031
25032eval "$as_ac_var=no"
25033fi
25034rm -f conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
25036fi
25037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25039if test `eval echo '${'$as_ac_var'}'` = yes; then
25040 cat >>confdefs.h <<_ACEOF
25041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25042_ACEOF
25043 have_ceil=1
25044fi
25045done
25046
25047 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25048echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25049 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25050 echo "$as_me:$LINENO: result: yes" >&5
25051echo "${ECHO_T}yes" >&6
25052 else
25053 echo "$as_me:$LINENO: result: no" >&5
25054echo "${ECHO_T}no" >&6
25055 # not sure we should warn the user, crash, etc.
25056 fi
25057fi
25058
25059
25060
25061if test "$wxUSE_REGEX" != "no"; then
25062 cat >>confdefs.h <<\_ACEOF
25063#define wxUSE_REGEX 1
25064_ACEOF
25065
25066
25067 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25068 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25069echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25070 wxUSE_REGEX=builtin
25071 fi
25072
25073 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25074 if test "${ac_cv_header_regex_h+set}" = set; then
25075 echo "$as_me:$LINENO: checking for regex.h" >&5
25076echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25077if test "${ac_cv_header_regex_h+set}" = set; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25079fi
25080echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25081echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25082else
25083 # Is the header compilable?
25084echo "$as_me:$LINENO: checking regex.h usability" >&5
25085echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25086cat >conftest.$ac_ext <<_ACEOF
25087/* confdefs.h. */
25088_ACEOF
25089cat confdefs.h >>conftest.$ac_ext
25090cat >>conftest.$ac_ext <<_ACEOF
25091/* end confdefs.h. */
25092$ac_includes_default
25093#include <regex.h>
25094_ACEOF
25095rm -f conftest.$ac_objext
25096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25097 (eval $ac_compile) 2>conftest.er1
25098 ac_status=$?
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } &&
ca5c6ac3 25104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest.$ac_objext'
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; }; then
25116 ac_header_compiler=yes
25117else
25118 echo "$as_me: failed program was:" >&5
25119sed 's/^/| /' conftest.$ac_ext >&5
25120
25121ac_header_compiler=no
25122fi
25123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25125echo "${ECHO_T}$ac_header_compiler" >&6
25126
25127# Is the header present?
25128echo "$as_me:$LINENO: checking regex.h presence" >&5
25129echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25130cat >conftest.$ac_ext <<_ACEOF
25131/* confdefs.h. */
25132_ACEOF
25133cat confdefs.h >>conftest.$ac_ext
25134cat >>conftest.$ac_ext <<_ACEOF
25135/* end confdefs.h. */
25136#include <regex.h>
25137_ACEOF
25138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25140 ac_status=$?
25141 grep -v '^ *+' conftest.er1 >conftest.err
25142 rm -f conftest.er1
25143 cat conftest.err >&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } >/dev/null; then
25146 if test -s conftest.err; then
25147 ac_cpp_err=$ac_cxx_preproc_warn_flag
25148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25149 else
25150 ac_cpp_err=
25151 fi
25152else
25153 ac_cpp_err=yes
25154fi
25155if test -z "$ac_cpp_err"; then
25156 ac_header_preproc=yes
25157else
25158 echo "$as_me: failed program was:" >&5
25159sed 's/^/| /' conftest.$ac_ext >&5
25160
25161 ac_header_preproc=no
25162fi
25163rm -f conftest.err conftest.$ac_ext
25164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25165echo "${ECHO_T}$ac_header_preproc" >&6
25166
25167# So? What about this header?
25168case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25169 yes:no: )
25170 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25171echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25173echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25174 ac_header_preproc=yes
25175 ;;
25176 no:yes:* )
25177 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25178echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25179 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25180echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25181 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25182echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25183 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25184echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25185 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25186echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25187 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25188echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25189 (
25190 cat <<\_ASBOX
25191## ----------------------------------------- ##
25192## Report this to wx-dev@lists.wxwidgets.org ##
25193## ----------------------------------------- ##
25194_ASBOX
25195 ) |
25196 sed "s/^/$as_me: WARNING: /" >&2
25197 ;;
25198esac
25199echo "$as_me:$LINENO: checking for regex.h" >&5
25200echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25201if test "${ac_cv_header_regex_h+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25203else
25204 ac_cv_header_regex_h=$ac_header_preproc
25205fi
25206echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25207echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25208
25209fi
25210if test $ac_cv_header_regex_h = yes; then
25211
25212
25213for ac_func in regcomp re_search
25214do
25215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25216echo "$as_me:$LINENO: checking for $ac_func" >&5
25217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25218if eval "test \"\${$as_ac_var+set}\" = set"; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25220else
25221 cat >conftest.$ac_ext <<_ACEOF
25222/* confdefs.h. */
25223_ACEOF
25224cat confdefs.h >>conftest.$ac_ext
25225cat >>conftest.$ac_ext <<_ACEOF
25226/* end confdefs.h. */
25227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25229#define $ac_func innocuous_$ac_func
25230
25231/* System header to define __stub macros and hopefully few prototypes,
25232 which can conflict with char $ac_func (); below.
25233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25234 <limits.h> exists even on freestanding compilers. */
25235
25236#ifdef __STDC__
25237# include <limits.h>
25238#else
25239# include <assert.h>
25240#endif
25241
25242#undef $ac_func
25243
25244/* Override any gcc2 internal prototype to avoid an error. */
25245#ifdef __cplusplus
25246extern "C"
25247{
25248#endif
25249/* We use char because int might match the return type of a gcc2
25250 builtin and then its argument prototype would still apply. */
25251char $ac_func ();
25252/* The GNU C library defines this for functions which it implements
25253 to always fail with ENOSYS. Some functions are actually named
25254 something starting with __ and the normal name is an alias. */
25255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25256choke me
25257#else
25258char (*f) () = $ac_func;
25259#endif
25260#ifdef __cplusplus
25261}
25262#endif
25263
25264int
25265main ()
25266{
25267return f != $ac_func;
25268 ;
25269 return 0;
25270}
25271_ACEOF
25272rm -f conftest.$ac_objext conftest$ac_exeext
25273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25274 (eval $ac_link) 2>conftest.er1
25275 ac_status=$?
25276 grep -v '^ *+' conftest.er1 >conftest.err
25277 rm -f conftest.er1
25278 cat conftest.err >&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } &&
ca5c6ac3 25281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; } &&
25287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 eval "$as_ac_var=yes"
25294else
25295 echo "$as_me: failed program was:" >&5
25296sed 's/^/| /' conftest.$ac_ext >&5
25297
25298eval "$as_ac_var=no"
25299fi
ac1cb8d3
VS
25300rm -f conftest.err conftest.$ac_objext \
25301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25302fi
25303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25304echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25305if test `eval echo '${'$as_ac_var'}'` = yes; then
25306 cat >>confdefs.h <<_ACEOF
25307#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25308_ACEOF
25309
25310fi
25311done
25312
25313fi
25314
25315
25316
25317 if test "x$ac_cv_func_regcomp" != "xyes"; then
25318 if test "$wxUSE_REGEX" = "sys" ; then
25319 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25320echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25321 { (exit 1); exit 1; }; }
25322 else
25323 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25324echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25325 wxUSE_REGEX=builtin
25326 fi
25327 else
25328 wxUSE_REGEX=sys
25329 cat >>confdefs.h <<\_ACEOF
25330#define WX_NO_REGEX_ADVANCED 1
25331_ACEOF
25332
25333 fi
25334 fi
25335fi
25336
25337
25338ZLIB_LINK=
25339if test "$wxUSE_ZLIB" != "no" ; then
25340 cat >>confdefs.h <<\_ACEOF
25341#define wxUSE_ZLIB 1
25342_ACEOF
25343
25344
25345 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25346 if test "$USE_DARWIN" = 1; then
25347 system_zlib_h_ok="yes"
25348 else
25349 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25350echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25351if test "${ac_cv_header_zlib_h+set}" = set; then
25352 echo $ECHO_N "(cached) $ECHO_C" >&6
25353else
25354 if test "$cross_compiling" = yes; then
25355 unset ac_cv_header_zlib_h
25356
25357else
25358 cat >conftest.$ac_ext <<_ACEOF
25359/* confdefs.h. */
25360_ACEOF
25361cat confdefs.h >>conftest.$ac_ext
25362cat >>conftest.$ac_ext <<_ACEOF
25363/* end confdefs.h. */
25364
25365 #include <zlib.h>
25366 #include <stdio.h>
25367
25368 int main()
25369 {
25370 FILE *f=fopen("conftestval", "w");
25371 if (!f) exit(1);
25372 fprintf(f, "%s",
25373 ZLIB_VERSION[0] == '1' &&
25374 (ZLIB_VERSION[2] > '1' ||
25375 (ZLIB_VERSION[2] == '1' &&
25376 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25377 exit(0);
25378 }
25379
25380_ACEOF
25381rm -f conftest$ac_exeext
25382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25383 (eval $ac_link) 2>&5
25384 ac_status=$?
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); }; }; then
25392 ac_cv_header_zlib_h=`cat conftestval`
25393else
25394 echo "$as_me: program exited with status $ac_status" >&5
25395echo "$as_me: failed program was:" >&5
25396sed 's/^/| /' conftest.$ac_ext >&5
25397
25398( exit $ac_status )
25399ac_cv_header_zlib_h=no
25400fi
ac1cb8d3 25401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25402fi
25403
25404fi
25405echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25406echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25407 if test "${ac_cv_header_zlib_h+set}" = set; then
25408 echo "$as_me:$LINENO: checking for zlib.h" >&5
25409echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25410if test "${ac_cv_header_zlib_h+set}" = set; then
25411 echo $ECHO_N "(cached) $ECHO_C" >&6
25412fi
25413echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25414echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25415else
25416 # Is the header compilable?
25417echo "$as_me:$LINENO: checking zlib.h usability" >&5
25418echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25419cat >conftest.$ac_ext <<_ACEOF
25420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
25425$ac_includes_default
25426#include <zlib.h>
25427_ACEOF
25428rm -f conftest.$ac_objext
25429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25430 (eval $ac_compile) 2>conftest.er1
a848cd7e 25431 ac_status=$?
ac1cb8d3
VS
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
a848cd7e
SC
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } &&
ca5c6ac3 25437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25439 (eval $ac_try) 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); }; } &&
25443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; }; then
25449 ac_header_compiler=yes
25450else
25451 echo "$as_me: failed program was:" >&5
25452sed 's/^/| /' conftest.$ac_ext >&5
25453
25454ac_header_compiler=no
25455fi
ac1cb8d3 25456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25458echo "${ECHO_T}$ac_header_compiler" >&6
25459
25460# Is the header present?
25461echo "$as_me:$LINENO: checking zlib.h presence" >&5
25462echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25463cat >conftest.$ac_ext <<_ACEOF
25464/* confdefs.h. */
25465_ACEOF
25466cat confdefs.h >>conftest.$ac_ext
25467cat >>conftest.$ac_ext <<_ACEOF
25468/* end confdefs.h. */
25469#include <zlib.h>
25470_ACEOF
25471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25473 ac_status=$?
25474 grep -v '^ *+' conftest.er1 >conftest.err
25475 rm -f conftest.er1
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } >/dev/null; then
25479 if test -s conftest.err; then
5d7b7554
VZ
25480 ac_cpp_err=$ac_cxx_preproc_warn_flag
25481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25482 else
25483 ac_cpp_err=
25484 fi
25485else
25486 ac_cpp_err=yes
25487fi
25488if test -z "$ac_cpp_err"; then
25489 ac_header_preproc=yes
25490else
25491 echo "$as_me: failed program was:" >&5
25492sed 's/^/| /' conftest.$ac_ext >&5
25493
25494 ac_header_preproc=no
25495fi
25496rm -f conftest.err conftest.$ac_ext
25497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25498echo "${ECHO_T}$ac_header_preproc" >&6
25499
25500# So? What about this header?
5d7b7554 25501case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25502 yes:no: )
a848cd7e
SC
25503 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25504echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25505 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25506echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25507 ac_header_preproc=yes
a848cd7e 25508 ;;
ac1cb8d3 25509 no:yes:* )
a848cd7e
SC
25510 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25511echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25512 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25513echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25515echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25516 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25517echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25518 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25519echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25520 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25521echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25522 (
25523 cat <<\_ASBOX
ac1cb8d3
VS
25524## ----------------------------------------- ##
25525## Report this to wx-dev@lists.wxwidgets.org ##
25526## ----------------------------------------- ##
a848cd7e
SC
25527_ASBOX
25528 ) |
25529 sed "s/^/$as_me: WARNING: /" >&2
25530 ;;
25531esac
25532echo "$as_me:$LINENO: checking for zlib.h" >&5
25533echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25534if test "${ac_cv_header_zlib_h+set}" = set; then
25535 echo $ECHO_N "(cached) $ECHO_C" >&6
25536else
25537 ac_cv_header_zlib_h=$ac_header_preproc
25538fi
25539echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25540echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25541
25542fi
25543
25544
25545
25546 system_zlib_h_ok=$ac_cv_header_zlib_h
25547 fi
25548
25549 if test "$system_zlib_h_ok" = "yes"; then
25550 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25551echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25552if test "${ac_cv_lib_z_deflate+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25554else
25555 ac_check_lib_save_LIBS=$LIBS
25556LIBS="-lz $LIBS"
25557cat >conftest.$ac_ext <<_ACEOF
25558/* confdefs.h. */
25559_ACEOF
25560cat confdefs.h >>conftest.$ac_ext
25561cat >>conftest.$ac_ext <<_ACEOF
25562/* end confdefs.h. */
25563
25564/* Override any gcc2 internal prototype to avoid an error. */
25565#ifdef __cplusplus
25566extern "C"
25567#endif
25568/* We use char because int might match the return type of a gcc2
25569 builtin and then its argument prototype would still apply. */
25570char deflate ();
25571int
25572main ()
25573{
25574deflate ();
25575 ;
25576 return 0;
25577}
25578_ACEOF
25579rm -f conftest.$ac_objext conftest$ac_exeext
25580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25581 (eval $ac_link) 2>conftest.er1
a848cd7e 25582 ac_status=$?
ac1cb8d3
VS
25583 grep -v '^ *+' conftest.er1 >conftest.err
25584 rm -f conftest.er1
25585 cat conftest.err >&5
a848cd7e
SC
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
ca5c6ac3 25588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_cv_lib_z_deflate=yes
25601else
25602 echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605ac_cv_lib_z_deflate=no
25606fi
ac1cb8d3
VS
25607rm -f conftest.err conftest.$ac_objext \
25608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25609LIBS=$ac_check_lib_save_LIBS
25610fi
25611echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25612echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25613if test $ac_cv_lib_z_deflate = yes; then
25614 ZLIB_LINK=" -lz"
25615fi
25616
25617 fi
25618
25619 if test "x$ZLIB_LINK" = "x" ; then
25620 if test "$wxUSE_ZLIB" = "sys" ; then
25621 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25622echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25623 { (exit 1); exit 1; }; }
25624 else
25625 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25626echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25627 wxUSE_ZLIB=builtin
25628 fi
25629 else
25630 wxUSE_ZLIB=sys
25631 fi
25632 fi
25633fi
25634
25635
25636PNG_LINK=
25637if test "$wxUSE_LIBPNG" != "no" ; then
25638 cat >>confdefs.h <<\_ACEOF
25639#define wxUSE_LIBPNG 1
25640_ACEOF
25641
25642
25643 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25644 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25645echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25646 wxUSE_LIBPNG=sys
25647 fi
25648
25649 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25650 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25651echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25652 wxUSE_LIBPNG=builtin
25653 fi
25654
25655 if test "$wxUSE_MGL" != 1 ; then
25656 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25657 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25658echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25659if test "${ac_cv_header_png_h+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25661else
25662 if test "$cross_compiling" = yes; then
25663 unset ac_cv_header_png_h
25664
25665else
25666 cat >conftest.$ac_ext <<_ACEOF
25667/* confdefs.h. */
25668_ACEOF
25669cat confdefs.h >>conftest.$ac_ext
25670cat >>conftest.$ac_ext <<_ACEOF
25671/* end confdefs.h. */
25672
25673 #include <png.h>
25674 #include <stdio.h>
25675
25676 int main()
25677 {
25678 FILE *f=fopen("conftestval", "w");
25679 if (!f) exit(1);
25680 fprintf(f, "%s",
25681 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25682 exit(0);
25683 }
25684
25685_ACEOF
25686rm -f conftest$ac_exeext
25687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25688 (eval $ac_link) 2>&5
25689 ac_status=$?
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; }; then
25697 ac_cv_header_png_h=`cat conftestval`
25698else
25699 echo "$as_me: program exited with status $ac_status" >&5
25700echo "$as_me: failed program was:" >&5
25701sed 's/^/| /' conftest.$ac_ext >&5
25702
25703( exit $ac_status )
25704ac_cv_header_png_h=no
25705fi
ac1cb8d3 25706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25707fi
25708
25709fi
25710echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25711echo "${ECHO_T}$ac_cv_header_png_h" >&6
25712 if test "${ac_cv_header_png_h+set}" = set; then
25713 echo "$as_me:$LINENO: checking for png.h" >&5
25714echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25715if test "${ac_cv_header_png_h+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25717fi
25718echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25719echo "${ECHO_T}$ac_cv_header_png_h" >&6
25720else
25721 # Is the header compilable?
25722echo "$as_me:$LINENO: checking png.h usability" >&5
25723echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25724cat >conftest.$ac_ext <<_ACEOF
25725/* confdefs.h. */
25726_ACEOF
25727cat confdefs.h >>conftest.$ac_ext
25728cat >>conftest.$ac_ext <<_ACEOF
25729/* end confdefs.h. */
25730$ac_includes_default
25731#include <png.h>
25732_ACEOF
25733rm -f conftest.$ac_objext
25734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25735 (eval $ac_compile) 2>conftest.er1
a848cd7e 25736 ac_status=$?
ac1cb8d3
VS
25737 grep -v '^ *+' conftest.er1 >conftest.err
25738 rm -f conftest.er1
25739 cat conftest.err >&5
a848cd7e
SC
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); } &&
ca5c6ac3 25742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; } &&
25748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750 (eval $ac_try) 2>&5
25751 ac_status=$?
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); }; }; then
25754 ac_header_compiler=yes
25755else
25756 echo "$as_me: failed program was:" >&5
25757sed 's/^/| /' conftest.$ac_ext >&5
25758
25759ac_header_compiler=no
25760fi
ac1cb8d3 25761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25763echo "${ECHO_T}$ac_header_compiler" >&6
25764
25765# Is the header present?
25766echo "$as_me:$LINENO: checking png.h presence" >&5
25767echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25768cat >conftest.$ac_ext <<_ACEOF
25769/* confdefs.h. */
25770_ACEOF
25771cat confdefs.h >>conftest.$ac_ext
25772cat >>conftest.$ac_ext <<_ACEOF
25773/* end confdefs.h. */
25774#include <png.h>
25775_ACEOF
25776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25778 ac_status=$?
25779 grep -v '^ *+' conftest.er1 >conftest.err
25780 rm -f conftest.er1
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } >/dev/null; then
25784 if test -s conftest.err; then
5d7b7554
VZ
25785 ac_cpp_err=$ac_cxx_preproc_warn_flag
25786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25787 else
25788 ac_cpp_err=
25789 fi
25790else
25791 ac_cpp_err=yes
25792fi
25793if test -z "$ac_cpp_err"; then
25794 ac_header_preproc=yes
25795else
25796 echo "$as_me: failed program was:" >&5
25797sed 's/^/| /' conftest.$ac_ext >&5
25798
25799 ac_header_preproc=no
25800fi
25801rm -f conftest.err conftest.$ac_ext
25802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25803echo "${ECHO_T}$ac_header_preproc" >&6
25804
25805# So? What about this header?
5d7b7554 25806case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25807 yes:no: )
a848cd7e
SC
25808 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25809echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25810 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25811echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25812 ac_header_preproc=yes
a848cd7e 25813 ;;
ac1cb8d3 25814 no:yes:* )
a848cd7e
SC
25815 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25816echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25817 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25818echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25820echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25822echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25823 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25824echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25825 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25826echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25827 (
25828 cat <<\_ASBOX
ac1cb8d3
VS
25829## ----------------------------------------- ##
25830## Report this to wx-dev@lists.wxwidgets.org ##
25831## ----------------------------------------- ##
a848cd7e
SC
25832_ASBOX
25833 ) |
25834 sed "s/^/$as_me: WARNING: /" >&2
25835 ;;
25836esac
25837echo "$as_me:$LINENO: checking for png.h" >&5
25838echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25839if test "${ac_cv_header_png_h+set}" = set; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25841else
25842 ac_cv_header_png_h=$ac_header_preproc
25843fi
25844echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25845echo "${ECHO_T}$ac_cv_header_png_h" >&6
25846
25847fi
25848
25849
25850
25851 if test "$ac_cv_header_png_h" = "yes"; then
25852 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25853echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25854if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25856else
25857 ac_check_lib_save_LIBS=$LIBS
25858LIBS="-lpng -lz -lm $LIBS"
25859cat >conftest.$ac_ext <<_ACEOF
25860/* confdefs.h. */
25861_ACEOF
25862cat confdefs.h >>conftest.$ac_ext
25863cat >>conftest.$ac_ext <<_ACEOF
25864/* end confdefs.h. */
25865
25866/* Override any gcc2 internal prototype to avoid an error. */
25867#ifdef __cplusplus
25868extern "C"
25869#endif
25870/* We use char because int might match the return type of a gcc2
25871 builtin and then its argument prototype would still apply. */
25872char png_check_sig ();
25873int
25874main ()
25875{
25876png_check_sig ();
25877 ;
25878 return 0;
25879}
25880_ACEOF
25881rm -f conftest.$ac_objext conftest$ac_exeext
25882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25883 (eval $ac_link) 2>conftest.er1
a848cd7e 25884 ac_status=$?
ac1cb8d3
VS
25885 grep -v '^ *+' conftest.er1 >conftest.err
25886 rm -f conftest.er1
25887 cat conftest.err >&5
a848cd7e
SC
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } &&
ca5c6ac3 25890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
25896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
25902 ac_cv_lib_png_png_check_sig=yes
25903else
25904 echo "$as_me: failed program was:" >&5
25905sed 's/^/| /' conftest.$ac_ext >&5
25906
25907ac_cv_lib_png_png_check_sig=no
25908fi
ac1cb8d3
VS
25909rm -f conftest.err conftest.$ac_objext \
25910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25911LIBS=$ac_check_lib_save_LIBS
25912fi
25913echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25914echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25915if test $ac_cv_lib_png_png_check_sig = yes; then
25916 PNG_LINK=" -lpng -lz"
25917fi
25918
25919 fi
25920
25921 if test "x$PNG_LINK" = "x" ; then
25922 if test "$wxUSE_LIBPNG" = "sys" ; then
25923 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25924echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25925 { (exit 1); exit 1; }; }
25926 else
25927 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25928echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25929 wxUSE_LIBPNG=builtin
25930 fi
25931 else
25932 wxUSE_LIBPNG=sys
25933 fi
25934 fi
25935 fi
25936
25937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25938fi
25939
25940
25941JPEG_LINK=
25942if test "$wxUSE_LIBJPEG" != "no" ; then
25943 cat >>confdefs.h <<\_ACEOF
25944#define wxUSE_LIBJPEG 1
25945_ACEOF
25946
25947
25948 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25949 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25950echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25951 wxUSE_LIBJPEG=sys
25952 fi
25953
25954 if test "$wxUSE_MGL" != 1 ; then
25955 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25956 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25957echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25958 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25960else
25961 cat >conftest.$ac_ext <<_ACEOF
25962/* confdefs.h. */
25963_ACEOF
25964cat confdefs.h >>conftest.$ac_ext
25965cat >>conftest.$ac_ext <<_ACEOF
25966/* end confdefs.h. */
25967
25968 #undef HAVE_STDLIB_H
25969 #include <stdio.h>
25970 #include <jpeglib.h>
25971
25972int
25973main ()
25974{
25975
25976
25977 ;
25978 return 0;
25979}
25980_ACEOF
25981rm -f conftest.$ac_objext
25982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25983 (eval $ac_compile) 2>conftest.er1
a848cd7e 25984 ac_status=$?
ac1cb8d3
VS
25985 grep -v '^ *+' conftest.er1 >conftest.err
25986 rm -f conftest.er1
25987 cat conftest.err >&5
a848cd7e
SC
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } &&
ca5c6ac3 25990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; } &&
25996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 ac_cv_header_jpeglib_h=yes
26003else
26004 echo "$as_me: failed program was:" >&5
26005sed 's/^/| /' conftest.$ac_ext >&5
26006
26007ac_cv_header_jpeglib_h=no
26008
26009fi
ac1cb8d3 26010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26011
26012fi
26013
26014 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26015echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26016
26017 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26018 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26019echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26020if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26022else
26023 ac_check_lib_save_LIBS=$LIBS
26024LIBS="-ljpeg $LIBS"
26025cat >conftest.$ac_ext <<_ACEOF
26026/* confdefs.h. */
26027_ACEOF
26028cat confdefs.h >>conftest.$ac_ext
26029cat >>conftest.$ac_ext <<_ACEOF
26030/* end confdefs.h. */
26031
26032/* Override any gcc2 internal prototype to avoid an error. */
26033#ifdef __cplusplus
26034extern "C"
26035#endif
26036/* We use char because int might match the return type of a gcc2
26037 builtin and then its argument prototype would still apply. */
26038char jpeg_read_header ();
26039int
26040main ()
26041{
26042jpeg_read_header ();
26043 ;
26044 return 0;
26045}
26046_ACEOF
26047rm -f conftest.$ac_objext conftest$ac_exeext
26048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26049 (eval $ac_link) 2>conftest.er1
a848cd7e 26050 ac_status=$?
ac1cb8d3
VS
26051 grep -v '^ *+' conftest.er1 >conftest.err
26052 rm -f conftest.er1
26053 cat conftest.err >&5
a848cd7e
SC
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); } &&
ca5c6ac3 26056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; } &&
26062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 ac_cv_lib_jpeg_jpeg_read_header=yes
26069else
26070 echo "$as_me: failed program was:" >&5
26071sed 's/^/| /' conftest.$ac_ext >&5
26072
26073ac_cv_lib_jpeg_jpeg_read_header=no
26074fi
ac1cb8d3
VS
26075rm -f conftest.err conftest.$ac_objext \
26076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26077LIBS=$ac_check_lib_save_LIBS
26078fi
26079echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26080echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26081if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26082 JPEG_LINK=" -ljpeg"
26083fi
26084
26085 fi
26086
26087 if test "x$JPEG_LINK" = "x" ; then
26088 if test "$wxUSE_LIBJPEG" = "sys" ; then
26089 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26090echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26091 { (exit 1); exit 1; }; }
26092 else
26093 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26094echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26095 wxUSE_LIBJPEG=builtin
26096 fi
26097 else
26098 wxUSE_LIBJPEG=sys
26099 fi
26100 fi
26101 fi
26102fi
26103
26104
26105TIFF_LINK=
26106TIFF_PREREQ_LINKS=-lm
26107if test "$wxUSE_LIBTIFF" != "no" ; then
26108 cat >>confdefs.h <<\_ACEOF
26109#define wxUSE_LIBTIFF 1
26110_ACEOF
26111
26112
26113 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26114 if test "$wxUSE_LIBJPEG" = "sys"; then
26115 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26116 fi
26117 if test "$wxUSE_ZLIB" = "sys"; then
26118 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26119 fi
26120 if test "${ac_cv_header_tiffio_h+set}" = set; then
26121 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26122echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26123if test "${ac_cv_header_tiffio_h+set}" = set; then
26124 echo $ECHO_N "(cached) $ECHO_C" >&6
26125fi
26126echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26127echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26128else
26129 # Is the header compilable?
26130echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26131echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26132cat >conftest.$ac_ext <<_ACEOF
26133/* confdefs.h. */
26134_ACEOF
26135cat confdefs.h >>conftest.$ac_ext
26136cat >>conftest.$ac_ext <<_ACEOF
26137/* end confdefs.h. */
26138$ac_includes_default
26139#include <tiffio.h>
26140_ACEOF
26141rm -f conftest.$ac_objext
26142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26143 (eval $ac_compile) 2>conftest.er1
a848cd7e 26144 ac_status=$?
ac1cb8d3
VS
26145 grep -v '^ *+' conftest.er1 >conftest.err
26146 rm -f conftest.er1
26147 cat conftest.err >&5
a848cd7e
SC
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } &&
ca5c6ac3 26150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; } &&
26156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158 (eval $ac_try) 2>&5
26159 ac_status=$?
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); }; }; then
26162 ac_header_compiler=yes
26163else
26164 echo "$as_me: failed program was:" >&5
26165sed 's/^/| /' conftest.$ac_ext >&5
26166
26167ac_header_compiler=no
26168fi
ac1cb8d3 26169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26171echo "${ECHO_T}$ac_header_compiler" >&6
26172
26173# Is the header present?
26174echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26175echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26176cat >conftest.$ac_ext <<_ACEOF
26177/* confdefs.h. */
26178_ACEOF
26179cat confdefs.h >>conftest.$ac_ext
26180cat >>conftest.$ac_ext <<_ACEOF
26181/* end confdefs.h. */
26182#include <tiffio.h>
26183_ACEOF
26184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26186 ac_status=$?
26187 grep -v '^ *+' conftest.er1 >conftest.err
26188 rm -f conftest.er1
26189 cat conftest.err >&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } >/dev/null; then
26192 if test -s conftest.err; then
5d7b7554
VZ
26193 ac_cpp_err=$ac_cxx_preproc_warn_flag
26194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26195 else
26196 ac_cpp_err=
26197 fi
26198else
26199 ac_cpp_err=yes
26200fi
26201if test -z "$ac_cpp_err"; then
26202 ac_header_preproc=yes
26203else
26204 echo "$as_me: failed program was:" >&5
26205sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 ac_header_preproc=no
26208fi
26209rm -f conftest.err conftest.$ac_ext
26210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26211echo "${ECHO_T}$ac_header_preproc" >&6
26212
26213# So? What about this header?
5d7b7554 26214case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26215 yes:no: )
a848cd7e
SC
26216 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26217echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26218 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26219echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26220 ac_header_preproc=yes
a848cd7e 26221 ;;
ac1cb8d3 26222 no:yes:* )
a848cd7e
SC
26223 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26224echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26225 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26226echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26227 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26228echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26229 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26230echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26231 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26232echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26233 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26234echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26235 (
26236 cat <<\_ASBOX
ac1cb8d3
VS
26237## ----------------------------------------- ##
26238## Report this to wx-dev@lists.wxwidgets.org ##
26239## ----------------------------------------- ##
a848cd7e
SC
26240_ASBOX
26241 ) |
26242 sed "s/^/$as_me: WARNING: /" >&2
26243 ;;
26244esac
26245echo "$as_me:$LINENO: checking for tiffio.h" >&5
26246echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26247if test "${ac_cv_header_tiffio_h+set}" = set; then
26248 echo $ECHO_N "(cached) $ECHO_C" >&6
26249else
26250 ac_cv_header_tiffio_h=$ac_header_preproc
26251fi
26252echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26253echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26254
26255fi
26256if test $ac_cv_header_tiffio_h = yes; then
26257
26258 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26259echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26260if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26261 echo $ECHO_N "(cached) $ECHO_C" >&6
26262else
26263 ac_check_lib_save_LIBS=$LIBS
26264LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26265cat >conftest.$ac_ext <<_ACEOF
26266/* confdefs.h. */
26267_ACEOF
26268cat confdefs.h >>conftest.$ac_ext
26269cat >>conftest.$ac_ext <<_ACEOF
26270/* end confdefs.h. */
26271
26272/* Override any gcc2 internal prototype to avoid an error. */
26273#ifdef __cplusplus
26274extern "C"
26275#endif
26276/* We use char because int might match the return type of a gcc2
26277 builtin and then its argument prototype would still apply. */
26278char TIFFError ();
26279int
26280main ()
26281{
26282TIFFError ();
26283 ;
26284 return 0;
26285}
26286_ACEOF
26287rm -f conftest.$ac_objext conftest$ac_exeext
26288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26289 (eval $ac_link) 2>conftest.er1
a848cd7e 26290 ac_status=$?
ac1cb8d3
VS
26291 grep -v '^ *+' conftest.er1 >conftest.err
26292 rm -f conftest.er1
26293 cat conftest.err >&5
a848cd7e
SC
26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); } &&
ca5c6ac3 26296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298 (eval $ac_try) 2>&5
26299 ac_status=$?
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; } &&
26302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304 (eval $ac_try) 2>&5
26305 ac_status=$?
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); }; }; then
26308 ac_cv_lib_tiff_TIFFError=yes
26309else
26310 echo "$as_me: failed program was:" >&5
26311sed 's/^/| /' conftest.$ac_ext >&5
26312
26313ac_cv_lib_tiff_TIFFError=no
26314fi
ac1cb8d3
VS
26315rm -f conftest.err conftest.$ac_objext \
26316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26317LIBS=$ac_check_lib_save_LIBS
26318fi
26319echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26320echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26321if test $ac_cv_lib_tiff_TIFFError = yes; then
26322 TIFF_LINK=" -ltiff"
26323fi
26324
26325
26326
26327fi
26328
26329
26330
26331 if test "x$TIFF_LINK" = "x" ; then
26332 if test "$wxUSE_LIBTIFF" = "sys" ; then
26333 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26334echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26335 { (exit 1); exit 1; }; }
26336 else
26337 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26338echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26339 wxUSE_LIBTIFF=builtin
26340 fi
26341 else
26342 wxUSE_LIBTIFF=sys
26343 fi
26344 fi
26345fi
26346
26347
47a7e797
MW
26348if test "$wxUSE_WCHAR_T" != "yes"; then
26349 if test "$wxUSE_EXPAT" != "no"; then
26350 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26351echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26352 wxUSE_EXPAT=no
26353 fi
26354 if test "$wxUSE_XML" != "no"; then
26355 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26356echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26357 wxUSE_XML=no
26358 fi
26359fi
26360
a848cd7e
SC
26361if test "$wxUSE_EXPAT" != "no"; then
26362 wxUSE_XML=yes
26363 cat >>confdefs.h <<\_ACEOF
26364#define wxUSE_EXPAT 1
26365_ACEOF
26366
26367 cat >>confdefs.h <<\_ACEOF
26368#define wxUSE_XML 1
26369_ACEOF
26370
26371
26372 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26373 if test "${ac_cv_header_expat_h+set}" = set; then
26374 echo "$as_me:$LINENO: checking for expat.h" >&5
26375echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26376if test "${ac_cv_header_expat_h+set}" = set; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26378fi
26379echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26380echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26381else
26382 # Is the header compilable?
26383echo "$as_me:$LINENO: checking expat.h usability" >&5
26384echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26385cat >conftest.$ac_ext <<_ACEOF
26386/* confdefs.h. */
26387_ACEOF
26388cat confdefs.h >>conftest.$ac_ext
26389cat >>conftest.$ac_ext <<_ACEOF
26390/* end confdefs.h. */
26391$ac_includes_default
26392#include <expat.h>
26393_ACEOF
26394rm -f conftest.$ac_objext
26395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26396 (eval $ac_compile) 2>conftest.er1
a848cd7e 26397 ac_status=$?
ac1cb8d3
VS
26398 grep -v '^ *+' conftest.er1 >conftest.err
26399 rm -f conftest.er1
26400 cat conftest.err >&5
a848cd7e
SC
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); } &&
ca5c6ac3 26403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26405 (eval $ac_try) 2>&5
26406 ac_status=$?
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); }; } &&
26409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26411 (eval $ac_try) 2>&5
26412 ac_status=$?
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); }; }; then
26415 ac_header_compiler=yes
26416else
26417 echo "$as_me: failed program was:" >&5
26418sed 's/^/| /' conftest.$ac_ext >&5
26419
26420ac_header_compiler=no
26421fi
ac1cb8d3 26422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26424echo "${ECHO_T}$ac_header_compiler" >&6
26425
26426# Is the header present?
26427echo "$as_me:$LINENO: checking expat.h presence" >&5
26428echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26429cat >conftest.$ac_ext <<_ACEOF
26430/* confdefs.h. */
26431_ACEOF
26432cat confdefs.h >>conftest.$ac_ext
26433cat >>conftest.$ac_ext <<_ACEOF
26434/* end confdefs.h. */
26435#include <expat.h>
26436_ACEOF
26437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26439 ac_status=$?
26440 grep -v '^ *+' conftest.er1 >conftest.err
26441 rm -f conftest.er1
26442 cat conftest.err >&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } >/dev/null; then
26445 if test -s conftest.err; then
5d7b7554
VZ
26446 ac_cpp_err=$ac_cxx_preproc_warn_flag
26447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26448 else
26449 ac_cpp_err=
26450 fi
26451else
26452 ac_cpp_err=yes
26453fi
26454if test -z "$ac_cpp_err"; then
26455 ac_header_preproc=yes
26456else
26457 echo "$as_me: failed program was:" >&5
26458sed 's/^/| /' conftest.$ac_ext >&5
26459
26460 ac_header_preproc=no
26461fi
26462rm -f conftest.err conftest.$ac_ext
26463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26464echo "${ECHO_T}$ac_header_preproc" >&6
26465
26466# So? What about this header?
5d7b7554 26467case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26468 yes:no: )
a848cd7e
SC
26469 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26470echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26471 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26472echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26473 ac_header_preproc=yes
a848cd7e 26474 ;;
ac1cb8d3 26475 no:yes:* )
a848cd7e
SC
26476 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26477echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26478 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26479echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26480 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26481echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26482 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26483echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26484 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26485echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26486 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26487echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26488 (
26489 cat <<\_ASBOX
ac1cb8d3
VS
26490## ----------------------------------------- ##
26491## Report this to wx-dev@lists.wxwidgets.org ##
26492## ----------------------------------------- ##
a848cd7e
SC
26493_ASBOX
26494 ) |
26495 sed "s/^/$as_me: WARNING: /" >&2
26496 ;;
26497esac
26498echo "$as_me:$LINENO: checking for expat.h" >&5
26499echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26500if test "${ac_cv_header_expat_h+set}" = set; then
26501 echo $ECHO_N "(cached) $ECHO_C" >&6
26502else
26503 ac_cv_header_expat_h=$ac_header_preproc
26504fi
26505echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26506echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26507
26508fi
26509if test $ac_cv_header_expat_h = yes; then
26510 found_expat_h=1
26511fi
26512
26513
26514 if test "x$found_expat_h" = "x1"; then
26515 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26516echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26517if test "${wx_cv_expat_is_not_broken+set}" = set; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26519else
26520
a848cd7e
SC
26521 cat >conftest.$ac_ext <<_ACEOF
26522/* confdefs.h. */
26523_ACEOF
26524cat confdefs.h >>conftest.$ac_ext
26525cat >>conftest.$ac_ext <<_ACEOF
26526/* end confdefs.h. */
26527#include <expat.h>
26528int
26529main ()
26530{
26531
26532 ;
26533 return 0;
26534}
26535_ACEOF
26536rm -f conftest.$ac_objext
26537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26538 (eval $ac_compile) 2>conftest.er1
a848cd7e 26539 ac_status=$?
ac1cb8d3
VS
26540 grep -v '^ *+' conftest.er1 >conftest.err
26541 rm -f conftest.er1
26542 cat conftest.err >&5
a848cd7e
SC
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); } &&
ca5c6ac3 26545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26548 ac_status=$?
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 wx_cv_expat_is_not_broken=yes
26558else
26559 echo "$as_me: failed program was:" >&5
26560sed 's/^/| /' conftest.$ac_ext >&5
26561
26562wx_cv_expat_is_not_broken=no
26563
26564fi
ac1cb8d3 26565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26566
26567
26568fi
26569echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26570echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26571 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26572 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26573echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26574if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26576else
26577 ac_check_lib_save_LIBS=$LIBS
26578LIBS="-lexpat $LIBS"
26579cat >conftest.$ac_ext <<_ACEOF
26580/* confdefs.h. */
26581_ACEOF
26582cat confdefs.h >>conftest.$ac_ext
26583cat >>conftest.$ac_ext <<_ACEOF
26584/* end confdefs.h. */
26585
26586/* Override any gcc2 internal prototype to avoid an error. */
26587#ifdef __cplusplus
26588extern "C"
26589#endif
26590/* We use char because int might match the return type of a gcc2
26591 builtin and then its argument prototype would still apply. */
26592char XML_ParserCreate ();
26593int
26594main ()
26595{
26596XML_ParserCreate ();
26597 ;
26598 return 0;
26599}
26600_ACEOF
26601rm -f conftest.$ac_objext conftest$ac_exeext
26602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26603 (eval $ac_link) 2>conftest.er1
a848cd7e 26604 ac_status=$?
ac1cb8d3
VS
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
a848cd7e
SC
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } &&
ca5c6ac3 26610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612 (eval $ac_try) 2>&5
26613 ac_status=$?
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); }; } &&
26616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26619 ac_status=$?
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; }; then
26622 ac_cv_lib_expat_XML_ParserCreate=yes
26623else
26624 echo "$as_me: failed program was:" >&5
26625sed 's/^/| /' conftest.$ac_ext >&5
26626
26627ac_cv_lib_expat_XML_ParserCreate=no
26628fi
ac1cb8d3
VS
26629rm -f conftest.err conftest.$ac_objext \
26630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26631LIBS=$ac_check_lib_save_LIBS
26632fi
26633echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26634echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26635if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26636 EXPAT_LINK=" -lexpat"
26637fi
26638
26639 fi
26640 fi
26641 if test "x$EXPAT_LINK" = "x" ; then
26642 if test "$wxUSE_EXPAT" = "sys" ; then
26643 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26644echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26645 { (exit 1); exit 1; }; }
26646 else
26647 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26648echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26649 wxUSE_EXPAT=builtin
26650 fi
26651 else
26652 wxUSE_EXPAT=sys
26653 fi
26654 fi
26655 if test "$wxUSE_EXPAT" = "builtin" ; then
26656
26657
26658subdirs="$subdirs src/expat"
26659
26660 fi
26661fi
26662
26663
26664
26665if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26666 if test "${ac_cv_header_mspack_h+set}" = set; then
26667 echo "$as_me:$LINENO: checking for mspack.h" >&5
26668echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26669if test "${ac_cv_header_mspack_h+set}" = set; then
26670 echo $ECHO_N "(cached) $ECHO_C" >&6
26671fi
26672echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26673echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26674else
26675 # Is the header compilable?
26676echo "$as_me:$LINENO: checking mspack.h usability" >&5
26677echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26678cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h. */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h. */
26684$ac_includes_default
26685#include <mspack.h>
26686_ACEOF
26687rm -f conftest.$ac_objext
26688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26689 (eval $ac_compile) 2>conftest.er1
a848cd7e 26690 ac_status=$?
ac1cb8d3
VS
26691 grep -v '^ *+' conftest.er1 >conftest.err
26692 rm -f conftest.er1
26693 cat conftest.err >&5
a848cd7e
SC
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } &&
ca5c6ac3 26696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; } &&
26702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; }; then
26708 ac_header_compiler=yes
26709else
26710 echo "$as_me: failed program was:" >&5
26711sed 's/^/| /' conftest.$ac_ext >&5
26712
26713ac_header_compiler=no
26714fi
ac1cb8d3 26715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26717echo "${ECHO_T}$ac_header_compiler" >&6
26718
26719# Is the header present?
26720echo "$as_me:$LINENO: checking mspack.h presence" >&5
26721echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26722cat >conftest.$ac_ext <<_ACEOF
26723/* confdefs.h. */
26724_ACEOF
26725cat confdefs.h >>conftest.$ac_ext
26726cat >>conftest.$ac_ext <<_ACEOF
26727/* end confdefs.h. */
26728#include <mspack.h>
26729_ACEOF
26730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26732 ac_status=$?
26733 grep -v '^ *+' conftest.er1 >conftest.err
26734 rm -f conftest.er1
26735 cat conftest.err >&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); } >/dev/null; then
26738 if test -s conftest.err; then
5d7b7554
VZ
26739 ac_cpp_err=$ac_cxx_preproc_warn_flag
26740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26741 else
26742 ac_cpp_err=
26743 fi
26744else
26745 ac_cpp_err=yes
26746fi
26747if test -z "$ac_cpp_err"; then
26748 ac_header_preproc=yes
26749else
26750 echo "$as_me: failed program was:" >&5
26751sed 's/^/| /' conftest.$ac_ext >&5
26752
26753 ac_header_preproc=no
26754fi
26755rm -f conftest.err conftest.$ac_ext
26756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26757echo "${ECHO_T}$ac_header_preproc" >&6
26758
26759# So? What about this header?
5d7b7554 26760case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26761 yes:no: )
a848cd7e
SC
26762 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26763echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26764 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26765echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26766 ac_header_preproc=yes
a848cd7e 26767 ;;
ac1cb8d3 26768 no:yes:* )
a848cd7e
SC
26769 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26770echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26771 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26772echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26773 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26774echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26775 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26776echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26777 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26778echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26779 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26780echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26781 (
26782 cat <<\_ASBOX
ac1cb8d3
VS
26783## ----------------------------------------- ##
26784## Report this to wx-dev@lists.wxwidgets.org ##
26785## ----------------------------------------- ##
a848cd7e
SC
26786_ASBOX
26787 ) |
26788 sed "s/^/$as_me: WARNING: /" >&2
26789 ;;
26790esac
26791echo "$as_me:$LINENO: checking for mspack.h" >&5
26792echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26793if test "${ac_cv_header_mspack_h+set}" = set; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26795else
26796 ac_cv_header_mspack_h=$ac_header_preproc
26797fi
26798echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26799echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26800
26801fi
26802if test $ac_cv_header_mspack_h = yes; then
26803 found_mspack_h=1
26804fi
26805
26806
26807 if test "x$found_mspack_h" = "x1"; then
26808 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26809echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26810if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26811 echo $ECHO_N "(cached) $ECHO_C" >&6
26812else
26813 ac_check_lib_save_LIBS=$LIBS
26814LIBS="-lmspack $LIBS"
26815cat >conftest.$ac_ext <<_ACEOF
26816/* confdefs.h. */
26817_ACEOF
26818cat confdefs.h >>conftest.$ac_ext
26819cat >>conftest.$ac_ext <<_ACEOF
26820/* end confdefs.h. */
26821
26822/* Override any gcc2 internal prototype to avoid an error. */
26823#ifdef __cplusplus
26824extern "C"
26825#endif
26826/* We use char because int might match the return type of a gcc2
26827 builtin and then its argument prototype would still apply. */
26828char mspack_create_chm_decompressor ();
26829int
26830main ()
26831{
26832mspack_create_chm_decompressor ();
26833 ;
26834 return 0;
26835}
26836_ACEOF
26837rm -f conftest.$ac_objext conftest$ac_exeext
26838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26839 (eval $ac_link) 2>conftest.er1
a848cd7e 26840 ac_status=$?
ac1cb8d3
VS
26841 grep -v '^ *+' conftest.er1 >conftest.err
26842 rm -f conftest.er1
26843 cat conftest.err >&5
a848cd7e
SC
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
ca5c6ac3 26846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; } &&
26852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26855 ac_status=$?
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; }; then
26858 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26859else
26860 echo "$as_me: failed program was:" >&5
26861sed 's/^/| /' conftest.$ac_ext >&5
26862
26863ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26864fi
ac1cb8d3
VS
26865rm -f conftest.err conftest.$ac_objext \
26866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26867LIBS=$ac_check_lib_save_LIBS
26868fi
26869echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26870echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26871if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26872 MSPACK_LINK=" -lmspack"
26873fi
26874
26875 fi
26876 if test "x$MSPACK_LINK" = "x" ; then
26877 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26878 fi
26879fi
26880
26881if test "$wxUSE_LIBMSPACK" != "no"; then
26882 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26883#define wxUSE_LIBMSPACK 1
26884_ACEOF
26885
a848cd7e
SC
26886fi
26887
26888
26889
26890AFMINSTALL=
26891WIN32INSTALL=
26892
26893TOOLKIT=
26894TOOLKIT_INCLUDE=
26895WIDGET_SET=
26896
26897if test "$USE_WIN32" = 1 ; then
26898
26899for ac_header in w32api.h
26900do
26901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26902if eval "test \"\${$as_ac_Header+set}\" = set"; then
26903 echo "$as_me:$LINENO: checking for $ac_header" >&5
26904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26905if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26907fi
26908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26910else
26911 # Is the header compilable?
26912echo "$as_me:$LINENO: checking $ac_header usability" >&5
26913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26914cat >conftest.$ac_ext <<_ACEOF
26915/* confdefs.h. */
26916_ACEOF
26917cat confdefs.h >>conftest.$ac_ext
26918cat >>conftest.$ac_ext <<_ACEOF
26919/* end confdefs.h. */
26920$ac_includes_default
26921#include <$ac_header>
26922_ACEOF
26923rm -f conftest.$ac_objext
26924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26925 (eval $ac_compile) 2>conftest.er1
a848cd7e 26926 ac_status=$?
ac1cb8d3
VS
26927 grep -v '^ *+' conftest.er1 >conftest.err
26928 rm -f conftest.er1
26929 cat conftest.err >&5
a848cd7e
SC
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } &&
ca5c6ac3 26932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; } &&
26938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 ac_header_compiler=yes
26945else
26946 echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949ac_header_compiler=no
26950fi
ac1cb8d3 26951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26953echo "${ECHO_T}$ac_header_compiler" >&6
26954
26955# Is the header present?
26956echo "$as_me:$LINENO: checking $ac_header presence" >&5
26957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26958cat >conftest.$ac_ext <<_ACEOF
26959/* confdefs.h. */
26960_ACEOF
26961cat confdefs.h >>conftest.$ac_ext
26962cat >>conftest.$ac_ext <<_ACEOF
26963/* end confdefs.h. */
26964#include <$ac_header>
26965_ACEOF
26966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26968 ac_status=$?
26969 grep -v '^ *+' conftest.er1 >conftest.err
26970 rm -f conftest.er1
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } >/dev/null; then
26974 if test -s conftest.err; then
5d7b7554
VZ
26975 ac_cpp_err=$ac_cxx_preproc_warn_flag
26976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26977 else
26978 ac_cpp_err=
26979 fi
26980else
26981 ac_cpp_err=yes
26982fi
26983if test -z "$ac_cpp_err"; then
26984 ac_header_preproc=yes
26985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989 ac_header_preproc=no
26990fi
26991rm -f conftest.err conftest.$ac_ext
26992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26993echo "${ECHO_T}$ac_header_preproc" >&6
26994
26995# So? What about this header?
5d7b7554 26996case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26997 yes:no: )
a848cd7e
SC
26998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27002 ac_header_preproc=yes
a848cd7e 27003 ;;
ac1cb8d3 27004 no:yes:* )
a848cd7e
SC
27005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27017 (
27018 cat <<\_ASBOX
ac1cb8d3
VS
27019## ----------------------------------------- ##
27020## Report this to wx-dev@lists.wxwidgets.org ##
27021## ----------------------------------------- ##
a848cd7e
SC
27022_ASBOX
27023 ) |
27024 sed "s/^/$as_me: WARNING: /" >&2
27025 ;;
27026esac
27027echo "$as_me:$LINENO: checking for $ac_header" >&5
27028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27029if eval "test \"\${$as_ac_Header+set}\" = set"; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27031else
ac1cb8d3 27032 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27033fi
27034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27036
27037fi
27038if test `eval echo '${'$as_ac_Header'}'` = yes; then
27039 cat >>confdefs.h <<_ACEOF
27040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27041_ACEOF
27042
27043fi
27044
27045done
27046
27047 if test "${ac_cv_header_windows_h+set}" = set; then
27048 echo "$as_me:$LINENO: checking for windows.h" >&5
27049echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27050if test "${ac_cv_header_windows_h+set}" = set; then
27051 echo $ECHO_N "(cached) $ECHO_C" >&6
27052fi
27053echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27054echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27055else
27056 # Is the header compilable?
27057echo "$as_me:$LINENO: checking windows.h usability" >&5
27058echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27059cat >conftest.$ac_ext <<_ACEOF
27060/* confdefs.h. */
27061_ACEOF
27062cat confdefs.h >>conftest.$ac_ext
27063cat >>conftest.$ac_ext <<_ACEOF
27064/* end confdefs.h. */
27065$ac_includes_default
27066#include <windows.h>
27067_ACEOF
27068rm -f conftest.$ac_objext
27069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27070 (eval $ac_compile) 2>conftest.er1
a848cd7e 27071 ac_status=$?
ac1cb8d3
VS
27072 grep -v '^ *+' conftest.er1 >conftest.err
27073 rm -f conftest.er1
27074 cat conftest.err >&5
a848cd7e
SC
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); } &&
ca5c6ac3 27077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_header_compiler=yes
27090else
27091 echo "$as_me: failed program was:" >&5
27092sed 's/^/| /' conftest.$ac_ext >&5
27093
27094ac_header_compiler=no
27095fi
ac1cb8d3 27096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27098echo "${ECHO_T}$ac_header_compiler" >&6
27099
27100# Is the header present?
27101echo "$as_me:$LINENO: checking windows.h presence" >&5
27102echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27103cat >conftest.$ac_ext <<_ACEOF
27104/* confdefs.h. */
27105_ACEOF
27106cat confdefs.h >>conftest.$ac_ext
27107cat >>conftest.$ac_ext <<_ACEOF
27108/* end confdefs.h. */
27109#include <windows.h>
27110_ACEOF
27111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27113 ac_status=$?
27114 grep -v '^ *+' conftest.er1 >conftest.err
27115 rm -f conftest.er1
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } >/dev/null; then
27119 if test -s conftest.err; then
5d7b7554
VZ
27120 ac_cpp_err=$ac_cxx_preproc_warn_flag
27121 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27122 else
27123 ac_cpp_err=
27124 fi
27125else
27126 ac_cpp_err=yes
27127fi
27128if test -z "$ac_cpp_err"; then
27129 ac_header_preproc=yes
27130else
27131 echo "$as_me: failed program was:" >&5
27132sed 's/^/| /' conftest.$ac_ext >&5
27133
27134 ac_header_preproc=no
27135fi
27136rm -f conftest.err conftest.$ac_ext
27137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27138echo "${ECHO_T}$ac_header_preproc" >&6
27139
27140# So? What about this header?
5d7b7554 27141case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27142 yes:no: )
a848cd7e
SC
27143 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27144echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27145 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27146echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27147 ac_header_preproc=yes
a848cd7e 27148 ;;
ac1cb8d3 27149 no:yes:* )
a848cd7e
SC
27150 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27151echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27152 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27153echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27154 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27155echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27156 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27157echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27158 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27159echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27160 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27161echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27162 (
27163 cat <<\_ASBOX
ac1cb8d3
VS
27164## ----------------------------------------- ##
27165## Report this to wx-dev@lists.wxwidgets.org ##
27166## ----------------------------------------- ##
a848cd7e
SC
27167_ASBOX
27168 ) |
27169 sed "s/^/$as_me: WARNING: /" >&2
27170 ;;
27171esac
27172echo "$as_me:$LINENO: checking for windows.h" >&5
27173echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27174if test "${ac_cv_header_windows_h+set}" = set; then
27175 echo $ECHO_N "(cached) $ECHO_C" >&6
27176else
27177 ac_cv_header_windows_h=$ac_header_preproc
27178fi
27179echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27180echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27181
27182fi
27183if test $ac_cv_header_windows_h = yes; then
27184 :
27185else
27186
27187 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27188echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27189 { (exit 1); exit 1; }; }
27190
27191fi
27192
27193
27194
27195 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27196
27197 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27198 LIBS="$LIBS -loleacc"
27199 fi
27200
27201 case "${host}" in
27202 *-*-cygwin* )
27203 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27204 esac
27205
27206 if test "$wxUSE_ODBC" = "sys" ; then
27207 wxUSE_ODBC = "yes"
27208 fi
27209 if test "$wxUSE_ODBC" = "yes" ; then
27210 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27211 cat >>confdefs.h <<\_ACEOF
27212#define wxUSE_ODBC 1
27213_ACEOF
27214
27215 fi
27216
370d2fd7 27217 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27218 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27219
004ee6da 27220 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27221
a848cd7e 27222 WIN32INSTALL=win32install
5f41d1bf
MW
27223
27224 echo "$as_me:$LINENO: checking for boolean" >&5
27225echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27226if test "${ac_cv_type_boolean+set}" = set; then
27227 echo $ECHO_N "(cached) $ECHO_C" >&6
27228else
27229 cat >conftest.$ac_ext <<_ACEOF
27230/* confdefs.h. */
27231_ACEOF
27232cat confdefs.h >>conftest.$ac_ext
27233cat >>conftest.$ac_ext <<_ACEOF
27234/* end confdefs.h. */
27235#include <windows.h>
27236
27237int
27238main ()
27239{
27240if ((boolean *) 0)
27241 return 0;
27242if (sizeof (boolean))
27243 return 0;
27244 ;
27245 return 0;
27246}
27247_ACEOF
27248rm -f conftest.$ac_objext
27249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27250 (eval $ac_compile) 2>conftest.er1
27251 ac_status=$?
27252 grep -v '^ *+' conftest.er1 >conftest.err
27253 rm -f conftest.er1
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
ca5c6ac3 27257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259 (eval $ac_try) 2>&5
27260 ac_status=$?
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); }; } &&
27263 { ac_try='test -s conftest.$ac_objext'
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27266 ac_status=$?
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; }; then
27269 ac_cv_type_boolean=yes
27270else
27271 echo "$as_me: failed program was:" >&5
27272sed 's/^/| /' conftest.$ac_ext >&5
27273
27274ac_cv_type_boolean=no
27275fi
27276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27277fi
27278echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27279echo "${ECHO_T}$ac_cv_type_boolean" >&6
27280if test $ac_cv_type_boolean = yes; then
27281
27282cat >>confdefs.h <<_ACEOF
27283#define HAVE_BOOLEAN 1
27284_ACEOF
27285
27286
27287fi
27288
dcfd4ac4
MW
27289
27290
27291for ac_header in pbt.h
27292do
27293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27294if eval "test \"\${$as_ac_Header+set}\" = set"; then
27295 echo "$as_me:$LINENO: checking for $ac_header" >&5
27296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27297if eval "test \"\${$as_ac_Header+set}\" = set"; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27299fi
27300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27302else
27303 # Is the header compilable?
27304echo "$as_me:$LINENO: checking $ac_header usability" >&5
27305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27306cat >conftest.$ac_ext <<_ACEOF
27307/* confdefs.h. */
27308_ACEOF
27309cat confdefs.h >>conftest.$ac_ext
27310cat >>conftest.$ac_ext <<_ACEOF
27311/* end confdefs.h. */
27312$ac_includes_default
27313#include <$ac_header>
27314_ACEOF
27315rm -f conftest.$ac_objext
27316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27317 (eval $ac_compile) 2>conftest.er1
27318 ac_status=$?
27319 grep -v '^ *+' conftest.er1 >conftest.err
27320 rm -f conftest.er1
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
ca5c6ac3 27324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27327 ac_status=$?
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; } &&
27330 { ac_try='test -s conftest.$ac_objext'
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5
27333 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
27336 ac_header_compiler=yes
27337else
27338 echo "$as_me: failed program was:" >&5
27339sed 's/^/| /' conftest.$ac_ext >&5
27340
27341ac_header_compiler=no
27342fi
27343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27345echo "${ECHO_T}$ac_header_compiler" >&6
27346
27347# Is the header present?
27348echo "$as_me:$LINENO: checking $ac_header presence" >&5
27349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27350cat >conftest.$ac_ext <<_ACEOF
27351/* confdefs.h. */
27352_ACEOF
27353cat confdefs.h >>conftest.$ac_ext
27354cat >>conftest.$ac_ext <<_ACEOF
27355/* end confdefs.h. */
27356#include <$ac_header>
27357_ACEOF
27358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27360 ac_status=$?
27361 grep -v '^ *+' conftest.er1 >conftest.err
27362 rm -f conftest.er1
27363 cat conftest.err >&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } >/dev/null; then
27366 if test -s conftest.err; then
27367 ac_cpp_err=$ac_cxx_preproc_warn_flag
27368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27369 else
27370 ac_cpp_err=
27371 fi
27372else
27373 ac_cpp_err=yes
27374fi
27375if test -z "$ac_cpp_err"; then
27376 ac_header_preproc=yes
27377else
27378 echo "$as_me: failed program was:" >&5
27379sed 's/^/| /' conftest.$ac_ext >&5
27380
27381 ac_header_preproc=no
27382fi
27383rm -f conftest.err conftest.$ac_ext
27384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27385echo "${ECHO_T}$ac_header_preproc" >&6
27386
27387# So? What about this header?
27388case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27389 yes:no: )
27390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27394 ac_header_preproc=yes
27395 ;;
27396 no:yes:* )
27397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27409 (
27410 cat <<\_ASBOX
27411## ----------------------------------------- ##
27412## Report this to wx-dev@lists.wxwidgets.org ##
27413## ----------------------------------------- ##
27414_ASBOX
27415 ) |
27416 sed "s/^/$as_me: WARNING: /" >&2
27417 ;;
27418esac
27419echo "$as_me:$LINENO: checking for $ac_header" >&5
27420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27421if eval "test \"\${$as_ac_Header+set}\" = set"; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27423else
27424 eval "$as_ac_Header=\$ac_header_preproc"
27425fi
27426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27428
27429fi
27430if test `eval echo '${'$as_ac_Header'}'` = yes; then
27431 cat >>confdefs.h <<_ACEOF
27432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27433_ACEOF
27434
27435else
27436 cat >>confdefs.h <<\_ACEOF
27437#define NEED_PBT_H 1
27438_ACEOF
27439
27440fi
27441
27442done
27443
a848cd7e
SC
27444fi
27445
27446if test "$wxUSE_GUI" = "yes"; then
27447 USE_GUI=1
27448
27449 GUI_TK_LIBRARY=
27450
27451 WXGTK12=
27452 WXGTK127=
27453 WXGTK20=
27454 WXGPE=
27455
207bc66c
RN
27456 if test "$wxUSE_COCOA" = 1 ; then
27457 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27458 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27459echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27460 wxUSE_PRINTING_ARCHITECTURE=no
27461 fi
27462 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27463 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27464echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27465 wxUSE_DRAG_AND_DROP=no
27466 fi
27467 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27468 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27469echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27470 wxUSE_DRAGIMAGE=no
27471 fi
27472 fi
27473
a848cd7e
SC
27474 if test "$wxUSE_MSW" = 1 ; then
27475 TOOLKIT=MSW
27476 GUIDIST=MSW_DIST
27477
ceec2216 27478 case "${host}" in
a848cd7e
SC
27479 *-*-mingw32* )
27480 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27481 esac
27482 fi
27483
27484 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27485 ac_ext=c
27486ac_cpp='$CPP $CPPFLAGS'
27487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27489ac_compiler_gnu=$ac_cv_c_compiler_gnu
27490
27491
a848cd7e
SC
27492 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27493echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27494
27495 gtk_version_cached=1
27496 if test "${wx_cv_lib_gtk+set}" = set; then
27497 echo $ECHO_N "(cached) $ECHO_C" >&6
27498else
27499
27500 gtk_version_cached=0
27501 echo "$as_me:$LINENO: result: " >&5
27502echo "${ECHO_T}" >&6
27503
27504 GTK_MODULES=
27505 if test "$wxUSE_THREADS" = "yes"; then
27506 GTK_MODULES=gthread
27507 fi
27508
f597b41c 27509 wx_cv_lib_gtk=
5001df0d
MW
27510 if test "x$wxGTK_VERSION" != "x1"
27511 then
27512 case "${host}" in
27513 *-*-solaris2* )
27514 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27515 enable_gtktest=no
5001df0d
MW
27516 fi
27517 esac
27518
a848cd7e
SC
27519 # Check whether --enable-gtktest or --disable-gtktest was given.
27520if test "${enable_gtktest+set}" = set; then
27521 enableval="$enable_gtktest"
27522
27523else
27524 enable_gtktest=yes
27525fi;
27526
27527 pkg_config_args=gtk+-2.0
27528 for module in . $GTK_MODULES
27529 do
27530 case "$module" in
27531 gthread)
27532 pkg_config_args="$pkg_config_args gthread-2.0"
27533 ;;
27534 esac
27535 done
27536
27537 no_gtk=""
27538
27539 # Extract the first word of "pkg-config", so it can be a program name with args.
27540set dummy pkg-config; ac_word=$2
27541echo "$as_me:$LINENO: checking for $ac_word" >&5
27542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27543if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27544 echo $ECHO_N "(cached) $ECHO_C" >&6
27545else
27546 case $PKG_CONFIG in
27547 [\\/]* | ?:[\\/]*)
27548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27549 ;;
27550 *)
27551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27552for as_dir in $PATH
27553do
27554 IFS=$as_save_IFS
27555 test -z "$as_dir" && as_dir=.
27556 for ac_exec_ext in '' $ac_executable_extensions; do
27557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27560 break 2
27561 fi
27562done
27563done
27564
27565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27566 ;;
27567esac
27568fi
27569PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27570
27571if test -n "$PKG_CONFIG"; then
27572 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27573echo "${ECHO_T}$PKG_CONFIG" >&6
27574else
27575 echo "$as_me:$LINENO: result: no" >&5
27576echo "${ECHO_T}no" >&6
27577fi
27578
27579
27580 if test x$PKG_CONFIG != xno ; then
27581 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27582 :
27583 else
c2218763 27584 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27585 no_gtk=yes
27586 PKG_CONFIG=no
27587 fi
27588 else
27589 no_gtk=yes
27590 fi
27591
27592 min_gtk_version=2.0.0
27593 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27594echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27595
27596 if test x$PKG_CONFIG != xno ; then
27597 ## don't try to run the test against uninstalled libtool libs
27598 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27599 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27600 enable_gtktest=no
27601 fi
27602
27603 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27604 :
27605 else
27606 no_gtk=yes
27607 fi
27608 fi
27609
27610 if test x"$no_gtk" = x ; then
27611 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27612 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27613 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27614 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27615 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27616 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27617 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27618 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27619 if test "x$enable_gtktest" = "xyes" ; then
27620 ac_save_CFLAGS="$CFLAGS"
27621 ac_save_LIBS="$LIBS"
27622 CFLAGS="$CFLAGS $GTK_CFLAGS"
27623 LIBS="$GTK_LIBS $LIBS"
27624 rm -f conf.gtktest
27625 if test "$cross_compiling" = yes; then
27626 echo $ac_n "cross compiling; assumed OK... $ac_c"
27627else
27628 cat >conftest.$ac_ext <<_ACEOF
27629/* confdefs.h. */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h. */
27634
27635#include <gtk/gtk.h>
27636#include <stdio.h>
27637#include <stdlib.h>
27638
27639int
27640main ()
27641{
27642 int major, minor, micro;
27643 char *tmp_version;
27644
27645 system ("touch conf.gtktest");
27646
27647 /* HP/UX 9 (%@#!) writes to sscanf strings */
27648 tmp_version = g_strdup("$min_gtk_version");
27649 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27650 printf("%s, bad version string\n", "$min_gtk_version");
27651 exit(1);
27652 }
27653
27654 if ((gtk_major_version != $gtk_config_major_version) ||
27655 (gtk_minor_version != $gtk_config_minor_version) ||
27656 (gtk_micro_version != $gtk_config_micro_version))
27657 {
27658 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27659 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27660 gtk_major_version, gtk_minor_version, gtk_micro_version);
27661 printf ("*** was found! If pkg-config was correct, then it is best\n");
27662 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27663 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27664 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27665 printf("*** required on your system.\n");
27666 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27667 printf("*** to point to the correct configuration files\n");
27668 }
27669 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27670 (gtk_minor_version != GTK_MINOR_VERSION) ||
27671 (gtk_micro_version != GTK_MICRO_VERSION))
27672 {
27673 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27674 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27675 printf("*** library (version %d.%d.%d)\n",
27676 gtk_major_version, gtk_minor_version, gtk_micro_version);
27677 }
27678 else
27679 {
27680 if ((gtk_major_version > major) ||
27681 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27682 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27683 {
27684 return 0;
27685 }
27686 else
27687 {
27688 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27689 gtk_major_version, gtk_minor_version, gtk_micro_version);
27690 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27691 major, minor, micro);
27692 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27693 printf("***\n");
27694 printf("*** If you have already installed a sufficiently new version, this error\n");
27695 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27696 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27697 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27698 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27699 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27700 printf("*** so that the correct libraries are found at run-time))\n");
27701 }
27702 }
27703 return 1;
27704}
27705
27706_ACEOF
27707rm -f conftest$ac_exeext
27708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709 (eval $ac_link) 2>&5
27710 ac_status=$?
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; }; then
27718 :
27719else
27720 echo "$as_me: program exited with status $ac_status" >&5
27721echo "$as_me: failed program was:" >&5
27722sed 's/^/| /' conftest.$ac_ext >&5
27723
27724( exit $ac_status )
27725no_gtk=yes
27726fi
ac1cb8d3 27727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27728fi
27729 CFLAGS="$ac_save_CFLAGS"
27730 LIBS="$ac_save_LIBS"
27731 fi
27732 fi
27733 if test "x$no_gtk" = x ; then
27734 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27735echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27736 wx_cv_lib_gtk=2.0
27737 else
27738 echo "$as_me:$LINENO: result: no" >&5
27739echo "${ECHO_T}no" >&6
27740 if test "$PKG_CONFIG" = "no" ; then
27741 echo "*** A new enough version of pkg-config was not found."
27742 echo "*** See http://pkgconfig.sourceforge.net"
27743 else
27744 if test -f conf.gtktest ; then
27745 :
27746 else
27747 echo "*** Could not run GTK+ test program, checking why..."
27748 ac_save_CFLAGS="$CFLAGS"
27749 ac_save_LIBS="$LIBS"
27750 CFLAGS="$CFLAGS $GTK_CFLAGS"
27751 LIBS="$LIBS $GTK_LIBS"
27752 cat >conftest.$ac_ext <<_ACEOF
27753/* confdefs.h. */
27754_ACEOF
27755cat confdefs.h >>conftest.$ac_ext
27756cat >>conftest.$ac_ext <<_ACEOF
27757/* end confdefs.h. */
27758
27759#include <gtk/gtk.h>
27760#include <stdio.h>
27761
27762int
27763main ()
27764{
27765 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27766 ;
27767 return 0;
27768}
27769_ACEOF
27770rm -f conftest.$ac_objext conftest$ac_exeext
27771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27772 (eval $ac_link) 2>conftest.er1
a848cd7e 27773 ac_status=$?
ac1cb8d3
VS
27774 grep -v '^ *+' conftest.er1 >conftest.err
27775 rm -f conftest.er1
27776 cat conftest.err >&5
a848cd7e
SC
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
ca5c6ac3 27779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27781 (eval $ac_try) 2>&5
27782 ac_status=$?
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; } &&
27785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27787 (eval $ac_try) 2>&5
27788 ac_status=$?
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; }; then
27791 echo "*** The test program compiled, but did not run. This usually means"
27792 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27793 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27794 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27795 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27796 echo "*** is required on your system"
27797 echo "***"
27798 echo "*** If you have an old version installed, it is best to remove it, although"
27799 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27800else
27801 echo "$as_me: failed program was:" >&5
27802sed 's/^/| /' conftest.$ac_ext >&5
27803
27804 echo "*** The test program failed to compile or link. See the file config.log for the"
27805 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27806fi
ac1cb8d3
VS
27807rm -f conftest.err conftest.$ac_objext \
27808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27809 CFLAGS="$ac_save_CFLAGS"
27810 LIBS="$ac_save_LIBS"
27811 fi
27812 fi
27813 GTK_CFLAGS=""
27814 GTK_LIBS=""
27815 :
27816 fi
27817
27818
27819 rm -f conf.gtktest
27820
5001df0d
MW
27821
27822 case "${host}" in
27823 *-*-solaris2* )
27824 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27825 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27826 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27827 fi
27828 if test "$wxUSE_SHARED" != "yes"; then
27829 GTK_LIBS="$GTK_LIBS -lX11"
27830 fi
27831 esac
f597b41c
MW
27832 fi
27833
f34ca037
MW
27834 if test -z "$wx_cv_lib_gtk"; then
27835 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27836
27837# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27838if test "${with_gtk_prefix+set}" = set; then
27839 withval="$with_gtk_prefix"
27840 gtk_config_prefix="$withval"
27841else
27842 gtk_config_prefix=""
27843fi;
27844
27845# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27846if test "${with_gtk_exec_prefix+set}" = set; then
27847 withval="$with_gtk_exec_prefix"
27848 gtk_config_exec_prefix="$withval"
27849else
27850 gtk_config_exec_prefix=""
27851fi;
27852# Check whether --enable-gtktest or --disable-gtktest was given.
27853if test "${enable_gtktest+set}" = set; then
27854 enableval="$enable_gtktest"
27855
27856else
27857 enable_gtktest=yes
27858fi;
27859
27860 for module in . $GTK_MODULES
27861 do
27862 case "$module" in
27863 gthread)
27864 gtk_config_args="$gtk_config_args gthread"
27865 ;;
27866 esac
27867 done
27868
27869 if test x$gtk_config_exec_prefix != x ; then
27870 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27871 if test x${GTK_CONFIG+set} != xset ; then
27872 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27873 fi
27874 fi
27875 if test x$gtk_config_prefix != x ; then
27876 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27877 if test x${GTK_CONFIG+set} != xset ; then
27878 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27879 fi
27880 fi
27881
27882 # Extract the first word of "gtk-config", so it can be a program name with args.
27883set dummy gtk-config; ac_word=$2
27884echo "$as_me:$LINENO: checking for $ac_word" >&5
27885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27886if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27887 echo $ECHO_N "(cached) $ECHO_C" >&6
27888else
27889 case $GTK_CONFIG in
27890 [\\/]* | ?:[\\/]*)
27891 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27892 ;;
27893 *)
27894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27895for as_dir in $PATH
27896do
27897 IFS=$as_save_IFS
27898 test -z "$as_dir" && as_dir=.
27899 for ac_exec_ext in '' $ac_executable_extensions; do
27900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27901 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27903 break 2
27904 fi
27905done
27906done
27907
27908 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27909 ;;
27910esac
27911fi
27912GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27913
27914if test -n "$GTK_CONFIG"; then
27915 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27916echo "${ECHO_T}$GTK_CONFIG" >&6
27917else
27918 echo "$as_me:$LINENO: result: no" >&5
27919echo "${ECHO_T}no" >&6
27920fi
27921
27922 min_gtk_version=1.2.7
27923 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27924echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27925 no_gtk=""
27926 if test "$GTK_CONFIG" = "no" ; then
27927 no_gtk=yes
27928 else
27929 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27930 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27931 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27932 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27933 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27934 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27935 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27936 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27937 if test "x$enable_gtktest" = "xyes" ; then
27938 ac_save_CFLAGS="$CFLAGS"
27939 ac_save_LIBS="$LIBS"
27940 CFLAGS="$CFLAGS $GTK_CFLAGS"
27941 LIBS="$GTK_LIBS $LIBS"
27942 rm -f conf.gtktest
27943 if test "$cross_compiling" = yes; then
27944 echo $ac_n "cross compiling; assumed OK... $ac_c"
27945else
27946 cat >conftest.$ac_ext <<_ACEOF
27947/* confdefs.h. */
27948_ACEOF
27949cat confdefs.h >>conftest.$ac_ext
27950cat >>conftest.$ac_ext <<_ACEOF
27951/* end confdefs.h. */
27952
27953#include <gtk/gtk.h>
27954#include <stdio.h>
27955#include <stdlib.h>
27956
27957int
27958main ()
27959{
27960 int major, minor, micro;
27961 char *tmp_version;
27962
27963 system ("touch conf.gtktest");
27964
27965 /* HP/UX 9 (%@#!) writes to sscanf strings */
27966 tmp_version = g_strdup("$min_gtk_version");
27967 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27968 printf("%s, bad version string\n", "$min_gtk_version");
27969 exit(1);
27970 }
27971
27972 if ((gtk_major_version != $gtk_config_major_version) ||
27973 (gtk_minor_version != $gtk_config_minor_version) ||
27974 (gtk_micro_version != $gtk_config_micro_version))
27975 {
27976 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27977 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27978 gtk_major_version, gtk_minor_version, gtk_micro_version);
27979 printf ("*** was found! If gtk-config was correct, then it is best\n");
27980 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27981 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27982 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27983 printf("*** required on your system.\n");
27984 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27985 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27986 printf("*** before re-running configure\n");
27987 }
27988#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27989 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27990 (gtk_minor_version != GTK_MINOR_VERSION) ||
27991 (gtk_micro_version != GTK_MICRO_VERSION))
27992 {
27993 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27994 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27995 printf("*** library (version %d.%d.%d)\n",
27996 gtk_major_version, gtk_minor_version, gtk_micro_version);
27997 }
27998#endif /* defined (GTK_MAJOR_VERSION) ... */
27999 else
28000 {
28001 if ((gtk_major_version > major) ||
28002 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28003 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28004 {
28005 return 0;
28006 }
28007 else
28008 {
28009 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28010 gtk_major_version, gtk_minor_version, gtk_micro_version);
28011 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28012 major, minor, micro);
28013 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28014 printf("***\n");
28015 printf("*** If you have already installed a sufficiently new version, this error\n");
28016 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28017 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28018 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28019 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28020 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28021 printf("*** so that the correct libraries are found at run-time))\n");
28022 }
28023 }
28024 return 1;
28025}
28026
28027_ACEOF
28028rm -f conftest$ac_exeext
28029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28030 (eval $ac_link) 2>&5
28031 ac_status=$?
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; }; then
28039 :
28040else
28041 echo "$as_me: program exited with status $ac_status" >&5
28042echo "$as_me: failed program was:" >&5
28043sed 's/^/| /' conftest.$ac_ext >&5
28044
28045( exit $ac_status )
28046no_gtk=yes
28047fi
ac1cb8d3 28048rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28049fi
28050 CFLAGS="$ac_save_CFLAGS"
28051 LIBS="$ac_save_LIBS"
28052 fi
28053 fi
28054 if test "x$no_gtk" = x ; then
28055 echo "$as_me:$LINENO: result: yes" >&5
28056echo "${ECHO_T}yes" >&6
28057 wx_cv_lib_gtk=1.2.7
28058 else
28059 echo "$as_me:$LINENO: result: no" >&5
28060echo "${ECHO_T}no" >&6
28061 if test "$GTK_CONFIG" = "no" ; then
28062 echo "*** The gtk-config script installed by GTK could not be found"
28063 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28064 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28065 echo "*** full path to gtk-config."
28066 else
28067 if test -f conf.gtktest ; then
28068 :
28069 else
28070 echo "*** Could not run GTK test program, checking why..."
28071 CFLAGS="$CFLAGS $GTK_CFLAGS"
28072 LIBS="$LIBS $GTK_LIBS"
28073 cat >conftest.$ac_ext <<_ACEOF
28074/* confdefs.h. */
28075_ACEOF
28076cat confdefs.h >>conftest.$ac_ext
28077cat >>conftest.$ac_ext <<_ACEOF
28078/* end confdefs.h. */
28079
28080#include <gtk/gtk.h>
28081#include <stdio.h>
28082
28083int
28084main ()
28085{
28086 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28087 ;
28088 return 0;
28089}
28090_ACEOF
28091rm -f conftest.$ac_objext conftest$ac_exeext
28092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28093 (eval $ac_link) 2>conftest.er1
a848cd7e 28094 ac_status=$?
ac1cb8d3
VS
28095 grep -v '^ *+' conftest.er1 >conftest.err
28096 rm -f conftest.er1
28097 cat conftest.err >&5
a848cd7e
SC
28098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } &&
ca5c6ac3 28100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28102 (eval $ac_try) 2>&5
28103 ac_status=$?
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; } &&
28106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28108 (eval $ac_try) 2>&5
28109 ac_status=$?
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); }; }; then
28112 echo "*** The test program compiled, but did not run. This usually means"
28113 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28114 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28115 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28116 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28117 echo "*** is required on your system"
28118 echo "***"
28119 echo "*** If you have an old version installed, it is best to remove it, although"
28120 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28121 echo "***"
28122 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28123 echo "*** came with the system with the command"
28124 echo "***"
28125 echo "*** rpm --erase --nodeps gtk gtk-devel"
28126else
28127 echo "$as_me: failed program was:" >&5
28128sed 's/^/| /' conftest.$ac_ext >&5
28129
28130 echo "*** The test program failed to compile or link. See the file config.log for the"
28131 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28132 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28133 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28134fi
ac1cb8d3
VS
28135rm -f conftest.err conftest.$ac_objext \
28136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28137 CFLAGS="$ac_save_CFLAGS"
28138 LIBS="$ac_save_LIBS"
28139 fi
28140 fi
28141 GTK_CFLAGS=""
28142 GTK_LIBS=""
28143 :
28144 fi
28145
28146
28147 rm -f conf.gtktest
28148
28149
f34ca037 28150 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28151
28152# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28153if test "${with_gtk_prefix+set}" = set; then
28154 withval="$with_gtk_prefix"
28155 gtk_config_prefix="$withval"
28156else
28157 gtk_config_prefix=""
28158fi;
28159
28160# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28161if test "${with_gtk_exec_prefix+set}" = set; then
28162 withval="$with_gtk_exec_prefix"
28163 gtk_config_exec_prefix="$withval"
28164else
28165 gtk_config_exec_prefix=""
28166fi;
28167# Check whether --enable-gtktest or --disable-gtktest was given.
28168if test "${enable_gtktest+set}" = set; then
28169 enableval="$enable_gtktest"
28170
28171else
28172 enable_gtktest=yes
28173fi;
28174
28175 for module in . $GTK_MODULES
28176 do
28177 case "$module" in
28178 gthread)
28179 gtk_config_args="$gtk_config_args gthread"
28180 ;;
28181 esac
28182 done
28183
28184 if test x$gtk_config_exec_prefix != x ; then
28185 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28186 if test x${GTK_CONFIG+set} != xset ; then
28187 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28188 fi
28189 fi
28190 if test x$gtk_config_prefix != x ; then
28191 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28192 if test x${GTK_CONFIG+set} != xset ; then
28193 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28194 fi
28195 fi
28196
28197 # Extract the first word of "gtk-config", so it can be a program name with args.
28198set dummy gtk-config; ac_word=$2
28199echo "$as_me:$LINENO: checking for $ac_word" >&5
28200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28201if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28202 echo $ECHO_N "(cached) $ECHO_C" >&6
28203else
28204 case $GTK_CONFIG in
28205 [\\/]* | ?:[\\/]*)
28206 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28207 ;;
28208 *)
28209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28210for as_dir in $PATH
28211do
28212 IFS=$as_save_IFS
28213 test -z "$as_dir" && as_dir=.
28214 for ac_exec_ext in '' $ac_executable_extensions; do
28215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28216 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28218 break 2
28219 fi
28220done
28221done
28222
28223 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28224 ;;
28225esac
28226fi
28227GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28228
28229if test -n "$GTK_CONFIG"; then
28230 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28231echo "${ECHO_T}$GTK_CONFIG" >&6
28232else
28233 echo "$as_me:$LINENO: result: no" >&5
28234echo "${ECHO_T}no" >&6
28235fi
28236
28237 min_gtk_version=1.2.3
28238 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28239echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28240 no_gtk=""
28241 if test "$GTK_CONFIG" = "no" ; then
28242 no_gtk=yes
28243 else
28244 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28245 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28246 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28247 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28248 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28250 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28252 if test "x$enable_gtktest" = "xyes" ; then
28253 ac_save_CFLAGS="$CFLAGS"
28254 ac_save_LIBS="$LIBS"
28255 CFLAGS="$CFLAGS $GTK_CFLAGS"
28256 LIBS="$GTK_LIBS $LIBS"
28257 rm -f conf.gtktest
28258 if test "$cross_compiling" = yes; then
28259 echo $ac_n "cross compiling; assumed OK... $ac_c"
28260else
28261 cat >conftest.$ac_ext <<_ACEOF
28262/* confdefs.h. */
28263_ACEOF
28264cat confdefs.h >>conftest.$ac_ext
28265cat >>conftest.$ac_ext <<_ACEOF
28266/* end confdefs.h. */
28267
28268#include <gtk/gtk.h>
28269#include <stdio.h>
28270#include <stdlib.h>
28271
28272int
28273main ()
28274{
28275 int major, minor, micro;
28276 char *tmp_version;
28277
28278 system ("touch conf.gtktest");
28279
28280 /* HP/UX 9 (%@#!) writes to sscanf strings */
28281 tmp_version = g_strdup("$min_gtk_version");
28282 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28283 printf("%s, bad version string\n", "$min_gtk_version");
28284 exit(1);
28285 }
28286
28287 if ((gtk_major_version != $gtk_config_major_version) ||
28288 (gtk_minor_version != $gtk_config_minor_version) ||
28289 (gtk_micro_version != $gtk_config_micro_version))
28290 {
28291 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28292 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28293 gtk_major_version, gtk_minor_version, gtk_micro_version);
28294 printf ("*** was found! If gtk-config was correct, then it is best\n");
28295 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28296 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28297 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28298 printf("*** required on your system.\n");
28299 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28300 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28301 printf("*** before re-running configure\n");
28302 }
28303#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28304 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28305 (gtk_minor_version != GTK_MINOR_VERSION) ||
28306 (gtk_micro_version != GTK_MICRO_VERSION))
28307 {
28308 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28309 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28310 printf("*** library (version %d.%d.%d)\n",
28311 gtk_major_version, gtk_minor_version, gtk_micro_version);
28312 }
28313#endif /* defined (GTK_MAJOR_VERSION) ... */
28314 else
28315 {
28316 if ((gtk_major_version > major) ||
28317 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28318 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28319 {
28320 return 0;
28321 }
28322 else
28323 {
28324 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28325 gtk_major_version, gtk_minor_version, gtk_micro_version);
28326 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28327 major, minor, micro);
28328 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28329 printf("***\n");
28330 printf("*** If you have already installed a sufficiently new version, this error\n");
28331 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28332 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28333 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28334 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28335 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28336 printf("*** so that the correct libraries are found at run-time))\n");
28337 }
28338 }
28339 return 1;
28340}
28341
28342_ACEOF
28343rm -f conftest$ac_exeext
28344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28345 (eval $ac_link) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28354 :
28355else
28356 echo "$as_me: program exited with status $ac_status" >&5
28357echo "$as_me: failed program was:" >&5
28358sed 's/^/| /' conftest.$ac_ext >&5
28359
28360( exit $ac_status )
28361no_gtk=yes
28362fi
ac1cb8d3 28363rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28364fi
28365 CFLAGS="$ac_save_CFLAGS"
28366 LIBS="$ac_save_LIBS"
28367 fi
28368 fi
28369 if test "x$no_gtk" = x ; then
28370 echo "$as_me:$LINENO: result: yes" >&5
28371echo "${ECHO_T}yes" >&6
28372 wx_cv_lib_gtk=1.2.3
28373 else
28374 echo "$as_me:$LINENO: result: no" >&5
28375echo "${ECHO_T}no" >&6
28376 if test "$GTK_CONFIG" = "no" ; then
28377 echo "*** The gtk-config script installed by GTK could not be found"
28378 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28379 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28380 echo "*** full path to gtk-config."
28381 else
28382 if test -f conf.gtktest ; then
28383 :
28384 else
28385 echo "*** Could not run GTK test program, checking why..."
28386 CFLAGS="$CFLAGS $GTK_CFLAGS"
28387 LIBS="$LIBS $GTK_LIBS"
28388 cat >conftest.$ac_ext <<_ACEOF
28389/* confdefs.h. */
28390_ACEOF
28391cat confdefs.h >>conftest.$ac_ext
28392cat >>conftest.$ac_ext <<_ACEOF
28393/* end confdefs.h. */
28394
28395#include <gtk/gtk.h>
28396#include <stdio.h>
28397
28398int
28399main ()
28400{
28401 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28402 ;
28403 return 0;
28404}
28405_ACEOF
28406rm -f conftest.$ac_objext conftest$ac_exeext
28407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28408 (eval $ac_link) 2>conftest.er1
a848cd7e 28409 ac_status=$?
ac1cb8d3
VS
28410 grep -v '^ *+' conftest.er1 >conftest.err
28411 rm -f conftest.er1
28412 cat conftest.err >&5
a848cd7e
SC
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } &&
ca5c6ac3 28415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423 (eval $ac_try) 2>&5
28424 ac_status=$?
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28427 echo "*** The test program compiled, but did not run. This usually means"
28428 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28429 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28430 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28431 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28432 echo "*** is required on your system"
28433 echo "***"
28434 echo "*** If you have an old version installed, it is best to remove it, although"
28435 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28436 echo "***"
28437 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28438 echo "*** came with the system with the command"
28439 echo "***"
28440 echo "*** rpm --erase --nodeps gtk gtk-devel"
28441else
28442 echo "$as_me: failed program was:" >&5
28443sed 's/^/| /' conftest.$ac_ext >&5
28444
28445 echo "*** The test program failed to compile or link. See the file config.log for the"
28446 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28447 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28448 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28449fi
ac1cb8d3
VS
28450rm -f conftest.err conftest.$ac_objext \
28451 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28452 CFLAGS="$ac_save_CFLAGS"
28453 LIBS="$ac_save_LIBS"
28454 fi
28455 fi
28456 GTK_CFLAGS=""
28457 GTK_LIBS=""
28458 :
28459 fi
28460
28461
28462 rm -f conf.gtktest
28463
f34ca037 28464 fi
a848cd7e
SC
28465 fi
28466 fi
28467
28468 if test -z "$wx_cv_lib_gtk"; then
28469 wx_cv_lib_gtk=none
28470 else
28471 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28472 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28473 fi
28474
28475
28476fi
28477
28478
28479 if test "$gtk_version_cached" = 1; then
28480 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28481echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28482 fi
28483
28484 case "$wx_cv_lib_gtk" in
28485 2.0) WXGTK20=1
28486 TOOLKIT_VERSION=2
28487 ;;
28488 1.2.7) WXGTK127=1
28489 WXGTK12=1
28490 ;;
28491 1.2.3) WXGTK12=1
28492 ;;
28493 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28494The development files for GTK+ were not found. For GTK+ 2, please
28495ensure that pkg-config is in the path and that gtk+-2.0.pc is
28496installed. For GTK+ 1.2 please check that gtk-config is in the path,
28497and that the version is 1.2.3 or above. Also check that the
28498libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28499--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28500 " >&5
28501echo "$as_me: error:
f597b41c
MW
28502The development files for GTK+ were not found. For GTK+ 2, please
28503ensure that pkg-config is in the path and that gtk+-2.0.pc is
28504installed. For GTK+ 1.2 please check that gtk-config is in the path,
28505and that the version is 1.2.3 or above. Also check that the
28506libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28507--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28508 " >&2;}
28509 { (exit 1); exit 1; }; }
28510 ;;
28511 esac
28512
28513 if test "$WXGTK20" = 1; then
6954625c 28514 save_CFLAGS="$CFLAGS"
304205f1 28515 save_LIBS="$LIBS"
6954625c 28516 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28517 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28518
58e65954
MW
28519 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28520echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28521if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28522 echo $ECHO_N "(cached) $ECHO_C" >&6
28523else
28524 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28525/* confdefs.h. */
28526_ACEOF
28527cat confdefs.h >>conftest.$ac_ext
28528cat >>conftest.$ac_ext <<_ACEOF
28529/* end confdefs.h. */
58e65954 28530#include <gtk/gtk.h>
304205f1 28531
d12aef51
VZ
28532int
28533main ()
28534{
58e65954
MW
28535#ifndef gtk_icon_size_lookup
28536 char *p = (char *) gtk_icon_size_lookup;
28537#endif
abc736fd
MW
28538
28539 ;
28540 return 0;
28541}
28542_ACEOF
28543rm -f conftest.$ac_objext
28544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28545 (eval $ac_compile) 2>conftest.er1
28546 ac_status=$?
28547 grep -v '^ *+' conftest.er1 >conftest.err
28548 rm -f conftest.er1
28549 cat conftest.err >&5
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } &&
ca5c6ac3 28552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; } &&
28558 { ac_try='test -s conftest.$ac_objext'
28559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560 (eval $ac_try) 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; }; then
58e65954 28564 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28565else
28566 echo "$as_me: failed program was:" >&5
28567sed 's/^/| /' conftest.$ac_ext >&5
28568
58e65954
MW
28569ac_cv_have_decl_gtk_icon_size_lookup=no
28570fi
28571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28572fi
28573echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28574echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28575if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28576
58e65954
MW
28577cat >>confdefs.h <<_ACEOF
28578#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28579_ACEOF
28580
58e65954
MW
28581
28582else
28583 cat >>confdefs.h <<_ACEOF
28584#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28585_ACEOF
28586
28587cat >>confdefs.h <<\_ACEOF
28588#define NEED_GTK_ICON_SIZE_LOOKUP 1
28589_ACEOF
abc736fd
MW
28590
28591fi
58e65954
MW
28592
28593
abc736fd 28594
e9263684
VZ
28595 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28596echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28597 cat >conftest.$ac_ext <<_ACEOF
28598/* confdefs.h. */
28599_ACEOF
28600cat confdefs.h >>conftest.$ac_ext
28601cat >>conftest.$ac_ext <<_ACEOF
28602/* end confdefs.h. */
28603
28604 #include <gtk/gtk.h>
28605
28606int
28607main ()
28608{
28609
28610 #if !GTK_CHECK_VERSION(2,6,0)
28611 Not GTK+ 2.6
28612 #endif
28613
28614 ;
28615 return 0;
28616}
28617_ACEOF
28618rm -f conftest.$ac_objext
28619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28620 (eval $ac_compile) 2>conftest.er1
28621 ac_status=$?
28622 grep -v '^ *+' conftest.er1 >conftest.err
28623 rm -f conftest.er1
28624 cat conftest.err >&5
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); } &&
ca5c6ac3 28627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28630 ac_status=$?
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; } &&
28633 { ac_try='test -s conftest.$ac_objext'
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; }; then
28639
28640 cat >>confdefs.h <<\_ACEOF
28641#define __WXGTK26__ 1
28642_ACEOF
28643
28644 cat >>confdefs.h <<\_ACEOF
28645#define __WXGTK24__ 1
28646_ACEOF
28647
28648 echo "$as_me:$LINENO: result: yes" >&5
28649echo "${ECHO_T}yes" >&6
28650 ac_wxgtk26=1
28651
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656
28657 echo "$as_me:$LINENO: result: no" >&5
28658echo "${ECHO_T}no" >&6
28659 ac_wxgtk26=0
28660
28661fi
28662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28663
28664 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28665 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28666echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28667 cat >conftest.$ac_ext <<_ACEOF
28668/* confdefs.h. */
28669_ACEOF
28670cat confdefs.h >>conftest.$ac_ext
28671cat >>conftest.$ac_ext <<_ACEOF
28672/* end confdefs.h. */
28673
28674 #include <gtk/gtk.h>
28675
28676int
28677main ()
28678{
28679
28680 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28681 Not GTK+ 2.4
9755e73b
VS
28682 #endif
28683
28684 ;
28685 return 0;
28686}
28687_ACEOF
28688rm -f conftest.$ac_objext
28689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28690 (eval $ac_compile) 2>conftest.er1
28691 ac_status=$?
28692 grep -v '^ *+' conftest.er1 >conftest.err
28693 rm -f conftest.er1
28694 cat conftest.err >&5
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); } &&
ca5c6ac3 28697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; } &&
28703 { ac_try='test -s conftest.$ac_objext'
28704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
28709
28710 cat >>confdefs.h <<\_ACEOF
28711#define __WXGTK24__ 1
28712_ACEOF
28713
28714 echo "$as_me:$LINENO: result: yes" >&5
28715echo "${ECHO_T}yes" >&6
28716
28717else
28718 echo "$as_me: failed program was:" >&5
28719sed 's/^/| /' conftest.$ac_ext >&5
28720
28721
28722 echo "$as_me:$LINENO: result: no" >&5
28723echo "${ECHO_T}no" >&6
28724
28725fi
28726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28727 fi
9755e73b 28728
6954625c 28729 CFLAGS="$save_CFLAGS"
304205f1 28730 LIBS="$save_LIBS"
a848cd7e
SC
28731 else
28732 if test "$wxUSE_UNICODE" = "yes"; then
28733 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28734echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28735 wxUSE_UNICODE=no
28736 fi
28737 fi
28738
e56f4f9e
VZ
28739 ac_ext=cc
28740ac_cpp='$CXXCPP $CPPFLAGS'
28741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28744
28745
a848cd7e
SC
28746 if test "$USE_DARWIN" != 1; then
28747
28748for ac_func in poll
28749do
28750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28751echo "$as_me:$LINENO: checking for $ac_func" >&5
28752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28753if eval "test \"\${$as_ac_var+set}\" = set"; then
28754 echo $ECHO_N "(cached) $ECHO_C" >&6
28755else
28756 cat >conftest.$ac_ext <<_ACEOF
28757/* confdefs.h. */
28758_ACEOF
28759cat confdefs.h >>conftest.$ac_ext
28760cat >>conftest.$ac_ext <<_ACEOF
28761/* end confdefs.h. */
ac1cb8d3
VS
28762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28764#define $ac_func innocuous_$ac_func
28765
a848cd7e
SC
28766/* System header to define __stub macros and hopefully few prototypes,
28767 which can conflict with char $ac_func (); below.
28768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28769 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28770
a848cd7e
SC
28771#ifdef __STDC__
28772# include <limits.h>
28773#else
28774# include <assert.h>
28775#endif
ac1cb8d3
VS
28776
28777#undef $ac_func
28778
a848cd7e
SC
28779/* Override any gcc2 internal prototype to avoid an error. */
28780#ifdef __cplusplus
28781extern "C"
28782{
28783#endif
28784/* We use char because int might match the return type of a gcc2
28785 builtin and then its argument prototype would still apply. */
28786char $ac_func ();
28787/* The GNU C library defines this for functions which it implements
28788 to always fail with ENOSYS. Some functions are actually named
28789 something starting with __ and the normal name is an alias. */
28790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28791choke me
28792#else
28793char (*f) () = $ac_func;
28794#endif
28795#ifdef __cplusplus
28796}
28797#endif
28798
28799int
28800main ()
28801{
28802return f != $ac_func;
28803 ;
28804 return 0;
28805}
28806_ACEOF
28807rm -f conftest.$ac_objext conftest$ac_exeext
28808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28809 (eval $ac_link) 2>conftest.er1
a848cd7e 28810 ac_status=$?
ac1cb8d3
VS
28811 grep -v '^ *+' conftest.er1 >conftest.err
28812 rm -f conftest.er1
28813 cat conftest.err >&5
a848cd7e
SC
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
ca5c6ac3 28816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818 (eval $ac_try) 2>&5
28819 ac_status=$?
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; } &&
28822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; }; then
28828 eval "$as_ac_var=yes"
28829else
28830 echo "$as_me: failed program was:" >&5
28831sed 's/^/| /' conftest.$ac_ext >&5
28832
28833eval "$as_ac_var=no"
28834fi
ac1cb8d3
VS
28835rm -f conftest.err conftest.$ac_objext \
28836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28837fi
28838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28839echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28840if test `eval echo '${'$as_ac_var'}'` = yes; then
28841 cat >>confdefs.h <<_ACEOF
28842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28843_ACEOF
28844
28845fi
28846done
28847
28848 fi
28849
28850 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28851 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28852
28853 AFMINSTALL=afminstall
28854 TOOLKIT=GTK
28855 GUIDIST=GTK_DIST
28856
28857 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28858echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28859if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28860 echo $ECHO_N "(cached) $ECHO_C" >&6
28861else
28862 ac_check_lib_save_LIBS=$LIBS
28863LIBS="-lgdk $LIBS"
28864cat >conftest.$ac_ext <<_ACEOF
28865/* confdefs.h. */
28866_ACEOF
28867cat confdefs.h >>conftest.$ac_ext
28868cat >>conftest.$ac_ext <<_ACEOF
28869/* end confdefs.h. */
28870
28871/* Override any gcc2 internal prototype to avoid an error. */
28872#ifdef __cplusplus
28873extern "C"
28874#endif
28875/* We use char because int might match the return type of a gcc2
28876 builtin and then its argument prototype would still apply. */
28877char gdk_im_open ();
28878int
28879main ()
28880{
28881gdk_im_open ();
28882 ;
28883 return 0;
28884}
28885_ACEOF
28886rm -f conftest.$ac_objext conftest$ac_exeext
28887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28888 (eval $ac_link) 2>conftest.er1
a848cd7e 28889 ac_status=$?
ac1cb8d3
VS
28890 grep -v '^ *+' conftest.er1 >conftest.err
28891 rm -f conftest.er1
28892 cat conftest.err >&5
a848cd7e
SC
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } &&
ca5c6ac3 28895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28897 (eval $ac_try) 2>&5
28898 ac_status=$?
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903 (eval $ac_try) 2>&5
28904 ac_status=$?
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); }; }; then
28907 ac_cv_lib_gdk_gdk_im_open=yes
28908else
28909 echo "$as_me: failed program was:" >&5
28910sed 's/^/| /' conftest.$ac_ext >&5
28911
28912ac_cv_lib_gdk_gdk_im_open=no
28913fi
ac1cb8d3
VS
28914rm -f conftest.err conftest.$ac_objext \
28915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28916LIBS=$ac_check_lib_save_LIBS
28917fi
28918echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28919echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28920if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28921 cat >>confdefs.h <<\_ACEOF
28922#define HAVE_XIM 1
28923_ACEOF
28924
28925fi
28926
28927
28928
28929 if test "$wxUSE_GPE" = "yes"; then
28930 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28931echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28932
0ad5d837
VZ
28933 ac_find_libraries=
28934 for ac_dir in $SEARCH_LIB;
a848cd7e 28935 do
3eca31dc 28936 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28937 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28938 ac_find_libraries=$ac_dir
28939 break 2
28940 fi
28941 done
28942 done
28943
28944 if test "$ac_find_libraries" != "" ; then
28945
0ad5d837 28946 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28947 ac_path_to_link=""
28948 else
0ad5d837
VZ
28949 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28950 result=$?
28951 if test $result = 0; then
28952 ac_path_to_link=""
28953 else
28954 ac_path_to_link=" -L$ac_find_libraries"
28955 fi
a848cd7e
SC
28956 fi
28957
28958 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28959 WXGPE=1
0ad5d837
VZ
28960 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28961echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28962 else
28963 echo "$as_me:$LINENO: result: not found" >&5
28964echo "${ECHO_T}not found" >&6
28965 fi
28966
28967 fi
28968 fi
28969
28970 if test "$wxUSE_MGL" = 1; then
28971 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28972echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28973 if test "x$MGL_ROOT" = x ; then
28974 echo "$as_me:$LINENO: result: not found" >&5
28975echo "${ECHO_T}not found" >&6
28976 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28977echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28978 { (exit 1); exit 1; }; }
28979 else
28980 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28981echo "${ECHO_T}$MGL_ROOT" >&6
28982 fi
28983
28984 echo "$as_me:$LINENO: checking for libmgl location" >&5
28985echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28986 case "${host}" in
28987 *-*-linux* )
28988 if test "x$wxUSE_SHARED" = xyes ; then
28989 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28990 else
28991 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28992 fi
28993 ;;
28994 *-pc-msdosdjgpp )
28995 mgl_os_candidates="dos32/dj2"
28996 ;;
28997 *)
28998 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28999echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29000 { (exit 1); exit 1; }; }
29001 esac
29002
29003 mgl_lib_type=""
29004 mgl_os=""
29005
29006 for mgl_os_i in $mgl_os_candidates ; do
29007 if test "x$mgl_os" = x ; then
29008 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29009 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29010 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29011 mgl_lib_type=debug
29012 mgl_os=$mgl_os_i
29013 fi
29014 fi
29015 if test "x$mgl_lib_type" = x ; then
29016 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29017 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29018 mgl_lib_type=release
29019 mgl_os=$mgl_os_i
29020 fi
29021 fi
29022 fi
29023 done
29024
29025 if test "x$mgl_os" = x ; then
29026 echo "$as_me:$LINENO: result: not found" >&5
29027echo "${ECHO_T}not found" >&6
29028 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29029echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29030 { (exit 1); exit 1; }; }
29031 fi
29032 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29033echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29034
29035 wxUSE_UNIVERSAL="yes"
29036
29037 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29038 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29039
29040 AFMINSTALL=afminstall
29041 TOOLKIT=MGL
29042 GUIDIST=MGL_DIST
29043 fi
29044
b3c86150
VS
29045 if test "$wxUSE_DFB" = 1; then
29046
29047
29048if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29049 if test -n "$ac_tool_prefix"; then
29050 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29052echo "$as_me:$LINENO: checking for $ac_word" >&5
29053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29054if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29056else
29057 case $PKG_CONFIG in
29058 [\\/]* | ?:[\\/]*)
29059 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29060 ;;
29061 *)
29062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29063for as_dir in $PATH
29064do
29065 IFS=$as_save_IFS
29066 test -z "$as_dir" && as_dir=.
29067 for ac_exec_ext in '' $ac_executable_extensions; do
29068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29069 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29071 break 2
29072 fi
29073done
29074done
29075
29076 ;;
29077esac
29078fi
29079PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29080
29081if test -n "$PKG_CONFIG"; then
29082 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29083echo "${ECHO_T}$PKG_CONFIG" >&6
29084else
29085 echo "$as_me:$LINENO: result: no" >&5
29086echo "${ECHO_T}no" >&6
29087fi
29088
29089fi
29090if test -z "$ac_cv_path_PKG_CONFIG"; then
29091 ac_pt_PKG_CONFIG=$PKG_CONFIG
29092 # Extract the first word of "pkg-config", so it can be a program name with args.
29093set dummy pkg-config; ac_word=$2
29094echo "$as_me:$LINENO: checking for $ac_word" >&5
29095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29096if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29097 echo $ECHO_N "(cached) $ECHO_C" >&6
29098else
29099 case $ac_pt_PKG_CONFIG in
29100 [\\/]* | ?:[\\/]*)
29101 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29102 ;;
29103 *)
29104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29105for as_dir in $PATH
29106do
29107 IFS=$as_save_IFS
29108 test -z "$as_dir" && as_dir=.
29109 for ac_exec_ext in '' $ac_executable_extensions; do
29110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29111 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29113 break 2
29114 fi
29115done
29116done
29117
29118 ;;
29119esac
29120fi
29121ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29122
29123if test -n "$ac_pt_PKG_CONFIG"; then
29124 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29125echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29126else
29127 echo "$as_me:$LINENO: result: no" >&5
29128echo "${ECHO_T}no" >&6
29129fi
29130
29131 PKG_CONFIG=$ac_pt_PKG_CONFIG
29132else
29133 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29134fi
29135
29136fi
29137if test -n "$PKG_CONFIG"; then
29138 _pkg_min_version=0.9.0
29139 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29140echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29141 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29142 echo "$as_me:$LINENO: result: yes" >&5
29143echo "${ECHO_T}yes" >&6
29144 else
29145 echo "$as_me:$LINENO: result: no" >&5
29146echo "${ECHO_T}no" >&6
29147 PKG_CONFIG=""
29148 fi
29149
29150fi
29151
29152pkg_failed=no
29153echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29154echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29155
29156if test -n "$PKG_CONFIG"; then
29157 if test -n "$DIRECTFB_CFLAGS"; then
29158 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29159 else
29160 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29161 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29162 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29163 ac_status=$?
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); }; then
737d3175 29166 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29167else
29168 pkg_failed=yes
29169fi
29170 fi
29171else
29172 pkg_failed=untried
29173fi
29174if test -n "$PKG_CONFIG"; then
29175 if test -n "$DIRECTFB_LIBS"; then
29176 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29177 else
29178 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29179 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29180 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29181 ac_status=$?
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; then
737d3175 29184 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29185else
29186 pkg_failed=yes
29187fi
29188 fi
29189else
29190 pkg_failed=untried
29191fi
29192
29193
29194
29195if test $pkg_failed = yes; then
29196
29197if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29198 _pkg_short_errors_supported=yes
29199else
29200 _pkg_short_errors_supported=no
29201fi
29202 if test $_pkg_short_errors_supported = yes; then
737d3175 29203 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29204 else
737d3175 29205 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29206 fi
29207 # Put the nasty error message in config.log where it belongs
29208 echo "$DIRECTFB_PKG_ERRORS" >&5
29209
29210
29211 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29212echo "$as_me: error: DirectFB not found." >&2;}
29213 { (exit 1); exit 1; }; }
29214
29215
29216elif test $pkg_failed = untried; then
29217
29218 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29219echo "$as_me: error: DirectFB not found." >&2;}
29220 { (exit 1); exit 1; }; }
29221
29222
29223else
29224 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29225 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29226 echo "$as_me:$LINENO: result: yes" >&5
29227echo "${ECHO_T}yes" >&6
29228
29229 wxUSE_UNIVERSAL="yes"
29230 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29231 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29232 TOOLKIT=DFB
29233 GUIDIST=DFB_DIST
29234
29235fi
29236 fi
29237
a848cd7e
SC
29238 if test "$wxUSE_MICROWIN" = 1; then
29239 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29240echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29241 if test "x$MICROWINDOWS" = x ; then
29242 echo "$as_me:$LINENO: result: not found" >&5
29243echo "${ECHO_T}not found" >&6
29244 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29245echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29246 { (exit 1); exit 1; }; }
29247 else
29248 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29249echo "${ECHO_T}$MICROWINDOWS" >&6
29250 fi
29251
29252 if test -f $MICROWINDOWS/lib/libmwin.a; then
29253 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29254echo "${ECHO_T}MicroWindows' libraries found." >&6
29255 else
29256 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29257echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29258 { (exit 1); exit 1; }; }
29259 fi
29260
29261 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29262 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29263
29264 wxUSE_UNIVERSAL="yes"
29265
29266 AFMINSTALL=afminstall
29267 TOOLKIT=MICROWIN
29268 GUIDIST=MICROWIN_DIST
29269
29270 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29271 fi
29272
74b84332 29273 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ca5c6ac3
VZ
29274
29275if test "x$ac_path_x_has_been_run" != xyes; then
29276 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29277echo $ECHO_N "checking for X... $ECHO_C" >&6
29278
ca5c6ac3 29279ac_path_x_has_been_run=yes
a848cd7e
SC
29280
29281# Check whether --with-x or --without-x was given.
29282if test "${with_x+set}" = set; then
29283 withval="$with_x"
29284
29285fi;
29286# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29287if test "x$with_x" = xno; then
29288 # The user explicitly disabled X.
29289 have_x=disabled
29290else
29291 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29292 # Both variables are already set.
29293 have_x=yes
29294 else
29295 if test "${ac_cv_have_x+set}" = set; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29297else
29298 # One or both of the vars are not set, and there is no cached value.
29299ac_x_includes=no ac_x_libraries=no
29300rm -fr conftest.dir
29301if mkdir conftest.dir; then
29302 cd conftest.dir
29303 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29304 cat >Imakefile <<'_ACEOF'
29305acfindx:
29306 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29307_ACEOF
29308 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29309 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29310 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29311 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29312 for ac_extension in a so sl; do
29313 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29314 test -f $ac_im_libdir/libX11.$ac_extension; then
29315 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29316 fi
29317 done
29318 # Screen out bogus values from the imake configuration. They are
29319 # bogus both because they are the default anyway, and because
29320 # using them would break gcc on systems where it needs fixed includes.
29321 case $ac_im_incroot in
29322 /usr/include) ;;
29323 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29324 esac
29325 case $ac_im_usrlibdir in
29326 /usr/lib | /lib) ;;
29327 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29328 esac
29329 fi
29330 cd ..
29331 rm -fr conftest.dir
29332fi
29333
29334# Standard set of common directories for X headers.
29335# Check X11 before X11Rn because it is often a symlink to the current release.
29336ac_x_header_dirs='
29337/usr/X11/include
29338/usr/X11R6/include
29339/usr/X11R5/include
29340/usr/X11R4/include
29341
29342/usr/include/X11
29343/usr/include/X11R6
29344/usr/include/X11R5
29345/usr/include/X11R4
29346
29347/usr/local/X11/include
29348/usr/local/X11R6/include
29349/usr/local/X11R5/include
29350/usr/local/X11R4/include
29351
29352/usr/local/include/X11
29353/usr/local/include/X11R6
29354/usr/local/include/X11R5
29355/usr/local/include/X11R4
29356
29357/usr/X386/include
29358/usr/x386/include
29359/usr/XFree86/include/X11
29360
29361/usr/include
29362/usr/local/include
29363/usr/unsupported/include
29364/usr/athena/include
29365/usr/local/x11r5/include
29366/usr/lpp/Xamples/include
29367
29368/usr/openwin/include
29369/usr/openwin/share/include'
29370
29371if test "$ac_x_includes" = no; then
ca5c6ac3 29372 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29373 # First, try using that file with no special directory specified.
29374 cat >conftest.$ac_ext <<_ACEOF
29375/* confdefs.h. */
29376_ACEOF
29377cat confdefs.h >>conftest.$ac_ext
29378cat >>conftest.$ac_ext <<_ACEOF
29379/* end confdefs.h. */
ca5c6ac3 29380#include <X11/Xlib.h>
a848cd7e
SC
29381_ACEOF
29382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29384 ac_status=$?
29385 grep -v '^ *+' conftest.er1 >conftest.err
29386 rm -f conftest.er1
29387 cat conftest.err >&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } >/dev/null; then
29390 if test -s conftest.err; then
5d7b7554
VZ
29391 ac_cpp_err=$ac_cxx_preproc_warn_flag
29392 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29393 else
29394 ac_cpp_err=
29395 fi
29396else
29397 ac_cpp_err=yes
29398fi
29399if test -z "$ac_cpp_err"; then
29400 # We can compile using X headers with no special include directory.
29401ac_x_includes=
29402else
29403 echo "$as_me: failed program was:" >&5
29404sed 's/^/| /' conftest.$ac_ext >&5
29405
29406 for ac_dir in $ac_x_header_dirs; do
ca5c6ac3 29407 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29408 ac_x_includes=$ac_dir
29409 break
29410 fi
29411done
29412fi
29413rm -f conftest.err conftest.$ac_ext
29414fi # $ac_x_includes = no
29415
29416if test "$ac_x_libraries" = no; then
29417 # Check for the libraries.
29418 # See if we find them without any special options.
29419 # Don't add to $LIBS permanently.
29420 ac_save_LIBS=$LIBS
ca5c6ac3 29421 LIBS="-lX11 $LIBS"
a848cd7e
SC
29422 cat >conftest.$ac_ext <<_ACEOF
29423/* confdefs.h. */
29424_ACEOF
29425cat confdefs.h >>conftest.$ac_ext
29426cat >>conftest.$ac_ext <<_ACEOF
29427/* end confdefs.h. */
ca5c6ac3 29428#include <X11/Xlib.h>
a848cd7e
SC
29429int
29430main ()
29431{
ca5c6ac3 29432XrmInitialize ()
a848cd7e
SC
29433 ;
29434 return 0;
29435}
29436_ACEOF
29437rm -f conftest.$ac_objext conftest$ac_exeext
29438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29439 (eval $ac_link) 2>conftest.er1
a848cd7e 29440 ac_status=$?
ac1cb8d3
VS
29441 grep -v '^ *+' conftest.er1 >conftest.err
29442 rm -f conftest.er1
29443 cat conftest.err >&5
a848cd7e
SC
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); } &&
ca5c6ac3 29446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29448 (eval $ac_try) 2>&5
29449 ac_status=$?
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); }; } &&
29452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29454 (eval $ac_try) 2>&5
29455 ac_status=$?
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); }; }; then
29458 LIBS=$ac_save_LIBS
29459# We can link X programs with no special library path.
29460ac_x_libraries=
29461else
29462 echo "$as_me: failed program was:" >&5
29463sed 's/^/| /' conftest.$ac_ext >&5
29464
29465LIBS=$ac_save_LIBS
29466for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29467do
29468 # Don't even attempt the hair of trying to link an X program!
29469 for ac_extension in a so sl; do
ca5c6ac3 29470 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29471 ac_x_libraries=$ac_dir
29472 break 2
29473 fi
29474 done
29475done
29476fi
ac1cb8d3
VS
29477rm -f conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29479fi # $ac_x_libraries = no
29480
29481if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29482 # Didn't find X anywhere. Cache the known absence of X.
29483 ac_cv_have_x="have_x=no"
29484else
29485 # Record where we found X for the cache.
29486 ac_cv_have_x="have_x=yes \
ac1cb8d3 29487 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29488fi
29489fi
29490
29491 fi
29492 eval "$ac_cv_have_x"
29493fi # $with_x != no
29494
29495if test "$have_x" != yes; then
29496 echo "$as_me:$LINENO: result: $have_x" >&5
29497echo "${ECHO_T}$have_x" >&6
29498 no_x=yes
29499else
29500 # If each of the values was on the command line, it overrides each guess.
29501 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29502 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29503 # Update the cache value to reflect the command line values.
29504 ac_cv_have_x="have_x=yes \
29505 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ca5c6ac3
VZ
29506 # It might be that x_includes is empty (headers are found in the
29507 # standard search path. Then output the corresponding message
29508 ac_out_x_includes=$x_includes
29509 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29510 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29511echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29512fi
29513
ca5c6ac3 29514fi
a848cd7e
SC
29515if test "$no_x" = yes; then
29516 # Not all programs may use this symbol, but it does not hurt to define it.
29517
29518cat >>confdefs.h <<\_ACEOF
29519#define X_DISPLAY_MISSING 1
29520_ACEOF
29521
29522 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29523else
29524 if test -n "$x_includes"; then
29525 X_CFLAGS="$X_CFLAGS -I$x_includes"
29526 fi
29527
29528 # It would also be nice to do this for all -L options, not just this one.
29529 if test -n "$x_libraries"; then
29530 X_LIBS="$X_LIBS -L$x_libraries"
29531 # For Solaris; some versions of Sun CC require a space after -R and
29532 # others require no space. Words are not sufficient . . . .
29533 case `(uname -sr) 2>/dev/null` in
29534 "SunOS 5"*)
29535 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29536echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29537 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29538 cat >conftest.$ac_ext <<_ACEOF
29539/* confdefs.h. */
29540_ACEOF
29541cat confdefs.h >>conftest.$ac_ext
29542cat >>conftest.$ac_ext <<_ACEOF
29543/* end confdefs.h. */
29544
29545int
29546main ()
29547{
29548
29549 ;
29550 return 0;
29551}
29552_ACEOF
29553rm -f conftest.$ac_objext conftest$ac_exeext
29554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29555 (eval $ac_link) 2>conftest.er1
a848cd7e 29556 ac_status=$?
ac1cb8d3
VS
29557 grep -v '^ *+' conftest.er1 >conftest.err
29558 rm -f conftest.er1
29559 cat conftest.err >&5
a848cd7e
SC
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } &&
ca5c6ac3 29562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564 (eval $ac_try) 2>&5
29565 ac_status=$?
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); }; } &&
29568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570 (eval $ac_try) 2>&5
29571 ac_status=$?
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; }; then
29574 ac_R_nospace=yes
29575else
29576 echo "$as_me: failed program was:" >&5
29577sed 's/^/| /' conftest.$ac_ext >&5
29578
29579ac_R_nospace=no
29580fi
ac1cb8d3
VS
29581rm -f conftest.err conftest.$ac_objext \
29582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29583 if test $ac_R_nospace = yes; then
29584 echo "$as_me:$LINENO: result: no" >&5
29585echo "${ECHO_T}no" >&6
29586 X_LIBS="$X_LIBS -R$x_libraries"
29587 else
29588 LIBS="$ac_xsave_LIBS -R $x_libraries"
29589 cat >conftest.$ac_ext <<_ACEOF
29590/* confdefs.h. */
29591_ACEOF
29592cat confdefs.h >>conftest.$ac_ext
29593cat >>conftest.$ac_ext <<_ACEOF
29594/* end confdefs.h. */
29595
29596int
29597main ()
29598{
29599
29600 ;
29601 return 0;
29602}
29603_ACEOF
29604rm -f conftest.$ac_objext conftest$ac_exeext
29605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29606 (eval $ac_link) 2>conftest.er1
a848cd7e 29607 ac_status=$?
ac1cb8d3
VS
29608 grep -v '^ *+' conftest.er1 >conftest.err
29609 rm -f conftest.er1
29610 cat conftest.err >&5
a848cd7e
SC
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } &&
ca5c6ac3 29613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_R_space=yes
29626else
29627 echo "$as_me: failed program was:" >&5
29628sed 's/^/| /' conftest.$ac_ext >&5
29629
29630ac_R_space=no
29631fi
ac1cb8d3
VS
29632rm -f conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29634 if test $ac_R_space = yes; then
29635 echo "$as_me:$LINENO: result: yes" >&5
29636echo "${ECHO_T}yes" >&6
29637 X_LIBS="$X_LIBS -R $x_libraries"
29638 else
29639 echo "$as_me:$LINENO: result: neither works" >&5
29640echo "${ECHO_T}neither works" >&6
29641 fi
29642 fi
29643 LIBS=$ac_xsave_LIBS
29644 esac
29645 fi
29646
29647 # Check for system-dependent libraries X programs must link with.
29648 # Do this before checking for the system-independent R6 libraries
29649 # (-lICE), since we may need -lsocket or whatever for X linking.
29650
29651 if test "$ISC" = yes; then
29652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29653 else
29654 # Martyn Johnson says this is needed for Ultrix, if the X
29655 # libraries were built with DECnet support. And Karl Berry says
29656 # the Alpha needs dnet_stub (dnet does not exist).
29657 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29658 cat >conftest.$ac_ext <<_ACEOF
29659/* confdefs.h. */
29660_ACEOF
29661cat confdefs.h >>conftest.$ac_ext
29662cat >>conftest.$ac_ext <<_ACEOF
29663/* end confdefs.h. */
29664
29665/* Override any gcc2 internal prototype to avoid an error. */
29666#ifdef __cplusplus
29667extern "C"
29668#endif
29669/* We use char because int might match the return type of a gcc2
29670 builtin and then its argument prototype would still apply. */
29671char XOpenDisplay ();
29672int
29673main ()
29674{
29675XOpenDisplay ();
29676 ;
29677 return 0;
29678}
29679_ACEOF
29680rm -f conftest.$ac_objext conftest$ac_exeext
29681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29682 (eval $ac_link) 2>conftest.er1
a848cd7e 29683 ac_status=$?
ac1cb8d3
VS
29684 grep -v '^ *+' conftest.er1 >conftest.err
29685 rm -f conftest.er1
29686 cat conftest.err >&5
a848cd7e
SC
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
ca5c6ac3 29689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691 (eval $ac_try) 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; } &&
29695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701 :
29702else
29703 echo "$as_me: failed program was:" >&5
29704sed 's/^/| /' conftest.$ac_ext >&5
29705
29706echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29707echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29708if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29710else
29711 ac_check_lib_save_LIBS=$LIBS
29712LIBS="-ldnet $LIBS"
29713cat >conftest.$ac_ext <<_ACEOF
29714/* confdefs.h. */
29715_ACEOF
29716cat confdefs.h >>conftest.$ac_ext
29717cat >>conftest.$ac_ext <<_ACEOF
29718/* end confdefs.h. */
29719
29720/* Override any gcc2 internal prototype to avoid an error. */
29721#ifdef __cplusplus
29722extern "C"
29723#endif
29724/* We use char because int might match the return type of a gcc2
29725 builtin and then its argument prototype would still apply. */
29726char dnet_ntoa ();
29727int
29728main ()
29729{
29730dnet_ntoa ();
29731 ;
29732 return 0;
29733}
29734_ACEOF
29735rm -f conftest.$ac_objext conftest$ac_exeext
29736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29737 (eval $ac_link) 2>conftest.er1
a848cd7e 29738 ac_status=$?
ac1cb8d3
VS
29739 grep -v '^ *+' conftest.er1 >conftest.err
29740 rm -f conftest.er1
29741 cat conftest.err >&5
a848cd7e
SC
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); } &&
ca5c6ac3 29744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746 (eval $ac_try) 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; } &&
29750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752 (eval $ac_try) 2>&5
29753 ac_status=$?
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); }; }; then
29756 ac_cv_lib_dnet_dnet_ntoa=yes
29757else
29758 echo "$as_me: failed program was:" >&5
29759sed 's/^/| /' conftest.$ac_ext >&5
29760
29761ac_cv_lib_dnet_dnet_ntoa=no
29762fi
ac1cb8d3
VS
29763rm -f conftest.err conftest.$ac_objext \
29764 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29765LIBS=$ac_check_lib_save_LIBS
29766fi
29767echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29768echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29769if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29771fi
29772
29773 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29774 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29775echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29776if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29778else
29779 ac_check_lib_save_LIBS=$LIBS
29780LIBS="-ldnet_stub $LIBS"
29781cat >conftest.$ac_ext <<_ACEOF
29782/* confdefs.h. */
29783_ACEOF
29784cat confdefs.h >>conftest.$ac_ext
29785cat >>conftest.$ac_ext <<_ACEOF
29786/* end confdefs.h. */
29787
29788/* Override any gcc2 internal prototype to avoid an error. */
29789#ifdef __cplusplus
29790extern "C"
29791#endif
29792/* We use char because int might match the return type of a gcc2
29793 builtin and then its argument prototype would still apply. */
29794char dnet_ntoa ();
29795int
29796main ()
29797{
29798dnet_ntoa ();
29799 ;
29800 return 0;
29801}
29802_ACEOF
29803rm -f conftest.$ac_objext conftest$ac_exeext
29804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29805 (eval $ac_link) 2>conftest.er1
a848cd7e 29806 ac_status=$?
ac1cb8d3
VS
29807 grep -v '^ *+' conftest.er1 >conftest.err
29808 rm -f conftest.er1
29809 cat conftest.err >&5
a848cd7e
SC
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); } &&
ca5c6ac3 29812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814 (eval $ac_try) 2>&5
29815 ac_status=$?
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; } &&
29818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29820 (eval $ac_try) 2>&5
29821 ac_status=$?
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); }; }; then
29824 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29825else
29826 echo "$as_me: failed program was:" >&5
29827sed 's/^/| /' conftest.$ac_ext >&5
29828
29829ac_cv_lib_dnet_stub_dnet_ntoa=no
29830fi
ac1cb8d3
VS
29831rm -f conftest.err conftest.$ac_objext \
29832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29833LIBS=$ac_check_lib_save_LIBS
29834fi
29835echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29836echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29837if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29838 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29839fi
29840
29841 fi
29842fi
ac1cb8d3
VS
29843rm -f conftest.err conftest.$ac_objext \
29844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29845 LIBS="$ac_xsave_LIBS"
29846
29847 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29848 # to get the SysV transport functions.
29849 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29850 # needs -lnsl.
29851 # The nsl library prevents programs from opening the X display
29852 # on Irix 5.2, according to T.E. Dickey.
29853 # The functions gethostbyname, getservbyname, and inet_addr are
29854 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29855 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29856echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29857if test "${ac_cv_func_gethostbyname+set}" = set; then
29858 echo $ECHO_N "(cached) $ECHO_C" >&6
29859else
29860 cat >conftest.$ac_ext <<_ACEOF
29861/* confdefs.h. */
29862_ACEOF
29863cat confdefs.h >>conftest.$ac_ext
29864cat >>conftest.$ac_ext <<_ACEOF
29865/* end confdefs.h. */
ac1cb8d3
VS
29866/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29868#define gethostbyname innocuous_gethostbyname
29869
a848cd7e
SC
29870/* System header to define __stub macros and hopefully few prototypes,
29871 which can conflict with char gethostbyname (); below.
29872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29873 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29874
a848cd7e
SC
29875#ifdef __STDC__
29876# include <limits.h>
29877#else
29878# include <assert.h>
29879#endif
ac1cb8d3
VS
29880
29881#undef gethostbyname
29882
a848cd7e
SC
29883/* Override any gcc2 internal prototype to avoid an error. */
29884#ifdef __cplusplus
29885extern "C"
29886{
29887#endif
29888/* We use char because int might match the return type of a gcc2
29889 builtin and then its argument prototype would still apply. */
29890char gethostbyname ();
29891/* The GNU C library defines this for functions which it implements
29892 to always fail with ENOSYS. Some functions are actually named
29893 something starting with __ and the normal name is an alias. */
29894#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29895choke me
29896#else
29897char (*f) () = gethostbyname;
29898#endif
29899#ifdef __cplusplus
29900}
29901#endif
29902
29903int
29904main ()
29905{
29906return f != gethostbyname;
29907 ;
29908 return 0;
29909}
29910_ACEOF
29911rm -f conftest.$ac_objext conftest$ac_exeext
29912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29913 (eval $ac_link) 2>conftest.er1
a848cd7e 29914 ac_status=$?
ac1cb8d3
VS
29915 grep -v '^ *+' conftest.er1 >conftest.err
29916 rm -f conftest.er1
29917 cat conftest.err >&5
a848cd7e
SC
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } &&
ca5c6ac3 29920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29922 (eval $ac_try) 2>&5
29923 ac_status=$?
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; } &&
29926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29928 (eval $ac_try) 2>&5
29929 ac_status=$?
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
29932 ac_cv_func_gethostbyname=yes
29933else
29934 echo "$as_me: failed program was:" >&5
29935sed 's/^/| /' conftest.$ac_ext >&5
29936
29937ac_cv_func_gethostbyname=no
29938fi
ac1cb8d3
VS
29939rm -f conftest.err conftest.$ac_objext \
29940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29941fi
29942echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29943echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29944
29945 if test $ac_cv_func_gethostbyname = no; then
29946 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29947echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29948if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29950else
29951 ac_check_lib_save_LIBS=$LIBS
29952LIBS="-lnsl $LIBS"
29953cat >conftest.$ac_ext <<_ACEOF
29954/* confdefs.h. */
29955_ACEOF
29956cat confdefs.h >>conftest.$ac_ext
29957cat >>conftest.$ac_ext <<_ACEOF
29958/* end confdefs.h. */
29959
29960/* Override any gcc2 internal prototype to avoid an error. */
29961#ifdef __cplusplus
29962extern "C"
29963#endif
29964/* We use char because int might match the return type of a gcc2
29965 builtin and then its argument prototype would still apply. */
29966char gethostbyname ();
29967int
29968main ()
29969{
29970gethostbyname ();
29971 ;
29972 return 0;
29973}
29974_ACEOF
29975rm -f conftest.$ac_objext conftest$ac_exeext
29976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29977 (eval $ac_link) 2>conftest.er1
29978 ac_status=$?
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } &&
ca5c6ac3 29984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; } &&
29990 { ac_try='test -s conftest$ac_exeext'
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; }; then
29996 ac_cv_lib_nsl_gethostbyname=yes
29997else
29998 echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001ac_cv_lib_nsl_gethostbyname=no
30002fi
30003rm -f conftest.err conftest.$ac_objext \
30004 conftest$ac_exeext conftest.$ac_ext
30005LIBS=$ac_check_lib_save_LIBS
30006fi
30007echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30008echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30009if test $ac_cv_lib_nsl_gethostbyname = yes; then
30010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30011fi
30012
30013 if test $ac_cv_lib_nsl_gethostbyname = no; then
30014 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30015echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30016if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30018else
30019 ac_check_lib_save_LIBS=$LIBS
30020LIBS="-lbsd $LIBS"
30021cat >conftest.$ac_ext <<_ACEOF
30022/* confdefs.h. */
30023_ACEOF
30024cat confdefs.h >>conftest.$ac_ext
30025cat >>conftest.$ac_ext <<_ACEOF
30026/* end confdefs.h. */
30027
30028/* Override any gcc2 internal prototype to avoid an error. */
30029#ifdef __cplusplus
30030extern "C"
30031#endif
30032/* We use char because int might match the return type of a gcc2
30033 builtin and then its argument prototype would still apply. */
30034char gethostbyname ();
30035int
30036main ()
30037{
30038gethostbyname ();
30039 ;
30040 return 0;
30041}
30042_ACEOF
30043rm -f conftest.$ac_objext conftest$ac_exeext
30044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30045 (eval $ac_link) 2>conftest.er1
a848cd7e 30046 ac_status=$?
ac1cb8d3
VS
30047 grep -v '^ *+' conftest.er1 >conftest.err
30048 rm -f conftest.er1
30049 cat conftest.err >&5
a848cd7e
SC
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } &&
ca5c6ac3 30052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30057 (exit $ac_status); }; } &&
30058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060 (eval $ac_try) 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; }; then
30064 ac_cv_lib_bsd_gethostbyname=yes
30065else
30066 echo "$as_me: failed program was:" >&5
30067sed 's/^/| /' conftest.$ac_ext >&5
30068
30069ac_cv_lib_bsd_gethostbyname=no
30070fi
ac1cb8d3
VS
30071rm -f conftest.err conftest.$ac_objext \
30072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30073LIBS=$ac_check_lib_save_LIBS
30074fi
30075echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30076echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30077if test $ac_cv_lib_bsd_gethostbyname = yes; then
30078 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30079fi
30080
30081 fi
30082 fi
30083
30084 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30085 # socket/setsockopt and other routines are undefined under SCO ODT
30086 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30087 # on later versions), says Simon Leinen: it contains gethostby*
30088 # variants that don't use the name server (or something). -lsocket
30089 # must be given before -lnsl if both are needed. We assume that
30090 # if connect needs -lnsl, so does gethostbyname.
30091 echo "$as_me:$LINENO: checking for connect" >&5
30092echo $ECHO_N "checking for connect... $ECHO_C" >&6
30093if test "${ac_cv_func_connect+set}" = set; then
30094 echo $ECHO_N "(cached) $ECHO_C" >&6
30095else
30096 cat >conftest.$ac_ext <<_ACEOF
30097/* confdefs.h. */
30098_ACEOF
30099cat confdefs.h >>conftest.$ac_ext
30100cat >>conftest.$ac_ext <<_ACEOF
30101/* end confdefs.h. */
ac1cb8d3
VS
30102/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30104#define connect innocuous_connect
30105
a848cd7e
SC
30106/* System header to define __stub macros and hopefully few prototypes,
30107 which can conflict with char connect (); below.
30108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30110
a848cd7e
SC
30111#ifdef __STDC__
30112# include <limits.h>
30113#else
30114# include <assert.h>
30115#endif
ac1cb8d3
VS
30116
30117#undef connect
30118
a848cd7e
SC
30119/* Override any gcc2 internal prototype to avoid an error. */
30120#ifdef __cplusplus
30121extern "C"
30122{
30123#endif
30124/* We use char because int might match the return type of a gcc2
30125 builtin and then its argument prototype would still apply. */
30126char connect ();
30127/* The GNU C library defines this for functions which it implements
30128 to always fail with ENOSYS. Some functions are actually named
30129 something starting with __ and the normal name is an alias. */
30130#if defined (__stub_connect) || defined (__stub___connect)
30131choke me
30132#else
30133char (*f) () = connect;
30134#endif
30135#ifdef __cplusplus
30136}
30137#endif
30138
30139int
30140main ()
30141{
30142return f != connect;
30143 ;
30144 return 0;
30145}
30146_ACEOF
30147rm -f conftest.$ac_objext conftest$ac_exeext
30148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30149 (eval $ac_link) 2>conftest.er1
a848cd7e 30150 ac_status=$?
ac1cb8d3
VS
30151 grep -v '^ *+' conftest.er1 >conftest.err
30152 rm -f conftest.er1
30153 cat conftest.err >&5
a848cd7e
SC
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); } &&
ca5c6ac3 30156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30158 (eval $ac_try) 2>&5
30159 ac_status=$?
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; } &&
30162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164 (eval $ac_try) 2>&5
30165 ac_status=$?
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; }; then
30168 ac_cv_func_connect=yes
30169else
30170 echo "$as_me: failed program was:" >&5
30171sed 's/^/| /' conftest.$ac_ext >&5
30172
30173ac_cv_func_connect=no
30174fi
ac1cb8d3
VS
30175rm -f conftest.err conftest.$ac_objext \
30176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30177fi
30178echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30179echo "${ECHO_T}$ac_cv_func_connect" >&6
30180
30181 if test $ac_cv_func_connect = no; then
30182 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30183echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30184if test "${ac_cv_lib_socket_connect+set}" = set; then
30185 echo $ECHO_N "(cached) $ECHO_C" >&6
30186else
30187 ac_check_lib_save_LIBS=$LIBS
30188LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30189cat >conftest.$ac_ext <<_ACEOF
30190/* confdefs.h. */
30191_ACEOF
30192cat confdefs.h >>conftest.$ac_ext
30193cat >>conftest.$ac_ext <<_ACEOF
30194/* end confdefs.h. */
30195
30196/* Override any gcc2 internal prototype to avoid an error. */
30197#ifdef __cplusplus
30198extern "C"
30199#endif
30200/* We use char because int might match the return type of a gcc2
30201 builtin and then its argument prototype would still apply. */
30202char connect ();
30203int
30204main ()
30205{
30206connect ();
30207 ;
30208 return 0;
30209}
30210_ACEOF
30211rm -f conftest.$ac_objext conftest$ac_exeext
30212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30213 (eval $ac_link) 2>conftest.er1
a848cd7e 30214 ac_status=$?
ac1cb8d3
VS
30215 grep -v '^ *+' conftest.er1 >conftest.err
30216 rm -f conftest.er1
30217 cat conftest.err >&5
a848cd7e
SC
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } &&
ca5c6ac3 30220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; } &&
30226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228 (eval $ac_try) 2>&5
30229 ac_status=$?
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; }; then
30232 ac_cv_lib_socket_connect=yes
30233else
30234 echo "$as_me: failed program was:" >&5
30235sed 's/^/| /' conftest.$ac_ext >&5
30236
30237ac_cv_lib_socket_connect=no
30238fi
ac1cb8d3
VS
30239rm -f conftest.err conftest.$ac_objext \
30240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30241LIBS=$ac_check_lib_save_LIBS
30242fi
30243echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30244echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30245if test $ac_cv_lib_socket_connect = yes; then
30246 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30247fi
30248
30249 fi
30250
30251 # Guillermo Gomez says -lposix is necessary on A/UX.
30252 echo "$as_me:$LINENO: checking for remove" >&5
30253echo $ECHO_N "checking for remove... $ECHO_C" >&6
30254if test "${ac_cv_func_remove+set}" = set; then
30255 echo $ECHO_N "(cached) $ECHO_C" >&6
30256else
30257 cat >conftest.$ac_ext <<_ACEOF
30258/* confdefs.h. */
30259_ACEOF
30260cat confdefs.h >>conftest.$ac_ext
30261cat >>conftest.$ac_ext <<_ACEOF
30262/* end confdefs.h. */
ac1cb8d3
VS
30263/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30265#define remove innocuous_remove
30266
a848cd7e
SC
30267/* System header to define __stub macros and hopefully few prototypes,
30268 which can conflict with char remove (); below.
30269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30270 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30271
a848cd7e
SC
30272#ifdef __STDC__
30273# include <limits.h>
30274#else
30275# include <assert.h>
30276#endif
ac1cb8d3
VS
30277
30278#undef remove
30279
a848cd7e
SC
30280/* Override any gcc2 internal prototype to avoid an error. */
30281#ifdef __cplusplus
30282extern "C"
30283{
30284#endif
30285/* We use char because int might match the return type of a gcc2
30286 builtin and then its argument prototype would still apply. */
30287char remove ();
30288/* The GNU C library defines this for functions which it implements
30289 to always fail with ENOSYS. Some functions are actually named
30290 something starting with __ and the normal name is an alias. */
30291#if defined (__stub_remove) || defined (__stub___remove)
30292choke me
30293#else
30294char (*f) () = remove;
30295#endif
30296#ifdef __cplusplus
30297}
30298#endif
30299
30300int
30301main ()
30302{
30303return f != remove;
30304 ;
30305 return 0;
30306}
30307_ACEOF
30308rm -f conftest.$ac_objext conftest$ac_exeext
30309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30310 (eval $ac_link) 2>conftest.er1
a848cd7e 30311 ac_status=$?
ac1cb8d3
VS
30312 grep -v '^ *+' conftest.er1 >conftest.err
30313 rm -f conftest.er1
30314 cat conftest.err >&5
a848cd7e
SC
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); } &&
ca5c6ac3 30317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30319 (eval $ac_try) 2>&5
30320 ac_status=$?
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); }; } &&
30323 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30325 (eval $ac_try) 2>&5
30326 ac_status=$?
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; }; then
30329 ac_cv_func_remove=yes
30330else
30331 echo "$as_me: failed program was:" >&5
30332sed 's/^/| /' conftest.$ac_ext >&5
30333
30334ac_cv_func_remove=no
30335fi
ac1cb8d3
VS
30336rm -f conftest.err conftest.$ac_objext \
30337 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30338fi
30339echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30340echo "${ECHO_T}$ac_cv_func_remove" >&6
30341
30342 if test $ac_cv_func_remove = no; then
30343 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30344echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30345if test "${ac_cv_lib_posix_remove+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30347else
30348 ac_check_lib_save_LIBS=$LIBS
30349LIBS="-lposix $LIBS"
30350cat >conftest.$ac_ext <<_ACEOF
30351/* confdefs.h. */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h. */
30356
30357/* Override any gcc2 internal prototype to avoid an error. */
30358#ifdef __cplusplus
30359extern "C"
30360#endif
30361/* We use char because int might match the return type of a gcc2
30362 builtin and then its argument prototype would still apply. */
30363char remove ();
30364int
30365main ()
30366{
30367remove ();
30368 ;
30369 return 0;
30370}
30371_ACEOF
30372rm -f conftest.$ac_objext conftest$ac_exeext
30373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30374 (eval $ac_link) 2>conftest.er1
a848cd7e 30375 ac_status=$?
ac1cb8d3
VS
30376 grep -v '^ *+' conftest.er1 >conftest.err
30377 rm -f conftest.er1
30378 cat conftest.err >&5
a848cd7e
SC
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); } &&
ca5c6ac3 30381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383 (eval $ac_try) 2>&5
30384 ac_status=$?
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; } &&
30387 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389 (eval $ac_try) 2>&5
30390 ac_status=$?
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; }; then
30393 ac_cv_lib_posix_remove=yes
30394else
30395 echo "$as_me: failed program was:" >&5
30396sed 's/^/| /' conftest.$ac_ext >&5
30397
30398ac_cv_lib_posix_remove=no
30399fi
ac1cb8d3
VS
30400rm -f conftest.err conftest.$ac_objext \
30401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30402LIBS=$ac_check_lib_save_LIBS
30403fi
30404echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30405echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30406if test $ac_cv_lib_posix_remove = yes; then
30407 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30408fi
30409
30410 fi
30411
30412 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30413 echo "$as_me:$LINENO: checking for shmat" >&5
30414echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30415if test "${ac_cv_func_shmat+set}" = set; then
30416 echo $ECHO_N "(cached) $ECHO_C" >&6
30417else
30418 cat >conftest.$ac_ext <<_ACEOF
30419/* confdefs.h. */
30420_ACEOF
30421cat confdefs.h >>conftest.$ac_ext
30422cat >>conftest.$ac_ext <<_ACEOF
30423/* end confdefs.h. */
ac1cb8d3
VS
30424/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30426#define shmat innocuous_shmat
30427
a848cd7e
SC
30428/* System header to define __stub macros and hopefully few prototypes,
30429 which can conflict with char shmat (); below.
30430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30431 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30432
a848cd7e
SC
30433#ifdef __STDC__
30434# include <limits.h>
30435#else
30436# include <assert.h>
30437#endif
ac1cb8d3
VS
30438
30439#undef shmat
30440
a848cd7e
SC
30441/* Override any gcc2 internal prototype to avoid an error. */
30442#ifdef __cplusplus
30443extern "C"
30444{
30445#endif
30446/* We use char because int might match the return type of a gcc2
30447 builtin and then its argument prototype would still apply. */
30448char shmat ();
30449/* The GNU C library defines this for functions which it implements
30450 to always fail with ENOSYS. Some functions are actually named
30451 something starting with __ and the normal name is an alias. */
30452#if defined (__stub_shmat) || defined (__stub___shmat)
30453choke me
30454#else
30455char (*f) () = shmat;
30456#endif
30457#ifdef __cplusplus
30458}
30459#endif
30460
30461int
30462main ()
30463{
30464return f != shmat;
30465 ;
30466 return 0;
30467}
30468_ACEOF
30469rm -f conftest.$ac_objext conftest$ac_exeext
30470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30471 (eval $ac_link) 2>conftest.er1
a848cd7e 30472 ac_status=$?
ac1cb8d3
VS
30473 grep -v '^ *+' conftest.er1 >conftest.err
30474 rm -f conftest.er1
30475 cat conftest.err >&5
a848cd7e
SC
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } &&
ca5c6ac3 30478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480 (eval $ac_try) 2>&5
30481 ac_status=$?
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); }; } &&
30484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30486 (eval $ac_try) 2>&5
30487 ac_status=$?
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; }; then
30490 ac_cv_func_shmat=yes
30491else
30492 echo "$as_me: failed program was:" >&5
30493sed 's/^/| /' conftest.$ac_ext >&5
30494
30495ac_cv_func_shmat=no
30496fi
ac1cb8d3
VS
30497rm -f conftest.err conftest.$ac_objext \
30498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30499fi
30500echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30501echo "${ECHO_T}$ac_cv_func_shmat" >&6
30502
30503 if test $ac_cv_func_shmat = no; then
30504 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30505echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30506if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30508else
30509 ac_check_lib_save_LIBS=$LIBS
30510LIBS="-lipc $LIBS"
30511cat >conftest.$ac_ext <<_ACEOF
30512/* confdefs.h. */
30513_ACEOF
30514cat confdefs.h >>conftest.$ac_ext
30515cat >>conftest.$ac_ext <<_ACEOF
30516/* end confdefs.h. */
30517
30518/* Override any gcc2 internal prototype to avoid an error. */
30519#ifdef __cplusplus
30520extern "C"
30521#endif
30522/* We use char because int might match the return type of a gcc2
30523 builtin and then its argument prototype would still apply. */
30524char shmat ();
30525int
30526main ()
30527{
30528shmat ();
30529 ;
30530 return 0;
30531}
30532_ACEOF
30533rm -f conftest.$ac_objext conftest$ac_exeext
30534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30535 (eval $ac_link) 2>conftest.er1
a848cd7e 30536 ac_status=$?
ac1cb8d3
VS
30537 grep -v '^ *+' conftest.er1 >conftest.err
30538 rm -f conftest.er1
30539 cat conftest.err >&5
a848cd7e
SC
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); } &&
ca5c6ac3 30542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; } &&
30548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30551 ac_status=$?
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; }; then
30554 ac_cv_lib_ipc_shmat=yes
30555else
30556 echo "$as_me: failed program was:" >&5
30557sed 's/^/| /' conftest.$ac_ext >&5
30558
30559ac_cv_lib_ipc_shmat=no
30560fi
ac1cb8d3
VS
30561rm -f conftest.err conftest.$ac_objext \
30562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30563LIBS=$ac_check_lib_save_LIBS
30564fi
30565echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30566echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30567if test $ac_cv_lib_ipc_shmat = yes; then
30568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30569fi
30570
30571 fi
30572 fi
30573
30574 # Check for libraries that X11R6 Xt/Xaw programs need.
30575 ac_save_LDFLAGS=$LDFLAGS
30576 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30577 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30578 # check for ICE first), but we must link in the order -lSM -lICE or
30579 # we get undefined symbols. So assume we have SM if we have ICE.
30580 # These have to be linked with before -lX11, unlike the other
30581 # libraries we check for below, so use a different variable.
30582 # John Interrante, Karl Berry
30583 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30584echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30585if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30586 echo $ECHO_N "(cached) $ECHO_C" >&6
30587else
30588 ac_check_lib_save_LIBS=$LIBS
30589LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30590cat >conftest.$ac_ext <<_ACEOF
30591/* confdefs.h. */
30592_ACEOF
30593cat confdefs.h >>conftest.$ac_ext
30594cat >>conftest.$ac_ext <<_ACEOF
30595/* end confdefs.h. */
30596
30597/* Override any gcc2 internal prototype to avoid an error. */
30598#ifdef __cplusplus
30599extern "C"
30600#endif
30601/* We use char because int might match the return type of a gcc2
30602 builtin and then its argument prototype would still apply. */
30603char IceConnectionNumber ();
30604int
30605main ()
30606{
30607IceConnectionNumber ();
30608 ;
30609 return 0;
30610}
30611_ACEOF
30612rm -f conftest.$ac_objext conftest$ac_exeext
30613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30614 (eval $ac_link) 2>conftest.er1
a848cd7e 30615 ac_status=$?
ac1cb8d3
VS
30616 grep -v '^ *+' conftest.er1 >conftest.err
30617 rm -f conftest.er1
30618 cat conftest.err >&5
a848cd7e
SC
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); } &&
ca5c6ac3 30621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623 (eval $ac_try) 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; } &&
30627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629 (eval $ac_try) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); }; }; then
30633 ac_cv_lib_ICE_IceConnectionNumber=yes
30634else
30635 echo "$as_me: failed program was:" >&5
30636sed 's/^/| /' conftest.$ac_ext >&5
30637
30638ac_cv_lib_ICE_IceConnectionNumber=no
30639fi
ac1cb8d3
VS
30640rm -f conftest.err conftest.$ac_objext \
30641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30642LIBS=$ac_check_lib_save_LIBS
30643fi
30644echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30645echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30646if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30647 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30648fi
30649
30650 LDFLAGS=$ac_save_LDFLAGS
30651
30652fi
30653
30654
30655 if test "$no_x" = "yes"; then
89d90d6d
VZ
30656 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30657echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30658 { (exit 1); exit 1; }; }
a848cd7e
SC
30659 fi
30660
74b84332
VS
30661 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30662 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30663 AFMINSTALL=afminstall
30664 COMPILED_X_PROGRAM=0
30665
74b84332
VS
30666 fi
30667
30668 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30669 if test "$wxUSE_NANOX" = "yes"; then
30670 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30671echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30672 if test "x$MICROWIN" = x ; then
30673 echo "$as_me:$LINENO: result: not found" >&5
30674echo "${ECHO_T}not found" >&6
30675 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30676echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30677 { (exit 1); exit 1; }; }
30678 else
30679 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30680echo "${ECHO_T}$MICROWIN" >&6
30681 cat >>confdefs.h <<\_ACEOF
30682#define wxUSE_NANOX 1
30683_ACEOF
30684
30685 fi
30686 fi
30687
30688 if test "$wxUSE_UNICODE" = "yes"; then
30689
3ecd9f92
MW
30690pkg_failed=no
30691echo "$as_me:$LINENO: checking for PANGOX" >&5
30692echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30693
3ecd9f92
MW
30694if test -n "$PKG_CONFIG"; then
30695 if test -n "$PANGOX_CFLAGS"; then
30696 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30697 else
30698 if test -n "$PKG_CONFIG" && \
30699 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30700 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30701 ac_status=$?
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); }; then
30704 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30705else
30706 pkg_failed=yes
30707fi
30708 fi
30709else
30710 pkg_failed=untried
30711fi
30712if test -n "$PKG_CONFIG"; then
30713 if test -n "$PANGOX_LIBS"; then
30714 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30715 else
30716 if test -n "$PKG_CONFIG" && \
30717 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30718 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30719 ac_status=$?
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; then
30722 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30723else
30724 pkg_failed=yes
30725fi
30726 fi
30727else
30728 pkg_failed=untried
30729fi
30730
30731
30732
30733if test $pkg_failed = yes; then
30734
30735if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30736 _pkg_short_errors_supported=yes
30737else
30738 _pkg_short_errors_supported=no
30739fi
30740 if test $_pkg_short_errors_supported = yes; then
30741 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30742 else
30743 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30744 fi
3ecd9f92
MW
30745 # Put the nasty error message in config.log where it belongs
30746 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30747
30748
3ecd9f92
MW
30749 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30750echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30751 { (exit 1); exit 1; }; }
a848cd7e 30752
a848cd7e 30753
3ecd9f92 30754elif test $pkg_failed = untried; then
a848cd7e 30755
3ecd9f92
MW
30756 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30757echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30758 { (exit 1); exit 1; }; }
30759
30760
30761else
30762 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30763 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30764 echo "$as_me:$LINENO: result: yes" >&5
30765echo "${ECHO_T}yes" >&6
30766
30767 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30768 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30769
30770fi
30771
30772pkg_failed=no
30773echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30774echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30775
30776if test -n "$PKG_CONFIG"; then
30777 if test -n "$PANGOFT2_CFLAGS"; then
30778 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30779 else
30780 if test -n "$PKG_CONFIG" && \
30781 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30782 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; then
30786 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30787else
30788 pkg_failed=yes
30789fi
30790 fi
30791else
30792 pkg_failed=untried
30793fi
30794if test -n "$PKG_CONFIG"; then
30795 if test -n "$PANGOFT2_LIBS"; then
30796 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30797 else
30798 if test -n "$PKG_CONFIG" && \
30799 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30800 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; then
30804 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30805else
30806 pkg_failed=yes
30807fi
30808 fi
30809else
30810 pkg_failed=untried
30811fi
30812
30813
30814
30815if test $pkg_failed = yes; then
30816
30817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30818 _pkg_short_errors_supported=yes
30819else
30820 _pkg_short_errors_supported=no
30821fi
30822 if test $_pkg_short_errors_supported = yes; then
30823 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30824 else
30825 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30826 fi
30827 # Put the nasty error message in config.log where it belongs
30828 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30829
a848cd7e
SC
30830
30831 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30832echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30833 wxUSE_PRINTING_ARCHITECTURE="no"
30834
30835
3ecd9f92 30836elif test $pkg_failed = untried; then
a848cd7e 30837
3ecd9f92
MW
30838 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30839echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30840 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30841
a848cd7e 30842
a848cd7e 30843else
3ecd9f92
MW
30844 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30845 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30846 echo "$as_me:$LINENO: result: yes" >&5
30847echo "${ECHO_T}yes" >&6
30848
30849 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30850 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30851
a848cd7e 30852fi
3ecd9f92
MW
30853
30854pkg_failed=no
30855echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30856echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30857
30858if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30859 if test -n "$PANGOXFT_CFLAGS"; then
30860 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30861 else
30862 if test -n "$PKG_CONFIG" && \
30863 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30864 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30865 ac_status=$?
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); }; then
30868 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30869else
3ecd9f92
MW
30870 pkg_failed=yes
30871fi
30872 fi
30873else
30874 pkg_failed=untried
30875fi
30876if test -n "$PKG_CONFIG"; then
30877 if test -n "$PANGOXFT_LIBS"; then
30878 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30879 else
30880 if test -n "$PKG_CONFIG" && \
30881 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30882 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; then
30886 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30887else
30888 pkg_failed=yes
30889fi
30890 fi
30891else
30892 pkg_failed=untried
a848cd7e
SC
30893fi
30894
a848cd7e 30895
a848cd7e 30896
3ecd9f92 30897if test $pkg_failed = yes; then
a848cd7e 30898
3ecd9f92
MW
30899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30900 _pkg_short_errors_supported=yes
30901else
30902 _pkg_short_errors_supported=no
30903fi
30904 if test $_pkg_short_errors_supported = yes; then
30905 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30906 else
30907 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30908 fi
3ecd9f92
MW
30909 # Put the nasty error message in config.log where it belongs
30910 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30911
30912
3ecd9f92
MW
30913 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30914echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30915
a848cd7e 30916
3ecd9f92 30917elif test $pkg_failed = untried; then
a848cd7e 30918
3ecd9f92
MW
30919 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30920echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30921
30922
30923else
30924 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30925 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30926 echo "$as_me:$LINENO: result: yes" >&5
30927echo "${ECHO_T}yes" >&6
a848cd7e 30928
4ae1af05
MB
30929 cat >>confdefs.h <<\_ACEOF
30930#define HAVE_PANGO_XFT 1
30931_ACEOF
30932
c92ad099 30933 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30934 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30935
3ecd9f92 30936fi
e56f4f9e 30937 save_CXXFLAGS="$CXXFLAGS"
304205f1 30938 save_LIBS="$LIBS"
e56f4f9e 30939 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30940 LIBS="$LIBS $PANGOX_LIBS"
30941
30942for ac_func in pango_font_family_is_monospace
30943do
30944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30945echo "$as_me:$LINENO: checking for $ac_func" >&5
30946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30947if eval "test \"\${$as_ac_var+set}\" = set"; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30949else
30950 cat >conftest.$ac_ext <<_ACEOF
30951/* confdefs.h. */
30952_ACEOF
30953cat confdefs.h >>conftest.$ac_ext
30954cat >>conftest.$ac_ext <<_ACEOF
30955/* end confdefs.h. */
30956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30958#define $ac_func innocuous_$ac_func
30959
30960/* System header to define __stub macros and hopefully few prototypes,
30961 which can conflict with char $ac_func (); below.
30962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30963 <limits.h> exists even on freestanding compilers. */
30964
30965#ifdef __STDC__
30966# include <limits.h>
30967#else
30968# include <assert.h>
30969#endif
30970
30971#undef $ac_func
30972
30973/* Override any gcc2 internal prototype to avoid an error. */
30974#ifdef __cplusplus
30975extern "C"
30976{
30977#endif
30978/* We use char because int might match the return type of a gcc2
30979 builtin and then its argument prototype would still apply. */
30980char $ac_func ();
30981/* The GNU C library defines this for functions which it implements
30982 to always fail with ENOSYS. Some functions are actually named
30983 something starting with __ and the normal name is an alias. */
30984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30985choke me
30986#else
30987char (*f) () = $ac_func;
30988#endif
30989#ifdef __cplusplus
30990}
30991#endif
30992
30993int
30994main ()
30995{
30996return f != $ac_func;
30997 ;
30998 return 0;
30999}
31000_ACEOF
31001rm -f conftest.$ac_objext conftest$ac_exeext
31002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31003 (eval $ac_link) 2>conftest.er1
31004 ac_status=$?
31005 grep -v '^ *+' conftest.er1 >conftest.err
31006 rm -f conftest.er1
31007 cat conftest.err >&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
ca5c6ac3 31010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012 (eval $ac_try) 2>&5
31013 ac_status=$?
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; } &&
31016 { ac_try='test -s conftest$ac_exeext'
31017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31018 (eval $ac_try) 2>&5
31019 ac_status=$?
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); }; }; then
31022 eval "$as_ac_var=yes"
31023else
31024 echo "$as_me: failed program was:" >&5
31025sed 's/^/| /' conftest.$ac_ext >&5
31026
31027eval "$as_ac_var=no"
31028fi
31029rm -f conftest.err conftest.$ac_objext \
31030 conftest$ac_exeext conftest.$ac_ext
31031fi
31032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31034if test `eval echo '${'$as_ac_var'}'` = yes; then
31035 cat >>confdefs.h <<_ACEOF
31036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31037_ACEOF
31038
31039fi
31040done
31041
e56f4f9e 31042 CXXFLAGS="$save_CXXFLAGS"
304205f1 31043 LIBS="$save_LIBS"
a848cd7e
SC
31044 fi
31045
31046 wxUSE_UNIVERSAL="yes"
31047
31048 if test "$wxUSE_NANOX" = "yes"; then
31049 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31050 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"
31051 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31052 else
31053 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31054 fi
31055
a848cd7e
SC
31056 TOOLKIT=X11
31057 GUIDIST=X11_DIST
31058 fi
31059
31060 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31061 if test "$wxUSE_UNICODE" = "yes"; then
31062 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31063echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31064 { (exit 1); exit 1; }; }
31065 fi
31066
74b84332
VS
31067 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31068echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31069
74b84332
VS
31070ac_find_includes=
31071for ac_dir in $SEARCH_INCLUDE /usr/include;
31072 do
31073 if test -f "$ac_dir/Xm/Xm.h"; then
31074 ac_find_includes=$ac_dir
31075 break
31076 fi
31077 done
a848cd7e 31078
74b84332
VS
31079 if test "$ac_find_includes" != "" ; then
31080 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31081echo "${ECHO_T}found in $ac_find_includes" >&6
31082
31083 if test "x$ac_find_includes" = "x/usr/include"; then
31084 ac_path_to_include=""
31085 else
31086 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31087 result=$?
31088 if test $result = 0; then
31089 ac_path_to_include=""
31090 else
31091 ac_path_to_include=" -I$ac_find_includes"
31092 fi
a848cd7e
SC
31093 fi
31094
74b84332
VS
31095 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31096 else
e56f4f9e
VZ
31097 save_CXXFLAGS=$CXXFLAGS
31098 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31099
74b84332 31100 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31101/* confdefs.h. */
31102_ACEOF
31103cat confdefs.h >>conftest.$ac_ext
31104cat >>conftest.$ac_ext <<_ACEOF
31105/* end confdefs.h. */
31106
74b84332
VS
31107 #include <Xm/Xm.h>
31108
a848cd7e
SC
31109int
31110main ()
31111{
31112
74b84332
VS
31113 int version;
31114 version = xmUseVersion;
31115
a848cd7e
SC
31116 ;
31117 return 0;
31118}
31119_ACEOF
74b84332
VS
31120rm -f conftest.$ac_objext
31121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31122 (eval $ac_compile) 2>conftest.er1
a848cd7e 31123 ac_status=$?
ac1cb8d3
VS
31124 grep -v '^ *+' conftest.er1 >conftest.err
31125 rm -f conftest.er1
31126 cat conftest.err >&5
a848cd7e
SC
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } &&
ca5c6ac3 31129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131 (eval $ac_try) 2>&5
31132 ac_status=$?
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; } &&
74b84332 31135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31137 (eval $ac_try) 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; }; then
74b84332
VS
31141
31142 echo "$as_me:$LINENO: result: found in default search path" >&5
31143echo "${ECHO_T}found in default search path" >&6
31144 COMPILED_X_PROGRAM=1
31145
a848cd7e
SC
31146else
31147 echo "$as_me: failed program was:" >&5
31148sed 's/^/| /' conftest.$ac_ext >&5
31149
a848cd7e 31150
74b84332
VS
31151 echo "$as_me:$LINENO: result: no" >&5
31152echo "${ECHO_T}no" >&6
e051b34e
MW
31153 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31154echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31155 { (exit 1); exit 1; }; }
a848cd7e 31156
a848cd7e 31157
a848cd7e 31158fi
74b84332 31159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31160
e56f4f9e 31161 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31162 fi
31163
0ad5d837
VZ
31164
31165 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31166echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31167
0ad5d837
VZ
31168 ac_find_libraries=
31169 for ac_dir in $SEARCH_LIB;
74b84332 31170 do
3eca31dc 31171 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31172 if test -f "$ac_dir/libXm.$ac_extension"; then
31173 ac_find_libraries=$ac_dir
31174 break 2
a848cd7e 31175 fi
74b84332
VS
31176 done
31177 done
a848cd7e 31178
0ad5d837
VZ
31179
31180 if test "x$ac_find_libraries" != "x" ; then
31181 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31182echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31183
74b84332 31184
0ad5d837 31185 if test "$ac_find_libraries" = "default location"; then
74b84332 31186 ac_path_to_link=""
a848cd7e 31187 else
0ad5d837
VZ
31188 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31189 result=$?
31190 if test $result = 0; then
31191 ac_path_to_link=""
31192 else
31193 ac_path_to_link=" -L$ac_find_libraries"
31194 fi
74b84332
VS
31195 fi
31196
0ad5d837
VZ
31197 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31198 else
e56f4f9e
VZ
31199 save_CXXFLAGS=$CXXFLAGS
31200 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31201 save_LIBS="$LIBS"
31202 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31203
0ad5d837 31204 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31205/* confdefs.h. */
31206_ACEOF
31207cat confdefs.h >>conftest.$ac_ext
31208cat >>conftest.$ac_ext <<_ACEOF
31209/* end confdefs.h. */
31210
0ad5d837 31211 #include <Xm/Xm.h>
74b84332 31212
a848cd7e
SC
31213int
31214main ()
31215{
74b84332 31216
0ad5d837
VZ
31217 int version;
31218 version = xmUseVersion;
74b84332 31219
a848cd7e
SC
31220 ;
31221 return 0;
31222}
31223_ACEOF
0ad5d837
VZ
31224rm -f conftest.$ac_objext conftest$ac_exeext
31225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31226 (eval $ac_link) 2>conftest.er1
a848cd7e 31227 ac_status=$?
ac1cb8d3
VS
31228 grep -v '^ *+' conftest.er1 >conftest.err
31229 rm -f conftest.er1
31230 cat conftest.err >&5
a848cd7e
SC
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } &&
ca5c6ac3 31233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31235 (eval $ac_try) 2>&5
31236 ac_status=$?
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; } &&
0ad5d837 31239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
74b84332 31245
0ad5d837 31246 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31247echo "${ECHO_T}found in default search path" >&6
0ad5d837 31248 COMPILED_X_PROGRAM=1
74b84332 31249
a848cd7e
SC
31250else
31251 echo "$as_me: failed program was:" >&5
31252sed 's/^/| /' conftest.$ac_ext >&5
31253
74b84332 31254
6f9cf1e6 31255 echo "$as_me:$LINENO: result: no" >&5
74b84332 31256echo "${ECHO_T}no" >&6
6f9cf1e6 31257 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31258echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31259 { (exit 1); exit 1; }; }
31260
31261
31262fi
0ad5d837
VZ
31263rm -f conftest.err conftest.$ac_objext \
31264 conftest$ac_exeext conftest.$ac_ext
74b84332 31265
e56f4f9e 31266 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31267 LIBS="$save_LIBS"
74b84332
VS
31268 fi
31269
31270 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31271echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31272 libp_link=""
31273 libsm_ice_link=""
31274 libs_found=0
31275 for libp in "" " -lXp"; do
31276 if test "$libs_found" = "0"; then
31277 for libsm_ice in "" " -lSM -lICE"; do
31278 if test "$libs_found" = "0"; then
31279 save_LIBS="$LIBS"
31280 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31281 save_CXXFLAGS=$CXXFLAGS
31282 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31283
31284 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31285/* confdefs.h. */
31286_ACEOF
31287cat confdefs.h >>conftest.$ac_ext
31288cat >>conftest.$ac_ext <<_ACEOF
31289/* end confdefs.h. */
31290
74b84332
VS
31291 #include <Xm/Xm.h>
31292 #include <Xm/List.h>
31293
a848cd7e
SC
31294int
31295main ()
31296{
74b84332
VS
31297
31298 XmString string = NULL;
31299 Widget w = NULL;
31300 int position = 0;
31301 XmListAddItem(w, string, position);
31302
a848cd7e
SC
31303 ;
31304 return 0;
31305}
31306_ACEOF
31307rm -f conftest.$ac_objext conftest$ac_exeext
31308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31309 (eval $ac_link) 2>conftest.er1
a848cd7e 31310 ac_status=$?
ac1cb8d3
VS
31311 grep -v '^ *+' conftest.er1 >conftest.err
31312 rm -f conftest.er1
31313 cat conftest.err >&5
a848cd7e
SC
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); } &&
ca5c6ac3 31316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31318 (eval $ac_try) 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; } &&
31322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31324 (eval $ac_try) 2>&5
31325 ac_status=$?
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); }; }; then
31328
31329 libp_link="$libp"
31330 libsm_ice_link="$libsm_ice"
31331 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31332echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31333 libs_found=1
31334
31335else
31336 echo "$as_me: failed program was:" >&5
31337sed 's/^/| /' conftest.$ac_ext >&5
31338
31339
31340
31341fi
ac1cb8d3
VS
31342rm -f conftest.err conftest.$ac_objext \
31343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31344
31345 LIBS="$save_LIBS"
e56f4f9e 31346 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31347 fi
31348 done
31349 fi
31350 done
31351
31352 if test "$libs_found" = "0"; then
31353 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31354echo "${ECHO_T}can't find the right libraries" >&6
31355 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31356echo "$as_me: error: can't link a simple motif program" >&2;}
31357 { (exit 1); exit 1; }; }
31358 fi
31359
62fa8b3a
MW
31360 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31361echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31362if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31363 echo $ECHO_N "(cached) $ECHO_C" >&6
31364else
31365 ac_check_lib_save_LIBS=$LIBS
31366LIBS="-lSgm $LIBS"
31367cat >conftest.$ac_ext <<_ACEOF
31368/* confdefs.h. */
31369_ACEOF
31370cat confdefs.h >>conftest.$ac_ext
31371cat >>conftest.$ac_ext <<_ACEOF
31372/* end confdefs.h. */
31373
31374/* Override any gcc2 internal prototype to avoid an error. */
31375#ifdef __cplusplus
31376extern "C"
31377#endif
31378/* We use char because int might match the return type of a gcc2
31379 builtin and then its argument prototype would still apply. */
31380char SgCreateList ();
31381int
31382main ()
31383{
31384SgCreateList ();
31385 ;
31386 return 0;
31387}
31388_ACEOF
31389rm -f conftest.$ac_objext conftest$ac_exeext
31390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31391 (eval $ac_link) 2>conftest.er1
31392 ac_status=$?
31393 grep -v '^ *+' conftest.er1 >conftest.err
31394 rm -f conftest.er1
31395 cat conftest.err >&5
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); } &&
ca5c6ac3 31398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31400 (eval $ac_try) 2>&5
31401 ac_status=$?
31402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403 (exit $ac_status); }; } &&
31404 { ac_try='test -s conftest$ac_exeext'
31405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31406 (eval $ac_try) 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); }; }; then
31410 ac_cv_lib_Sgm_SgCreateList=yes
31411else
31412 echo "$as_me: failed program was:" >&5
31413sed 's/^/| /' conftest.$ac_ext >&5
31414
31415ac_cv_lib_Sgm_SgCreateList=no
31416fi
31417rm -f conftest.err conftest.$ac_objext \
31418 conftest$ac_exeext conftest.$ac_ext
31419LIBS=$ac_check_lib_save_LIBS
31420fi
31421echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31422echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31423if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31424 libsgm_link=" -lSgm"
31425fi
31426
31427
e56f4f9e
VZ
31428 save_CXXFLAGS=$CXXFLAGS
31429 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31430
a848cd7e
SC
31431 echo "$as_me:$LINENO: checking for Motif 2" >&5
31432echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31433if test "${wx_cv_lib_motif2+set}" = set; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31435else
31436 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31437/* confdefs.h. */
31438_ACEOF
31439cat confdefs.h >>conftest.$ac_ext
31440cat >>conftest.$ac_ext <<_ACEOF
31441/* end confdefs.h. */
31442
0ad5d837 31443 #include <Xm/Xm.h>
a848cd7e
SC
31444
31445int
31446main ()
31447{
31448
0ad5d837
VZ
31449 #if XmVersion < 2000
31450 Not Motif 2
31451 #endif
a848cd7e
SC
31452
31453 ;
31454 return 0;
31455}
31456_ACEOF
31457rm -f conftest.$ac_objext
31458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31459 (eval $ac_compile) 2>conftest.er1
a848cd7e 31460 ac_status=$?
ac1cb8d3
VS
31461 grep -v '^ *+' conftest.er1 >conftest.err
31462 rm -f conftest.er1
31463 cat conftest.err >&5
a848cd7e
SC
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); } &&
ca5c6ac3 31466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468 (eval $ac_try) 2>&5
31469 ac_status=$?
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; } &&
31472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474 (eval $ac_try) 2>&5
31475 ac_status=$?
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; }; then
0ad5d837 31478 wx_cv_lib_motif2="yes"
a848cd7e
SC
31479else
31480 echo "$as_me: failed program was:" >&5
31481sed 's/^/| /' conftest.$ac_ext >&5
31482
0ad5d837
VZ
31483wx_cv_lib_motif2="no"
31484fi
31485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31486fi
31487echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31488echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31489 if test "$wx_cv_lib_motif2" = "yes"; then
31490 cat >>confdefs.h <<\_ACEOF
31491#define __WXMOTIF20__ 1
31492_ACEOF
a848cd7e 31493
0ad5d837
VZ
31494 else
31495 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31496#define __WXMOTIF20__ 0
31497_ACEOF
31498
0ad5d837 31499 fi
2113bc77
MW
31500
31501 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31502echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31503if test "${wx_cv_lib_lesstif+set}" = set; then
31504 echo $ECHO_N "(cached) $ECHO_C" >&6
31505else
31506 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31507/* confdefs.h. */
31508_ACEOF
31509cat confdefs.h >>conftest.$ac_ext
31510cat >>conftest.$ac_ext <<_ACEOF
31511/* end confdefs.h. */
31512
0ad5d837 31513 #include <Xm/Xm.h>
2113bc77
MW
31514
31515int
31516main ()
31517{
31518
0ad5d837
VZ
31519 #if !defined(LesstifVersion) || LesstifVersion <= 0
31520 Not Lesstif
31521 #endif
2113bc77
MW
31522
31523 ;
31524 return 0;
31525}
31526_ACEOF
31527rm -f conftest.$ac_objext
31528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31529 (eval $ac_compile) 2>conftest.er1
31530 ac_status=$?
31531 grep -v '^ *+' conftest.er1 >conftest.err
31532 rm -f conftest.er1
31533 cat conftest.err >&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); } &&
ca5c6ac3 31536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31538 (eval $ac_try) 2>&5
31539 ac_status=$?
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; } &&
31542 { ac_try='test -s conftest.$ac_objext'
31543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31544 (eval $ac_try) 2>&5
31545 ac_status=$?
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; }; then
0ad5d837 31548 wx_cv_lib_lesstif="yes"
2113bc77
MW
31549else
31550 echo "$as_me: failed program was:" >&5
31551sed 's/^/| /' conftest.$ac_ext >&5
31552
0ad5d837
VZ
31553wx_cv_lib_lesstif="no"
31554fi
31555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31556
0ad5d837
VZ
31557fi
31558echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31559echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31560 if test "$wx_cv_lib_lesstif" = "yes"; then
31561 cat >>confdefs.h <<\_ACEOF
31562#define __WXLESSTIF__ 1
31563_ACEOF
31564
31565 else
31566 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31567#define __WXLESSTIF__ 0
31568_ACEOF
31569
0ad5d837 31570 fi
2113bc77 31571
e56f4f9e 31572 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31573
62fa8b3a 31574 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31575 TOOLKIT=MOTIF
31576 GUIDIST=MOTIF_DIST
31577 fi
31578
74b84332 31579 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31580 if test "$wxUSE_LIBXPM" = "sys"; then
31581 echo "$as_me:$LINENO: checking for Xpm library" >&5
31582echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31583
0ad5d837
VZ
31584 ac_find_libraries=
31585 for ac_dir in $SEARCH_LIB;
a848cd7e 31586 do
3eca31dc 31587 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31588 if test -f "$ac_dir/libXpm.$ac_extension"; then
31589 ac_find_libraries=$ac_dir
31590 break 2
31591 fi
31592 done
31593 done
31594
31595 if test "$ac_find_libraries" != "" ; then
31596
0ad5d837 31597 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31598 ac_path_to_link=""
31599 else
0ad5d837
VZ
31600 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31601 result=$?
31602 if test $result = 0; then
31603 ac_path_to_link=""
31604 else
31605 ac_path_to_link=" -L$ac_find_libraries"
31606 fi
a848cd7e
SC
31607 fi
31608
31609 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31610 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31611echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31612
31613 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31614echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31615if test "${wx_cv_x11_xpm_h+set}" = set; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31617else
31618
e56f4f9e
VZ
31619 save_CXXFLAGS=$CXXFLAGS
31620 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31621
31622 cat >conftest.$ac_ext <<_ACEOF
31623/* confdefs.h. */
31624_ACEOF
31625cat confdefs.h >>conftest.$ac_ext
31626cat >>conftest.$ac_ext <<_ACEOF
31627/* end confdefs.h. */
31628
31629 #include <X11/xpm.h>
31630
31631int
31632main ()
31633{
31634
31635 int version;
31636 version = XpmLibraryVersion();
31637
31638 ;
31639 return 0;
31640}
31641_ACEOF
31642rm -f conftest.$ac_objext
31643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31644 (eval $ac_compile) 2>conftest.er1
a848cd7e 31645 ac_status=$?
ac1cb8d3
VS
31646 grep -v '^ *+' conftest.er1 >conftest.err
31647 rm -f conftest.er1
31648 cat conftest.err >&5
a848cd7e
SC
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); } &&
ca5c6ac3 31651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31653 (eval $ac_try) 2>&5
31654 ac_status=$?
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; } &&
31657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31659 (eval $ac_try) 2>&5
31660 ac_status=$?
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; }; then
31663 wx_cv_x11_xpm_h=yes
31664else
31665 echo "$as_me: failed program was:" >&5
31666sed 's/^/| /' conftest.$ac_ext >&5
31667
31668wx_cv_x11_xpm_h=no
31669
31670fi
ac1cb8d3 31671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31672
e56f4f9e 31673 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31674
31675
31676fi
31677echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31678echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31679
31680 if test $wx_cv_x11_xpm_h = "yes"; then
31681 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31682 cat >>confdefs.h <<\_ACEOF
31683#define wxHAVE_LIB_XPM 1
31684_ACEOF
31685
31686 else
31687 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31688echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31689 fi
31690 fi
31691
31692 fi
31693
31694 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31695echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31696if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31698else
31699 ac_check_lib_save_LIBS=$LIBS
31700LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31701cat >conftest.$ac_ext <<_ACEOF
31702/* confdefs.h. */
31703_ACEOF
31704cat confdefs.h >>conftest.$ac_ext
31705cat >>conftest.$ac_ext <<_ACEOF
31706/* end confdefs.h. */
31707
31708/* Override any gcc2 internal prototype to avoid an error. */
31709#ifdef __cplusplus
31710extern "C"
31711#endif
31712/* We use char because int might match the return type of a gcc2
31713 builtin and then its argument prototype would still apply. */
31714char XShapeQueryExtension ();
31715int
31716main ()
31717{
31718XShapeQueryExtension ();
31719 ;
31720 return 0;
31721}
31722_ACEOF
31723rm -f conftest.$ac_objext conftest$ac_exeext
31724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31725 (eval $ac_link) 2>conftest.er1
a848cd7e 31726 ac_status=$?
ac1cb8d3
VS
31727 grep -v '^ *+' conftest.er1 >conftest.err
31728 rm -f conftest.er1
31729 cat conftest.err >&5
a848cd7e
SC
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); } &&
ca5c6ac3 31732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31734 (eval $ac_try) 2>&5
31735 ac_status=$?
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; } &&
31738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31740 (eval $ac_try) 2>&5
31741 ac_status=$?
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; }; then
31744 ac_cv_lib_Xext_XShapeQueryExtension=yes
31745else
31746 echo "$as_me: failed program was:" >&5
31747sed 's/^/| /' conftest.$ac_ext >&5
31748
31749ac_cv_lib_Xext_XShapeQueryExtension=no
31750fi
ac1cb8d3
VS
31751rm -f conftest.err conftest.$ac_objext \
31752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31753LIBS=$ac_check_lib_save_LIBS
31754fi
31755echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31756echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31757if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31758
31759 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31760 wxHAVE_XEXT_LIB=1
31761
31762fi
31763
31764
31765 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31766 save_CXXFLAGS="$CXXFLAGS"
31767 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31768
31769 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31770echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31771 cat >conftest.$ac_ext <<_ACEOF
31772/* confdefs.h. */
31773_ACEOF
31774cat confdefs.h >>conftest.$ac_ext
31775cat >>conftest.$ac_ext <<_ACEOF
31776/* end confdefs.h. */
31777
31778 #include <X11/Xlib.h>
31779 #include <X11/extensions/shape.h>
31780
31781int
31782main ()
31783{
31784
31785 int dummy1, dummy2;
31786 XShapeQueryExtension((Display*)NULL,
31787 (int*)NULL, (int*)NULL);
31788
31789 ;
31790 return 0;
31791}
31792_ACEOF
31793rm -f conftest.$ac_objext
31794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31795 (eval $ac_compile) 2>conftest.er1
a848cd7e 31796 ac_status=$?
ac1cb8d3
VS
31797 grep -v '^ *+' conftest.er1 >conftest.err
31798 rm -f conftest.er1
31799 cat conftest.err >&5
a848cd7e
SC
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); } &&
ca5c6ac3 31802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31804 (eval $ac_try) 2>&5
31805 ac_status=$?
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); }; } &&
31808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31810 (eval $ac_try) 2>&5
31811 ac_status=$?
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); }; }; then
31814
31815 cat >>confdefs.h <<\_ACEOF
31816#define HAVE_XSHAPE 1
31817_ACEOF
31818
31819 echo "$as_me:$LINENO: result: found" >&5
31820echo "${ECHO_T}found" >&6
31821
31822else
31823 echo "$as_me: failed program was:" >&5
31824sed 's/^/| /' conftest.$ac_ext >&5
31825
31826
31827 echo "$as_me:$LINENO: result: not found" >&5
31828echo "${ECHO_T}not found" >&6
31829
31830fi
ac1cb8d3 31831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31832 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31833
31834 fi
31835 fi
31836
31837 if test "$wxUSE_MAC" = 1; then
31838 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31839echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31840 if test "$GCC" = yes; then
31841 echo "$as_me:$LINENO: result: gcc" >&5
31842echo "${ECHO_T}gcc" >&6
31843 CPPFLAGS_PASCAL="-fpascal-strings"
31844 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31845 echo "$as_me:$LINENO: result: xlc" >&5
31846echo "${ECHO_T}xlc" >&6
31847 CPPFLAGS_PASCAL="-qmacpstr"
31848 else
31849 echo "$as_me:$LINENO: result: none" >&5
31850echo "${ECHO_T}none" >&6
31851 fi
31852
1e9e8aba 31853 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31854 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31855 else
c92ad099 31856 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31857 fi
a848cd7e 31858
a848cd7e
SC
31859 TOOLKIT=MAC
31860 GUIDIST=MACX_DIST
dd21ced8 31861 WXBASEPORT="_carbon"
a848cd7e
SC
31862 fi
31863
31864 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31865 TOOLKIT=COCOA
31866 GUIDIST=COCOA_DIST
31867 fi
31868
31869 if test "$wxUSE_PM" = 1; then
31870 TOOLKIT=PM
de59c161
RD
31871 GUIDIST=PM_DIST
31872 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31873echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31874if test "${wx_cv_spbcdata+set}" = set; then
31875 echo $ECHO_N "(cached) $ECHO_C" >&6
31876else
31877
31878 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31879/* confdefs.h. */
31880_ACEOF
31881cat confdefs.h >>conftest.$ac_ext
31882cat >>conftest.$ac_ext <<_ACEOF
31883/* end confdefs.h. */
31884
31885 #define INCL_PM
31886 #include <os2.h>
31887
31888int
31889main ()
31890{
31891
31892 SPBCDATA test;
31893
31894 ;
31895 return 0;
31896}
31897_ACEOF
31898rm -f conftest.$ac_objext
31899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31900 (eval $ac_compile) 2>conftest.er1
de59c161 31901 ac_status=$?
ac1cb8d3
VS
31902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
31904 cat conftest.err >&5
de59c161
RD
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
ca5c6ac3 31907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; } &&
31913 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915 (eval $ac_try) 2>&5
31916 ac_status=$?
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; }; then
31919 wx_cv_spbcdata=yes
31920else
31921 echo "$as_me: failed program was:" >&5
31922sed 's/^/| /' conftest.$ac_ext >&5
31923
31924wx_cv_spbcdata=no
31925
31926fi
ac1cb8d3 31927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31928
31929
31930fi
31931echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31932echo "${ECHO_T}$wx_cv_spbcdata" >&6
31933
31934 if test $wx_cv_spbcdata = "yes"; then
31935 cat >>confdefs.h <<\_ACEOF
31936#define HAVE_SPBCDATA 1
31937_ACEOF
31938
31939 fi
a848cd7e
SC
31940 fi
31941
31942 if test "$TOOLKIT" = "PM" ; then
31943 TOOLKIT_DIR="os2"
31944 else
31945 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31946 fi
31947
a848cd7e 31948 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31949 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31950 WIDGET_SET=univ
a848cd7e
SC
31951 fi
31952
31953 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31954 DISTDIR="wx\$(TOOLKIT)"
31955else
31956 USE_GUI=0
31957
31958 TOOLKIT_DIR="base"
31959
31960 if test "$USE_WIN32" = 1 ; then
a848cd7e 31961 TOOLKIT="MSW"
a848cd7e
SC
31962 fi
31963
a848cd7e
SC
31964 GUIDIST="BASE_DIST"
31965 DISTDIR="wxBase"
31966fi
31967
31968
d12aef51
VZ
31969if test "$wxUSE_GUI" = "yes"; then
31970 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31971
31972for ac_header in X11/Xlib.h
31973do
31974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31975if eval "test \"\${$as_ac_Header+set}\" = set"; then
31976 echo "$as_me:$LINENO: checking for $ac_header" >&5
31977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31978if eval "test \"\${$as_ac_Header+set}\" = set"; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31980fi
31981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31983else
31984 # Is the header compilable?
31985echo "$as_me:$LINENO: checking $ac_header usability" >&5
31986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31987cat >conftest.$ac_ext <<_ACEOF
31988/* confdefs.h. */
31989_ACEOF
31990cat confdefs.h >>conftest.$ac_ext
31991cat >>conftest.$ac_ext <<_ACEOF
31992/* end confdefs.h. */
31993$ac_includes_default
31994#include <$ac_header>
31995_ACEOF
31996rm -f conftest.$ac_objext
31997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31998 (eval $ac_compile) 2>conftest.er1
31999 ac_status=$?
32000 grep -v '^ *+' conftest.er1 >conftest.err
32001 rm -f conftest.er1
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } &&
ca5c6ac3 32005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32008 ac_status=$?
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; } &&
32011 { ac_try='test -s conftest.$ac_objext'
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
32014 ac_status=$?
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; }; then
32017 ac_header_compiler=yes
32018else
32019 echo "$as_me: failed program was:" >&5
32020sed 's/^/| /' conftest.$ac_ext >&5
32021
32022ac_header_compiler=no
32023fi
32024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32026echo "${ECHO_T}$ac_header_compiler" >&6
32027
32028# Is the header present?
32029echo "$as_me:$LINENO: checking $ac_header presence" >&5
32030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32031cat >conftest.$ac_ext <<_ACEOF
32032/* confdefs.h. */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h. */
32037#include <$ac_header>
32038_ACEOF
32039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32041 ac_status=$?
32042 grep -v '^ *+' conftest.er1 >conftest.err
32043 rm -f conftest.er1
32044 cat conftest.err >&5
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); } >/dev/null; then
32047 if test -s conftest.err; then
5d7b7554
VZ
32048 ac_cpp_err=$ac_cxx_preproc_warn_flag
32049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32050 else
32051 ac_cpp_err=
32052 fi
32053else
32054 ac_cpp_err=yes
32055fi
32056if test -z "$ac_cpp_err"; then
32057 ac_header_preproc=yes
32058else
32059 echo "$as_me: failed program was:" >&5
32060sed 's/^/| /' conftest.$ac_ext >&5
32061
32062 ac_header_preproc=no
32063fi
32064rm -f conftest.err conftest.$ac_ext
32065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32066echo "${ECHO_T}$ac_header_preproc" >&6
32067
32068# So? What about this header?
5d7b7554 32069case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32070 yes:no: )
32071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32075 ac_header_preproc=yes
32076 ;;
32077 no:yes:* )
32078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32090 (
32091 cat <<\_ASBOX
32092## ----------------------------------------- ##
32093## Report this to wx-dev@lists.wxwidgets.org ##
32094## ----------------------------------------- ##
32095_ASBOX
32096 ) |
32097 sed "s/^/$as_me: WARNING: /" >&2
32098 ;;
32099esac
32100echo "$as_me:$LINENO: checking for $ac_header" >&5
32101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32102if eval "test \"\${$as_ac_Header+set}\" = set"; then
32103 echo $ECHO_N "(cached) $ECHO_C" >&6
32104else
32105 eval "$as_ac_Header=\$ac_header_preproc"
32106fi
32107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32109
32110fi
32111if test `eval echo '${'$as_ac_Header'}'` = yes; then
32112 cat >>confdefs.h <<_ACEOF
32113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32114_ACEOF
32115
32116fi
32117
32118done
32119
32120
32121for ac_header in X11/XKBlib.h
32122do
32123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32124echo "$as_me:$LINENO: checking for $ac_header" >&5
32125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32126if eval "test \"\${$as_ac_Header+set}\" = set"; then
32127 echo $ECHO_N "(cached) $ECHO_C" >&6
32128else
32129 cat >conftest.$ac_ext <<_ACEOF
32130/* confdefs.h. */
32131_ACEOF
32132cat confdefs.h >>conftest.$ac_ext
32133cat >>conftest.$ac_ext <<_ACEOF
32134/* end confdefs.h. */
32135
32136 #if HAVE_X11_XLIB_H
32137 #include <X11/Xlib.h>
32138 #endif
32139
32140
32141#include <$ac_header>
32142_ACEOF
32143rm -f conftest.$ac_objext
32144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32145 (eval $ac_compile) 2>conftest.er1
32146 ac_status=$?
32147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
ca5c6ac3 32152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest.$ac_objext'
32159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160 (eval $ac_try) 2>&5
32161 ac_status=$?
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); }; }; then
32164 eval "$as_ac_Header=yes"
32165else
32166 echo "$as_me: failed program was:" >&5
32167sed 's/^/| /' conftest.$ac_ext >&5
32168
32169eval "$as_ac_Header=no"
32170fi
32171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32172fi
32173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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 fi
32185fi
32186
a848cd7e
SC
32187
32188
32189IODBC_C_SRC=""
32190
32191
32192if test "$TOOLKIT" != "MSW" ; then
32193
32194 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32195
32196 if test "${ac_cv_header_sql_h+set}" = set; then
32197 echo "$as_me:$LINENO: checking for sql.h" >&5
32198echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32199if test "${ac_cv_header_sql_h+set}" = set; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32201fi
32202echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32203echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32204else
32205 # Is the header compilable?
32206echo "$as_me:$LINENO: checking sql.h usability" >&5
32207echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32208cat >conftest.$ac_ext <<_ACEOF
32209/* confdefs.h. */
32210_ACEOF
32211cat confdefs.h >>conftest.$ac_ext
32212cat >>conftest.$ac_ext <<_ACEOF
32213/* end confdefs.h. */
32214$ac_includes_default
32215#include <sql.h>
32216_ACEOF
32217rm -f conftest.$ac_objext
32218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32219 (eval $ac_compile) 2>conftest.er1
a848cd7e 32220 ac_status=$?
ac1cb8d3
VS
32221 grep -v '^ *+' conftest.er1 >conftest.err
32222 rm -f conftest.er1
32223 cat conftest.err >&5
a848cd7e
SC
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); } &&
ca5c6ac3 32226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32228 (eval $ac_try) 2>&5
32229 ac_status=$?
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; } &&
32232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32234 (eval $ac_try) 2>&5
32235 ac_status=$?
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; }; then
32238 ac_header_compiler=yes
32239else
32240 echo "$as_me: failed program was:" >&5
32241sed 's/^/| /' conftest.$ac_ext >&5
32242
32243ac_header_compiler=no
32244fi
ac1cb8d3 32245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32247echo "${ECHO_T}$ac_header_compiler" >&6
32248
32249# Is the header present?
32250echo "$as_me:$LINENO: checking sql.h presence" >&5
32251echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32252cat >conftest.$ac_ext <<_ACEOF
32253/* confdefs.h. */
32254_ACEOF
32255cat confdefs.h >>conftest.$ac_ext
32256cat >>conftest.$ac_ext <<_ACEOF
32257/* end confdefs.h. */
32258#include <sql.h>
32259_ACEOF
32260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32262 ac_status=$?
32263 grep -v '^ *+' conftest.er1 >conftest.err
32264 rm -f conftest.er1
32265 cat conftest.err >&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); } >/dev/null; then
32268 if test -s conftest.err; then
5d7b7554
VZ
32269 ac_cpp_err=$ac_cxx_preproc_warn_flag
32270 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32271 else
32272 ac_cpp_err=
32273 fi
32274else
32275 ac_cpp_err=yes
32276fi
32277if test -z "$ac_cpp_err"; then
32278 ac_header_preproc=yes
32279else
32280 echo "$as_me: failed program was:" >&5
32281sed 's/^/| /' conftest.$ac_ext >&5
32282
32283 ac_header_preproc=no
32284fi
32285rm -f conftest.err conftest.$ac_ext
32286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32287echo "${ECHO_T}$ac_header_preproc" >&6
32288
32289# So? What about this header?
5d7b7554 32290case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32291 yes:no: )
a848cd7e
SC
32292 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32293echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32294 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32295echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32296 ac_header_preproc=yes
a848cd7e 32297 ;;
ac1cb8d3 32298 no:yes:* )
a848cd7e
SC
32299 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32300echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32301 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32302echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32303 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32304echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32305 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32306echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32307 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32308echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32309 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32310echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32311 (
32312 cat <<\_ASBOX
ac1cb8d3
VS
32313## ----------------------------------------- ##
32314## Report this to wx-dev@lists.wxwidgets.org ##
32315## ----------------------------------------- ##
a848cd7e
SC
32316_ASBOX
32317 ) |
32318 sed "s/^/$as_me: WARNING: /" >&2
32319 ;;
32320esac
32321echo "$as_me:$LINENO: checking for sql.h" >&5
32322echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32323if test "${ac_cv_header_sql_h+set}" = set; then
32324 echo $ECHO_N "(cached) $ECHO_C" >&6
32325else
32326 ac_cv_header_sql_h=$ac_header_preproc
32327fi
32328echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32329echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32330
32331fi
32332if test $ac_cv_header_sql_h = yes; then
32333 found_sql_h=1
32334fi
32335
32336
32337 if test "x$found_sql_h" = "x1" ; then
32338 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32339echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32340if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32341 echo $ECHO_N "(cached) $ECHO_C" >&6
32342else
32343 ac_check_lib_save_LIBS=$LIBS
32344LIBS="-liodbc $LIBS"
32345cat >conftest.$ac_ext <<_ACEOF
32346/* confdefs.h. */
32347_ACEOF
32348cat confdefs.h >>conftest.$ac_ext
32349cat >>conftest.$ac_ext <<_ACEOF
32350/* end confdefs.h. */
32351
32352/* Override any gcc2 internal prototype to avoid an error. */
32353#ifdef __cplusplus
32354extern "C"
32355#endif
32356/* We use char because int might match the return type of a gcc2
32357 builtin and then its argument prototype would still apply. */
32358char SQLAllocEnv ();
32359int
32360main ()
32361{
32362SQLAllocEnv ();
32363 ;
32364 return 0;
32365}
32366_ACEOF
32367rm -f conftest.$ac_objext conftest$ac_exeext
32368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32369 (eval $ac_link) 2>conftest.er1
a848cd7e 32370 ac_status=$?
ac1cb8d3
VS
32371 grep -v '^ *+' conftest.er1 >conftest.err
32372 rm -f conftest.er1
32373 cat conftest.err >&5
a848cd7e
SC
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); } &&
ca5c6ac3 32376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32378 (eval $ac_try) 2>&5
32379 ac_status=$?
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; } &&
32382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384 (eval $ac_try) 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
32388 ac_cv_lib_iodbc_SQLAllocEnv=yes
32389else
32390 echo "$as_me: failed program was:" >&5
32391sed 's/^/| /' conftest.$ac_ext >&5
32392
32393ac_cv_lib_iodbc_SQLAllocEnv=no
32394fi
ac1cb8d3
VS
32395rm -f conftest.err conftest.$ac_objext \
32396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32397LIBS=$ac_check_lib_save_LIBS
32398fi
32399echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32400echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32401if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32402 ODBC_LINK=" -liodbc"
32403else
32404
32405 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32406echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32407if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32409else
32410 ac_check_lib_save_LIBS=$LIBS
32411LIBS="-lunixodbc $LIBS"
32412cat >conftest.$ac_ext <<_ACEOF
32413/* confdefs.h. */
32414_ACEOF
32415cat confdefs.h >>conftest.$ac_ext
32416cat >>conftest.$ac_ext <<_ACEOF
32417/* end confdefs.h. */
32418
32419/* Override any gcc2 internal prototype to avoid an error. */
32420#ifdef __cplusplus
32421extern "C"
32422#endif
32423/* We use char because int might match the return type of a gcc2
32424 builtin and then its argument prototype would still apply. */
32425char SQLAllocEnv ();
32426int
32427main ()
32428{
32429SQLAllocEnv ();
32430 ;
32431 return 0;
32432}
32433_ACEOF
32434rm -f conftest.$ac_objext conftest$ac_exeext
32435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32436 (eval $ac_link) 2>conftest.er1
a848cd7e 32437 ac_status=$?
ac1cb8d3
VS
32438 grep -v '^ *+' conftest.er1 >conftest.err
32439 rm -f conftest.er1
32440 cat conftest.err >&5
a848cd7e
SC
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); } &&
ca5c6ac3 32443 { ac_try='test -z "$ac_cxx_werror_flag" || 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_unixodbc_SQLAllocEnv=yes
32456else
32457 echo "$as_me: failed program was:" >&5
32458sed 's/^/| /' conftest.$ac_ext >&5
32459
32460ac_cv_lib_unixodbc_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_unixodbc_SQLAllocEnv" >&5
32467echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32468if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32469 ODBC_LINK=" -lunixodbc"
32470else
32471
32472 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32473echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32474if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32475 echo $ECHO_N "(cached) $ECHO_C" >&6
32476else
32477 ac_check_lib_save_LIBS=$LIBS
32478LIBS="-lodbc $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); } &&
ca5c6ac3 32510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32513 ac_status=$?
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518 (eval $ac_try) 2>&5
32519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
32522 ac_cv_lib_odbc_SQLAllocEnv=yes
32523else
32524 echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
32527ac_cv_lib_odbc_SQLAllocEnv=no
32528fi
ac1cb8d3
VS
32529rm -f conftest.err conftest.$ac_objext \
32530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32531LIBS=$ac_check_lib_save_LIBS
32532fi
32533echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32534echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32535if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32536 ODBC_LINK=" -lodbc"
32537fi
32538
32539
32540fi
32541
32542
32543fi
32544
32545 fi
32546 if test "x$ODBC_LINK" = "x" ; then
32547 if test "$wxUSE_ODBC" = "sys" ; then
32548 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32549echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32550 { (exit 1); exit 1; }; }
32551 else
32552 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32553echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32554 wxUSE_ODBC=builtin
32555 fi
32556 else
32557 wxUSE_ODBC=sys
32558 fi
32559 fi
a848cd7e 32560
2da0c077
RD
32561 if test "$wxUSE_ODBC" = "builtin" ; then
32562 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32563#define wxUSE_BUILTIN_IODBC 1
32564_ACEOF
32565
a848cd7e
SC
32566 fi
32567fi
32568
2da0c077
RD
32569if test "$wxUSE_ODBC" != "no" ; then
32570 cat >>confdefs.h <<\_ACEOF
32571#define wxUSE_ODBC 1
32572_ACEOF
32573
32574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32575
5ff751d6 32576 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32577fi
a848cd7e 32578
01cb68df 32579
a848cd7e 32580if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32581 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32582 echo "$as_me:$LINENO: checking for Xinerama" >&5
32583echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32584
0ad5d837
VZ
32585 ac_find_libraries=
32586 for ac_dir in $SEARCH_LIB;
32587 do
32588 for ac_extension in a so sl dylib dll.a; do
32589 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32590 ac_find_libraries=$ac_dir
32591 break 2
32592 fi
32593 done
32594 done
32595
a848cd7e
SC
32596 if test "$ac_find_libraries" != "" ; then
32597
0ad5d837 32598 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32599 ac_path_to_link=""
32600 else
0ad5d837
VZ
32601 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32602 result=$?
32603 if test $result = 0; then
32604 ac_path_to_link=""
32605 else
32606 ac_path_to_link=" -L$ac_find_libraries"
32607 fi
a848cd7e
SC
32608 fi
32609
32610 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32611 LDFLAGS="$LDFLAGS $ac_path_to_link"
32612 fi
32613 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32614 echo "$as_me:$LINENO: result: yes" >&5
32615echo "${ECHO_T}yes" >&6
32616
32617 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32618echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32619
0ad5d837
VZ
32620 ac_find_libraries=
32621 for ac_dir in $SEARCH_LIB;
a848cd7e 32622 do
3eca31dc 32623 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32624 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32625 ac_find_libraries=$ac_dir
32626 break 2
32627 fi
32628 done
32629 done
32630
32631 if test "$ac_find_libraries" != "" ; then
32632 echo "$as_me:$LINENO: result: yes" >&5
32633echo "${ECHO_T}yes" >&6
32634
32635for ac_header in X11/extensions/xf86vmode.h
32636do
32637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32638echo "$as_me:$LINENO: checking for $ac_header" >&5
32639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32640if eval "test \"\${$as_ac_Header+set}\" = set"; then
32641 echo $ECHO_N "(cached) $ECHO_C" >&6
32642else
32643 cat >conftest.$ac_ext <<_ACEOF
32644/* confdefs.h. */
32645_ACEOF
32646cat confdefs.h >>conftest.$ac_ext
32647cat >>conftest.$ac_ext <<_ACEOF
32648/* end confdefs.h. */
32649
32650 #if HAVE_X11_XLIB_H
32651 #include <X11/Xlib.h>
32652 #endif
32653
32654
32655#include <$ac_header>
32656_ACEOF
32657rm -f conftest.$ac_objext
32658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32659 (eval $ac_compile) 2>conftest.er1
a848cd7e 32660 ac_status=$?
ac1cb8d3
VS
32661 grep -v '^ *+' conftest.er1 >conftest.err
32662 rm -f conftest.er1
32663 cat conftest.err >&5
a848cd7e
SC
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); } &&
ca5c6ac3 32666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32669 ac_status=$?
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; } &&
32672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674 (eval $ac_try) 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; }; then
32678 eval "$as_ac_Header=yes"
32679else
32680 echo "$as_me: failed program was:" >&5
32681sed 's/^/| /' conftest.$ac_ext >&5
32682
32683eval "$as_ac_Header=no"
32684fi
ac1cb8d3 32685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32686fi
32687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32689if test `eval echo '${'$as_ac_Header'}'` = yes; then
32690 cat >>confdefs.h <<_ACEOF
32691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32692_ACEOF
32693
32694 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32695
32696fi
32697
32698done
32699
32700 else
32701 echo "$as_me:$LINENO: result: no" >&5
32702echo "${ECHO_T}no" >&6
32703 fi
32704
32705 else
32706 echo "$as_me:$LINENO: result: no" >&5
32707echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32708 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32709echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32710 wxUSE_DISPLAY="no"
32711 fi
01cb68df
RG
32712 elif test "$wxUSE_MSW" = 1; then
32713
e5efa97e 32714for ac_header in ddraw.h
01cb68df
RG
32715do
32716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32717echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32719if eval "test \"\${$as_ac_Header+set}\" = set"; then
32720 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32721else
5294a27e 32722 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32723/* confdefs.h. */
32724_ACEOF
32725cat confdefs.h >>conftest.$ac_ext
32726cat >>conftest.$ac_ext <<_ACEOF
32727/* end confdefs.h. */
5294a27e
VZ
32728#include <windows.h>
32729
01cb68df
RG
32730#include <$ac_header>
32731_ACEOF
32732rm -f conftest.$ac_objext
32733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32734 (eval $ac_compile) 2>conftest.er1
01cb68df 32735 ac_status=$?
ac1cb8d3
VS
32736 grep -v '^ *+' conftest.er1 >conftest.err
32737 rm -f conftest.er1
32738 cat conftest.err >&5
01cb68df
RG
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); } &&
ca5c6ac3 32741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 (eval $ac_try) 2>&5
32744 ac_status=$?
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; } &&
32747 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32749 (eval $ac_try) 2>&5
32750 ac_status=$?
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; }; then
5294a27e 32753 eval "$as_ac_Header=yes"
01cb68df
RG
32754else
32755 echo "$as_me: failed program was:" >&5
32756sed 's/^/| /' conftest.$ac_ext >&5
32757
5294a27e 32758eval "$as_ac_Header=no"
01cb68df 32759fi
ac1cb8d3 32760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32761fi
32762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32764if test `eval echo '${'$as_ac_Header'}'` = yes; then
32765 cat >>confdefs.h <<_ACEOF
32766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32767_ACEOF
32768
01cb68df
RG
32769fi
32770
32771done
32772
a848cd7e
SC
32773 fi
32774fi
32775
32776
32777USE_OPENGL=0
32778if test "$wxUSE_OPENGL" = "yes"; then
32779 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32780 OPENGL_LIBS="-framework OpenGL -framework AGL"
32781 elif test "$wxUSE_MSW" = 1; then
32782 OPENGL_LIBS="-lopengl32 -lglu32"
32783 else
32784
32785
32786ac_find_includes=
32787for ac_dir in $SEARCH_INCLUDE /usr/include;
32788 do
32789 if test -f "$ac_dir/GL/gl.h"; then
32790 ac_find_includes=$ac_dir
32791 break
32792 fi
32793 done
32794
32795 if test "$ac_find_includes" != "" ; then
32796 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32797echo "${ECHO_T}found in $ac_find_includes" >&6
32798
32799 if test "x$ac_find_includes" = "x/usr/include"; then
32800 ac_path_to_include=""
32801 else
32802 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32803 result=$?
32804 if test $result = 0; then
32805 ac_path_to_include=""
32806 else
32807 ac_path_to_include=" -I$ac_find_includes"
32808 fi
32809 fi
32810
c92ad099 32811 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32812 fi
32813
32814 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32815 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32816echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32817if test "${ac_cv_header_GL_gl_h+set}" = set; then
32818 echo $ECHO_N "(cached) $ECHO_C" >&6
32819fi
32820echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32821echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32822else
32823 # Is the header compilable?
32824echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32825echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32826cat >conftest.$ac_ext <<_ACEOF
32827/* confdefs.h. */
32828_ACEOF
32829cat confdefs.h >>conftest.$ac_ext
32830cat >>conftest.$ac_ext <<_ACEOF
32831/* end confdefs.h. */
32832$ac_includes_default
32833#include <GL/gl.h>
32834_ACEOF
32835rm -f conftest.$ac_objext
32836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32837 (eval $ac_compile) 2>conftest.er1
a848cd7e 32838 ac_status=$?
ac1cb8d3
VS
32839 grep -v '^ *+' conftest.er1 >conftest.err
32840 rm -f conftest.er1
32841 cat conftest.err >&5
a848cd7e
SC
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } &&
ca5c6ac3 32844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32846 (eval $ac_try) 2>&5
32847 ac_status=$?
32848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); }; } &&
32850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32852 (eval $ac_try) 2>&5
32853 ac_status=$?
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); }; }; then
32856 ac_header_compiler=yes
32857else
32858 echo "$as_me: failed program was:" >&5
32859sed 's/^/| /' conftest.$ac_ext >&5
32860
32861ac_header_compiler=no
32862fi
ac1cb8d3 32863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32865echo "${ECHO_T}$ac_header_compiler" >&6
32866
32867# Is the header present?
32868echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32869echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32870cat >conftest.$ac_ext <<_ACEOF
32871/* confdefs.h. */
32872_ACEOF
32873cat confdefs.h >>conftest.$ac_ext
32874cat >>conftest.$ac_ext <<_ACEOF
32875/* end confdefs.h. */
32876#include <GL/gl.h>
32877_ACEOF
32878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32880 ac_status=$?
32881 grep -v '^ *+' conftest.er1 >conftest.err
32882 rm -f conftest.er1
32883 cat conftest.err >&5
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); } >/dev/null; then
32886 if test -s conftest.err; then
5d7b7554
VZ
32887 ac_cpp_err=$ac_cxx_preproc_warn_flag
32888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32889 else
32890 ac_cpp_err=
32891 fi
32892else
32893 ac_cpp_err=yes
32894fi
32895if test -z "$ac_cpp_err"; then
32896 ac_header_preproc=yes
32897else
32898 echo "$as_me: failed program was:" >&5
32899sed 's/^/| /' conftest.$ac_ext >&5
32900
32901 ac_header_preproc=no
32902fi
32903rm -f conftest.err conftest.$ac_ext
32904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32905echo "${ECHO_T}$ac_header_preproc" >&6
32906
32907# So? What about this header?
5d7b7554 32908case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32909 yes:no: )
a848cd7e
SC
32910 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32911echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32912 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32913echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32914 ac_header_preproc=yes
a848cd7e 32915 ;;
ac1cb8d3 32916 no:yes:* )
a848cd7e
SC
32917 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32918echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32919 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32920echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32921 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32922echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32923 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32924echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32925 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32926echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32927 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32928echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32929 (
32930 cat <<\_ASBOX
ac1cb8d3
VS
32931## ----------------------------------------- ##
32932## Report this to wx-dev@lists.wxwidgets.org ##
32933## ----------------------------------------- ##
a848cd7e
SC
32934_ASBOX
32935 ) |
32936 sed "s/^/$as_me: WARNING: /" >&2
32937 ;;
32938esac
32939echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32940echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32941if test "${ac_cv_header_GL_gl_h+set}" = set; then
32942 echo $ECHO_N "(cached) $ECHO_C" >&6
32943else
32944 ac_cv_header_GL_gl_h=$ac_header_preproc
32945fi
32946echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32947echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32948
32949fi
32950if test $ac_cv_header_GL_gl_h = yes; then
32951
32952 found_gl=0
32953
32954 echo "$as_me:$LINENO: checking for -lGL" >&5
32955echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32956
0ad5d837
VZ
32957 ac_find_libraries=
32958 for ac_dir in $SEARCH_LIB;
a848cd7e 32959 do
3eca31dc 32960 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32961 if test -f "$ac_dir/libGL.$ac_extension"; then
32962 ac_find_libraries=$ac_dir
32963 break 2
32964 fi
32965 done
32966 done
32967
32968 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32969 echo "$as_me:$LINENO: result: yes" >&5
32970echo "${ECHO_T}yes" >&6
32971
a848cd7e 32972
0ad5d837 32973 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32974 ac_path_to_link=""
32975 else
0ad5d837
VZ
32976 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32977 result=$?
32978 if test $result = 0; then
32979 ac_path_to_link=""
32980 else
32981 ac_path_to_link=" -L$ac_find_libraries"
32982 fi
a848cd7e
SC
32983 fi
32984
32985 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32986 LDFLAGS_GL="$ac_path_to_link"
32987 fi
32988
69120ee4
VZ
32989 echo "$as_me:$LINENO: checking for -lGLU" >&5
32990echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32991
0ad5d837
VZ
32992 ac_find_libraries=
32993 for ac_dir in $SEARCH_LIB;
32994 do
32995 for ac_extension in a so sl dylib dll.a; do
32996 if test -f "$ac_dir/libGLU.$ac_extension"; then
32997 ac_find_libraries=$ac_dir
32998 break 2
32999 fi
33000 done
33001 done
33002
a848cd7e
SC
33003 if test "$ac_find_libraries" != "" ; then
33004
0ad5d837 33005 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33006 ac_path_to_link=""
33007 else
0ad5d837
VZ
33008 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33009 result=$?
33010 if test $result = 0; then
33011 ac_path_to_link=""
33012 else
33013 ac_path_to_link=" -L$ac_find_libraries"
33014 fi
a848cd7e
SC
33015 fi
33016
33017 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33018 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33019 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33020 fi
33021
33022 found_gl=1
33023 OPENGL_LIBS="-lGL -lGLU"
33024 echo "$as_me:$LINENO: result: yes" >&5
33025echo "${ECHO_T}yes" >&6
69120ee4
VZ
33026 else
33027 echo "$as_me:$LINENO: result: no" >&5
33028echo "${ECHO_T}no" >&6
a848cd7e 33029 fi
69120ee4
VZ
33030 else
33031 echo "$as_me:$LINENO: result: no" >&5
33032echo "${ECHO_T}no" >&6
a848cd7e
SC
33033 fi
33034
33035 if test "$found_gl" != 1; then
a848cd7e
SC
33036 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33037echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33038
0ad5d837
VZ
33039 ac_find_libraries=
33040 for ac_dir in $SEARCH_LIB;
a848cd7e 33041 do
3eca31dc 33042 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33043 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33044 ac_find_libraries=$ac_dir
33045 break 2
33046 fi
33047 done
33048 done
33049
33050 if test "$ac_find_libraries" != "" ; then
33051
0ad5d837 33052 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33053 ac_path_to_link=""
33054 else
0ad5d837
VZ
33055 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33056 result=$?
33057 if test $result = 0; then
33058 ac_path_to_link=""
33059 else
33060 ac_path_to_link=" -L$ac_find_libraries"
33061 fi
a848cd7e
SC
33062 fi
33063
33064 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33065 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33066 echo "$as_me:$LINENO: result: yes" >&5
33067echo "${ECHO_T}yes" >&6
33068 else
33069 echo "$as_me:$LINENO: result: no" >&5
33070echo "${ECHO_T}no" >&6
33071 fi
33072 fi
33073
33074fi
33075
33076
33077
33078 if test "x$OPENGL_LIBS" = "x"; then
33079 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33080echo "$as_me: error: OpenGL libraries not available" >&2;}
33081 { (exit 1); exit 1; }; }
33082 fi
33083 fi
33084
33085 if test "$wxUSE_OPENGL" = "yes"; then
33086 USE_OPENGL=1
33087 cat >>confdefs.h <<\_ACEOF
33088#define wxUSE_OPENGL 1
33089_ACEOF
33090
33091 cat >>confdefs.h <<\_ACEOF
33092#define wxUSE_GLCANVAS 1
33093_ACEOF
33094
33095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33096 fi
33097fi
33098
a848cd7e
SC
33099
33100if test -n "$TOOLKIT" ; then
33101 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33102fi
33103
a848cd7e
SC
33104
33105
33106if test "$wxUSE_SHARED" = "yes"; then
33107 case "${host}" in
33108 *-pc-msdosdjgpp )
33109 wxUSE_SHARED=no
33110 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33111echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33112 ;;
33113 esac
33114fi
33115
a848cd7e 33116if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33117
33118
33119 found_versioning=no
33120
33121
33122 if test $found_versioning = no ; then
33123 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33124echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33125if test "${wx_cv_version_script+set}" = set; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33127else
33128
33129 echo "VER_1 { *; };" >conftest.sym
33130 echo "int main() { return 0; }" >conftest.cpp
33131
33132 if { ac_try='
33133 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33134 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33136 (eval $ac_try) 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; } ; then
33140 if test -s conftest.stderr ; then
33141 wx_cv_version_script=no
33142 else
33143 wx_cv_version_script=yes
33144 fi
33145 else
33146 wx_cv_version_script=no
33147 fi
e5d4b470
MW
33148
33149 if test $wx_cv_version_script = yes
33150 then
33151 echo "struct B { virtual ~B() { } }; \
33152 struct D : public B { }; \
33153 void F() { D d; }" > conftest.cpp
33154
33155 if { ac_try='
33156 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33157 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33160 ac_status=$?
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; } &&
33163 { ac_try='
33164 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33165 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33167 (eval $ac_try) 2>&5
33168 ac_status=$?
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); }; }
33171 then
33172 if { ac_try='
33173 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33174 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33176 (eval $ac_try) 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; }
33180 then
33181 wx_cv_version_script=yes
33182 else
33183 wx_cv_version_script=no
33184 fi
33185 fi
33186 fi
33187
a848cd7e 33188 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33189 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33190
33191fi
33192echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33193echo "${ECHO_T}$wx_cv_version_script" >&6
33194 if test $wx_cv_version_script = yes ; then
33195 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33196 fi
33197 fi
33198
33199
33200 case "${host}" in
33201 *-*-linux* | *-*-gnu* )
33202 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33203 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33204 ;;
a848cd7e
SC
33205
33206 *-*-solaris2* )
33207 if test "$GCC" = yes ; then
c92ad099 33208 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33209
33210 saveLdflags="$LDFLAGS"
33211 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33212 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33213echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33214 cat >conftest.$ac_ext <<_ACEOF
33215/* confdefs.h. */
33216_ACEOF
33217cat confdefs.h >>conftest.$ac_ext
33218cat >>conftest.$ac_ext <<_ACEOF
33219/* end confdefs.h. */
33220
33221int
33222main ()
33223{
33224
33225 ;
33226 return 0;
33227}
33228_ACEOF
33229rm -f conftest.$ac_objext conftest$ac_exeext
33230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33231 (eval $ac_link) 2>conftest.er1
a848cd7e 33232 ac_status=$?
ac1cb8d3
VS
33233 grep -v '^ *+' conftest.er1 >conftest.err
33234 rm -f conftest.er1
33235 cat conftest.err >&5
a848cd7e
SC
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); } &&
ca5c6ac3 33238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33240 (eval $ac_try) 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33246 (eval $ac_try) 2>&5
33247 ac_status=$?
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); }; }; then
33250
33251 echo "$as_me:$LINENO: result: yes" >&5
33252echo "${ECHO_T}yes" >&6
33253 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33254 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33255
33256else
33257 echo "$as_me: failed program was:" >&5
33258sed 's/^/| /' conftest.$ac_ext >&5
33259
33260
33261 echo "$as_me:$LINENO: result: no" >&5
33262echo "${ECHO_T}no" >&6
33263 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33264echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33265 LDFLAGS="$saveLdflags -Wl,-R,/"
33266 cat >conftest.$ac_ext <<_ACEOF
33267/* confdefs.h. */
33268_ACEOF
33269cat confdefs.h >>conftest.$ac_ext
33270cat >>conftest.$ac_ext <<_ACEOF
33271/* end confdefs.h. */
33272
33273int
33274main ()
33275{
33276
33277 ;
33278 return 0;
33279}
33280_ACEOF
33281rm -f conftest.$ac_objext conftest$ac_exeext
33282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33283 (eval $ac_link) 2>conftest.er1
a848cd7e 33284 ac_status=$?
ac1cb8d3
VS
33285 grep -v '^ *+' conftest.er1 >conftest.err
33286 rm -f conftest.er1
33287 cat conftest.err >&5
a848cd7e
SC
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); } &&
ca5c6ac3 33290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292 (eval $ac_try) 2>&5
33293 ac_status=$?
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); }; } &&
33296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33298 (eval $ac_try) 2>&5
33299 ac_status=$?
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); }; }; then
33302
ffa0583f 33303 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33304echo "${ECHO_T}yes" >&6
ffa0583f
RL
33305 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33306 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33307
a848cd7e
SC
33308else
33309 echo "$as_me: failed program was:" >&5
33310sed 's/^/| /' conftest.$ac_ext >&5
33311
33312
33313 echo "$as_me:$LINENO: result: no" >&5
33314echo "${ECHO_T}no" >&6
33315
33316fi
ac1cb8d3
VS
33317rm -f conftest.err conftest.$ac_objext \
33318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33319
33320fi
ac1cb8d3
VS
33321rm -f conftest.err conftest.$ac_objext \
33322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33323 LDFLAGS="$saveLdflags"
33324 else
a848cd7e 33325 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33326 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33327 fi
33328 ;;
33329
cfda0ea8 33330 *-*-darwin* )
0caebc27
MW
33331 install_name_tool=`which install_name_tool`
33332 if test "$install_name_tool" -a -x "$install_name_tool"; then
33333 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33334 cat <<EOF >change-install-names
a848cd7e
SC
33335#!/bin/sh
33336libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33337inst_cmd="install_name_tool "
33338for i in \${libnames} ; do
33339 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33340done
33341\${inst_cmd} \${3}
33342EOF
0caebc27
MW
33343 chmod +x change-install-names
33344 fi
a848cd7e
SC
33345 ;;
33346
33347 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33348 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33349 ;;
a848cd7e 33350
81f90336
MW
33351 *-*-hpux* )
33352 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33353 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33354 ;;
81f90336 33355
a848cd7e 33356 esac
ceec2216 33357
ffa0583f
RL
33358 if test $wxUSE_RPATH = "no"; then
33359 SAMPLES_RPATH_FLAG=''
33360 SAMPLES_RPATH_POSTLINK=''
33361 WXCONFIG_RPATH=''
33362 fi
33363
33364 SHARED=1
33365
33366else
33367
ceec2216
RL
33368 config_linkage_component="-static"
33369 SHARED=0
ffa0583f 33370
ceec2216 33371fi
a848cd7e 33372
a848cd7e 33373
ceec2216
RL
33374UNICODE=0
33375lib_unicode_suffix=
33376WX_CHARTYPE="ansi"
33377if test "$wxUSE_UNICODE" = "yes"; then
33378 lib_unicode_suffix=u
33379 WX_CHARTYPE="unicode"
33380 UNICODE=1
a848cd7e
SC
33381fi
33382
ceec2216
RL
33383lib_debug_suffix=
33384WX_DEBUGTYPE="release"
33385DEBUG_FLAG=0
33386if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33387 lib_debug_suffix=d
33388 WX_DEBUGTYPE="debug"
33389 DEBUG_FLAG=1
33390fi
a848cd7e 33391
ceec2216
RL
33392WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33393WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33394
ceec2216
RL
33395DEBUG_INFO=0
33396if test "$wxUSE_DEBUG_INFO" = "yes"; then
33397 DEBUG_INFO=1
33398fi
a848cd7e 33399
ceec2216 33400WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33401
ceec2216 33402TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33403
ceec2216 33404TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33405
ceec2216
RL
33406if test "$cross_compiling" = "yes"; then
33407 HOST_SUFFIX="-$host_alias"
33408 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33409 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33410fi
33411
dd21ced8 33412WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33413if test "${TOOLKIT_DIR}" = "os2"; then
33414 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33415else
33416 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33417fi
ceec2216
RL
33418
33419
33420
1d1af5ea
DE
33421if test "$wxUSE_COCOA" = 1; then
33422
33423
33424 ac_ext=c
33425ac_cpp='$CPP $CPPFLAGS'
33426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33428ac_compiler_gnu=$ac_cv_c_compiler_gnu
33429
33430ac_ext=m
33431
33432 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33433echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33434 cat >conftest.$ac_ext <<_ACEOF
33435/* confdefs.h. */
33436_ACEOF
33437cat confdefs.h >>conftest.$ac_ext
33438cat >>conftest.$ac_ext <<_ACEOF
33439/* end confdefs.h. */
33440#include <AppKit/NSEvent.h>
33441#include <CoreFoundation/CoreFoundation.h>
33442
33443int
33444main ()
33445{
33446
33447 ;
33448 return 0;
33449}
33450_ACEOF
33451rm -f conftest.$ac_objext
33452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33453 (eval $ac_compile) 2>conftest.er1
33454 ac_status=$?
33455 grep -v '^ *+' conftest.er1 >conftest.err
33456 rm -f conftest.er1
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); } &&
ca5c6ac3 33460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462 (eval $ac_try) 2>&5
33463 ac_status=$?
33464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465 (exit $ac_status); }; } &&
33466 { ac_try='test -s conftest.$ac_objext'
33467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33468 (eval $ac_try) 2>&5
33469 ac_status=$?
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); }; }; then
33472 echo "$as_me:$LINENO: result: no" >&5
33473echo "${ECHO_T}no" >&6
33474else
33475 echo "$as_me: failed program was:" >&5
33476sed 's/^/| /' conftest.$ac_ext >&5
33477
33478echo "$as_me:$LINENO: result: yes" >&5
33479echo "${ECHO_T}yes" >&6
33480 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33481echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33482 cat >conftest.$ac_ext <<_ACEOF
33483/* confdefs.h. */
33484_ACEOF
33485cat confdefs.h >>conftest.$ac_ext
33486cat >>conftest.$ac_ext <<_ACEOF
33487/* end confdefs.h. */
33488#define __Point__ 1
33489#include <AppKit/NSEvent.h>
33490#include <CoreFoundation/CoreFoundation.h>
33491
33492int
33493main ()
33494{
33495
33496 ;
33497 return 0;
33498}
33499_ACEOF
33500rm -f conftest.$ac_objext
33501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33502 (eval $ac_compile) 2>conftest.er1
33503 ac_status=$?
33504 grep -v '^ *+' conftest.er1 >conftest.err
33505 rm -f conftest.er1
33506 cat conftest.err >&5
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); } &&
ca5c6ac3 33509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33511 (eval $ac_try) 2>&5
33512 ac_status=$?
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); }; } &&
33515 { ac_try='test -s conftest.$ac_objext'
33516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33517 (eval $ac_try) 2>&5
33518 ac_status=$?
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); }; }; then
33521 echo "$as_me:$LINENO: result: yes" >&5
33522echo "${ECHO_T}yes" >&6
33523 cat >>confdefs.h <<\_ACEOF
33524#define __Point__ 1
33525_ACEOF
33526
33527
33528else
33529 echo "$as_me: failed program was:" >&5
33530sed 's/^/| /' conftest.$ac_ext >&5
33531
33532{ { echo "$as_me:$LINENO: error: no
33533See \`config.log' for more details." >&5
33534echo "$as_me: error: no
33535See \`config.log' for more details." >&2;}
33536 { (exit 1); exit 1; }; }
33537
33538fi
33539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33540
33541fi
33542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33543 ac_ext=cc
33544ac_cpp='$CXXCPP $CPPFLAGS'
33545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33548
33549fi
33550
a848cd7e 33551if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33552 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33553 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33554
a848cd7e 33555 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33556
33557 # Extract the first word of "Rez", so it can be a program name with args.
33558set dummy Rez; ac_word=$2
33559echo "$as_me:$LINENO: checking for $ac_word" >&5
33560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33561if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33562 echo $ECHO_N "(cached) $ECHO_C" >&6
33563else
8ced02f6
DE
33564 if test -n "$REZ"; then
33565 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33566else
33567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33568for as_dir in $PATH
33569do
33570 IFS=$as_save_IFS
33571 test -z "$as_dir" && as_dir=.
33572 for ac_exec_ext in '' $ac_executable_extensions; do
33573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33574 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33576 break 2
33577 fi
33578done
33579done
33580
8ced02f6 33581 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33582fi
33583fi
8ced02f6
DE
33584REZ=$ac_cv_prog_REZ
33585if test -n "$REZ"; then
33586 echo "$as_me:$LINENO: result: $REZ" >&5
33587echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33588else
33589 echo "$as_me:$LINENO: result: no" >&5
33590echo "${ECHO_T}no" >&6
33591fi
33592
33593 # Extract the first word of "DeRez", so it can be a program name with args.
33594set dummy DeRez; ac_word=$2
33595echo "$as_me:$LINENO: checking for $ac_word" >&5
33596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33597if test "${ac_cv_prog_DEREZ+set}" = set; then
33598 echo $ECHO_N "(cached) $ECHO_C" >&6
33599else
33600 if test -n "$DEREZ"; then
33601 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33602else
33603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33604for as_dir in $PATH
33605do
33606 IFS=$as_save_IFS
33607 test -z "$as_dir" && as_dir=.
33608 for ac_exec_ext in '' $ac_executable_extensions; do
33609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33610 ac_cv_prog_DEREZ="DeRez"
33611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33612 break 2
33613 fi
33614done
33615done
33616
33617 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33618fi
33619fi
33620DEREZ=$ac_cv_prog_DEREZ
33621if test -n "$DEREZ"; then
33622 echo "$as_me:$LINENO: result: $DEREZ" >&5
33623echo "${ECHO_T}$DEREZ" >&6
33624else
33625 echo "$as_me:$LINENO: result: no" >&5
33626echo "${ECHO_T}no" >&6
33627fi
33628
33629 # Extract the first word of "SetFile", so it can be a program name with args.
33630set dummy SetFile; ac_word=$2
33631echo "$as_me:$LINENO: checking for $ac_word" >&5
33632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33633if test "${ac_cv_prog_SETFILE+set}" = set; then
33634 echo $ECHO_N "(cached) $ECHO_C" >&6
33635else
33636 if test -n "$SETFILE"; then
33637 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33638else
33639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33640for as_dir in $PATH
33641do
33642 IFS=$as_save_IFS
33643 test -z "$as_dir" && as_dir=.
33644 for ac_exec_ext in '' $ac_executable_extensions; do
33645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33646 ac_cv_prog_SETFILE="SetFile"
33647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33648 break 2
33649 fi
33650done
33651done
33652
33653 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33654fi
33655fi
33656SETFILE=$ac_cv_prog_SETFILE
33657if test -n "$SETFILE"; then
33658 echo "$as_me:$LINENO: result: $SETFILE" >&5
33659echo "${ECHO_T}$SETFILE" >&6
33660else
33661 echo "$as_me:$LINENO: result: no" >&5
33662echo "${ECHO_T}no" >&6
33663fi
33664
33665
33666 MACSETFILE="\$(SETFILE)"
33667
33668 if test "$wxUSE_MAC" = 1; then
8ced02f6 33669 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33670 RESCOMP="$REZ"
33671 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33672 else
004ee6da
RL
33673 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33674 RESCOMP="echo -n \| $REZ"
33675 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33676 fi
004ee6da 33677
a848cd7e 33678else
ffa0583f 33679 MACSETFILE="@true"
a848cd7e 33680
8ced02f6 33681 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33682 RESCOMP="emxbind"
33683 WXCONFIG_RESFLAGS="-ep"
33684
33685 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33686 else
8ced02f6 33687 POSTLINK_COMMAND="@true"
a848cd7e 33688 fi
004ee6da 33689
a848cd7e
SC
33690fi
33691
33692
33693
33694echo "$as_me:$LINENO: checking for mode_t" >&5
33695echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33696if test "${ac_cv_type_mode_t+set}" = set; then
33697 echo $ECHO_N "(cached) $ECHO_C" >&6
33698else
33699 cat >conftest.$ac_ext <<_ACEOF
33700/* confdefs.h. */
33701_ACEOF
33702cat confdefs.h >>conftest.$ac_ext
33703cat >>conftest.$ac_ext <<_ACEOF
33704/* end confdefs.h. */
33705$ac_includes_default
33706int
33707main ()
33708{
33709if ((mode_t *) 0)
33710 return 0;
33711if (sizeof (mode_t))
33712 return 0;
33713 ;
33714 return 0;
33715}
33716_ACEOF
33717rm -f conftest.$ac_objext
33718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33719 (eval $ac_compile) 2>conftest.er1
a848cd7e 33720 ac_status=$?
ac1cb8d3
VS
33721 grep -v '^ *+' conftest.er1 >conftest.err
33722 rm -f conftest.er1
33723 cat conftest.err >&5
a848cd7e
SC
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } &&
ca5c6ac3 33726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33729 ac_status=$?
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; } &&
33732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33738 ac_cv_type_mode_t=yes
33739else
33740 echo "$as_me: failed program was:" >&5
33741sed 's/^/| /' conftest.$ac_ext >&5
33742
33743ac_cv_type_mode_t=no
33744fi
ac1cb8d3 33745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33746fi
33747echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33748echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33749if test $ac_cv_type_mode_t = yes; then
33750 :
33751else
33752
33753cat >>confdefs.h <<_ACEOF
33754#define mode_t int
33755_ACEOF
33756
33757fi
33758
33759echo "$as_me:$LINENO: checking for off_t" >&5
33760echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33761if test "${ac_cv_type_off_t+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763else
33764 cat >conftest.$ac_ext <<_ACEOF
33765/* confdefs.h. */
33766_ACEOF
33767cat confdefs.h >>conftest.$ac_ext
33768cat >>conftest.$ac_ext <<_ACEOF
33769/* end confdefs.h. */
33770$ac_includes_default
33771int
33772main ()
33773{
33774if ((off_t *) 0)
33775 return 0;
33776if (sizeof (off_t))
33777 return 0;
33778 ;
33779 return 0;
33780}
33781_ACEOF
33782rm -f conftest.$ac_objext
33783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33784 (eval $ac_compile) 2>conftest.er1
a848cd7e 33785 ac_status=$?
ac1cb8d3
VS
33786 grep -v '^ *+' conftest.er1 >conftest.err
33787 rm -f conftest.er1
33788 cat conftest.err >&5
a848cd7e
SC
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); } &&
ca5c6ac3 33791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33794 ac_status=$?
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; } &&
33797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33803 ac_cv_type_off_t=yes
33804else
33805 echo "$as_me: failed program was:" >&5
33806sed 's/^/| /' conftest.$ac_ext >&5
33807
33808ac_cv_type_off_t=no
33809fi
ac1cb8d3 33810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33811fi
33812echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33813echo "${ECHO_T}$ac_cv_type_off_t" >&6
33814if test $ac_cv_type_off_t = yes; then
33815 :
33816else
33817
33818cat >>confdefs.h <<_ACEOF
33819#define off_t long
33820_ACEOF
33821
33822fi
33823
33824echo "$as_me:$LINENO: checking for pid_t" >&5
33825echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33826if test "${ac_cv_type_pid_t+set}" = set; then
33827 echo $ECHO_N "(cached) $ECHO_C" >&6
33828else
33829 cat >conftest.$ac_ext <<_ACEOF
33830/* confdefs.h. */
33831_ACEOF
33832cat confdefs.h >>conftest.$ac_ext
33833cat >>conftest.$ac_ext <<_ACEOF
33834/* end confdefs.h. */
33835$ac_includes_default
33836int
33837main ()
33838{
33839if ((pid_t *) 0)
33840 return 0;
33841if (sizeof (pid_t))
33842 return 0;
33843 ;
33844 return 0;
33845}
33846_ACEOF
33847rm -f conftest.$ac_objext
33848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33849 (eval $ac_compile) 2>conftest.er1
a848cd7e 33850 ac_status=$?
ac1cb8d3
VS
33851 grep -v '^ *+' conftest.er1 >conftest.err
33852 rm -f conftest.er1
33853 cat conftest.err >&5
a848cd7e
SC
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); } &&
ca5c6ac3 33856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33858 (eval $ac_try) 2>&5
33859 ac_status=$?
33860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33861 (exit $ac_status); }; } &&
33862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33864 (eval $ac_try) 2>&5
33865 ac_status=$?
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); }; }; then
33868 ac_cv_type_pid_t=yes
33869else
33870 echo "$as_me: failed program was:" >&5
33871sed 's/^/| /' conftest.$ac_ext >&5
33872
33873ac_cv_type_pid_t=no
33874fi
ac1cb8d3 33875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33876fi
33877echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33878echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33879if test $ac_cv_type_pid_t = yes; then
33880 :
33881else
33882
33883cat >>confdefs.h <<_ACEOF
33884#define pid_t int
33885_ACEOF
33886
33887fi
33888
33889echo "$as_me:$LINENO: checking for size_t" >&5
33890echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33891if test "${ac_cv_type_size_t+set}" = set; then
33892 echo $ECHO_N "(cached) $ECHO_C" >&6
33893else
33894 cat >conftest.$ac_ext <<_ACEOF
33895/* confdefs.h. */
33896_ACEOF
33897cat confdefs.h >>conftest.$ac_ext
33898cat >>conftest.$ac_ext <<_ACEOF
33899/* end confdefs.h. */
33900$ac_includes_default
33901int
33902main ()
33903{
33904if ((size_t *) 0)
33905 return 0;
33906if (sizeof (size_t))
33907 return 0;
33908 ;
33909 return 0;
33910}
33911_ACEOF
33912rm -f conftest.$ac_objext
33913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33914 (eval $ac_compile) 2>conftest.er1
a848cd7e 33915 ac_status=$?
ac1cb8d3
VS
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
a848cd7e
SC
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
ca5c6ac3 33921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 ac_cv_type_size_t=yes
33934else
33935 echo "$as_me: failed program was:" >&5
33936sed 's/^/| /' conftest.$ac_ext >&5
33937
33938ac_cv_type_size_t=no
33939fi
ac1cb8d3 33940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33941fi
33942echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33943echo "${ECHO_T}$ac_cv_type_size_t" >&6
33944if test $ac_cv_type_size_t = yes; then
33945 :
33946else
33947
33948cat >>confdefs.h <<_ACEOF
33949#define size_t unsigned
33950_ACEOF
33951
33952fi
33953
33954echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33955echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33956if test "${ac_cv_type_uid_t+set}" = set; then
33957 echo $ECHO_N "(cached) $ECHO_C" >&6
33958else
33959 cat >conftest.$ac_ext <<_ACEOF
33960/* confdefs.h. */
33961_ACEOF
33962cat confdefs.h >>conftest.$ac_ext
33963cat >>conftest.$ac_ext <<_ACEOF
33964/* end confdefs.h. */
33965#include <sys/types.h>
33966
33967_ACEOF
33968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33969 $EGREP "uid_t" >/dev/null 2>&1; then
33970 ac_cv_type_uid_t=yes
33971else
33972 ac_cv_type_uid_t=no
33973fi
33974rm -f conftest*
33975
33976fi
33977echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33978echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33979if test $ac_cv_type_uid_t = no; then
33980
33981cat >>confdefs.h <<\_ACEOF
33982#define uid_t int
33983_ACEOF
33984
33985
33986cat >>confdefs.h <<\_ACEOF
33987#define gid_t int
33988_ACEOF
33989
33990fi
33991
33992
d51253e8
RL
33993echo "$as_me:$LINENO: checking for ssize_t" >&5
33994echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33995if test "${ac_cv_type_ssize_t+set}" = set; then
33996 echo $ECHO_N "(cached) $ECHO_C" >&6
33997else
33998 cat >conftest.$ac_ext <<_ACEOF
33999/* confdefs.h. */
34000_ACEOF
34001cat confdefs.h >>conftest.$ac_ext
34002cat >>conftest.$ac_ext <<_ACEOF
34003/* end confdefs.h. */
34004$ac_includes_default
34005int
34006main ()
34007{
34008if ((ssize_t *) 0)
34009 return 0;
34010if (sizeof (ssize_t))
34011 return 0;
34012 ;
34013 return 0;
34014}
34015_ACEOF
34016rm -f conftest.$ac_objext
34017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34018 (eval $ac_compile) 2>conftest.er1
34019 ac_status=$?
34020 grep -v '^ *+' conftest.er1 >conftest.err
34021 rm -f conftest.er1
34022 cat conftest.err >&5
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); } &&
ca5c6ac3 34025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34027 (eval $ac_try) 2>&5
34028 ac_status=$?
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); }; } &&
34031 { ac_try='test -s conftest.$ac_objext'
34032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34033 (eval $ac_try) 2>&5
34034 ac_status=$?
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; }; then
34037 ac_cv_type_ssize_t=yes
34038else
34039 echo "$as_me: failed program was:" >&5
34040sed 's/^/| /' conftest.$ac_ext >&5
34041
34042ac_cv_type_ssize_t=no
34043fi
34044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34045fi
34046echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34047echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34048if test $ac_cv_type_ssize_t = yes; then
34049
34050cat >>confdefs.h <<_ACEOF
34051#define HAVE_SSIZE_T 1
34052_ACEOF
34053
34054
34055fi
34056
34057
a848cd7e
SC
34058echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34059echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34060if test "${wx_cv_size_t_is_uint+set}" = set; then
34061 echo $ECHO_N "(cached) $ECHO_C" >&6
34062else
34063
34064 cat >conftest.$ac_ext <<_ACEOF
34065/* confdefs.h. */
34066_ACEOF
34067cat confdefs.h >>conftest.$ac_ext
34068cat >>conftest.$ac_ext <<_ACEOF
34069/* end confdefs.h. */
34070#include <stddef.h>
34071int
34072main ()
34073{
34074
34075 return 0; }
34076
34077 struct Foo { void foo(size_t); void foo(unsigned int); };
34078
34079 int bar() {
34080
34081 ;
34082 return 0;
34083}
34084_ACEOF
34085rm -f conftest.$ac_objext
34086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34087 (eval $ac_compile) 2>conftest.er1
a848cd7e 34088 ac_status=$?
ac1cb8d3
VS
34089 grep -v '^ *+' conftest.er1 >conftest.err
34090 rm -f conftest.er1
34091 cat conftest.err >&5
a848cd7e
SC
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } &&
ca5c6ac3 34094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34096 (eval $ac_try) 2>&5
34097 ac_status=$?
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); }; } &&
34100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34102 (eval $ac_try) 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; }; then
34106 wx_cv_size_t_is_uint=no
34107else
34108 echo "$as_me: failed program was:" >&5
34109sed 's/^/| /' conftest.$ac_ext >&5
34110
34111wx_cv_size_t_is_uint=yes
34112
34113fi
ac1cb8d3 34114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34115
34116
34117fi
34118echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34119echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34120
34121if test "$wx_cv_size_t_is_uint" = "yes"; then
34122 cat >>confdefs.h <<\_ACEOF
34123#define wxSIZE_T_IS_UINT 1
34124_ACEOF
34125
34126else
34127 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34128echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34129if test "${wx_cv_size_t_is_ulong+set}" = set; then
34130 echo $ECHO_N "(cached) $ECHO_C" >&6
34131else
34132 cat >conftest.$ac_ext <<_ACEOF
34133/* confdefs.h. */
34134_ACEOF
34135cat confdefs.h >>conftest.$ac_ext
34136cat >>conftest.$ac_ext <<_ACEOF
34137/* end confdefs.h. */
34138#include <stddef.h>
34139int
34140main ()
34141{
34142
34143 return 0; }
34144
34145 struct Foo { void foo(size_t); void foo(unsigned long); };
34146
34147 int bar() {
34148
34149 ;
34150 return 0;
34151}
34152_ACEOF
34153rm -f conftest.$ac_objext
34154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34155 (eval $ac_compile) 2>conftest.er1
a848cd7e 34156 ac_status=$?
ac1cb8d3
VS
34157 grep -v '^ *+' conftest.er1 >conftest.err
34158 rm -f conftest.er1
34159 cat conftest.err >&5
a848cd7e
SC
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); } &&
ca5c6ac3 34162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34164 (eval $ac_try) 2>&5
34165 ac_status=$?
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; } &&
34168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34170 (eval $ac_try) 2>&5
34171 ac_status=$?
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); }; }; then
34174 wx_cv_size_t_is_ulong=no
34175else
34176 echo "$as_me: failed program was:" >&5
34177sed 's/^/| /' conftest.$ac_ext >&5
34178
34179wx_cv_size_t_is_ulong=yes
34180
34181fi
ac1cb8d3 34182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34183
34184fi
34185echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34186echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34187
34188 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34189 cat >>confdefs.h <<\_ACEOF
34190#define wxSIZE_T_IS_ULONG 1
34191_ACEOF
34192
34193 fi
34194fi
34195
a848cd7e
SC
34196
34197echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34198echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34199if test "${wx_cv_struct_pw_gecos+set}" = set; then
34200 echo $ECHO_N "(cached) $ECHO_C" >&6
34201else
34202
34203 cat >conftest.$ac_ext <<_ACEOF
34204/* confdefs.h. */
34205_ACEOF
34206cat confdefs.h >>conftest.$ac_ext
34207cat >>conftest.$ac_ext <<_ACEOF
34208/* end confdefs.h. */
34209#include <pwd.h>
34210int
34211main ()
34212{
34213
34214 char *p;
34215 struct passwd *pw;
34216 p = pw->pw_gecos;
34217
34218 ;
34219 return 0;
34220}
34221_ACEOF
34222rm -f conftest.$ac_objext
34223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34224 (eval $ac_compile) 2>conftest.er1
a848cd7e 34225 ac_status=$?
ac1cb8d3
VS
34226 grep -v '^ *+' conftest.er1 >conftest.err
34227 rm -f conftest.er1
34228 cat conftest.err >&5
a848cd7e
SC
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); } &&
ca5c6ac3 34231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233 (eval $ac_try) 2>&5
34234 ac_status=$?
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; } &&
34237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239 (eval $ac_try) 2>&5
34240 ac_status=$?
34241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); }; }; then
34243
34244 wx_cv_struct_pw_gecos=yes
34245
34246else
34247 echo "$as_me: failed program was:" >&5
34248sed 's/^/| /' conftest.$ac_ext >&5
34249
34250
34251 wx_cv_struct_pw_gecos=no
34252
34253
34254fi
ac1cb8d3 34255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34256
34257
34258fi
34259echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34260echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34261
34262if test "$wx_cv_struct_pw_gecos" = "yes"; then
34263 cat >>confdefs.h <<\_ACEOF
34264#define HAVE_PW_GECOS 1
34265_ACEOF
34266
34267fi
34268
34269
47a7e797 34270if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34271 cat >>confdefs.h <<\_ACEOF
34272#define wxUSE_WCHAR_T 1
34273_ACEOF
34274
34275
34276 WCSLEN_FOUND=0
34277 WCHAR_LINK=
34278
34279for ac_func in wcslen
34280do
34281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34282echo "$as_me:$LINENO: checking for $ac_func" >&5
34283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34284if eval "test \"\${$as_ac_var+set}\" = set"; then
34285 echo $ECHO_N "(cached) $ECHO_C" >&6
34286else
34287 cat >conftest.$ac_ext <<_ACEOF
34288/* confdefs.h. */
34289_ACEOF
34290cat confdefs.h >>conftest.$ac_ext
34291cat >>conftest.$ac_ext <<_ACEOF
34292/* end confdefs.h. */
ac1cb8d3
VS
34293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34295#define $ac_func innocuous_$ac_func
34296
a848cd7e
SC
34297/* System header to define __stub macros and hopefully few prototypes,
34298 which can conflict with char $ac_func (); below.
34299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34301
a848cd7e
SC
34302#ifdef __STDC__
34303# include <limits.h>
34304#else
34305# include <assert.h>
34306#endif
ac1cb8d3
VS
34307
34308#undef $ac_func
34309
a848cd7e
SC
34310/* Override any gcc2 internal prototype to avoid an error. */
34311#ifdef __cplusplus
34312extern "C"
34313{
34314#endif
34315/* We use char because int might match the return type of a gcc2
34316 builtin and then its argument prototype would still apply. */
34317char $ac_func ();
34318/* The GNU C library defines this for functions which it implements
34319 to always fail with ENOSYS. Some functions are actually named
34320 something starting with __ and the normal name is an alias. */
34321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34322choke me
34323#else
34324char (*f) () = $ac_func;
34325#endif
34326#ifdef __cplusplus
34327}
34328#endif
34329
34330int
34331main ()
34332{
34333return f != $ac_func;
34334 ;
34335 return 0;
34336}
34337_ACEOF
34338rm -f conftest.$ac_objext conftest$ac_exeext
34339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34340 (eval $ac_link) 2>conftest.er1
a848cd7e 34341 ac_status=$?
ac1cb8d3
VS
34342 grep -v '^ *+' conftest.er1 >conftest.err
34343 rm -f conftest.er1
34344 cat conftest.err >&5
a848cd7e
SC
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); } &&
ca5c6ac3 34347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34349 (eval $ac_try) 2>&5
34350 ac_status=$?
34351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352 (exit $ac_status); }; } &&
34353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34355 (eval $ac_try) 2>&5
34356 ac_status=$?
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); }; }; then
34359 eval "$as_ac_var=yes"
34360else
34361 echo "$as_me: failed program was:" >&5
34362sed 's/^/| /' conftest.$ac_ext >&5
34363
34364eval "$as_ac_var=no"
34365fi
ac1cb8d3
VS
34366rm -f conftest.err conftest.$ac_objext \
34367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34368fi
34369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34371if test `eval echo '${'$as_ac_var'}'` = yes; then
34372 cat >>confdefs.h <<_ACEOF
34373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34374_ACEOF
34375 WCSLEN_FOUND=1
34376fi
34377done
34378
34379
34380 if test "$WCSLEN_FOUND" = 0; then
34381 if test "$TOOLKIT" = "MSW"; then
34382 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34383echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34384if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34385 echo $ECHO_N "(cached) $ECHO_C" >&6
34386else
34387 ac_check_lib_save_LIBS=$LIBS
34388LIBS="-lmsvcrt $LIBS"
34389cat >conftest.$ac_ext <<_ACEOF
34390/* confdefs.h. */
34391_ACEOF
34392cat confdefs.h >>conftest.$ac_ext
34393cat >>conftest.$ac_ext <<_ACEOF
34394/* end confdefs.h. */
34395
34396/* Override any gcc2 internal prototype to avoid an error. */
34397#ifdef __cplusplus
34398extern "C"
34399#endif
34400/* We use char because int might match the return type of a gcc2
34401 builtin and then its argument prototype would still apply. */
34402char wcslen ();
34403int
34404main ()
34405{
34406wcslen ();
34407 ;
34408 return 0;
34409}
34410_ACEOF
34411rm -f conftest.$ac_objext conftest$ac_exeext
34412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34413 (eval $ac_link) 2>conftest.er1
a848cd7e 34414 ac_status=$?
ac1cb8d3
VS
34415 grep -v '^ *+' conftest.er1 >conftest.err
34416 rm -f conftest.er1
34417 cat conftest.err >&5
a848cd7e
SC
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); } &&
ca5c6ac3 34420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; } &&
34426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34429 ac_status=$?
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; }; then
34432 ac_cv_lib_msvcrt_wcslen=yes
34433else
34434 echo "$as_me: failed program was:" >&5
34435sed 's/^/| /' conftest.$ac_ext >&5
34436
34437ac_cv_lib_msvcrt_wcslen=no
34438fi
ac1cb8d3
VS
34439rm -f conftest.err conftest.$ac_objext \
34440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34441LIBS=$ac_check_lib_save_LIBS
34442fi
34443echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34444echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34445if test $ac_cv_lib_msvcrt_wcslen = yes; then
34446 WCHAR_OK=1
34447fi
34448
34449 else
34450 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34451echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34452if test "${ac_cv_lib_w_wcslen+set}" = set; then
34453 echo $ECHO_N "(cached) $ECHO_C" >&6
34454else
34455 ac_check_lib_save_LIBS=$LIBS
34456LIBS="-lw $LIBS"
34457cat >conftest.$ac_ext <<_ACEOF
34458/* confdefs.h. */
34459_ACEOF
34460cat confdefs.h >>conftest.$ac_ext
34461cat >>conftest.$ac_ext <<_ACEOF
34462/* end confdefs.h. */
34463
34464/* Override any gcc2 internal prototype to avoid an error. */
34465#ifdef __cplusplus
34466extern "C"
34467#endif
34468/* We use char because int might match the return type of a gcc2
34469 builtin and then its argument prototype would still apply. */
34470char wcslen ();
34471int
34472main ()
34473{
34474wcslen ();
34475 ;
34476 return 0;
34477}
34478_ACEOF
34479rm -f conftest.$ac_objext conftest$ac_exeext
34480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34481 (eval $ac_link) 2>conftest.er1
a848cd7e 34482 ac_status=$?
ac1cb8d3
VS
34483 grep -v '^ *+' conftest.er1 >conftest.err
34484 rm -f conftest.er1
34485 cat conftest.err >&5
a848cd7e
SC
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
ca5c6ac3 34488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34490 (eval $ac_try) 2>&5
34491 ac_status=$?
34492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493 (exit $ac_status); }; } &&
34494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496 (eval $ac_try) 2>&5
34497 ac_status=$?
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); }; }; then
34500 ac_cv_lib_w_wcslen=yes
34501else
34502 echo "$as_me: failed program was:" >&5
34503sed 's/^/| /' conftest.$ac_ext >&5
34504
34505ac_cv_lib_w_wcslen=no
34506fi
ac1cb8d3
VS
34507rm -f conftest.err conftest.$ac_objext \
34508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34509LIBS=$ac_check_lib_save_LIBS
34510fi
34511echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34512echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34513if test $ac_cv_lib_w_wcslen = yes; then
34514
34515 WCHAR_LINK=" -lw"
34516 WCSLEN_FOUND=1
34517
34518fi
34519
34520 fi
34521 fi
34522
34523 if test "$WCSLEN_FOUND" = 1; then
34524 cat >>confdefs.h <<\_ACEOF
34525#define HAVE_WCSLEN 1
34526_ACEOF
34527
34528 fi
34529
efdf6afe 34530 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34531 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34532 fi
34533
efdf6afe
VZ
34534 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34535echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34536if test "${ac_cv_type_mbstate_t+set}" = set; then
34537 echo $ECHO_N "(cached) $ECHO_C" >&6
34538else
34539 cat >conftest.$ac_ext <<_ACEOF
34540/* confdefs.h. */
34541_ACEOF
34542cat confdefs.h >>conftest.$ac_ext
34543cat >>conftest.$ac_ext <<_ACEOF
34544/* end confdefs.h. */
34545#include <wchar.h>
34546
34547int
34548main ()
34549{
34550if ((mbstate_t *) 0)
34551 return 0;
34552if (sizeof (mbstate_t))
34553 return 0;
34554 ;
34555 return 0;
34556}
34557_ACEOF
34558rm -f conftest.$ac_objext
34559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34560 (eval $ac_compile) 2>conftest.er1
34561 ac_status=$?
34562 grep -v '^ *+' conftest.er1 >conftest.err
34563 rm -f conftest.er1
34564 cat conftest.err >&5
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); } &&
ca5c6ac3 34567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34569 (eval $ac_try) 2>&5
34570 ac_status=$?
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); }; } &&
34573 { ac_try='test -s conftest.$ac_objext'
34574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34575 (eval $ac_try) 2>&5
34576 ac_status=$?
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); }; }; then
34579 ac_cv_type_mbstate_t=yes
34580else
34581 echo "$as_me: failed program was:" >&5
34582sed 's/^/| /' conftest.$ac_ext >&5
34583
34584ac_cv_type_mbstate_t=no
34585fi
34586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34587fi
34588echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34589echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34590if test $ac_cv_type_mbstate_t = yes; then
34591
34592cat >>confdefs.h <<_ACEOF
34593#define HAVE_MBSTATE_T 1
34594_ACEOF
34595
a848cd7e
SC
34596
34597for ac_func in wcsrtombs
34598do
34599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34600echo "$as_me:$LINENO: checking for $ac_func" >&5
34601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34602if eval "test \"\${$as_ac_var+set}\" = set"; then
34603 echo $ECHO_N "(cached) $ECHO_C" >&6
34604else
34605 cat >conftest.$ac_ext <<_ACEOF
34606/* confdefs.h. */
34607_ACEOF
34608cat confdefs.h >>conftest.$ac_ext
34609cat >>conftest.$ac_ext <<_ACEOF
34610/* end confdefs.h. */
ac1cb8d3
VS
34611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34613#define $ac_func innocuous_$ac_func
34614
a848cd7e
SC
34615/* System header to define __stub macros and hopefully few prototypes,
34616 which can conflict with char $ac_func (); below.
34617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34618 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34619
a848cd7e
SC
34620#ifdef __STDC__
34621# include <limits.h>
34622#else
34623# include <assert.h>
34624#endif
ac1cb8d3
VS
34625
34626#undef $ac_func
34627
a848cd7e
SC
34628/* Override any gcc2 internal prototype to avoid an error. */
34629#ifdef __cplusplus
34630extern "C"
34631{
34632#endif
34633/* We use char because int might match the return type of a gcc2
34634 builtin and then its argument prototype would still apply. */
34635char $ac_func ();
34636/* The GNU C library defines this for functions which it implements
34637 to always fail with ENOSYS. Some functions are actually named
34638 something starting with __ and the normal name is an alias. */
34639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34640choke me
34641#else
34642char (*f) () = $ac_func;
34643#endif
34644#ifdef __cplusplus
34645}
34646#endif
34647
34648int
34649main ()
34650{
34651return f != $ac_func;
34652 ;
34653 return 0;
34654}
34655_ACEOF
34656rm -f conftest.$ac_objext conftest$ac_exeext
34657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34658 (eval $ac_link) 2>conftest.er1
a848cd7e 34659 ac_status=$?
ac1cb8d3
VS
34660 grep -v '^ *+' conftest.er1 >conftest.err
34661 rm -f conftest.er1
34662 cat conftest.err >&5
a848cd7e
SC
34663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); } &&
ca5c6ac3 34665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667 (eval $ac_try) 2>&5
34668 ac_status=$?
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; } &&
34671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34673 (eval $ac_try) 2>&5
34674 ac_status=$?
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; }; then
34677 eval "$as_ac_var=yes"
34678else
34679 echo "$as_me: failed program was:" >&5
34680sed 's/^/| /' conftest.$ac_ext >&5
34681
34682eval "$as_ac_var=no"
34683fi
ac1cb8d3
VS
34684rm -f conftest.err conftest.$ac_objext \
34685 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34686fi
34687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34688echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34689if test `eval echo '${'$as_ac_var'}'` = yes; then
34690 cat >>confdefs.h <<_ACEOF
34691#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34692_ACEOF
34693
34694fi
34695done
34696
efdf6afe
VZ
34697fi
34698
a848cd7e
SC
34699else
34700 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34701echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34702fi
34703
a848cd7e 34704
4a767dd5
VZ
34705
34706for ac_func in snprintf vsnprintf
a848cd7e
SC
34707do
34708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34709echo "$as_me:$LINENO: checking for $ac_func" >&5
34710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34711if eval "test \"\${$as_ac_var+set}\" = set"; then
34712 echo $ECHO_N "(cached) $ECHO_C" >&6
34713else
34714 cat >conftest.$ac_ext <<_ACEOF
34715/* confdefs.h. */
34716_ACEOF
34717cat confdefs.h >>conftest.$ac_ext
34718cat >>conftest.$ac_ext <<_ACEOF
34719/* end confdefs.h. */
ac1cb8d3
VS
34720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34722#define $ac_func innocuous_$ac_func
34723
a848cd7e
SC
34724/* System header to define __stub macros and hopefully few prototypes,
34725 which can conflict with char $ac_func (); below.
34726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34728
a848cd7e
SC
34729#ifdef __STDC__
34730# include <limits.h>
34731#else
34732# include <assert.h>
34733#endif
ac1cb8d3
VS
34734
34735#undef $ac_func
34736
a848cd7e
SC
34737/* Override any gcc2 internal prototype to avoid an error. */
34738#ifdef __cplusplus
34739extern "C"
34740{
34741#endif
34742/* We use char because int might match the return type of a gcc2
34743 builtin and then its argument prototype would still apply. */
34744char $ac_func ();
34745/* The GNU C library defines this for functions which it implements
34746 to always fail with ENOSYS. Some functions are actually named
34747 something starting with __ and the normal name is an alias. */
34748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34749choke me
34750#else
34751char (*f) () = $ac_func;
34752#endif
34753#ifdef __cplusplus
34754}
34755#endif
34756
34757int
34758main ()
34759{
34760return f != $ac_func;
34761 ;
34762 return 0;
34763}
34764_ACEOF
34765rm -f conftest.$ac_objext conftest$ac_exeext
34766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34767 (eval $ac_link) 2>conftest.er1
a848cd7e 34768 ac_status=$?
ac1cb8d3
VS
34769 grep -v '^ *+' conftest.er1 >conftest.err
34770 rm -f conftest.er1
34771 cat conftest.err >&5
a848cd7e
SC
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); } &&
ca5c6ac3 34774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 eval "$as_ac_var=yes"
34787else
34788 echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791eval "$as_ac_var=no"
34792fi
ac1cb8d3
VS
34793rm -f conftest.err conftest.$ac_objext \
34794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34795fi
34796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34798if test `eval echo '${'$as_ac_var'}'` = yes; then
34799 cat >>confdefs.h <<_ACEOF
34800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34801_ACEOF
34802
34803fi
34804done
34805
34806
34807if test "$ac_cv_func_vsnprintf" = "yes"; then
34808 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34809echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34810if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34811 echo $ECHO_N "(cached) $ECHO_C" >&6
34812else
34813
efdf6afe 34814 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34815/* confdefs.h. */
34816_ACEOF
34817cat confdefs.h >>conftest.$ac_ext
34818cat >>conftest.$ac_ext <<_ACEOF
34819/* end confdefs.h. */
34820
34821 #include <stdio.h>
34822 #include <stdarg.h>
efdf6afe
VZ
34823 #ifdef __MSL__
34824 #if __MSL__ >= 0x6000
34825 namespace std {}
34826 using namespace std;
34827 #endif
34828 #endif
a848cd7e
SC
34829
34830int
34831main ()
34832{
34833
34834 char *buf;
34835 va_list ap;
62fa8b3a 34836 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34837
34838 ;
34839 return 0;
34840}
34841_ACEOF
34842rm -f conftest.$ac_objext
34843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34844 (eval $ac_compile) 2>conftest.er1
34845 ac_status=$?
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
ca5c6ac3 34851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853 (eval $ac_try) 2>&5
34854 ac_status=$?
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); }; } &&
34857 { ac_try='test -s conftest.$ac_objext'
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34860 ac_status=$?
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; }; then
34863 wx_cv_func_vsnprintf_decl=yes
34864else
34865 echo "$as_me: failed program was:" >&5
34866sed 's/^/| /' conftest.$ac_ext >&5
34867
a848cd7e
SC
34868wx_cv_func_vsnprintf_decl=no
34869
34870fi
ac1cb8d3 34871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34872
34873
34874fi
34875echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34876echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34877
34878 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34879 cat >>confdefs.h <<\_ACEOF
34880#define HAVE_VSNPRINTF_DECL 1
34881_ACEOF
34882
62fa8b3a
MW
34883
34884 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34885echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34886if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34887 echo $ECHO_N "(cached) $ECHO_C" >&6
34888else
34889
34890 cat >conftest.$ac_ext <<_ACEOF
34891/* confdefs.h. */
34892_ACEOF
34893cat confdefs.h >>conftest.$ac_ext
34894cat >>conftest.$ac_ext <<_ACEOF
34895/* end confdefs.h. */
34896
34897 #include <stdio.h>
34898 #include <stdarg.h>
34899 #ifdef __MSL__
34900 #if __MSL__ >= 0x6000
34901 namespace std {}
34902 using namespace std;
34903 #endif
34904 #endif
34905
34906int
34907main ()
34908{
34909
34910 char *buf;
34911 va_list ap;
34912 const char *fmt = "%s";
34913 vsnprintf(buf, 10u, fmt, ap);
34914
34915 ;
34916 return 0;
34917}
34918_ACEOF
34919rm -f conftest.$ac_objext
34920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34921 (eval $ac_compile) 2>conftest.er1
34922 ac_status=$?
34923 grep -v '^ *+' conftest.er1 >conftest.err
34924 rm -f conftest.er1
34925 cat conftest.err >&5
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); } &&
ca5c6ac3 34928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34931 ac_status=$?
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; } &&
34934 { ac_try='test -s conftest.$ac_objext'
34935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936 (eval $ac_try) 2>&5
34937 ac_status=$?
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); }; }; then
34940 wx_cv_func_broken_vsnprintf_decl=no
34941else
34942 echo "$as_me: failed program was:" >&5
34943sed 's/^/| /' conftest.$ac_ext >&5
34944
34945wx_cv_func_broken_vsnprintf_decl=yes
34946
34947fi
34948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34949
34950
34951fi
34952echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34953echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34954
34955 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34956 cat >>confdefs.h <<\_ACEOF
34957#define HAVE_BROKEN_VSNPRINTF_DECL 1
34958_ACEOF
34959
34960 fi
a848cd7e
SC
34961 fi
34962fi
34963
4a767dd5
VZ
34964if test "$ac_cv_func_snprintf" = "yes"; then
34965 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34966echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34967if test "${wx_cv_func_snprintf_decl+set}" = set; then
34968 echo $ECHO_N "(cached) $ECHO_C" >&6
34969else
34970
34971 cat >conftest.$ac_ext <<_ACEOF
34972/* confdefs.h. */
34973_ACEOF
34974cat confdefs.h >>conftest.$ac_ext
34975cat >>conftest.$ac_ext <<_ACEOF
34976/* end confdefs.h. */
34977
34978 #include <stdio.h>
34979 #include <stdarg.h>
34980 #ifdef __MSL__
34981 #if __MSL__ >= 0x6000
34982 namespace std {}
34983 using namespace std;
34984 #endif
34985 #endif
34986
34987int
34988main ()
34989{
34990
34991 char *buf;
62fa8b3a 34992 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34993
34994 ;
34995 return 0;
34996}
34997_ACEOF
34998rm -f conftest.$ac_objext
34999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35000 (eval $ac_compile) 2>conftest.er1
35001 ac_status=$?
35002 grep -v '^ *+' conftest.er1 >conftest.err
35003 rm -f conftest.er1
35004 cat conftest.err >&5
35005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); } &&
ca5c6ac3 35007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35009 (eval $ac_try) 2>&5
35010 ac_status=$?
35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); }; } &&
35013 { ac_try='test -s conftest.$ac_objext'
35014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35015 (eval $ac_try) 2>&5
35016 ac_status=$?
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); }; }; then
35019 wx_cv_func_snprintf_decl=yes
35020else
35021 echo "$as_me: failed program was:" >&5
35022sed 's/^/| /' conftest.$ac_ext >&5
35023
35024wx_cv_func_snprintf_decl=no
35025
35026fi
35027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35028
35029
35030fi
35031echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35032echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35033
35034 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35035 cat >>confdefs.h <<\_ACEOF
35036#define HAVE_SNPRINTF_DECL 1
35037_ACEOF
35038
62fa8b3a
MW
35039
35040 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35041echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35042if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35043 echo $ECHO_N "(cached) $ECHO_C" >&6
35044else
35045
35046 cat >conftest.$ac_ext <<_ACEOF
35047/* confdefs.h. */
35048_ACEOF
35049cat confdefs.h >>conftest.$ac_ext
35050cat >>conftest.$ac_ext <<_ACEOF
35051/* end confdefs.h. */
35052
35053 #include <stdio.h>
35054 #include <stdarg.h>
35055 #ifdef __MSL__
35056 #if __MSL__ >= 0x6000
35057 namespace std {}
35058 using namespace std;
35059 #endif
35060 #endif
35061
35062int
35063main ()
35064{
35065
35066 char *buf;
35067 const char *fmt = "%s";
35068 snprintf(buf, 10u, fmt, "wx");
35069
35070 ;
35071 return 0;
35072}
35073_ACEOF
35074rm -f conftest.$ac_objext
35075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35076 (eval $ac_compile) 2>conftest.er1
35077 ac_status=$?
35078 grep -v '^ *+' conftest.er1 >conftest.err
35079 rm -f conftest.er1
35080 cat conftest.err >&5
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); } &&
ca5c6ac3 35083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085 (eval $ac_try) 2>&5
35086 ac_status=$?
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); }; } &&
35089 { ac_try='test -s conftest.$ac_objext'
35090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091 (eval $ac_try) 2>&5
35092 ac_status=$?
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); }; }; then
35095 wx_cv_func_broken_snprintf_decl=no
35096else
35097 echo "$as_me: failed program was:" >&5
35098sed 's/^/| /' conftest.$ac_ext >&5
35099
35100wx_cv_func_broken_snprintf_decl=yes
35101
35102fi
35103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35104
35105
35106fi
35107echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35108echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35109
35110 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35111 cat >>confdefs.h <<\_ACEOF
35112#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35113_ACEOF
35114
35115 fi
35116 fi
35117
35118 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35119
35120 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35121echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35122if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35123 echo $ECHO_N "(cached) $ECHO_C" >&6
35124else
35125
35126 if test "$cross_compiling" = yes; then
5039a2df
VZ
35127
35128 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35129define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35130echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35131define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35132 wx_cv_func_snprintf_pos_params=no
35133
35134
8b6682b9
JS
35135else
35136 cat >conftest.$ac_ext <<_ACEOF
35137/* confdefs.h. */
35138_ACEOF
35139cat confdefs.h >>conftest.$ac_ext
35140cat >>conftest.$ac_ext <<_ACEOF
35141/* end confdefs.h. */
35142
35143 #include <stdio.h>
35144
35145 int main (void)
35146 {
35147 char buffer[128];
35148 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35149 if (strcmp ("2 3 1", buffer) == 0)
35150 exit (0);
35151 exit (1);
35152 }
35153
35154_ACEOF
35155rm -f conftest$ac_exeext
35156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35157 (eval $ac_link) 2>&5
35158 ac_status=$?
35159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162 (eval $ac_try) 2>&5
35163 ac_status=$?
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); }; }; then
35166 wx_cv_func_snprintf_pos_params=no
35167else
35168 echo "$as_me: program exited with status $ac_status" >&5
35169echo "$as_me: failed program was:" >&5
35170sed 's/^/| /' conftest.$ac_ext >&5
35171
35172( exit $ac_status )
35173wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35174fi
35175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35176fi
35177
35178
35179fi
35180echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35181echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35182
35183 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35184 cat >>confdefs.h <<\_ACEOF
35185#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35186_ACEOF
35187
35188 fi
4a767dd5
VZ
35189 fi
35190fi
35191
a848cd7e
SC
35192if test "$wxUSE_UNICODE" = yes; then
35193
35194
6a5c9b3f
RR
35195for ac_func in swprintf
35196do
35197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35198echo "$as_me:$LINENO: checking for $ac_func" >&5
35199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35200if eval "test \"\${$as_ac_var+set}\" = set"; then
35201 echo $ECHO_N "(cached) $ECHO_C" >&6
35202else
35203 cat >conftest.$ac_ext <<_ACEOF
35204/* confdefs.h. */
35205_ACEOF
35206cat confdefs.h >>conftest.$ac_ext
35207cat >>conftest.$ac_ext <<_ACEOF
35208/* end confdefs.h. */
35209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35211#define $ac_func innocuous_$ac_func
35212
35213/* System header to define __stub macros and hopefully few prototypes,
35214 which can conflict with char $ac_func (); below.
35215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35216 <limits.h> exists even on freestanding compilers. */
35217
35218#ifdef __STDC__
35219# include <limits.h>
35220#else
35221# include <assert.h>
35222#endif
35223
35224#undef $ac_func
35225
35226/* Override any gcc2 internal prototype to avoid an error. */
35227#ifdef __cplusplus
35228extern "C"
35229{
35230#endif
35231/* We use char because int might match the return type of a gcc2
35232 builtin and then its argument prototype would still apply. */
35233char $ac_func ();
35234/* The GNU C library defines this for functions which it implements
35235 to always fail with ENOSYS. Some functions are actually named
35236 something starting with __ and the normal name is an alias. */
35237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35238choke me
35239#else
35240char (*f) () = $ac_func;
35241#endif
35242#ifdef __cplusplus
35243}
35244#endif
35245
35246int
35247main ()
35248{
35249return f != $ac_func;
35250 ;
35251 return 0;
35252}
35253_ACEOF
35254rm -f conftest.$ac_objext conftest$ac_exeext
35255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35256 (eval $ac_link) 2>conftest.er1
35257 ac_status=$?
35258 grep -v '^ *+' conftest.er1 >conftest.err
35259 rm -f conftest.er1
35260 cat conftest.err >&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); } &&
ca5c6ac3 35263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35265 (eval $ac_try) 2>&5
35266 ac_status=$?
35267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268 (exit $ac_status); }; } &&
35269 { ac_try='test -s conftest$ac_exeext'
35270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271 (eval $ac_try) 2>&5
35272 ac_status=$?
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); }; }; then
35275 eval "$as_ac_var=yes"
35276else
35277 echo "$as_me: failed program was:" >&5
35278sed 's/^/| /' conftest.$ac_ext >&5
35279
35280eval "$as_ac_var=no"
35281fi
35282rm -f conftest.err conftest.$ac_objext \
35283 conftest$ac_exeext conftest.$ac_ext
35284fi
35285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35287if test `eval echo '${'$as_ac_var'}'` = yes; then
35288 cat >>confdefs.h <<_ACEOF
35289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35290_ACEOF
35291
35292fi
35293done
35294
35295
35296 if test "$ac_cv_func_swprintf" = "yes"; then
35297 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35298echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35299if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35300 echo $ECHO_N "(cached) $ECHO_C" >&6
35301else
35302
35303 cat >conftest.$ac_ext <<_ACEOF
35304/* confdefs.h. */
35305_ACEOF
35306cat confdefs.h >>conftest.$ac_ext
35307cat >>conftest.$ac_ext <<_ACEOF
35308/* end confdefs.h. */
35309
35310 #include <stdio.h>
35311 #include <stdarg.h>
35312 #include <wchar.h>
35313
35314int
35315main ()
35316{
35317
35318 wchar_t *buf;
35319 const wchar_t *fmt = L"test";
35320 swprintf(buf, 10u, fmt);
35321
35322 ;
35323 return 0;
35324}
35325_ACEOF
35326rm -f conftest.$ac_objext
35327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35328 (eval $ac_compile) 2>conftest.er1
35329 ac_status=$?
35330 grep -v '^ *+' conftest.er1 >conftest.err
35331 rm -f conftest.er1
35332 cat conftest.err >&5
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); } &&
ca5c6ac3 35335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35337 (eval $ac_try) 2>&5
35338 ac_status=$?
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); }; } &&
35341 { ac_try='test -s conftest.$ac_objext'
35342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35343 (eval $ac_try) 2>&5
35344 ac_status=$?
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); }; }; then
35347 wx_cv_func_broken_swprintf_decl=no
35348else
35349 echo "$as_me: failed program was:" >&5
35350sed 's/^/| /' conftest.$ac_ext >&5
35351
35352wx_cv_func_broken_swprintf_decl=yes
35353
35354fi
35355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35356
35357
35358fi
35359echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35360echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35361
35362 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35363 cat >>confdefs.h <<\_ACEOF
35364#define HAVE_BROKEN_SWPRINTF_DECL 1
35365_ACEOF
35366
35367 fi
35368 fi
35369
35370
35371
a848cd7e 35372
fbe47c7b
VS
35373
35374
35375
35376for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35377do
35378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35379echo "$as_me:$LINENO: checking for $ac_func" >&5
35380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35381if eval "test \"\${$as_ac_var+set}\" = set"; then
35382 echo $ECHO_N "(cached) $ECHO_C" >&6
35383else
35384 cat >conftest.$ac_ext <<_ACEOF
35385/* confdefs.h. */
35386_ACEOF
35387cat confdefs.h >>conftest.$ac_ext
35388cat >>conftest.$ac_ext <<_ACEOF
35389/* end confdefs.h. */
ac1cb8d3
VS
35390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35392#define $ac_func innocuous_$ac_func
35393
a848cd7e
SC
35394/* System header to define __stub macros and hopefully few prototypes,
35395 which can conflict with char $ac_func (); below.
35396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35397 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35398
a848cd7e
SC
35399#ifdef __STDC__
35400# include <limits.h>
35401#else
35402# include <assert.h>
35403#endif
ac1cb8d3
VS
35404
35405#undef $ac_func
35406
a848cd7e
SC
35407/* Override any gcc2 internal prototype to avoid an error. */
35408#ifdef __cplusplus
35409extern "C"
35410{
35411#endif
35412/* We use char because int might match the return type of a gcc2
35413 builtin and then its argument prototype would still apply. */
35414char $ac_func ();
35415/* The GNU C library defines this for functions which it implements
35416 to always fail with ENOSYS. Some functions are actually named
35417 something starting with __ and the normal name is an alias. */
35418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35419choke me
35420#else
35421char (*f) () = $ac_func;
35422#endif
35423#ifdef __cplusplus
35424}
35425#endif
35426
35427int
35428main ()
35429{
35430return f != $ac_func;
35431 ;
35432 return 0;
35433}
35434_ACEOF
35435rm -f conftest.$ac_objext conftest$ac_exeext
35436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35437 (eval $ac_link) 2>conftest.er1
a848cd7e 35438 ac_status=$?
ac1cb8d3
VS
35439 grep -v '^ *+' conftest.er1 >conftest.err
35440 rm -f conftest.er1
35441 cat conftest.err >&5
a848cd7e
SC
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); } &&
ca5c6ac3 35444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446 (eval $ac_try) 2>&5
35447 ac_status=$?
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); }; } &&
35450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35452 (eval $ac_try) 2>&5
35453 ac_status=$?
35454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455 (exit $ac_status); }; }; then
35456 eval "$as_ac_var=yes"
35457else
35458 echo "$as_me: failed program was:" >&5
35459sed 's/^/| /' conftest.$ac_ext >&5
35460
35461eval "$as_ac_var=no"
35462fi
ac1cb8d3
VS
35463rm -f conftest.err conftest.$ac_objext \
35464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35465fi
35466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35468if test `eval echo '${'$as_ac_var'}'` = yes; then
35469 cat >>confdefs.h <<_ACEOF
35470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35471_ACEOF
35472
35473fi
35474done
35475
35476
35477 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35478echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35479 cat >conftest.$ac_ext <<_ACEOF
35480/* confdefs.h. */
35481_ACEOF
35482cat confdefs.h >>conftest.$ac_ext
35483cat >>conftest.$ac_ext <<_ACEOF
35484/* end confdefs.h. */
35485#include <wchar.h>
35486int
35487main ()
35488{
35489&_vsnwprintf;
35490 ;
35491 return 0;
35492}
35493_ACEOF
35494rm -f conftest.$ac_objext
35495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35496 (eval $ac_compile) 2>conftest.er1
a848cd7e 35497 ac_status=$?
ac1cb8d3
VS
35498 grep -v '^ *+' conftest.er1 >conftest.err
35499 rm -f conftest.er1
35500 cat conftest.err >&5
a848cd7e
SC
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); } &&
ca5c6ac3 35503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35505 (eval $ac_try) 2>&5
35506 ac_status=$?
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); }; } &&
35509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511 (eval $ac_try) 2>&5
35512 ac_status=$?
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); }; }; then
35515 echo "$as_me:$LINENO: result: yes" >&5
35516echo "${ECHO_T}yes" >&6
35517 cat >>confdefs.h <<\_ACEOF
35518#define HAVE__VSNWPRINTF 1
35519_ACEOF
35520
35521else
35522 echo "$as_me: failed program was:" >&5
35523sed 's/^/| /' conftest.$ac_ext >&5
35524
35525echo "$as_me:$LINENO: result: no" >&5
35526echo "${ECHO_T}no" >&6
35527fi
ac1cb8d3 35528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35529fi
35530
6ebeb4c7
VZ
35531if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35532
35533for ac_func in fnmatch
35534do
35535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35536echo "$as_me:$LINENO: checking for $ac_func" >&5
35537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35538if eval "test \"\${$as_ac_var+set}\" = set"; then
35539 echo $ECHO_N "(cached) $ECHO_C" >&6
35540else
35541 cat >conftest.$ac_ext <<_ACEOF
35542/* confdefs.h. */
35543_ACEOF
35544cat confdefs.h >>conftest.$ac_ext
35545cat >>conftest.$ac_ext <<_ACEOF
35546/* end confdefs.h. */
35547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35549#define $ac_func innocuous_$ac_func
35550
35551/* System header to define __stub macros and hopefully few prototypes,
35552 which can conflict with char $ac_func (); below.
35553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35554 <limits.h> exists even on freestanding compilers. */
35555
35556#ifdef __STDC__
35557# include <limits.h>
35558#else
35559# include <assert.h>
35560#endif
35561
35562#undef $ac_func
35563
35564/* Override any gcc2 internal prototype to avoid an error. */
35565#ifdef __cplusplus
35566extern "C"
35567{
35568#endif
35569/* We use char because int might match the return type of a gcc2
35570 builtin and then its argument prototype would still apply. */
35571char $ac_func ();
35572/* The GNU C library defines this for functions which it implements
35573 to always fail with ENOSYS. Some functions are actually named
35574 something starting with __ and the normal name is an alias. */
35575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35576choke me
35577#else
35578char (*f) () = $ac_func;
35579#endif
35580#ifdef __cplusplus
35581}
35582#endif
35583
35584int
35585main ()
35586{
35587return f != $ac_func;
35588 ;
35589 return 0;
35590}
35591_ACEOF
35592rm -f conftest.$ac_objext conftest$ac_exeext
35593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35594 (eval $ac_link) 2>conftest.er1
35595 ac_status=$?
35596 grep -v '^ *+' conftest.er1 >conftest.err
35597 rm -f conftest.er1
35598 cat conftest.err >&5
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); } &&
ca5c6ac3 35601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
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_exeext'
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 eval "$as_ac_var=yes"
35614else
35615 echo "$as_me: failed program was:" >&5
35616sed 's/^/| /' conftest.$ac_ext >&5
35617
35618eval "$as_ac_var=no"
35619fi
35620rm -f conftest.err conftest.$ac_objext \
35621 conftest$ac_exeext conftest.$ac_ext
35622fi
35623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35625if test `eval echo '${'$as_ac_var'}'` = yes; then
35626 cat >>confdefs.h <<_ACEOF
35627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35628_ACEOF
35629
35630fi
35631done
35632
35633fi
35634
35635if test "$wxUSE_FILE" = "yes"; then
35636
35637for ac_func in fsync
35638do
35639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35640echo "$as_me:$LINENO: checking for $ac_func" >&5
35641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35642if eval "test \"\${$as_ac_var+set}\" = set"; then
35643 echo $ECHO_N "(cached) $ECHO_C" >&6
35644else
35645 cat >conftest.$ac_ext <<_ACEOF
35646/* confdefs.h. */
35647_ACEOF
35648cat confdefs.h >>conftest.$ac_ext
35649cat >>conftest.$ac_ext <<_ACEOF
35650/* end confdefs.h. */
35651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35653#define $ac_func innocuous_$ac_func
35654
35655/* System header to define __stub macros and hopefully few prototypes,
35656 which can conflict with char $ac_func (); below.
35657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35658 <limits.h> exists even on freestanding compilers. */
35659
35660#ifdef __STDC__
35661# include <limits.h>
35662#else
35663# include <assert.h>
35664#endif
35665
35666#undef $ac_func
35667
35668/* Override any gcc2 internal prototype to avoid an error. */
35669#ifdef __cplusplus
35670extern "C"
35671{
35672#endif
35673/* We use char because int might match the return type of a gcc2
35674 builtin and then its argument prototype would still apply. */
35675char $ac_func ();
35676/* The GNU C library defines this for functions which it implements
35677 to always fail with ENOSYS. Some functions are actually named
35678 something starting with __ and the normal name is an alias. */
35679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35680choke me
35681#else
35682char (*f) () = $ac_func;
35683#endif
35684#ifdef __cplusplus
35685}
35686#endif
35687
35688int
35689main ()
35690{
35691return f != $ac_func;
35692 ;
35693 return 0;
35694}
35695_ACEOF
35696rm -f conftest.$ac_objext conftest$ac_exeext
35697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35698 (eval $ac_link) 2>conftest.er1
35699 ac_status=$?
35700 grep -v '^ *+' conftest.er1 >conftest.err
35701 rm -f conftest.er1
35702 cat conftest.err >&5
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); } &&
ca5c6ac3 35705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35707 (eval $ac_try) 2>&5
35708 ac_status=$?
35709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710 (exit $ac_status); }; } &&
35711 { ac_try='test -s conftest$ac_exeext'
35712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35713 (eval $ac_try) 2>&5
35714 ac_status=$?
35715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35716 (exit $ac_status); }; }; then
35717 eval "$as_ac_var=yes"
35718else
35719 echo "$as_me: failed program was:" >&5
35720sed 's/^/| /' conftest.$ac_ext >&5
35721
35722eval "$as_ac_var=no"
35723fi
35724rm -f conftest.err conftest.$ac_objext \
35725 conftest$ac_exeext conftest.$ac_ext
35726fi
35727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35729if test `eval echo '${'$as_ac_var'}'` = yes; then
35730 cat >>confdefs.h <<_ACEOF
35731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35732_ACEOF
35733
35734fi
35735done
35736
35737fi
a848cd7e
SC
35738
35739
c2e9ada4
VZ
35740for ac_func in round
35741do
35742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35743echo "$as_me:$LINENO: checking for $ac_func" >&5
35744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35745if eval "test \"\${$as_ac_var+set}\" = set"; then
35746 echo $ECHO_N "(cached) $ECHO_C" >&6
35747else
35748 cat >conftest.$ac_ext <<_ACEOF
35749/* confdefs.h. */
35750_ACEOF
35751cat confdefs.h >>conftest.$ac_ext
35752cat >>conftest.$ac_ext <<_ACEOF
35753/* end confdefs.h. */
35754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35756#define $ac_func innocuous_$ac_func
35757
35758/* System header to define __stub macros and hopefully few prototypes,
35759 which can conflict with char $ac_func (); below.
35760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35761 <limits.h> exists even on freestanding compilers. */
35762
35763#ifdef __STDC__
35764# include <limits.h>
35765#else
35766# include <assert.h>
35767#endif
35768
35769#undef $ac_func
35770
35771/* Override any gcc2 internal prototype to avoid an error. */
35772#ifdef __cplusplus
35773extern "C"
35774{
35775#endif
35776/* We use char because int might match the return type of a gcc2
35777 builtin and then its argument prototype would still apply. */
35778char $ac_func ();
35779/* The GNU C library defines this for functions which it implements
35780 to always fail with ENOSYS. Some functions are actually named
35781 something starting with __ and the normal name is an alias. */
35782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35783choke me
35784#else
35785char (*f) () = $ac_func;
35786#endif
35787#ifdef __cplusplus
35788}
35789#endif
35790
35791int
35792main ()
35793{
35794return f != $ac_func;
35795 ;
35796 return 0;
35797}
35798_ACEOF
35799rm -f conftest.$ac_objext conftest$ac_exeext
35800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35801 (eval $ac_link) 2>conftest.er1
35802 ac_status=$?
35803 grep -v '^ *+' conftest.er1 >conftest.err
35804 rm -f conftest.er1
35805 cat conftest.err >&5
35806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807 (exit $ac_status); } &&
ca5c6ac3 35808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35810 (eval $ac_try) 2>&5
35811 ac_status=$?
35812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813 (exit $ac_status); }; } &&
35814 { ac_try='test -s conftest$ac_exeext'
35815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35816 (eval $ac_try) 2>&5
35817 ac_status=$?
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); }; }; then
35820 eval "$as_ac_var=yes"
35821else
35822 echo "$as_me: failed program was:" >&5
35823sed 's/^/| /' conftest.$ac_ext >&5
35824
35825eval "$as_ac_var=no"
35826fi
35827rm -f conftest.err conftest.$ac_objext \
35828 conftest$ac_exeext conftest.$ac_ext
35829fi
35830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35832if test `eval echo '${'$as_ac_var'}'` = yes; then
35833 cat >>confdefs.h <<_ACEOF
35834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35835_ACEOF
35836
35837fi
35838done
35839
35840if test "$ac_cv_func_round" = yes; then
35841 echo "$as_me:$LINENO: checking whether round is declared" >&5
35842echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35843if test "${ac_cv_have_decl_round+set}" = set; then
35844 echo $ECHO_N "(cached) $ECHO_C" >&6
35845else
35846 cat >conftest.$ac_ext <<_ACEOF
35847/* confdefs.h. */
35848_ACEOF
35849cat confdefs.h >>conftest.$ac_ext
35850cat >>conftest.$ac_ext <<_ACEOF
35851/* end confdefs.h. */
35852#include <math.h>
35853
35854int
35855main ()
35856{
35857#ifndef round
35858 char *p = (char *) round;
35859#endif
35860
35861 ;
35862 return 0;
35863}
35864_ACEOF
35865rm -f conftest.$ac_objext
35866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35867 (eval $ac_compile) 2>conftest.er1
35868 ac_status=$?
35869 grep -v '^ *+' conftest.er1 >conftest.err
35870 rm -f conftest.er1
35871 cat conftest.err >&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } &&
ca5c6ac3 35874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876 (eval $ac_try) 2>&5
35877 ac_status=$?
35878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 (exit $ac_status); }; } &&
35880 { ac_try='test -s conftest.$ac_objext'
35881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35882 (eval $ac_try) 2>&5
35883 ac_status=$?
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); }; }; then
35886 ac_cv_have_decl_round=yes
35887else
35888 echo "$as_me: failed program was:" >&5
35889sed 's/^/| /' conftest.$ac_ext >&5
35890
35891ac_cv_have_decl_round=no
35892fi
35893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35894fi
35895echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35896echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35897if test $ac_cv_have_decl_round = yes; then
35898
35899cat >>confdefs.h <<_ACEOF
35900#define HAVE_DECL_ROUND 1
35901_ACEOF
35902
35903
35904else
35905 cat >>confdefs.h <<_ACEOF
35906#define HAVE_DECL_ROUND 0
35907_ACEOF
35908
35909
35910fi
35911
35912
35913fi
35914
35915
a848cd7e
SC
35916if test "$TOOLKIT" != "MSW"; then
35917
35918
a848cd7e
SC
35919
35920
35921
35922# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35923if test "${with_libiconv_prefix+set}" = set; then
35924 withval="$with_libiconv_prefix"
35925
35926 for dir in `echo "$withval" | tr : ' '`; do
35927 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35928 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35929 done
35930
35931fi;
35932
35933 echo "$as_me:$LINENO: checking for iconv" >&5
35934echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35935if test "${am_cv_func_iconv+set}" = set; then
35936 echo $ECHO_N "(cached) $ECHO_C" >&6
35937else
35938
35939 am_cv_func_iconv="no, consider installing GNU libiconv"
35940 am_cv_lib_iconv=no
35941 cat >conftest.$ac_ext <<_ACEOF
35942/* confdefs.h. */
35943_ACEOF
35944cat confdefs.h >>conftest.$ac_ext
35945cat >>conftest.$ac_ext <<_ACEOF
35946/* end confdefs.h. */
35947#include <stdlib.h>
35948#include <iconv.h>
35949int
35950main ()
35951{
35952iconv_t cd = iconv_open("","");
35953 iconv(cd,NULL,NULL,NULL,NULL);
35954 iconv_close(cd);
35955 ;
35956 return 0;
35957}
35958_ACEOF
35959rm -f conftest.$ac_objext conftest$ac_exeext
35960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35961 (eval $ac_link) 2>conftest.er1
a848cd7e 35962 ac_status=$?
ac1cb8d3
VS
35963 grep -v '^ *+' conftest.er1 >conftest.err
35964 rm -f conftest.er1
35965 cat conftest.err >&5
a848cd7e
SC
35966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); } &&
ca5c6ac3 35968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35970 (eval $ac_try) 2>&5
35971 ac_status=$?
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); }; } &&
35974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35976 (eval $ac_try) 2>&5
35977 ac_status=$?
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); }; }; then
35980 am_cv_func_iconv=yes
35981else
35982 echo "$as_me: failed program was:" >&5
35983sed 's/^/| /' conftest.$ac_ext >&5
35984
35985fi
ac1cb8d3
VS
35986rm -f conftest.err conftest.$ac_objext \
35987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35988 if test "$am_cv_func_iconv" != yes; then
35989 am_save_LIBS="$LIBS"
35990 LIBS="$LIBS -liconv"
35991 cat >conftest.$ac_ext <<_ACEOF
35992/* confdefs.h. */
35993_ACEOF
35994cat confdefs.h >>conftest.$ac_ext
35995cat >>conftest.$ac_ext <<_ACEOF
35996/* end confdefs.h. */
35997#include <stdlib.h>
35998#include <iconv.h>
35999int
36000main ()
36001{
36002iconv_t cd = iconv_open("","");
36003 iconv(cd,NULL,NULL,NULL,NULL);
36004 iconv_close(cd);
36005 ;
36006 return 0;
36007}
36008_ACEOF
36009rm -f conftest.$ac_objext conftest$ac_exeext
36010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36011 (eval $ac_link) 2>conftest.er1
a848cd7e 36012 ac_status=$?
ac1cb8d3
VS
36013 grep -v '^ *+' conftest.er1 >conftest.err
36014 rm -f conftest.er1
36015 cat conftest.err >&5
a848cd7e
SC
36016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017 (exit $ac_status); } &&
ca5c6ac3 36018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36020 (eval $ac_try) 2>&5
36021 ac_status=$?
36022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023 (exit $ac_status); }; } &&
36024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026 (eval $ac_try) 2>&5
36027 ac_status=$?
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; }; then
36030 am_cv_lib_iconv=yes
36031 am_cv_func_iconv=yes
36032else
36033 echo "$as_me: failed program was:" >&5
36034sed 's/^/| /' conftest.$ac_ext >&5
36035
36036fi
ac1cb8d3
VS
36037rm -f conftest.err conftest.$ac_objext \
36038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36039 LIBS="$am_save_LIBS"
36040 fi
36041
36042fi
36043echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36044echo "${ECHO_T}$am_cv_func_iconv" >&6
36045 if test "$am_cv_func_iconv" = yes; then
36046
36047cat >>confdefs.h <<\_ACEOF
36048#define HAVE_ICONV 1
36049_ACEOF
36050
36051 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36052echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36053if test "${wx_cv_func_iconv_const+set}" = set; then
36054 echo $ECHO_N "(cached) $ECHO_C" >&6
36055else
36056 cat >conftest.$ac_ext <<_ACEOF
36057/* confdefs.h. */
36058_ACEOF
36059cat confdefs.h >>conftest.$ac_ext
36060cat >>conftest.$ac_ext <<_ACEOF
36061/* end confdefs.h. */
36062
36063#include <stdlib.h>
36064#include <iconv.h>
36065extern
36066#ifdef __cplusplus
36067"C"
36068#endif
36069#if defined(__STDC__) || defined(__cplusplus)
36070size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36071#else
36072size_t iconv();
36073#endif
36074
36075int
36076main ()
36077{
36078
36079 ;
36080 return 0;
36081}
36082_ACEOF
36083rm -f conftest.$ac_objext
36084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36085 (eval $ac_compile) 2>conftest.er1
a848cd7e 36086 ac_status=$?
ac1cb8d3
VS
36087 grep -v '^ *+' conftest.er1 >conftest.err
36088 rm -f conftest.er1
36089 cat conftest.err >&5
a848cd7e
SC
36090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091 (exit $ac_status); } &&
ca5c6ac3 36092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36094 (eval $ac_try) 2>&5
36095 ac_status=$?
36096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097 (exit $ac_status); }; } &&
36098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36100 (eval $ac_try) 2>&5
36101 ac_status=$?
36102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103 (exit $ac_status); }; }; then
36104 wx_cv_func_iconv_const="no"
36105else
36106 echo "$as_me: failed program was:" >&5
36107sed 's/^/| /' conftest.$ac_ext >&5
36108
36109wx_cv_func_iconv_const="yes"
36110
36111fi
ac1cb8d3 36112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36113
36114fi
36115echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36116echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36117
36118 iconv_const=
36119 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36120 iconv_const="const"
36121 fi
36122
36123
36124cat >>confdefs.h <<_ACEOF
36125#define ICONV_CONST $iconv_const
36126_ACEOF
36127
36128 fi
36129 LIBICONV=
36130 if test "$am_cv_lib_iconv" = yes; then
36131 LIBICONV="-liconv"
36132 fi
36133
36134
36135LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36136
36137if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36138
36139for ac_func in sigaction
36140do
36141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36142echo "$as_me:$LINENO: checking for $ac_func" >&5
36143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36144if eval "test \"\${$as_ac_var+set}\" = set"; then
36145 echo $ECHO_N "(cached) $ECHO_C" >&6
36146else
36147 cat >conftest.$ac_ext <<_ACEOF
36148/* confdefs.h. */
36149_ACEOF
36150cat confdefs.h >>conftest.$ac_ext
36151cat >>conftest.$ac_ext <<_ACEOF
36152/* end confdefs.h. */
ac1cb8d3
VS
36153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36155#define $ac_func innocuous_$ac_func
36156
a848cd7e
SC
36157/* System header to define __stub macros and hopefully few prototypes,
36158 which can conflict with char $ac_func (); below.
36159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36161
a848cd7e
SC
36162#ifdef __STDC__
36163# include <limits.h>
36164#else
36165# include <assert.h>
36166#endif
ac1cb8d3
VS
36167
36168#undef $ac_func
36169
a848cd7e
SC
36170/* Override any gcc2 internal prototype to avoid an error. */
36171#ifdef __cplusplus
36172extern "C"
36173{
36174#endif
36175/* We use char because int might match the return type of a gcc2
36176 builtin and then its argument prototype would still apply. */
36177char $ac_func ();
36178/* The GNU C library defines this for functions which it implements
36179 to always fail with ENOSYS. Some functions are actually named
36180 something starting with __ and the normal name is an alias. */
36181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36182choke me
36183#else
36184char (*f) () = $ac_func;
36185#endif
36186#ifdef __cplusplus
36187}
36188#endif
36189
36190int
36191main ()
36192{
36193return f != $ac_func;
36194 ;
36195 return 0;
36196}
36197_ACEOF
36198rm -f conftest.$ac_objext conftest$ac_exeext
36199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36200 (eval $ac_link) 2>conftest.er1
a848cd7e 36201 ac_status=$?
ac1cb8d3
VS
36202 grep -v '^ *+' conftest.er1 >conftest.err
36203 rm -f conftest.er1
36204 cat conftest.err >&5
a848cd7e
SC
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
ca5c6ac3 36207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36210 ac_status=$?
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; } &&
36213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215 (eval $ac_try) 2>&5
36216 ac_status=$?
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; }; then
36219 eval "$as_ac_var=yes"
36220else
36221 echo "$as_me: failed program was:" >&5
36222sed 's/^/| /' conftest.$ac_ext >&5
36223
36224eval "$as_ac_var=no"
36225fi
ac1cb8d3
VS
36226rm -f conftest.err conftest.$ac_objext \
36227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36228fi
36229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36231if test `eval echo '${'$as_ac_var'}'` = yes; then
36232 cat >>confdefs.h <<_ACEOF
36233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36234_ACEOF
36235
36236fi
36237done
36238
36239
36240 if test "$ac_cv_func_sigaction" = "no"; then
36241 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36242echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36243 wxUSE_ON_FATAL_EXCEPTION=no
36244 fi
36245
36246 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36247 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36248echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36249if test "${wx_cv_type_sa_handler+set}" = set; then
36250 echo $ECHO_N "(cached) $ECHO_C" >&6
36251else
36252
36253 cat >conftest.$ac_ext <<_ACEOF
36254/* confdefs.h. */
36255_ACEOF
36256cat confdefs.h >>conftest.$ac_ext
36257cat >>conftest.$ac_ext <<_ACEOF
36258/* end confdefs.h. */
36259#include <signal.h>
36260int
36261main ()
36262{
36263
36264 extern void testSigHandler(int);
36265
36266 struct sigaction sa;
36267 sa.sa_handler = testSigHandler;
36268
36269 ;
36270 return 0;
36271}
36272_ACEOF
36273rm -f conftest.$ac_objext
36274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36275 (eval $ac_compile) 2>conftest.er1
a848cd7e 36276 ac_status=$?
ac1cb8d3
VS
36277 grep -v '^ *+' conftest.er1 >conftest.err
36278 rm -f conftest.er1
36279 cat conftest.err >&5
a848cd7e
SC
36280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36281 (exit $ac_status); } &&
ca5c6ac3 36282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284 (eval $ac_try) 2>&5
36285 ac_status=$?
36286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); }; } &&
36288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290 (eval $ac_try) 2>&5
36291 ac_status=$?
36292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 (exit $ac_status); }; }; then
36294
36295 wx_cv_type_sa_handler=int
36296
36297else
36298 echo "$as_me: failed program was:" >&5
36299sed 's/^/| /' conftest.$ac_ext >&5
36300
36301
36302 wx_cv_type_sa_handler=void
36303
36304fi
ac1cb8d3 36305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36306
36307fi
36308echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36309echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36310
a848cd7e
SC
36311 cat >>confdefs.h <<_ACEOF
36312#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36313_ACEOF
36314
36315 fi
36316fi
36317
eaff0f0d 36318if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36319 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36320echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36321if test "${wx_cv_func_backtrace+set}" = set; then
36322 echo $ECHO_N "(cached) $ECHO_C" >&6
36323else
36324
36325 cat >conftest.$ac_ext <<_ACEOF
36326/* confdefs.h. */
36327_ACEOF
36328cat confdefs.h >>conftest.$ac_ext
36329cat >>conftest.$ac_ext <<_ACEOF
36330/* end confdefs.h. */
36331#include <execinfo.h>
36332int
36333main ()
36334{
36335
36336 void *trace[1];
36337 char **messages;
36338
36339 backtrace(trace, 1);
36340 messages = backtrace_symbols(trace, 1);
36341
36342 ;
36343 return 0;
36344}
36345_ACEOF
36346rm -f conftest.$ac_objext
36347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36348 (eval $ac_compile) 2>conftest.er1
36349 ac_status=$?
36350 grep -v '^ *+' conftest.er1 >conftest.err
36351 rm -f conftest.er1
36352 cat conftest.err >&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } &&
ca5c6ac3 36355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36357 (eval $ac_try) 2>&5
36358 ac_status=$?
36359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360 (exit $ac_status); }; } &&
36361 { ac_try='test -s conftest.$ac_objext'
36362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36363 (eval $ac_try) 2>&5
36364 ac_status=$?
36365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366 (exit $ac_status); }; }; then
36367 wx_cv_func_backtrace=yes
36368else
36369 echo "$as_me: failed program was:" >&5
36370sed 's/^/| /' conftest.$ac_ext >&5
36371
36372wx_cv_func_backtrace=no
36373
36374fi
36375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36376
36377
36378fi
36379echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36380echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36381
36382
36383 if test "$wx_cv_func_backtrace" = "no"; then
36384 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36385echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36386 wxUSE_STACKWALKER=no
36387 else
36388 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36389echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36390if test "${wx_cv_func_cxa_demangle+set}" = set; then
36391 echo $ECHO_N "(cached) $ECHO_C" >&6
36392else
36393
36394 cat >conftest.$ac_ext <<_ACEOF
36395/* confdefs.h. */
36396_ACEOF
36397cat confdefs.h >>conftest.$ac_ext
36398cat >>conftest.$ac_ext <<_ACEOF
36399/* end confdefs.h. */
36400#include <cxxabi.h>
36401int
36402main ()
36403{
36404
36405 int rc;
36406 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36407
36408 ;
36409 return 0;
36410}
36411_ACEOF
dfe0c803
JS
36412rm -f conftest.$ac_objext conftest$ac_exeext
36413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36414 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36415 ac_status=$?
36416 grep -v '^ *+' conftest.er1 >conftest.err
36417 rm -f conftest.er1
36418 cat conftest.err >&5
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); } &&
ca5c6ac3 36421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36423 (eval $ac_try) 2>&5
36424 ac_status=$?
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); }; } &&
dfe0c803 36427 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429 (eval $ac_try) 2>&5
36430 ac_status=$?
36431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432 (exit $ac_status); }; }; then
36433 wx_cv_func_cxa_demangle=yes
36434else
36435 echo "$as_me: failed program was:" >&5
36436sed 's/^/| /' conftest.$ac_ext >&5
36437
36438wx_cv_func_cxa_demangle=no
36439
36440fi
dfe0c803
JS
36441rm -f conftest.err conftest.$ac_objext \
36442 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36443
36444
36445fi
36446echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36447echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36448
36449 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36450 cat >>confdefs.h <<\_ACEOF
36451#define HAVE_CXA_DEMANGLE 1
36452_ACEOF
36453
36454 fi
36455 fi
eaff0f0d
VZ
36456fi
36457
898beab1
DE
36458if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36459 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36460echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36461 wxUSE_STACKWALKER=no
36462fi
36463
36464
a848cd7e
SC
36465
36466
36467for ac_func in mkstemp mktemp
36468do
36469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36470echo "$as_me:$LINENO: checking for $ac_func" >&5
36471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36472if eval "test \"\${$as_ac_var+set}\" = set"; then
36473 echo $ECHO_N "(cached) $ECHO_C" >&6
36474else
36475 cat >conftest.$ac_ext <<_ACEOF
36476/* confdefs.h. */
36477_ACEOF
36478cat confdefs.h >>conftest.$ac_ext
36479cat >>conftest.$ac_ext <<_ACEOF
36480/* end confdefs.h. */
ac1cb8d3
VS
36481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36483#define $ac_func innocuous_$ac_func
36484
a848cd7e
SC
36485/* System header to define __stub macros and hopefully few prototypes,
36486 which can conflict with char $ac_func (); below.
36487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36489
a848cd7e
SC
36490#ifdef __STDC__
36491# include <limits.h>
36492#else
36493# include <assert.h>
36494#endif
ac1cb8d3
VS
36495
36496#undef $ac_func
36497
a848cd7e
SC
36498/* Override any gcc2 internal prototype to avoid an error. */
36499#ifdef __cplusplus
36500extern "C"
36501{
36502#endif
36503/* We use char because int might match the return type of a gcc2
36504 builtin and then its argument prototype would still apply. */
36505char $ac_func ();
36506/* The GNU C library defines this for functions which it implements
36507 to always fail with ENOSYS. Some functions are actually named
36508 something starting with __ and the normal name is an alias. */
36509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36510choke me
36511#else
36512char (*f) () = $ac_func;
36513#endif
36514#ifdef __cplusplus
36515}
36516#endif
36517
36518int
36519main ()
36520{
36521return f != $ac_func;
36522 ;
36523 return 0;
36524}
36525_ACEOF
36526rm -f conftest.$ac_objext conftest$ac_exeext
36527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36528 (eval $ac_link) 2>conftest.er1
a848cd7e 36529 ac_status=$?
ac1cb8d3
VS
36530 grep -v '^ *+' conftest.er1 >conftest.err
36531 rm -f conftest.er1
36532 cat conftest.err >&5
a848cd7e
SC
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } &&
ca5c6ac3 36535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36537 (eval $ac_try) 2>&5
36538 ac_status=$?
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; } &&
36541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36543 (eval $ac_try) 2>&5
36544 ac_status=$?
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); }; }; then
36547 eval "$as_ac_var=yes"
36548else
36549 echo "$as_me: failed program was:" >&5
36550sed 's/^/| /' conftest.$ac_ext >&5
36551
36552eval "$as_ac_var=no"
36553fi
ac1cb8d3
VS
36554rm -f conftest.err conftest.$ac_objext \
36555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36556fi
36557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36559if test `eval echo '${'$as_ac_var'}'` = yes; then
36560 cat >>confdefs.h <<_ACEOF
36561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36562_ACEOF
36563 break
36564fi
36565done
36566
36567
36568echo "$as_me:$LINENO: checking for statfs" >&5
36569echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36570if test "${wx_cv_func_statfs+set}" = set; then
36571 echo $ECHO_N "(cached) $ECHO_C" >&6
36572else
36573 cat >conftest.$ac_ext <<_ACEOF
36574/* confdefs.h. */
36575_ACEOF
36576cat confdefs.h >>conftest.$ac_ext
36577cat >>conftest.$ac_ext <<_ACEOF
36578/* end confdefs.h. */
36579
36580 #if defined(__BSD__)
84ae7ca4
VZ
36581 #include <sys/param.h>
36582 #include <sys/mount.h>
a848cd7e 36583 #else
84ae7ca4 36584 #include <sys/vfs.h>
a848cd7e
SC
36585 #endif
36586
36587int
36588main ()
36589{
36590
36591 long l;
36592 struct statfs fs;
36593 statfs("/", &fs);
36594 l = fs.f_bsize;
36595 l += fs.f_blocks;
36596 l += fs.f_bavail;
36597
36598 ;
36599 return 0;
36600}
36601_ACEOF
36602rm -f conftest.$ac_objext
36603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36604 (eval $ac_compile) 2>conftest.er1
a848cd7e 36605 ac_status=$?
ac1cb8d3
VS
36606 grep -v '^ *+' conftest.er1 >conftest.err
36607 rm -f conftest.er1
36608 cat conftest.err >&5
a848cd7e
SC
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); } &&
ca5c6ac3 36611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36613 (eval $ac_try) 2>&5
36614 ac_status=$?
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); }; } &&
36617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619 (eval $ac_try) 2>&5
36620 ac_status=$?
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; }; then
84ae7ca4 36623 wx_cv_func_statfs=yes
a848cd7e
SC
36624else
36625 echo "$as_me: failed program was:" >&5
36626sed 's/^/| /' conftest.$ac_ext >&5
36627
84ae7ca4 36628wx_cv_func_statfs=no
a848cd7e
SC
36629
36630fi
ac1cb8d3 36631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36632
36633fi
36634echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36635echo "${ECHO_T}$wx_cv_func_statfs" >&6
36636
36637if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36638 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36639echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36640if test "${wx_cv_func_statfs_decl+set}" = set; then
36641 echo $ECHO_N "(cached) $ECHO_C" >&6
36642else
0683aca6
VZ
36643 cat >conftest.$ac_ext <<_ACEOF
36644/* confdefs.h. */
36645_ACEOF
36646cat confdefs.h >>conftest.$ac_ext
36647cat >>conftest.$ac_ext <<_ACEOF
36648/* end confdefs.h. */
84ae7ca4 36649
0683aca6
VZ
36650 #if defined(__BSD__)
36651 #include <sys/param.h>
36652 #include <sys/mount.h>
36653 #else
36654 #include <sys/vfs.h>
36655 #endif
36656
36657int
36658main ()
36659{
36660
36661 struct statfs fs;
36662 statfs("", &fs);
36663
36664 ;
36665 return 0;
36666}
36667_ACEOF
36668rm -f conftest.$ac_objext
36669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36670 (eval $ac_compile) 2>conftest.er1
36671 ac_status=$?
36672 grep -v '^ *+' conftest.er1 >conftest.err
36673 rm -f conftest.er1
36674 cat conftest.err >&5
36675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676 (exit $ac_status); } &&
ca5c6ac3 36677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
36678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36679 (eval $ac_try) 2>&5
36680 ac_status=$?
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); }; } &&
36683 { ac_try='test -s conftest.$ac_objext'
36684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36685 (eval $ac_try) 2>&5
36686 ac_status=$?
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); }; }; then
36689 wx_cv_func_statfs_decl=yes
36690else
36691 echo "$as_me: failed program was:" >&5
36692sed 's/^/| /' conftest.$ac_ext >&5
36693
36694wx_cv_func_statfs_decl=no
36695
36696fi
36697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36698
36699fi
36700echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36701echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36702
36703 if test "$wx_cv_func_statfs_decl" = "yes"; then
36704 cat >>confdefs.h <<\_ACEOF
36705#define HAVE_STATFS_DECL 1
36706_ACEOF
36707
36708 fi
36709
a848cd7e
SC
36710 wx_cv_type_statvfs_t="struct statfs"
36711 cat >>confdefs.h <<\_ACEOF
36712#define HAVE_STATFS 1
36713_ACEOF
36714
36715else
36716 echo "$as_me:$LINENO: checking for statvfs" >&5
36717echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36718if test "${wx_cv_func_statvfs+set}" = set; then
36719 echo $ECHO_N "(cached) $ECHO_C" >&6
36720else
36721 cat >conftest.$ac_ext <<_ACEOF
36722/* confdefs.h. */
36723_ACEOF
36724cat confdefs.h >>conftest.$ac_ext
36725cat >>conftest.$ac_ext <<_ACEOF
36726/* end confdefs.h. */
36727
36728 #include <stddef.h>
36729 #include <sys/statvfs.h>
36730
36731int
36732main ()
36733{
36734
36735 statvfs("/", NULL);
36736
36737 ;
36738 return 0;
36739}
36740_ACEOF
36741rm -f conftest.$ac_objext
36742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36743 (eval $ac_compile) 2>conftest.er1
a848cd7e 36744 ac_status=$?
ac1cb8d3
VS
36745 grep -v '^ *+' conftest.er1 >conftest.err
36746 rm -f conftest.er1
36747 cat conftest.err >&5
a848cd7e
SC
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); } &&
ca5c6ac3 36750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; } &&
36756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36758 (eval $ac_try) 2>&5
36759 ac_status=$?
36760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761 (exit $ac_status); }; }; then
36762 wx_cv_func_statvfs=yes
36763else
36764 echo "$as_me: failed program was:" >&5
36765sed 's/^/| /' conftest.$ac_ext >&5
36766
36767wx_cv_func_statvfs=no
36768
36769fi
ac1cb8d3 36770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36771
36772fi
36773echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36774echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36775
36776 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36777 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36778echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36779if test "${wx_cv_type_statvfs_t+set}" = set; then
36780 echo $ECHO_N "(cached) $ECHO_C" >&6
36781else
36782 cat >conftest.$ac_ext <<_ACEOF
36783/* confdefs.h. */
36784_ACEOF
36785cat confdefs.h >>conftest.$ac_ext
36786cat >>conftest.$ac_ext <<_ACEOF
36787/* end confdefs.h. */
36788
36789 #include <sys/statvfs.h>
36790
36791int
36792main ()
36793{
36794
36795 long l;
36796 statvfs_t fs;
36797 statvfs("/", &fs);
36798 l = fs.f_bsize;
36799 l += fs.f_blocks;
36800 l += fs.f_bavail;
36801
36802 ;
36803 return 0;
36804}
36805_ACEOF
36806rm -f conftest.$ac_objext
36807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36808 (eval $ac_compile) 2>conftest.er1
a848cd7e 36809 ac_status=$?
ac1cb8d3
VS
36810 grep -v '^ *+' conftest.er1 >conftest.err
36811 rm -f conftest.er1
36812 cat conftest.err >&5
a848cd7e
SC
36813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); } &&
ca5c6ac3 36815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36817 (eval $ac_try) 2>&5
36818 ac_status=$?
36819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820 (exit $ac_status); }; } &&
36821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36823 (eval $ac_try) 2>&5
36824 ac_status=$?
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); }; }; then
36827 wx_cv_type_statvfs_t=statvfs_t
36828else
36829 echo "$as_me: failed program was:" >&5
36830sed 's/^/| /' conftest.$ac_ext >&5
36831
36832
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 <sys/statvfs.h>
36841
36842int
36843main ()
36844{
36845
36846 long l;
36847 struct statvfs fs;
36848 statvfs("/", &fs);
36849 l = fs.f_bsize;
36850 l += fs.f_blocks;
36851 l += fs.f_bavail;
36852
36853 ;
36854 return 0;
36855}
36856_ACEOF
36857rm -f conftest.$ac_objext
36858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36859 (eval $ac_compile) 2>conftest.er1
a848cd7e 36860 ac_status=$?
ac1cb8d3
VS
36861 grep -v '^ *+' conftest.er1 >conftest.err
36862 rm -f conftest.er1
36863 cat conftest.err >&5
a848cd7e
SC
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); } &&
ca5c6ac3 36866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868 (eval $ac_try) 2>&5
36869 ac_status=$?
36870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871 (exit $ac_status); }; } &&
36872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874 (eval $ac_try) 2>&5
36875 ac_status=$?
36876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877 (exit $ac_status); }; }; then
36878 wx_cv_type_statvfs_t="struct statvfs"
36879else
36880 echo "$as_me: failed program was:" >&5
36881sed 's/^/| /' conftest.$ac_ext >&5
36882
36883wx_cv_type_statvfs_t="unknown"
36884
36885fi
ac1cb8d3 36886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36887
36888
36889fi
ac1cb8d3 36890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36891
36892fi
36893echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36894echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36895
a848cd7e
SC
36896 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36897 cat >>confdefs.h <<\_ACEOF
36898#define HAVE_STATVFS 1
36899_ACEOF
36900
36901 fi
36902 else
36903 wx_cv_type_statvfs_t="unknown"
36904 fi
36905fi
36906
36907if test "$wx_cv_type_statvfs_t" != "unknown"; then
36908 cat >>confdefs.h <<_ACEOF
36909#define WX_STATFS_T $wx_cv_type_statvfs_t
36910_ACEOF
36911
36912else
36913 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36914echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36915fi
36916
36917if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36918
36919
36920for ac_func in fcntl flock
36921do
36922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36923echo "$as_me:$LINENO: checking for $ac_func" >&5
36924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36925if eval "test \"\${$as_ac_var+set}\" = set"; then
36926 echo $ECHO_N "(cached) $ECHO_C" >&6
36927else
36928 cat >conftest.$ac_ext <<_ACEOF
36929/* confdefs.h. */
36930_ACEOF
36931cat confdefs.h >>conftest.$ac_ext
36932cat >>conftest.$ac_ext <<_ACEOF
36933/* end confdefs.h. */
ac1cb8d3
VS
36934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36936#define $ac_func innocuous_$ac_func
36937
a848cd7e
SC
36938/* System header to define __stub macros and hopefully few prototypes,
36939 which can conflict with char $ac_func (); below.
36940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36941 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36942
a848cd7e
SC
36943#ifdef __STDC__
36944# include <limits.h>
36945#else
36946# include <assert.h>
36947#endif
ac1cb8d3
VS
36948
36949#undef $ac_func
36950
a848cd7e
SC
36951/* Override any gcc2 internal prototype to avoid an error. */
36952#ifdef __cplusplus
36953extern "C"
36954{
36955#endif
36956/* We use char because int might match the return type of a gcc2
36957 builtin and then its argument prototype would still apply. */
36958char $ac_func ();
36959/* The GNU C library defines this for functions which it implements
36960 to always fail with ENOSYS. Some functions are actually named
36961 something starting with __ and the normal name is an alias. */
36962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36963choke me
36964#else
36965char (*f) () = $ac_func;
36966#endif
36967#ifdef __cplusplus
36968}
36969#endif
36970
36971int
36972main ()
36973{
36974return f != $ac_func;
36975 ;
36976 return 0;
36977}
36978_ACEOF
36979rm -f conftest.$ac_objext conftest$ac_exeext
36980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36981 (eval $ac_link) 2>conftest.er1
a848cd7e 36982 ac_status=$?
ac1cb8d3
VS
36983 grep -v '^ *+' conftest.er1 >conftest.err
36984 rm -f conftest.er1
36985 cat conftest.err >&5
a848cd7e
SC
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); } &&
ca5c6ac3 36988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36991 ac_status=$?
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; } &&
36994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996 (eval $ac_try) 2>&5
36997 ac_status=$?
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); }; }; then
37000 eval "$as_ac_var=yes"
37001else
37002 echo "$as_me: failed program was:" >&5
37003sed 's/^/| /' conftest.$ac_ext >&5
37004
37005eval "$as_ac_var=no"
37006fi
ac1cb8d3
VS
37007rm -f conftest.err conftest.$ac_objext \
37008 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37009fi
37010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37011echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37012if test `eval echo '${'$as_ac_var'}'` = yes; then
37013 cat >>confdefs.h <<_ACEOF
37014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37015_ACEOF
37016 break
37017fi
37018done
37019
37020
37021 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37022 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37023echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37024 wxUSE_SNGLINST_CHECKER=no
37025 fi
37026fi
37027
37028
37029for ac_func in timegm
37030do
37031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37032echo "$as_me:$LINENO: checking for $ac_func" >&5
37033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37034if eval "test \"\${$as_ac_var+set}\" = set"; then
37035 echo $ECHO_N "(cached) $ECHO_C" >&6
37036else
37037 cat >conftest.$ac_ext <<_ACEOF
37038/* confdefs.h. */
37039_ACEOF
37040cat confdefs.h >>conftest.$ac_ext
37041cat >>conftest.$ac_ext <<_ACEOF
37042/* end confdefs.h. */
ac1cb8d3
VS
37043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37045#define $ac_func innocuous_$ac_func
37046
a848cd7e
SC
37047/* System header to define __stub macros and hopefully few prototypes,
37048 which can conflict with char $ac_func (); below.
37049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37050 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37051
a848cd7e
SC
37052#ifdef __STDC__
37053# include <limits.h>
37054#else
37055# include <assert.h>
37056#endif
ac1cb8d3
VS
37057
37058#undef $ac_func
37059
a848cd7e
SC
37060/* Override any gcc2 internal prototype to avoid an error. */
37061#ifdef __cplusplus
37062extern "C"
37063{
37064#endif
37065/* We use char because int might match the return type of a gcc2
37066 builtin and then its argument prototype would still apply. */
37067char $ac_func ();
37068/* The GNU C library defines this for functions which it implements
37069 to always fail with ENOSYS. Some functions are actually named
37070 something starting with __ and the normal name is an alias. */
37071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37072choke me
37073#else
37074char (*f) () = $ac_func;
37075#endif
37076#ifdef __cplusplus
37077}
37078#endif
37079
37080int
37081main ()
37082{
37083return f != $ac_func;
37084 ;
37085 return 0;
37086}
37087_ACEOF
37088rm -f conftest.$ac_objext conftest$ac_exeext
37089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37090 (eval $ac_link) 2>conftest.er1
a848cd7e 37091 ac_status=$?
ac1cb8d3
VS
37092 grep -v '^ *+' conftest.er1 >conftest.err
37093 rm -f conftest.er1
37094 cat conftest.err >&5
a848cd7e
SC
37095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096 (exit $ac_status); } &&
ca5c6ac3 37097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37099 (eval $ac_try) 2>&5
37100 ac_status=$?
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); }; } &&
37103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37105 (eval $ac_try) 2>&5
37106 ac_status=$?
37107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37108 (exit $ac_status); }; }; then
37109 eval "$as_ac_var=yes"
37110else
37111 echo "$as_me: failed program was:" >&5
37112sed 's/^/| /' conftest.$ac_ext >&5
37113
37114eval "$as_ac_var=no"
37115fi
ac1cb8d3
VS
37116rm -f conftest.err conftest.$ac_objext \
37117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37118fi
37119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37121if test `eval echo '${'$as_ac_var'}'` = yes; then
37122 cat >>confdefs.h <<_ACEOF
37123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37124_ACEOF
37125
37126fi
37127done
37128
37129
37130
37131
37132for ac_func in putenv setenv
37133do
37134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37135echo "$as_me:$LINENO: checking for $ac_func" >&5
37136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37137if eval "test \"\${$as_ac_var+set}\" = set"; then
37138 echo $ECHO_N "(cached) $ECHO_C" >&6
37139else
37140 cat >conftest.$ac_ext <<_ACEOF
37141/* confdefs.h. */
37142_ACEOF
37143cat confdefs.h >>conftest.$ac_ext
37144cat >>conftest.$ac_ext <<_ACEOF
37145/* end confdefs.h. */
ac1cb8d3
VS
37146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37148#define $ac_func innocuous_$ac_func
37149
a848cd7e
SC
37150/* System header to define __stub macros and hopefully few prototypes,
37151 which can conflict with char $ac_func (); below.
37152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37154
a848cd7e
SC
37155#ifdef __STDC__
37156# include <limits.h>
37157#else
37158# include <assert.h>
37159#endif
ac1cb8d3
VS
37160
37161#undef $ac_func
37162
a848cd7e
SC
37163/* Override any gcc2 internal prototype to avoid an error. */
37164#ifdef __cplusplus
37165extern "C"
37166{
37167#endif
37168/* We use char because int might match the return type of a gcc2
37169 builtin and then its argument prototype would still apply. */
37170char $ac_func ();
37171/* The GNU C library defines this for functions which it implements
37172 to always fail with ENOSYS. Some functions are actually named
37173 something starting with __ and the normal name is an alias. */
37174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37175choke me
37176#else
37177char (*f) () = $ac_func;
37178#endif
37179#ifdef __cplusplus
37180}
37181#endif
37182
37183int
37184main ()
37185{
37186return f != $ac_func;
37187 ;
37188 return 0;
37189}
37190_ACEOF
37191rm -f conftest.$ac_objext conftest$ac_exeext
37192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37193 (eval $ac_link) 2>conftest.er1
a848cd7e 37194 ac_status=$?
ac1cb8d3
VS
37195 grep -v '^ *+' conftest.er1 >conftest.err
37196 rm -f conftest.er1
37197 cat conftest.err >&5
a848cd7e
SC
37198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199 (exit $ac_status); } &&
ca5c6ac3 37200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202 (eval $ac_try) 2>&5
37203 ac_status=$?
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); }; } &&
37206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37208 (eval $ac_try) 2>&5
37209 ac_status=$?
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); }; }; then
37212 eval "$as_ac_var=yes"
37213else
37214 echo "$as_me: failed program was:" >&5
37215sed 's/^/| /' conftest.$ac_ext >&5
37216
37217eval "$as_ac_var=no"
37218fi
ac1cb8d3
VS
37219rm -f conftest.err conftest.$ac_objext \
37220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37221fi
37222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37224if test `eval echo '${'$as_ac_var'}'` = yes; then
37225 cat >>confdefs.h <<_ACEOF
37226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37227_ACEOF
37228 break
37229fi
37230done
37231
37232
37233HAVE_SOME_SLEEP_FUNC=0
37234if test "$USE_BEOS" = 1; then
37235 cat >>confdefs.h <<\_ACEOF
37236#define HAVE_SLEEP 1
37237_ACEOF
37238
37239 HAVE_SOME_SLEEP_FUNC=1
37240fi
37241
37242if test "$USE_DARWIN" = 1; then
37243 cat >>confdefs.h <<\_ACEOF
37244#define HAVE_USLEEP 1
37245_ACEOF
37246
37247 HAVE_SOME_SLEEP_FUNC=1
37248fi
37249
37250if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37251 POSIX4_LINK=
37252
37253for ac_func in nanosleep
37254do
37255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37256echo "$as_me:$LINENO: checking for $ac_func" >&5
37257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37258if eval "test \"\${$as_ac_var+set}\" = set"; then
37259 echo $ECHO_N "(cached) $ECHO_C" >&6
37260else
37261 cat >conftest.$ac_ext <<_ACEOF
37262/* confdefs.h. */
37263_ACEOF
37264cat confdefs.h >>conftest.$ac_ext
37265cat >>conftest.$ac_ext <<_ACEOF
37266/* end confdefs.h. */
ac1cb8d3
VS
37267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37269#define $ac_func innocuous_$ac_func
37270
a848cd7e
SC
37271/* System header to define __stub macros and hopefully few prototypes,
37272 which can conflict with char $ac_func (); below.
37273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37274 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37275
a848cd7e
SC
37276#ifdef __STDC__
37277# include <limits.h>
37278#else
37279# include <assert.h>
37280#endif
ac1cb8d3
VS
37281
37282#undef $ac_func
37283
a848cd7e
SC
37284/* Override any gcc2 internal prototype to avoid an error. */
37285#ifdef __cplusplus
37286extern "C"
37287{
37288#endif
37289/* We use char because int might match the return type of a gcc2
37290 builtin and then its argument prototype would still apply. */
37291char $ac_func ();
37292/* The GNU C library defines this for functions which it implements
37293 to always fail with ENOSYS. Some functions are actually named
37294 something starting with __ and the normal name is an alias. */
37295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37296choke me
37297#else
37298char (*f) () = $ac_func;
37299#endif
37300#ifdef __cplusplus
37301}
37302#endif
37303
37304int
37305main ()
37306{
37307return f != $ac_func;
37308 ;
37309 return 0;
37310}
37311_ACEOF
37312rm -f conftest.$ac_objext conftest$ac_exeext
37313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37314 (eval $ac_link) 2>conftest.er1
a848cd7e 37315 ac_status=$?
ac1cb8d3
VS
37316 grep -v '^ *+' conftest.er1 >conftest.err
37317 rm -f conftest.er1
37318 cat conftest.err >&5
a848cd7e
SC
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); } &&
ca5c6ac3 37321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37323 (eval $ac_try) 2>&5
37324 ac_status=$?
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); }; } &&
37327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37329 (eval $ac_try) 2>&5
37330 ac_status=$?
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); }; }; then
37333 eval "$as_ac_var=yes"
37334else
37335 echo "$as_me: failed program was:" >&5
37336sed 's/^/| /' conftest.$ac_ext >&5
37337
37338eval "$as_ac_var=no"
37339fi
ac1cb8d3
VS
37340rm -f conftest.err conftest.$ac_objext \
37341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37342fi
37343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37345if test `eval echo '${'$as_ac_var'}'` = yes; then
37346 cat >>confdefs.h <<_ACEOF
37347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37348_ACEOF
37349 cat >>confdefs.h <<\_ACEOF
37350#define HAVE_NANOSLEEP 1
37351_ACEOF
37352
37353else
37354
37355 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37356echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37357if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37358 echo $ECHO_N "(cached) $ECHO_C" >&6
37359else
37360 ac_check_lib_save_LIBS=$LIBS
37361LIBS="-lposix4 $LIBS"
37362cat >conftest.$ac_ext <<_ACEOF
37363/* confdefs.h. */
37364_ACEOF
37365cat confdefs.h >>conftest.$ac_ext
37366cat >>conftest.$ac_ext <<_ACEOF
37367/* end confdefs.h. */
37368
37369/* Override any gcc2 internal prototype to avoid an error. */
37370#ifdef __cplusplus
37371extern "C"
37372#endif
37373/* We use char because int might match the return type of a gcc2
37374 builtin and then its argument prototype would still apply. */
37375char nanosleep ();
37376int
37377main ()
37378{
37379nanosleep ();
37380 ;
37381 return 0;
37382}
37383_ACEOF
37384rm -f conftest.$ac_objext conftest$ac_exeext
37385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37386 (eval $ac_link) 2>conftest.er1
a848cd7e 37387 ac_status=$?
ac1cb8d3
VS
37388 grep -v '^ *+' conftest.er1 >conftest.err
37389 rm -f conftest.er1
37390 cat conftest.err >&5
a848cd7e
SC
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); } &&
ca5c6ac3 37393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395 (eval $ac_try) 2>&5
37396 ac_status=$?
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); }; } &&
37399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401 (eval $ac_try) 2>&5
37402 ac_status=$?
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); }; }; then
37405 ac_cv_lib_posix4_nanosleep=yes
37406else
37407 echo "$as_me: failed program was:" >&5
37408sed 's/^/| /' conftest.$ac_ext >&5
37409
37410ac_cv_lib_posix4_nanosleep=no
37411fi
ac1cb8d3
VS
37412rm -f conftest.err conftest.$ac_objext \
37413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37414LIBS=$ac_check_lib_save_LIBS
37415fi
37416echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37417echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37418if test $ac_cv_lib_posix4_nanosleep = yes; then
37419
37420 cat >>confdefs.h <<\_ACEOF
37421#define HAVE_NANOSLEEP 1
37422_ACEOF
37423
37424 POSIX4_LINK=" -lposix4"
37425
37426else
37427
37428
37429for ac_func in usleep
37430do
37431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37432echo "$as_me:$LINENO: checking for $ac_func" >&5
37433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37434if eval "test \"\${$as_ac_var+set}\" = set"; then
37435 echo $ECHO_N "(cached) $ECHO_C" >&6
37436else
37437 cat >conftest.$ac_ext <<_ACEOF
37438/* confdefs.h. */
37439_ACEOF
37440cat confdefs.h >>conftest.$ac_ext
37441cat >>conftest.$ac_ext <<_ACEOF
37442/* end confdefs.h. */
ac1cb8d3
VS
37443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37445#define $ac_func innocuous_$ac_func
37446
a848cd7e
SC
37447/* System header to define __stub macros and hopefully few prototypes,
37448 which can conflict with char $ac_func (); below.
37449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37451
a848cd7e
SC
37452#ifdef __STDC__
37453# include <limits.h>
37454#else
37455# include <assert.h>
37456#endif
ac1cb8d3
VS
37457
37458#undef $ac_func
37459
a848cd7e
SC
37460/* Override any gcc2 internal prototype to avoid an error. */
37461#ifdef __cplusplus
37462extern "C"
37463{
37464#endif
37465/* We use char because int might match the return type of a gcc2
37466 builtin and then its argument prototype would still apply. */
37467char $ac_func ();
37468/* The GNU C library defines this for functions which it implements
37469 to always fail with ENOSYS. Some functions are actually named
37470 something starting with __ and the normal name is an alias. */
37471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37472choke me
37473#else
37474char (*f) () = $ac_func;
37475#endif
37476#ifdef __cplusplus
37477}
37478#endif
37479
37480int
37481main ()
37482{
37483return f != $ac_func;
37484 ;
37485 return 0;
37486}
37487_ACEOF
37488rm -f conftest.$ac_objext conftest$ac_exeext
37489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37490 (eval $ac_link) 2>conftest.er1
a848cd7e 37491 ac_status=$?
ac1cb8d3
VS
37492 grep -v '^ *+' conftest.er1 >conftest.err
37493 rm -f conftest.er1
37494 cat conftest.err >&5
a848cd7e
SC
37495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496 (exit $ac_status); } &&
ca5c6ac3 37497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37499 (eval $ac_try) 2>&5
37500 ac_status=$?
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); }; } &&
37503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37505 (eval $ac_try) 2>&5
37506 ac_status=$?
37507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508 (exit $ac_status); }; }; then
37509 eval "$as_ac_var=yes"
37510else
37511 echo "$as_me: failed program was:" >&5
37512sed 's/^/| /' conftest.$ac_ext >&5
37513
37514eval "$as_ac_var=no"
37515fi
ac1cb8d3
VS
37516rm -f conftest.err conftest.$ac_objext \
37517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37518fi
37519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37521if test `eval echo '${'$as_ac_var'}'` = yes; then
37522 cat >>confdefs.h <<_ACEOF
37523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37524_ACEOF
37525 cat >>confdefs.h <<\_ACEOF
37526#define HAVE_USLEEP 1
37527_ACEOF
37528
37529else
37530 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37531echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37532
37533fi
37534done
37535
37536
37537
37538fi
37539
37540
37541
37542fi
37543done
37544
37545fi
37546
37547
37548
37549for ac_func in uname gethostname
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); } &&
ca5c6ac3 37617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37619 (eval $ac_try) 2>&5
37620 ac_status=$?
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); }; } &&
37623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37625 (eval $ac_try) 2>&5
37626 ac_status=$?
37627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628 (exit $ac_status); }; }; then
37629 eval "$as_ac_var=yes"
37630else
37631 echo "$as_me: failed program was:" >&5
37632sed 's/^/| /' conftest.$ac_ext >&5
37633
37634eval "$as_ac_var=no"
37635fi
ac1cb8d3
VS
37636rm -f conftest.err conftest.$ac_objext \
37637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37638fi
37639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37641if test `eval echo '${'$as_ac_var'}'` = yes; then
37642 cat >>confdefs.h <<_ACEOF
37643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37644_ACEOF
37645 break
37646fi
37647done
37648
37649
56632e81
MW
37650
37651 for wx_func in strtok_r
37652 do
37653 echo "$as_me:$LINENO: checking for $wx_func" >&5
37654echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37655if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37656 echo $ECHO_N "(cached) $ECHO_C" >&6
37657else
56632e81
MW
37658
37659 cat >conftest.$ac_ext <<_ACEOF
37660
37661 /* confdefs.h. */
a848cd7e
SC
37662_ACEOF
37663cat confdefs.h >>conftest.$ac_ext
37664cat >>conftest.$ac_ext <<_ACEOF
37665/* end confdefs.h. */
56632e81
MW
37666
37667 #define _REENTRANT
37668 $ac_includes_default
37669
a848cd7e
SC
37670int
37671main ()
37672{
56632e81
MW
37673
37674 #ifndef $wx_func
37675 &$wx_func;
37676 #endif
37677
5acfd58d 37678
a848cd7e
SC
37679 ;
37680 return 0;
37681}
56632e81 37682
a848cd7e 37683_ACEOF
56632e81
MW
37684rm -f conftest.$ac_objext conftest$ac_exeext
37685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37686 (eval $ac_link) 2>conftest.er1
a848cd7e 37687 ac_status=$?
ac1cb8d3
VS
37688 grep -v '^ *+' conftest.er1 >conftest.err
37689 rm -f conftest.er1
37690 cat conftest.err >&5
a848cd7e
SC
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); } &&
ca5c6ac3 37693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37695 (eval $ac_try) 2>&5
37696 ac_status=$?
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); }; } &&
56632e81 37699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37701 (eval $ac_try) 2>&5
37702 ac_status=$?
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); }; }; then
56632e81 37705 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37706else
37707 echo "$as_me: failed program was:" >&5
37708sed 's/^/| /' conftest.$ac_ext >&5
37709
56632e81 37710eval wx_cv_func_$wx_func=no
a848cd7e 37711fi
56632e81
MW
37712rm -f conftest.err conftest.$ac_objext \
37713 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37714
56632e81
MW
37715fi
37716echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37717echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 37718
56632e81
MW
37719 if eval test \$wx_cv_func_$wx_func = yes
37720 then
37721 cat >>confdefs.h <<_ACEOF
37722#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
37723_ACEOF
37724
37725
56632e81
MW
37726 else
37727 :
5acfd58d 37728
56632e81
MW
37729 fi
37730 done
5acfd58d 37731
a848cd7e 37732
a848cd7e
SC
37733INET_LINK=
37734
37735for ac_func in inet_addr
37736do
37737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37738echo "$as_me:$LINENO: checking for $ac_func" >&5
37739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37740if eval "test \"\${$as_ac_var+set}\" = set"; then
37741 echo $ECHO_N "(cached) $ECHO_C" >&6
37742else
37743 cat >conftest.$ac_ext <<_ACEOF
37744/* confdefs.h. */
37745_ACEOF
37746cat confdefs.h >>conftest.$ac_ext
37747cat >>conftest.$ac_ext <<_ACEOF
37748/* end confdefs.h. */
ac1cb8d3
VS
37749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37751#define $ac_func innocuous_$ac_func
37752
a848cd7e
SC
37753/* System header to define __stub macros and hopefully few prototypes,
37754 which can conflict with char $ac_func (); below.
37755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37756 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37757
a848cd7e
SC
37758#ifdef __STDC__
37759# include <limits.h>
37760#else
37761# include <assert.h>
37762#endif
ac1cb8d3
VS
37763
37764#undef $ac_func
37765
a848cd7e
SC
37766/* Override any gcc2 internal prototype to avoid an error. */
37767#ifdef __cplusplus
37768extern "C"
37769{
37770#endif
37771/* We use char because int might match the return type of a gcc2
37772 builtin and then its argument prototype would still apply. */
37773char $ac_func ();
37774/* The GNU C library defines this for functions which it implements
37775 to always fail with ENOSYS. Some functions are actually named
37776 something starting with __ and the normal name is an alias. */
37777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37778choke me
37779#else
37780char (*f) () = $ac_func;
37781#endif
37782#ifdef __cplusplus
37783}
37784#endif
37785
37786int
37787main ()
37788{
37789return f != $ac_func;
37790 ;
37791 return 0;
37792}
37793_ACEOF
37794rm -f conftest.$ac_objext conftest$ac_exeext
37795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37796 (eval $ac_link) 2>conftest.er1
a848cd7e 37797 ac_status=$?
ac1cb8d3
VS
37798 grep -v '^ *+' conftest.er1 >conftest.err
37799 rm -f conftest.er1
37800 cat conftest.err >&5
a848cd7e
SC
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); } &&
ca5c6ac3 37803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37805 (eval $ac_try) 2>&5
37806 ac_status=$?
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); }; } &&
37809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811 (eval $ac_try) 2>&5
37812 ac_status=$?
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); }; }; then
37815 eval "$as_ac_var=yes"
37816else
37817 echo "$as_me: failed program was:" >&5
37818sed 's/^/| /' conftest.$ac_ext >&5
37819
37820eval "$as_ac_var=no"
37821fi
ac1cb8d3
VS
37822rm -f conftest.err conftest.$ac_objext \
37823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37824fi
37825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37827if test `eval echo '${'$as_ac_var'}'` = yes; then
37828 cat >>confdefs.h <<_ACEOF
37829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37830_ACEOF
37831 cat >>confdefs.h <<\_ACEOF
37832#define HAVE_INET_ADDR 1
37833_ACEOF
37834
37835else
37836
37837 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37838echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37839if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37840 echo $ECHO_N "(cached) $ECHO_C" >&6
37841else
37842 ac_check_lib_save_LIBS=$LIBS
37843LIBS="-lnsl $LIBS"
37844cat >conftest.$ac_ext <<_ACEOF
37845/* confdefs.h. */
37846_ACEOF
37847cat confdefs.h >>conftest.$ac_ext
37848cat >>conftest.$ac_ext <<_ACEOF
37849/* end confdefs.h. */
37850
37851/* Override any gcc2 internal prototype to avoid an error. */
37852#ifdef __cplusplus
37853extern "C"
37854#endif
37855/* We use char because int might match the return type of a gcc2
37856 builtin and then its argument prototype would still apply. */
37857char inet_addr ();
37858int
37859main ()
37860{
37861inet_addr ();
37862 ;
37863 return 0;
37864}
37865_ACEOF
37866rm -f conftest.$ac_objext conftest$ac_exeext
37867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37868 (eval $ac_link) 2>conftest.er1
a848cd7e 37869 ac_status=$?
ac1cb8d3
VS
37870 grep -v '^ *+' conftest.er1 >conftest.err
37871 rm -f conftest.er1
37872 cat conftest.err >&5
a848cd7e
SC
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); } &&
ca5c6ac3 37875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877 (eval $ac_try) 2>&5
37878 ac_status=$?
37879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; } &&
37881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883 (eval $ac_try) 2>&5
37884 ac_status=$?
37885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); }; }; then
37887 ac_cv_lib_nsl_inet_addr=yes
37888else
37889 echo "$as_me: failed program was:" >&5
37890sed 's/^/| /' conftest.$ac_ext >&5
37891
37892ac_cv_lib_nsl_inet_addr=no
37893fi
ac1cb8d3
VS
37894rm -f conftest.err conftest.$ac_objext \
37895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37896LIBS=$ac_check_lib_save_LIBS
37897fi
37898echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37899echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37900if test $ac_cv_lib_nsl_inet_addr = yes; then
37901 INET_LINK="nsl"
37902else
37903
37904 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37905echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37906if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37907 echo $ECHO_N "(cached) $ECHO_C" >&6
37908else
37909 ac_check_lib_save_LIBS=$LIBS
37910LIBS="-lresolv $LIBS"
37911cat >conftest.$ac_ext <<_ACEOF
37912/* confdefs.h. */
37913_ACEOF
37914cat confdefs.h >>conftest.$ac_ext
37915cat >>conftest.$ac_ext <<_ACEOF
37916/* end confdefs.h. */
37917
37918/* Override any gcc2 internal prototype to avoid an error. */
37919#ifdef __cplusplus
37920extern "C"
37921#endif
37922/* We use char because int might match the return type of a gcc2
37923 builtin and then its argument prototype would still apply. */
37924char inet_addr ();
37925int
37926main ()
37927{
37928inet_addr ();
37929 ;
37930 return 0;
37931}
37932_ACEOF
37933rm -f conftest.$ac_objext conftest$ac_exeext
37934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37935 (eval $ac_link) 2>conftest.er1
a848cd7e 37936 ac_status=$?
ac1cb8d3
VS
37937 grep -v '^ *+' conftest.er1 >conftest.err
37938 rm -f conftest.er1
37939 cat conftest.err >&5
a848cd7e
SC
37940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941 (exit $ac_status); } &&
ca5c6ac3 37942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37944 (eval $ac_try) 2>&5
37945 ac_status=$?
37946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37947 (exit $ac_status); }; } &&
37948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37950 (eval $ac_try) 2>&5
37951 ac_status=$?
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); }; }; then
37954 ac_cv_lib_resolv_inet_addr=yes
37955else
37956 echo "$as_me: failed program was:" >&5
37957sed 's/^/| /' conftest.$ac_ext >&5
37958
37959ac_cv_lib_resolv_inet_addr=no
37960fi
ac1cb8d3
VS
37961rm -f conftest.err conftest.$ac_objext \
37962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37963LIBS=$ac_check_lib_save_LIBS
37964fi
37965echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37966echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37967if test $ac_cv_lib_resolv_inet_addr = yes; then
37968 INET_LINK="resolv"
37969else
37970
37971 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37972echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37973if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37974 echo $ECHO_N "(cached) $ECHO_C" >&6
37975else
37976 ac_check_lib_save_LIBS=$LIBS
37977LIBS="-lsocket $LIBS"
37978cat >conftest.$ac_ext <<_ACEOF
37979/* confdefs.h. */
37980_ACEOF
37981cat confdefs.h >>conftest.$ac_ext
37982cat >>conftest.$ac_ext <<_ACEOF
37983/* end confdefs.h. */
37984
37985/* Override any gcc2 internal prototype to avoid an error. */
37986#ifdef __cplusplus
37987extern "C"
37988#endif
37989/* We use char because int might match the return type of a gcc2
37990 builtin and then its argument prototype would still apply. */
37991char inet_addr ();
37992int
37993main ()
37994{
37995inet_addr ();
37996 ;
37997 return 0;
37998}
37999_ACEOF
38000rm -f conftest.$ac_objext conftest$ac_exeext
38001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38002 (eval $ac_link) 2>conftest.er1
a848cd7e 38003 ac_status=$?
ac1cb8d3
VS
38004 grep -v '^ *+' conftest.er1 >conftest.err
38005 rm -f conftest.er1
38006 cat conftest.err >&5
a848cd7e
SC
38007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008 (exit $ac_status); } &&
ca5c6ac3 38009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38011 (eval $ac_try) 2>&5
38012 ac_status=$?
38013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014 (exit $ac_status); }; } &&
38015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38017 (eval $ac_try) 2>&5
38018 ac_status=$?
38019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); }; }; then
38021 ac_cv_lib_socket_inet_addr=yes
38022else
38023 echo "$as_me: failed program was:" >&5
38024sed 's/^/| /' conftest.$ac_ext >&5
38025
38026ac_cv_lib_socket_inet_addr=no
38027fi
ac1cb8d3
VS
38028rm -f conftest.err conftest.$ac_objext \
38029 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38030LIBS=$ac_check_lib_save_LIBS
38031fi
38032echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38033echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38034if test $ac_cv_lib_socket_inet_addr = yes; then
38035 INET_LINK="socket"
38036
38037fi
38038
38039
38040
38041fi
38042
38043
38044
38045fi
38046
38047
38048
38049fi
38050done
38051
38052
38053
38054for ac_func in inet_aton
38055do
38056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38057echo "$as_me:$LINENO: checking for $ac_func" >&5
38058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38059if eval "test \"\${$as_ac_var+set}\" = set"; then
38060 echo $ECHO_N "(cached) $ECHO_C" >&6
38061else
38062 cat >conftest.$ac_ext <<_ACEOF
38063/* confdefs.h. */
38064_ACEOF
38065cat confdefs.h >>conftest.$ac_ext
38066cat >>conftest.$ac_ext <<_ACEOF
38067/* end confdefs.h. */
ac1cb8d3
VS
38068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38070#define $ac_func innocuous_$ac_func
38071
a848cd7e
SC
38072/* System header to define __stub macros and hopefully few prototypes,
38073 which can conflict with char $ac_func (); below.
38074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38076
a848cd7e
SC
38077#ifdef __STDC__
38078# include <limits.h>
38079#else
38080# include <assert.h>
38081#endif
ac1cb8d3
VS
38082
38083#undef $ac_func
38084
a848cd7e
SC
38085/* Override any gcc2 internal prototype to avoid an error. */
38086#ifdef __cplusplus
38087extern "C"
38088{
38089#endif
38090/* We use char because int might match the return type of a gcc2
38091 builtin and then its argument prototype would still apply. */
38092char $ac_func ();
38093/* The GNU C library defines this for functions which it implements
38094 to always fail with ENOSYS. Some functions are actually named
38095 something starting with __ and the normal name is an alias. */
38096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38097choke me
38098#else
38099char (*f) () = $ac_func;
38100#endif
38101#ifdef __cplusplus
38102}
38103#endif
38104
38105int
38106main ()
38107{
38108return f != $ac_func;
38109 ;
38110 return 0;
38111}
38112_ACEOF
38113rm -f conftest.$ac_objext conftest$ac_exeext
38114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38115 (eval $ac_link) 2>conftest.er1
a848cd7e 38116 ac_status=$?
ac1cb8d3
VS
38117 grep -v '^ *+' conftest.er1 >conftest.err
38118 rm -f conftest.er1
38119 cat conftest.err >&5
a848cd7e
SC
38120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); } &&
ca5c6ac3 38122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38124 (eval $ac_try) 2>&5
38125 ac_status=$?
38126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38127 (exit $ac_status); }; } &&
38128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38130 (eval $ac_try) 2>&5
38131 ac_status=$?
38132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38133 (exit $ac_status); }; }; then
38134 eval "$as_ac_var=yes"
38135else
38136 echo "$as_me: failed program was:" >&5
38137sed 's/^/| /' conftest.$ac_ext >&5
38138
38139eval "$as_ac_var=no"
38140fi
ac1cb8d3
VS
38141rm -f conftest.err conftest.$ac_objext \
38142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38143fi
38144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38146if test `eval echo '${'$as_ac_var'}'` = yes; then
38147 cat >>confdefs.h <<_ACEOF
38148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38149_ACEOF
38150 cat >>confdefs.h <<\_ACEOF
38151#define HAVE_INET_ATON 1
38152_ACEOF
38153
38154else
38155
38156 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38157echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38158echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38159if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38160 echo $ECHO_N "(cached) $ECHO_C" >&6
38161else
38162 ac_check_lib_save_LIBS=$LIBS
38163LIBS="-l$INET_LINK $LIBS"
38164cat >conftest.$ac_ext <<_ACEOF
38165/* confdefs.h. */
38166_ACEOF
38167cat confdefs.h >>conftest.$ac_ext
38168cat >>conftest.$ac_ext <<_ACEOF
38169/* end confdefs.h. */
38170
38171/* Override any gcc2 internal prototype to avoid an error. */
38172#ifdef __cplusplus
38173extern "C"
38174#endif
38175/* We use char because int might match the return type of a gcc2
38176 builtin and then its argument prototype would still apply. */
38177char inet_aton ();
38178int
38179main ()
38180{
38181inet_aton ();
38182 ;
38183 return 0;
38184}
38185_ACEOF
38186rm -f conftest.$ac_objext conftest$ac_exeext
38187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38188 (eval $ac_link) 2>conftest.er1
a848cd7e 38189 ac_status=$?
ac1cb8d3
VS
38190 grep -v '^ *+' conftest.er1 >conftest.err
38191 rm -f conftest.er1
38192 cat conftest.err >&5
a848cd7e
SC
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); } &&
ca5c6ac3 38195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38197 (eval $ac_try) 2>&5
38198 ac_status=$?
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); }; } &&
38201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203 (eval $ac_try) 2>&5
38204 ac_status=$?
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); }; }; then
38207 eval "$as_ac_Lib=yes"
38208else
38209 echo "$as_me: failed program was:" >&5
38210sed 's/^/| /' conftest.$ac_ext >&5
38211
38212eval "$as_ac_Lib=no"
38213fi
ac1cb8d3
VS
38214rm -f conftest.err conftest.$ac_objext \
38215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38216LIBS=$ac_check_lib_save_LIBS
38217fi
38218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38219echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38220if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38221 cat >>confdefs.h <<\_ACEOF
38222#define HAVE_INET_ATON 1
38223_ACEOF
38224
38225fi
38226
38227
38228fi
38229done
38230
38231
38232if test "x$INET_LINK" != "x"; then
38233 cat >>confdefs.h <<\_ACEOF
38234#define HAVE_INET_ADDR 1
38235_ACEOF
38236
38237 INET_LINK=" -l$INET_LINK"
38238fi
38239
38240fi
38241
38242
38243
38244EXTRALIBS_ESD=
38245echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38246echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38247if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38248 echo $ECHO_N "(cached) $ECHO_C" >&6
38249else
38250 ac_check_lib_save_LIBS=$LIBS
38251LIBS="-lesd $LIBS"
38252cat >conftest.$ac_ext <<_ACEOF
38253/* confdefs.h. */
38254_ACEOF
38255cat confdefs.h >>conftest.$ac_ext
38256cat >>conftest.$ac_ext <<_ACEOF
38257/* end confdefs.h. */
38258
38259/* Override any gcc2 internal prototype to avoid an error. */
38260#ifdef __cplusplus
38261extern "C"
38262#endif
38263/* We use char because int might match the return type of a gcc2
38264 builtin and then its argument prototype would still apply. */
38265char esd_close ();
38266int
38267main ()
38268{
38269esd_close ();
38270 ;
38271 return 0;
38272}
38273_ACEOF
38274rm -f conftest.$ac_objext conftest$ac_exeext
38275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38276 (eval $ac_link) 2>conftest.er1
a848cd7e 38277 ac_status=$?
ac1cb8d3
VS
38278 grep -v '^ *+' conftest.er1 >conftest.err
38279 rm -f conftest.er1
38280 cat conftest.err >&5
a848cd7e
SC
38281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282 (exit $ac_status); } &&
ca5c6ac3 38283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285 (eval $ac_try) 2>&5
38286 ac_status=$?
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); }; } &&
38289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38292 ac_status=$?
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; }; then
38295 ac_cv_lib_esd_esd_close=yes
38296else
38297 echo "$as_me: failed program was:" >&5
38298sed 's/^/| /' conftest.$ac_ext >&5
38299
38300ac_cv_lib_esd_esd_close=no
38301fi
ac1cb8d3
VS
38302rm -f conftest.err conftest.$ac_objext \
38303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38304LIBS=$ac_check_lib_save_LIBS
38305fi
38306echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38307echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38308if test $ac_cv_lib_esd_esd_close = yes; then
38309
38310
38311for ac_header in esd.h
38312do
38313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38314if eval "test \"\${$as_ac_Header+set}\" = set"; then
38315 echo "$as_me:$LINENO: checking for $ac_header" >&5
38316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38317if eval "test \"\${$as_ac_Header+set}\" = set"; then
38318 echo $ECHO_N "(cached) $ECHO_C" >&6
38319fi
38320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38322else
38323 # Is the header compilable?
38324echo "$as_me:$LINENO: checking $ac_header usability" >&5
38325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38326cat >conftest.$ac_ext <<_ACEOF
38327/* confdefs.h. */
38328_ACEOF
38329cat confdefs.h >>conftest.$ac_ext
38330cat >>conftest.$ac_ext <<_ACEOF
38331/* end confdefs.h. */
38332$ac_includes_default
38333#include <$ac_header>
38334_ACEOF
38335rm -f conftest.$ac_objext
38336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38337 (eval $ac_compile) 2>conftest.er1
a848cd7e 38338 ac_status=$?
ac1cb8d3
VS
38339 grep -v '^ *+' conftest.er1 >conftest.err
38340 rm -f conftest.er1
38341 cat conftest.err >&5
a848cd7e
SC
38342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343 (exit $ac_status); } &&
ca5c6ac3 38344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38346 (eval $ac_try) 2>&5
38347 ac_status=$?
38348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); }; } &&
38350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38352 (eval $ac_try) 2>&5
38353 ac_status=$?
38354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355 (exit $ac_status); }; }; then
38356 ac_header_compiler=yes
38357else
38358 echo "$as_me: failed program was:" >&5
38359sed 's/^/| /' conftest.$ac_ext >&5
38360
38361ac_header_compiler=no
38362fi
ac1cb8d3 38363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38364echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38365echo "${ECHO_T}$ac_header_compiler" >&6
38366
38367# Is the header present?
38368echo "$as_me:$LINENO: checking $ac_header presence" >&5
38369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38370cat >conftest.$ac_ext <<_ACEOF
38371/* confdefs.h. */
38372_ACEOF
38373cat confdefs.h >>conftest.$ac_ext
38374cat >>conftest.$ac_ext <<_ACEOF
38375/* end confdefs.h. */
38376#include <$ac_header>
38377_ACEOF
38378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38380 ac_status=$?
38381 grep -v '^ *+' conftest.er1 >conftest.err
38382 rm -f conftest.er1
38383 cat conftest.err >&5
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); } >/dev/null; then
38386 if test -s conftest.err; then
5d7b7554
VZ
38387 ac_cpp_err=$ac_cxx_preproc_warn_flag
38388 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38389 else
38390 ac_cpp_err=
38391 fi
38392else
38393 ac_cpp_err=yes
38394fi
38395if test -z "$ac_cpp_err"; then
38396 ac_header_preproc=yes
38397else
38398 echo "$as_me: failed program was:" >&5
38399sed 's/^/| /' conftest.$ac_ext >&5
38400
38401 ac_header_preproc=no
38402fi
38403rm -f conftest.err conftest.$ac_ext
38404echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38405echo "${ECHO_T}$ac_header_preproc" >&6
38406
38407# So? What about this header?
5d7b7554 38408case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38409 yes:no: )
a848cd7e
SC
38410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38411echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38413echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38414 ac_header_preproc=yes
a848cd7e 38415 ;;
ac1cb8d3 38416 no:yes:* )
a848cd7e
SC
38417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38418echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38420echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38422echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38424echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38426echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38428echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38429 (
38430 cat <<\_ASBOX
ac1cb8d3
VS
38431## ----------------------------------------- ##
38432## Report this to wx-dev@lists.wxwidgets.org ##
38433## ----------------------------------------- ##
a848cd7e
SC
38434_ASBOX
38435 ) |
38436 sed "s/^/$as_me: WARNING: /" >&2
38437 ;;
38438esac
38439echo "$as_me:$LINENO: checking for $ac_header" >&5
38440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38441if eval "test \"\${$as_ac_Header+set}\" = set"; then
38442 echo $ECHO_N "(cached) $ECHO_C" >&6
38443else
ac1cb8d3 38444 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38445fi
38446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38448
38449fi
38450if test `eval echo '${'$as_ac_Header'}'` = yes; then
38451 cat >>confdefs.h <<_ACEOF
38452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38453_ACEOF
38454
38455 EXTRALIBS_ESD="-lesd"
38456
38457fi
38458
38459done
38460
38461
38462fi
38463
38464
38465
38466echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38467echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38468cat >conftest.$ac_ext <<_ACEOF
38469/* confdefs.h. */
38470_ACEOF
38471cat confdefs.h >>conftest.$ac_ext
38472cat >>conftest.$ac_ext <<_ACEOF
38473/* end confdefs.h. */
38474#ifdef __linux__
38475 #include <linux/cdrom.h>
38476 #else
38477 /* For Solaris */
38478 #include <sys/cdio.h>
38479 #endif
38480
38481int
38482main ()
38483{
38484struct cdrom_tocentry entry, old_entry;
38485 ;
38486 return 0;
38487}
38488_ACEOF
38489rm -f conftest.$ac_objext
38490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38491 (eval $ac_compile) 2>conftest.er1
a848cd7e 38492 ac_status=$?
ac1cb8d3
VS
38493 grep -v '^ *+' conftest.er1 >conftest.err
38494 rm -f conftest.er1
38495 cat conftest.err >&5
a848cd7e
SC
38496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38497 (exit $ac_status); } &&
ca5c6ac3 38498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38500 (eval $ac_try) 2>&5
38501 ac_status=$?
38502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38503 (exit $ac_status); }; } &&
38504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506 (eval $ac_try) 2>&5
38507 ac_status=$?
38508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); }; }; then
38510 echo "$as_me:$LINENO: result: yes" >&5
38511echo "${ECHO_T}yes" >&6
38512 cat >>confdefs.h <<\_ACEOF
38513#define HAVE_KNOWN_CDROM_INTERFACE 1
38514_ACEOF
38515
38516else
38517 echo "$as_me: failed program was:" >&5
38518sed 's/^/| /' conftest.$ac_ext >&5
38519
38520echo "$as_me:$LINENO: result: no" >&5
38521echo "${ECHO_T}no" >&6
38522fi
ac1cb8d3 38523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38524
38525
38526cat >confcache <<\_ACEOF
38527# This file is a shell script that caches the results of configure
38528# tests run on this system so they can be shared between configure
38529# scripts and configure runs, see configure's option --config-cache.
38530# It is not useful on other systems. If it contains results you don't
38531# want to keep, you may remove or edit it.
38532#
38533# config.status only pays attention to the cache file if you give it
38534# the --recheck option to rerun configure.
38535#
38536# `ac_cv_env_foo' variables (set or unset) will be overridden when
38537# loading this file, other *unset* `ac_cv_foo' will be assigned the
38538# following values.
38539
38540_ACEOF
38541
38542# The following way of writing the cache mishandles newlines in values,
38543# but we know of no workaround that is simple, portable, and efficient.
38544# So, don't put newlines in cache variables' values.
38545# Ultrix sh set writes to stderr and can't be redirected directly,
38546# and sets the high bit in the cache file unless we assign to the vars.
38547{
38548 (set) 2>&1 |
38549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38550 *ac_space=\ *)
38551 # `set' does not quote correctly, so add quotes (double-quote
38552 # substitution turns \\\\ into \\, and sed turns \\ into \).
38553 sed -n \
ac1cb8d3
VS
38554 "s/'/'\\\\''/g;
38555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38556 ;;
38557 *)
38558 # `set' quotes correctly as required by POSIX, so do not add quotes.
38559 sed -n \
ac1cb8d3 38560 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38561 ;;
38562 esac;
38563} |
38564 sed '
38565 t clear
38566 : clear
38567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38568 t end
38569 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38570 : end' >>confcache
38571if diff $cache_file confcache >/dev/null 2>&1; then :; else
38572 if test -w $cache_file; then
38573 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38574 cat confcache >$cache_file
38575 else
38576 echo "not updating unwritable cache $cache_file"
38577 fi
38578fi
38579rm -f confcache
38580
38581
a848cd7e
SC
38582if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38583
38584
38585 THREADS_LINK=
e56f4f9e 38586 THREADS_CXXFLAGS=
a848cd7e
SC
38587
38588 if test "$wxUSE_THREADS" = "yes" ; then
38589 if test "$USE_BEOS" = 1; then
38590 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38591echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38592 wxUSE_THREADS="no"
38593 fi
38594 fi
38595
38596 if test "$wxUSE_THREADS" = "yes" ; then
38597
38598
38599 THREAD_OPTS="-pthread"
38600 case "${host}" in
38601 *-*-solaris2* | *-*-sunos4* )
38602 if test "x$GCC" = "xyes"; then
38603 THREAD_OPTS="-pthreads $THREAD_OPTS"
38604 else
38605 THREAD_OPTS="-mt $THREAD_OPTS"
38606 fi
38607 ;;
38608 *-*-freebsd*)
38609 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38610 ;;
38611 *-*-darwin* | *-*-cygwin* )
38612 THREAD_OPTS=""
38613 ;;
38614 *-*-aix*)
38615 THREAD_OPTS="pthreads"
38616 ;;
38617 *-hp-hpux* )
00421666
MW
38618 if test "x$GCC" = "xyes"; then
38619 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38620 THREAD_OPTS=""
38621 else
0093c2fc 38622 THREAD_OPTS="-mt"
a848cd7e
SC
38623 fi
38624 ;;
38625
38626 *-*-irix* )
38627 if test "x$GCC" = "xyes"; then
38628 THREAD_OPTS=""
38629 fi
38630 ;;
38631
38632 *-*-*UnixWare*)
38633 if test "x$GCC" != "xyes"; then
38634 THREAD_OPTS="-Ethread"
38635 fi
38636 ;;
38637 esac
38638
38639 THREAD_OPTS="$THREAD_OPTS pthread none"
38640
38641 THREADS_OK=no
38642 for flag in $THREAD_OPTS; do
38643 case $flag in
38644 none)
38645 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38646echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38647 ;;
38648
38649 -*)
38650 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38651echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38652 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38653 ;;
38654
38655 *)
38656 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38657echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38658 THREADS_LINK="-l$flag"
38659 ;;
38660 esac
38661
38662 save_LIBS="$LIBS"
e56f4f9e 38663 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38664 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38665 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38666
38667 cat >conftest.$ac_ext <<_ACEOF
38668/* confdefs.h. */
38669_ACEOF
38670cat confdefs.h >>conftest.$ac_ext
38671cat >>conftest.$ac_ext <<_ACEOF
38672/* end confdefs.h. */
38673#include <pthread.h>
38674int
38675main ()
38676{
38677pthread_create(0,0,0,0);
38678 ;
38679 return 0;
38680}
38681_ACEOF
38682rm -f conftest.$ac_objext conftest$ac_exeext
38683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38684 (eval $ac_link) 2>conftest.er1
a848cd7e 38685 ac_status=$?
ac1cb8d3
VS
38686 grep -v '^ *+' conftest.er1 >conftest.err
38687 rm -f conftest.er1
38688 cat conftest.err >&5
a848cd7e
SC
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); } &&
ca5c6ac3 38691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38693 (eval $ac_try) 2>&5
38694 ac_status=$?
38695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696 (exit $ac_status); }; } &&
38697 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38699 (eval $ac_try) 2>&5
38700 ac_status=$?
38701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38702 (exit $ac_status); }; }; then
38703 THREADS_OK=yes
38704else
38705 echo "$as_me: failed program was:" >&5
38706sed 's/^/| /' conftest.$ac_ext >&5
38707
38708fi
ac1cb8d3
VS
38709rm -f conftest.err conftest.$ac_objext \
38710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38711
38712 LIBS="$save_LIBS"
e56f4f9e 38713 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38714
38715 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38716echo "${ECHO_T}$THREADS_OK" >&6
38717 if test "x$THREADS_OK" = "xyes"; then
38718 break;
38719 fi
38720
38721 THREADS_LINK=""
e56f4f9e 38722 THREADS_CXXFLAGS=""
a848cd7e
SC
38723 done
38724
38725 if test "x$THREADS_OK" != "xyes"; then
38726 wxUSE_THREADS=no
38727 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38728echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38729 else
e56f4f9e 38730 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38731 LIBS="$THREADS_LINK $LIBS"
38732
38733 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38734echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38735 flag=no
38736 case "${host}" in
38737 *-aix*)
38738 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38739 flag="-D_THREAD_SAFE"
38740 ;;
38741 *-freebsd*)
38742 flag="-D_THREAD_SAFE"
38743 ;;
38744 *-hp-hpux* )
38745 flag="-D_REENTRANT"
38746 if test "x$GCC" != "xyes"; then
38747 flag="$flag -D_RWSTD_MULTI_THREAD"
38748 fi
38749 ;;
38750 *solaris* | alpha*-osf*)
38751 flag="-D_REENTRANT"
38752 ;;
38753 esac
38754 echo "$as_me:$LINENO: result: ${flag}" >&5
38755echo "${ECHO_T}${flag}" >&6
38756 if test "x$flag" != xno; then
e56f4f9e 38757 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38758 fi
38759
e56f4f9e 38760 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38761 fi
38762 fi
38763
38764 if test "$wxUSE_THREADS" = "yes" ; then
38765
38766for ac_func in thr_setconcurrency
38767do
38768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38769echo "$as_me:$LINENO: checking for $ac_func" >&5
38770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38771if eval "test \"\${$as_ac_var+set}\" = set"; then
38772 echo $ECHO_N "(cached) $ECHO_C" >&6
38773else
38774 cat >conftest.$ac_ext <<_ACEOF
38775/* confdefs.h. */
38776_ACEOF
38777cat confdefs.h >>conftest.$ac_ext
38778cat >>conftest.$ac_ext <<_ACEOF
38779/* end confdefs.h. */
ac1cb8d3
VS
38780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38782#define $ac_func innocuous_$ac_func
38783
a848cd7e
SC
38784/* System header to define __stub macros and hopefully few prototypes,
38785 which can conflict with char $ac_func (); below.
38786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38787 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38788
a848cd7e
SC
38789#ifdef __STDC__
38790# include <limits.h>
38791#else
38792# include <assert.h>
38793#endif
ac1cb8d3
VS
38794
38795#undef $ac_func
38796
a848cd7e
SC
38797/* Override any gcc2 internal prototype to avoid an error. */
38798#ifdef __cplusplus
38799extern "C"
38800{
38801#endif
38802/* We use char because int might match the return type of a gcc2
38803 builtin and then its argument prototype would still apply. */
38804char $ac_func ();
38805/* The GNU C library defines this for functions which it implements
38806 to always fail with ENOSYS. Some functions are actually named
38807 something starting with __ and the normal name is an alias. */
38808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38809choke me
38810#else
38811char (*f) () = $ac_func;
38812#endif
38813#ifdef __cplusplus
38814}
38815#endif
38816
38817int
38818main ()
38819{
38820return f != $ac_func;
38821 ;
38822 return 0;
38823}
38824_ACEOF
38825rm -f conftest.$ac_objext conftest$ac_exeext
38826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38827 (eval $ac_link) 2>conftest.er1
a848cd7e 38828 ac_status=$?
ac1cb8d3
VS
38829 grep -v '^ *+' conftest.er1 >conftest.err
38830 rm -f conftest.er1
38831 cat conftest.err >&5
a848cd7e
SC
38832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833 (exit $ac_status); } &&
ca5c6ac3 38834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38836 (eval $ac_try) 2>&5
38837 ac_status=$?
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); }; } &&
38840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38842 (eval $ac_try) 2>&5
38843 ac_status=$?
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); }; }; then
38846 eval "$as_ac_var=yes"
38847else
38848 echo "$as_me: failed program was:" >&5
38849sed 's/^/| /' conftest.$ac_ext >&5
38850
38851eval "$as_ac_var=no"
38852fi
ac1cb8d3
VS
38853rm -f conftest.err conftest.$ac_objext \
38854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38855fi
38856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38858if test `eval echo '${'$as_ac_var'}'` = yes; then
38859 cat >>confdefs.h <<_ACEOF
38860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38861_ACEOF
38862
38863fi
38864done
38865
38866
6ebeb4c7
VZ
38867 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38868echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38869if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38870 echo $ECHO_N "(cached) $ECHO_C" >&6
38871else
38872
38873 cat >conftest.$ac_ext <<_ACEOF
38874/* confdefs.h. */
38875_ACEOF
38876cat confdefs.h >>conftest.$ac_ext
38877cat >>conftest.$ac_ext <<_ACEOF
38878/* end confdefs.h. */
38879#include <pthread.h>
38880 void ThreadCleanupFunc(void *p);
38881
38882int
38883main ()
38884{
38885
38886 void *p;
38887 pthread_cleanup_push(ThreadCleanupFunc, p);
38888 pthread_cleanup_pop(0);
38889
38890 ;
38891 return 0;
38892}
38893_ACEOF
38894rm -f conftest.$ac_objext
38895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38896 (eval $ac_compile) 2>conftest.er1
38897 ac_status=$?
38898 grep -v '^ *+' conftest.er1 >conftest.err
38899 rm -f conftest.er1
38900 cat conftest.err >&5
38901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); } &&
ca5c6ac3 38903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38905 (eval $ac_try) 2>&5
38906 ac_status=$?
38907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908 (exit $ac_status); }; } &&
38909 { ac_try='test -s conftest.$ac_objext'
38910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911 (eval $ac_try) 2>&5
38912 ac_status=$?
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); }; }; then
38915
38916 wx_cv_func_pthread_cleanup=yes
38917
38918else
38919 echo "$as_me: failed program was:" >&5
38920sed 's/^/| /' conftest.$ac_ext >&5
38921
38922
38923 wx_cv_func_pthread_cleanup=no
38924
38925
38926fi
38927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38928
38929fi
38930echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38931echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38932 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38933 cat >>confdefs.h <<\_ACEOF
38934#define wxHAVE_PTHREAD_CLEANUP 1
38935_ACEOF
38936
38937 fi
38938
a848cd7e
SC
38939
38940for ac_header in sched.h
38941do
38942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38943if eval "test \"\${$as_ac_Header+set}\" = set"; then
38944 echo "$as_me:$LINENO: checking for $ac_header" >&5
38945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38946if eval "test \"\${$as_ac_Header+set}\" = set"; then
38947 echo $ECHO_N "(cached) $ECHO_C" >&6
38948fi
38949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38951else
38952 # Is the header compilable?
38953echo "$as_me:$LINENO: checking $ac_header usability" >&5
38954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38955cat >conftest.$ac_ext <<_ACEOF
38956/* confdefs.h. */
38957_ACEOF
38958cat confdefs.h >>conftest.$ac_ext
38959cat >>conftest.$ac_ext <<_ACEOF
38960/* end confdefs.h. */
38961$ac_includes_default
38962#include <$ac_header>
38963_ACEOF
38964rm -f conftest.$ac_objext
38965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38966 (eval $ac_compile) 2>conftest.er1
a848cd7e 38967 ac_status=$?
ac1cb8d3
VS
38968 grep -v '^ *+' conftest.er1 >conftest.err
38969 rm -f conftest.er1
38970 cat conftest.err >&5
a848cd7e
SC
38971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972 (exit $ac_status); } &&
ca5c6ac3 38973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38975 (eval $ac_try) 2>&5
38976 ac_status=$?
38977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38978 (exit $ac_status); }; } &&
38979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38981 (eval $ac_try) 2>&5
38982 ac_status=$?
38983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38984 (exit $ac_status); }; }; then
38985 ac_header_compiler=yes
38986else
38987 echo "$as_me: failed program was:" >&5
38988sed 's/^/| /' conftest.$ac_ext >&5
38989
38990ac_header_compiler=no
38991fi
ac1cb8d3 38992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38994echo "${ECHO_T}$ac_header_compiler" >&6
38995
38996# Is the header present?
38997echo "$as_me:$LINENO: checking $ac_header presence" >&5
38998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38999cat >conftest.$ac_ext <<_ACEOF
39000/* confdefs.h. */
39001_ACEOF
39002cat confdefs.h >>conftest.$ac_ext
39003cat >>conftest.$ac_ext <<_ACEOF
39004/* end confdefs.h. */
39005#include <$ac_header>
39006_ACEOF
39007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39009 ac_status=$?
39010 grep -v '^ *+' conftest.er1 >conftest.err
39011 rm -f conftest.er1
39012 cat conftest.err >&5
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); } >/dev/null; then
39015 if test -s conftest.err; then
5d7b7554
VZ
39016 ac_cpp_err=$ac_cxx_preproc_warn_flag
39017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39018 else
39019 ac_cpp_err=
39020 fi
39021else
39022 ac_cpp_err=yes
39023fi
39024if test -z "$ac_cpp_err"; then
39025 ac_header_preproc=yes
39026else
39027 echo "$as_me: failed program was:" >&5
39028sed 's/^/| /' conftest.$ac_ext >&5
39029
39030 ac_header_preproc=no
39031fi
39032rm -f conftest.err conftest.$ac_ext
39033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39034echo "${ECHO_T}$ac_header_preproc" >&6
39035
39036# So? What about this header?
5d7b7554 39037case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39038 yes:no: )
a848cd7e
SC
39039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39043 ac_header_preproc=yes
a848cd7e 39044 ;;
ac1cb8d3 39045 no:yes:* )
a848cd7e
SC
39046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39053echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39058 (
39059 cat <<\_ASBOX
ac1cb8d3
VS
39060## ----------------------------------------- ##
39061## Report this to wx-dev@lists.wxwidgets.org ##
39062## ----------------------------------------- ##
a848cd7e
SC
39063_ASBOX
39064 ) |
39065 sed "s/^/$as_me: WARNING: /" >&2
39066 ;;
39067esac
39068echo "$as_me:$LINENO: checking for $ac_header" >&5
39069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39070if eval "test \"\${$as_ac_Header+set}\" = set"; then
39071 echo $ECHO_N "(cached) $ECHO_C" >&6
39072else
ac1cb8d3 39073 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39074fi
39075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39077
39078fi
39079if test `eval echo '${'$as_ac_Header'}'` = yes; then
39080 cat >>confdefs.h <<_ACEOF
39081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39082_ACEOF
39083
39084fi
39085
39086done
39087
39088 if test "$ac_cv_header_sched_h" = "yes"; then
39089 echo "$as_me:$LINENO: checking for sched_yield" >&5
39090echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39091if test "${ac_cv_func_sched_yield+set}" = set; then
39092 echo $ECHO_N "(cached) $ECHO_C" >&6
39093else
39094 cat >conftest.$ac_ext <<_ACEOF
39095/* confdefs.h. */
39096_ACEOF
39097cat confdefs.h >>conftest.$ac_ext
39098cat >>conftest.$ac_ext <<_ACEOF
39099/* end confdefs.h. */
ac1cb8d3
VS
39100/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39102#define sched_yield innocuous_sched_yield
39103
a848cd7e
SC
39104/* System header to define __stub macros and hopefully few prototypes,
39105 which can conflict with char sched_yield (); below.
39106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39107 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39108
a848cd7e
SC
39109#ifdef __STDC__
39110# include <limits.h>
39111#else
39112# include <assert.h>
39113#endif
ac1cb8d3
VS
39114
39115#undef sched_yield
39116
a848cd7e
SC
39117/* Override any gcc2 internal prototype to avoid an error. */
39118#ifdef __cplusplus
39119extern "C"
39120{
39121#endif
39122/* We use char because int might match the return type of a gcc2
39123 builtin and then its argument prototype would still apply. */
39124char sched_yield ();
39125/* The GNU C library defines this for functions which it implements
39126 to always fail with ENOSYS. Some functions are actually named
39127 something starting with __ and the normal name is an alias. */
39128#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39129choke me
39130#else
39131char (*f) () = sched_yield;
39132#endif
39133#ifdef __cplusplus
39134}
39135#endif
39136
39137int
39138main ()
39139{
39140return f != sched_yield;
39141 ;
39142 return 0;
39143}
39144_ACEOF
39145rm -f conftest.$ac_objext conftest$ac_exeext
39146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39147 (eval $ac_link) 2>conftest.er1
a848cd7e 39148 ac_status=$?
ac1cb8d3
VS
39149 grep -v '^ *+' conftest.er1 >conftest.err
39150 rm -f conftest.er1
39151 cat conftest.err >&5
a848cd7e
SC
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); } &&
ca5c6ac3 39154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39156 (eval $ac_try) 2>&5
39157 ac_status=$?
39158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159 (exit $ac_status); }; } &&
39160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39162 (eval $ac_try) 2>&5
39163 ac_status=$?
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); }; }; then
39166 ac_cv_func_sched_yield=yes
39167else
39168 echo "$as_me: failed program was:" >&5
39169sed 's/^/| /' conftest.$ac_ext >&5
39170
39171ac_cv_func_sched_yield=no
39172fi
ac1cb8d3
VS
39173rm -f conftest.err conftest.$ac_objext \
39174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39175fi
39176echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39177echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39178if test $ac_cv_func_sched_yield = yes; then
39179 cat >>confdefs.h <<\_ACEOF
39180#define HAVE_SCHED_YIELD 1
39181_ACEOF
39182
39183else
39184
39185 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39186echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39187if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39188 echo $ECHO_N "(cached) $ECHO_C" >&6
39189else
39190 ac_check_lib_save_LIBS=$LIBS
39191LIBS="-lposix4 $LIBS"
39192cat >conftest.$ac_ext <<_ACEOF
39193/* confdefs.h. */
39194_ACEOF
39195cat confdefs.h >>conftest.$ac_ext
39196cat >>conftest.$ac_ext <<_ACEOF
39197/* end confdefs.h. */
39198
39199/* Override any gcc2 internal prototype to avoid an error. */
39200#ifdef __cplusplus
39201extern "C"
39202#endif
39203/* We use char because int might match the return type of a gcc2
39204 builtin and then its argument prototype would still apply. */
39205char sched_yield ();
39206int
39207main ()
39208{
39209sched_yield ();
39210 ;
39211 return 0;
39212}
39213_ACEOF
39214rm -f conftest.$ac_objext conftest$ac_exeext
39215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39216 (eval $ac_link) 2>conftest.er1
a848cd7e 39217 ac_status=$?
ac1cb8d3
VS
39218 grep -v '^ *+' conftest.er1 >conftest.err
39219 rm -f conftest.er1
39220 cat conftest.err >&5
a848cd7e
SC
39221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222 (exit $ac_status); } &&
ca5c6ac3 39223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225 (eval $ac_try) 2>&5
39226 ac_status=$?
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); }; } &&
39229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39232 ac_status=$?
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
39235 ac_cv_lib_posix4_sched_yield=yes
39236else
39237 echo "$as_me: failed program was:" >&5
39238sed 's/^/| /' conftest.$ac_ext >&5
39239
39240ac_cv_lib_posix4_sched_yield=no
39241fi
ac1cb8d3
VS
39242rm -f conftest.err conftest.$ac_objext \
39243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39244LIBS=$ac_check_lib_save_LIBS
39245fi
39246echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39247echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39248if test $ac_cv_lib_posix4_sched_yield = yes; then
39249 cat >>confdefs.h <<\_ACEOF
39250#define HAVE_SCHED_YIELD 1
39251_ACEOF
39252 POSIX4_LINK=" -lposix4"
39253else
39254 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39255echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39256
39257fi
39258
39259
39260
39261fi
39262
39263 fi
39264
39265 HAVE_PRIOR_FUNCS=0
39266 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39267echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39268if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39269 echo $ECHO_N "(cached) $ECHO_C" >&6
39270else
39271 cat >conftest.$ac_ext <<_ACEOF
39272/* confdefs.h. */
39273_ACEOF
39274cat confdefs.h >>conftest.$ac_ext
39275cat >>conftest.$ac_ext <<_ACEOF
39276/* end confdefs.h. */
ac1cb8d3
VS
39277/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39279#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39280
a848cd7e
SC
39281/* System header to define __stub macros and hopefully few prototypes,
39282 which can conflict with char pthread_attr_getschedpolicy (); below.
39283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39284 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39285
a848cd7e
SC
39286#ifdef __STDC__
39287# include <limits.h>
39288#else
39289# include <assert.h>
39290#endif
ac1cb8d3
VS
39291
39292#undef pthread_attr_getschedpolicy
39293
a848cd7e
SC
39294/* Override any gcc2 internal prototype to avoid an error. */
39295#ifdef __cplusplus
39296extern "C"
39297{
39298#endif
39299/* We use char because int might match the return type of a gcc2
39300 builtin and then its argument prototype would still apply. */
39301char pthread_attr_getschedpolicy ();
39302/* The GNU C library defines this for functions which it implements
39303 to always fail with ENOSYS. Some functions are actually named
39304 something starting with __ and the normal name is an alias. */
39305#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39306choke me
39307#else
39308char (*f) () = pthread_attr_getschedpolicy;
39309#endif
39310#ifdef __cplusplus
39311}
39312#endif
39313
39314int
39315main ()
39316{
39317return f != pthread_attr_getschedpolicy;
39318 ;
39319 return 0;
39320}
39321_ACEOF
39322rm -f conftest.$ac_objext conftest$ac_exeext
39323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39324 (eval $ac_link) 2>conftest.er1
a848cd7e 39325 ac_status=$?
ac1cb8d3
VS
39326 grep -v '^ *+' conftest.er1 >conftest.err
39327 rm -f conftest.er1
39328 cat conftest.err >&5
a848cd7e
SC
39329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39330 (exit $ac_status); } &&
ca5c6ac3 39331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39333 (eval $ac_try) 2>&5
39334 ac_status=$?
39335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39336 (exit $ac_status); }; } &&
39337 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39339 (eval $ac_try) 2>&5
39340 ac_status=$?
39341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342 (exit $ac_status); }; }; then
39343 ac_cv_func_pthread_attr_getschedpolicy=yes
39344else
39345 echo "$as_me: failed program was:" >&5
39346sed 's/^/| /' conftest.$ac_ext >&5
39347
39348ac_cv_func_pthread_attr_getschedpolicy=no
39349fi
ac1cb8d3
VS
39350rm -f conftest.err conftest.$ac_objext \
39351 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39352fi
39353echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39354echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39355if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39356 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39357echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39358if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39359 echo $ECHO_N "(cached) $ECHO_C" >&6
39360else
39361 cat >conftest.$ac_ext <<_ACEOF
39362/* confdefs.h. */
39363_ACEOF
39364cat confdefs.h >>conftest.$ac_ext
39365cat >>conftest.$ac_ext <<_ACEOF
39366/* end confdefs.h. */
ac1cb8d3
VS
39367/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39369#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39370
a848cd7e
SC
39371/* System header to define __stub macros and hopefully few prototypes,
39372 which can conflict with char pthread_attr_setschedparam (); below.
39373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39375
a848cd7e
SC
39376#ifdef __STDC__
39377# include <limits.h>
39378#else
39379# include <assert.h>
39380#endif
ac1cb8d3
VS
39381
39382#undef pthread_attr_setschedparam
39383
a848cd7e
SC
39384/* Override any gcc2 internal prototype to avoid an error. */
39385#ifdef __cplusplus
39386extern "C"
39387{
39388#endif
39389/* We use char because int might match the return type of a gcc2
39390 builtin and then its argument prototype would still apply. */
39391char pthread_attr_setschedparam ();
39392/* The GNU C library defines this for functions which it implements
39393 to always fail with ENOSYS. Some functions are actually named
39394 something starting with __ and the normal name is an alias. */
39395#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39396choke me
39397#else
39398char (*f) () = pthread_attr_setschedparam;
39399#endif
39400#ifdef __cplusplus
39401}
39402#endif
39403
39404int
39405main ()
39406{
39407return f != pthread_attr_setschedparam;
39408 ;
39409 return 0;
39410}
39411_ACEOF
39412rm -f conftest.$ac_objext conftest$ac_exeext
39413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39414 (eval $ac_link) 2>conftest.er1
a848cd7e 39415 ac_status=$?
ac1cb8d3
VS
39416 grep -v '^ *+' conftest.er1 >conftest.err
39417 rm -f conftest.er1
39418 cat conftest.err >&5
a848cd7e
SC
39419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); } &&
ca5c6ac3 39421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423 (eval $ac_try) 2>&5
39424 ac_status=$?
39425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426 (exit $ac_status); }; } &&
39427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429 (eval $ac_try) 2>&5
39430 ac_status=$?
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); }; }; then
39433 ac_cv_func_pthread_attr_setschedparam=yes
39434else
39435 echo "$as_me: failed program was:" >&5
39436sed 's/^/| /' conftest.$ac_ext >&5
39437
39438ac_cv_func_pthread_attr_setschedparam=no
39439fi
ac1cb8d3
VS
39440rm -f conftest.err conftest.$ac_objext \
39441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39442fi
39443echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39444echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39445if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39446 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39447echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39448if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39449 echo $ECHO_N "(cached) $ECHO_C" >&6
39450else
39451 cat >conftest.$ac_ext <<_ACEOF
39452/* confdefs.h. */
39453_ACEOF
39454cat confdefs.h >>conftest.$ac_ext
39455cat >>conftest.$ac_ext <<_ACEOF
39456/* end confdefs.h. */
ac1cb8d3
VS
39457/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39459#define sched_get_priority_max innocuous_sched_get_priority_max
39460
a848cd7e
SC
39461/* System header to define __stub macros and hopefully few prototypes,
39462 which can conflict with char sched_get_priority_max (); below.
39463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39464 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39465
a848cd7e
SC
39466#ifdef __STDC__
39467# include <limits.h>
39468#else
39469# include <assert.h>
39470#endif
ac1cb8d3
VS
39471
39472#undef sched_get_priority_max
39473
a848cd7e
SC
39474/* Override any gcc2 internal prototype to avoid an error. */
39475#ifdef __cplusplus
39476extern "C"
39477{
39478#endif
39479/* We use char because int might match the return type of a gcc2
39480 builtin and then its argument prototype would still apply. */
39481char sched_get_priority_max ();
39482/* The GNU C library defines this for functions which it implements
39483 to always fail with ENOSYS. Some functions are actually named
39484 something starting with __ and the normal name is an alias. */
39485#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39486choke me
39487#else
39488char (*f) () = sched_get_priority_max;
39489#endif
39490#ifdef __cplusplus
39491}
39492#endif
39493
39494int
39495main ()
39496{
39497return f != sched_get_priority_max;
39498 ;
39499 return 0;
39500}
39501_ACEOF
39502rm -f conftest.$ac_objext conftest$ac_exeext
39503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39504 (eval $ac_link) 2>conftest.er1
a848cd7e 39505 ac_status=$?
ac1cb8d3
VS
39506 grep -v '^ *+' conftest.er1 >conftest.err
39507 rm -f conftest.er1
39508 cat conftest.err >&5
a848cd7e
SC
39509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510 (exit $ac_status); } &&
ca5c6ac3 39511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513 (eval $ac_try) 2>&5
39514 ac_status=$?
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); }; } &&
39517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39519 (eval $ac_try) 2>&5
39520 ac_status=$?
39521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); }; }; then
39523 ac_cv_func_sched_get_priority_max=yes
39524else
39525 echo "$as_me: failed program was:" >&5
39526sed 's/^/| /' conftest.$ac_ext >&5
39527
39528ac_cv_func_sched_get_priority_max=no
39529fi
ac1cb8d3
VS
39530rm -f conftest.err conftest.$ac_objext \
39531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39532fi
39533echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39534echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39535if test $ac_cv_func_sched_get_priority_max = yes; then
39536 HAVE_PRIOR_FUNCS=1
39537else
39538 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39539echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39540if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39541 echo $ECHO_N "(cached) $ECHO_C" >&6
39542else
39543 ac_check_lib_save_LIBS=$LIBS
39544LIBS="-lposix4 $LIBS"
39545cat >conftest.$ac_ext <<_ACEOF
39546/* confdefs.h. */
39547_ACEOF
39548cat confdefs.h >>conftest.$ac_ext
39549cat >>conftest.$ac_ext <<_ACEOF
39550/* end confdefs.h. */
39551
39552/* Override any gcc2 internal prototype to avoid an error. */
39553#ifdef __cplusplus
39554extern "C"
39555#endif
39556/* We use char because int might match the return type of a gcc2
39557 builtin and then its argument prototype would still apply. */
39558char sched_get_priority_max ();
39559int
39560main ()
39561{
39562sched_get_priority_max ();
39563 ;
39564 return 0;
39565}
39566_ACEOF
39567rm -f conftest.$ac_objext conftest$ac_exeext
39568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39569 (eval $ac_link) 2>conftest.er1
a848cd7e 39570 ac_status=$?
ac1cb8d3
VS
39571 grep -v '^ *+' conftest.er1 >conftest.err
39572 rm -f conftest.er1
39573 cat conftest.err >&5
a848cd7e
SC
39574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39575 (exit $ac_status); } &&
ca5c6ac3 39576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39578 (eval $ac_try) 2>&5
39579 ac_status=$?
39580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39581 (exit $ac_status); }; } &&
39582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39584 (eval $ac_try) 2>&5
39585 ac_status=$?
39586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587 (exit $ac_status); }; }; then
39588 ac_cv_lib_posix4_sched_get_priority_max=yes
39589else
39590 echo "$as_me: failed program was:" >&5
39591sed 's/^/| /' conftest.$ac_ext >&5
39592
39593ac_cv_lib_posix4_sched_get_priority_max=no
39594fi
ac1cb8d3
VS
39595rm -f conftest.err conftest.$ac_objext \
39596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39597LIBS=$ac_check_lib_save_LIBS
39598fi
39599echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39600echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39601if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39602
39603 HAVE_PRIOR_FUNCS=1
39604 POSIX4_LINK=" -lposix4"
39605
39606fi
39607
39608
39609fi
39610
39611
39612fi
39613
39614
39615fi
39616
39617
39618 if test "$HAVE_PRIOR_FUNCS" = 1; then
39619 cat >>confdefs.h <<\_ACEOF
39620#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39621_ACEOF
39622
39623 else
39624 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39625echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39626 fi
39627
39628 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39629echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39630if test "${ac_cv_func_pthread_cancel+set}" = set; then
39631 echo $ECHO_N "(cached) $ECHO_C" >&6
39632else
39633 cat >conftest.$ac_ext <<_ACEOF
39634/* confdefs.h. */
39635_ACEOF
39636cat confdefs.h >>conftest.$ac_ext
39637cat >>conftest.$ac_ext <<_ACEOF
39638/* end confdefs.h. */
ac1cb8d3
VS
39639/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39641#define pthread_cancel innocuous_pthread_cancel
39642
a848cd7e
SC
39643/* System header to define __stub macros and hopefully few prototypes,
39644 which can conflict with char pthread_cancel (); below.
39645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39646 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39647
a848cd7e
SC
39648#ifdef __STDC__
39649# include <limits.h>
39650#else
39651# include <assert.h>
39652#endif
ac1cb8d3
VS
39653
39654#undef pthread_cancel
39655
a848cd7e
SC
39656/* Override any gcc2 internal prototype to avoid an error. */
39657#ifdef __cplusplus
39658extern "C"
39659{
39660#endif
39661/* We use char because int might match the return type of a gcc2
39662 builtin and then its argument prototype would still apply. */
39663char pthread_cancel ();
39664/* The GNU C library defines this for functions which it implements
39665 to always fail with ENOSYS. Some functions are actually named
39666 something starting with __ and the normal name is an alias. */
39667#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39668choke me
39669#else
39670char (*f) () = pthread_cancel;
39671#endif
39672#ifdef __cplusplus
39673}
39674#endif
39675
39676int
39677main ()
39678{
39679return f != pthread_cancel;
39680 ;
39681 return 0;
39682}
39683_ACEOF
39684rm -f conftest.$ac_objext conftest$ac_exeext
39685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39686 (eval $ac_link) 2>conftest.er1
a848cd7e 39687 ac_status=$?
ac1cb8d3
VS
39688 grep -v '^ *+' conftest.er1 >conftest.err
39689 rm -f conftest.er1
39690 cat conftest.err >&5
a848cd7e
SC
39691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692 (exit $ac_status); } &&
ca5c6ac3 39693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39695 (eval $ac_try) 2>&5
39696 ac_status=$?
39697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39698 (exit $ac_status); }; } &&
39699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39701 (eval $ac_try) 2>&5
39702 ac_status=$?
39703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39704 (exit $ac_status); }; }; then
39705 ac_cv_func_pthread_cancel=yes
39706else
39707 echo "$as_me: failed program was:" >&5
39708sed 's/^/| /' conftest.$ac_ext >&5
39709
39710ac_cv_func_pthread_cancel=no
39711fi
ac1cb8d3
VS
39712rm -f conftest.err conftest.$ac_objext \
39713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39714fi
39715echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39716echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39717if test $ac_cv_func_pthread_cancel = yes; then
39718 cat >>confdefs.h <<\_ACEOF
39719#define HAVE_PTHREAD_CANCEL 1
39720_ACEOF
39721
39722else
39723 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39724echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39725fi
39726
39727
abc736fd
MW
39728 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39729echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39730if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39731 echo $ECHO_N "(cached) $ECHO_C" >&6
39732else
39733 cat >conftest.$ac_ext <<_ACEOF
39734/* confdefs.h. */
39735_ACEOF
39736cat confdefs.h >>conftest.$ac_ext
39737cat >>conftest.$ac_ext <<_ACEOF
39738/* end confdefs.h. */
39739/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39741#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39742
39743/* System header to define __stub macros and hopefully few prototypes,
39744 which can conflict with char pthread_attr_setstacksize (); below.
39745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39746 <limits.h> exists even on freestanding compilers. */
39747
39748#ifdef __STDC__
39749# include <limits.h>
39750#else
39751# include <assert.h>
39752#endif
39753
39754#undef pthread_attr_setstacksize
39755
39756/* Override any gcc2 internal prototype to avoid an error. */
39757#ifdef __cplusplus
39758extern "C"
39759{
39760#endif
39761/* We use char because int might match the return type of a gcc2
39762 builtin and then its argument prototype would still apply. */
39763char pthread_attr_setstacksize ();
39764/* The GNU C library defines this for functions which it implements
39765 to always fail with ENOSYS. Some functions are actually named
39766 something starting with __ and the normal name is an alias. */
39767#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39768choke me
39769#else
39770char (*f) () = pthread_attr_setstacksize;
39771#endif
39772#ifdef __cplusplus
39773}
39774#endif
39775
39776int
39777main ()
39778{
39779return f != pthread_attr_setstacksize;
39780 ;
39781 return 0;
39782}
39783_ACEOF
39784rm -f conftest.$ac_objext conftest$ac_exeext
39785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39786 (eval $ac_link) 2>conftest.er1
39787 ac_status=$?
39788 grep -v '^ *+' conftest.er1 >conftest.err
39789 rm -f conftest.er1
39790 cat conftest.err >&5
39791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792 (exit $ac_status); } &&
ca5c6ac3 39793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795 (eval $ac_try) 2>&5
39796 ac_status=$?
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); }; } &&
39799 { ac_try='test -s conftest$ac_exeext'
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39802 ac_status=$?
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; }; then
39805 ac_cv_func_pthread_attr_setstacksize=yes
39806else
39807 echo "$as_me: failed program was:" >&5
39808sed 's/^/| /' conftest.$ac_ext >&5
39809
39810ac_cv_func_pthread_attr_setstacksize=no
39811fi
39812rm -f conftest.err conftest.$ac_objext \
39813 conftest$ac_exeext conftest.$ac_ext
39814fi
39815echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39816echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39817if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39818 cat >>confdefs.h <<\_ACEOF
39819#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39820_ACEOF
39821
39822fi
39823
a848cd7e
SC
39824
39825
39826 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39827echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39828if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39829 echo $ECHO_N "(cached) $ECHO_C" >&6
39830else
39831
39832 cat >conftest.$ac_ext <<_ACEOF
39833/* confdefs.h. */
39834_ACEOF
39835cat confdefs.h >>conftest.$ac_ext
39836cat >>conftest.$ac_ext <<_ACEOF
39837/* end confdefs.h. */
39838#include <pthread.h>
39839int
39840main ()
39841{
39842
39843 pthread_mutexattr_t attr;
39844 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39845
39846 ;
39847 return 0;
39848}
39849_ACEOF
39850rm -f conftest.$ac_objext
39851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39852 (eval $ac_compile) 2>conftest.er1
a848cd7e 39853 ac_status=$?
ac1cb8d3
VS
39854 grep -v '^ *+' conftest.er1 >conftest.err
39855 rm -f conftest.er1
39856 cat conftest.err >&5
a848cd7e
SC
39857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39858 (exit $ac_status); } &&
ca5c6ac3 39859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39861 (eval $ac_try) 2>&5
39862 ac_status=$?
39863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); }; } &&
39865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867 (eval $ac_try) 2>&5
39868 ac_status=$?
39869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870 (exit $ac_status); }; }; then
123dca7d 39871 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39872else
39873 echo "$as_me: failed program was:" >&5
39874sed 's/^/| /' conftest.$ac_ext >&5
39875
123dca7d 39876wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39877
39878fi
ac1cb8d3 39879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39880
39881fi
39882echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39883echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39884
39885 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39886 cat >>confdefs.h <<\_ACEOF
39887#define HAVE_PTHREAD_MUTEXATTR_T 1
39888_ACEOF
39889
123dca7d
VZ
39890
39891 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39892echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39893if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39894 echo $ECHO_N "(cached) $ECHO_C" >&6
39895else
39896
39897 cat >conftest.$ac_ext <<_ACEOF
39898/* confdefs.h. */
39899_ACEOF
39900cat confdefs.h >>conftest.$ac_ext
39901cat >>conftest.$ac_ext <<_ACEOF
39902/* end confdefs.h. */
39903#include <pthread.h>
39904int
39905main ()
39906{
39907
39908 pthread_mutexattr_t attr;
39909 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39910
39911 ;
39912 return 0;
39913}
39914_ACEOF
39915rm -f conftest.$ac_objext
39916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39917 (eval $ac_compile) 2>conftest.er1
39918 ac_status=$?
39919 grep -v '^ *+' conftest.er1 >conftest.err
39920 rm -f conftest.er1
39921 cat conftest.err >&5
39922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39923 (exit $ac_status); } &&
ca5c6ac3 39924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39926 (eval $ac_try) 2>&5
39927 ac_status=$?
39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); }; } &&
39930 { ac_try='test -s conftest.$ac_objext'
39931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39932 (eval $ac_try) 2>&5
39933 ac_status=$?
39934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935 (exit $ac_status); }; }; then
39936 wx_cv_func_pthread_mutexattr_settype_decl=yes
39937else
39938 echo "$as_me: failed program was:" >&5
39939sed 's/^/| /' conftest.$ac_ext >&5
39940
39941wx_cv_func_pthread_mutexattr_settype_decl=no
39942
39943fi
39944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39945
39946fi
39947echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39948echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39949 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39950 cat >>confdefs.h <<\_ACEOF
39951#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39952_ACEOF
39953
39954 fi
a848cd7e
SC
39955 else
39956 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39957echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39958if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39959 echo $ECHO_N "(cached) $ECHO_C" >&6
39960else
39961
39962 cat >conftest.$ac_ext <<_ACEOF
39963/* confdefs.h. */
39964_ACEOF
39965cat confdefs.h >>conftest.$ac_ext
39966cat >>conftest.$ac_ext <<_ACEOF
39967/* end confdefs.h. */
39968#include <pthread.h>
39969int
39970main ()
39971{
39972
39973 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39974
39975 ;
39976 return 0;
39977}
39978_ACEOF
39979rm -f conftest.$ac_objext
39980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39981 (eval $ac_compile) 2>conftest.er1
a848cd7e 39982 ac_status=$?
ac1cb8d3
VS
39983 grep -v '^ *+' conftest.er1 >conftest.err
39984 rm -f conftest.er1
39985 cat conftest.err >&5
a848cd7e
SC
39986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39987 (exit $ac_status); } &&
ca5c6ac3 39988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39990 (eval $ac_try) 2>&5
39991 ac_status=$?
39992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993 (exit $ac_status); }; } &&
39994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39996 (eval $ac_try) 2>&5
39997 ac_status=$?
39998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); }; }; then
40000
40001 wx_cv_type_pthread_rec_mutex_init=yes
40002
40003else
40004 echo "$as_me: failed program was:" >&5
40005sed 's/^/| /' conftest.$ac_ext >&5
40006
40007
40008 wx_cv_type_pthread_rec_mutex_init=no
40009
40010
40011fi
ac1cb8d3 40012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40013
40014fi
40015echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40016echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40017 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40018 cat >>confdefs.h <<\_ACEOF
40019#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40020_ACEOF
40021
40022 else
40023 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40024echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40025 fi
40026 fi
40027 fi
40028
40029else
40030 if test "$wxUSE_THREADS" = "yes" ; then
40031 case "${host}" in
40032 *-*-mingw32* )
40033 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40034echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40035if test "${wx_cv_cflags_mthread+set}" = set; then
40036 echo $ECHO_N "(cached) $ECHO_C" >&6
40037else
40038
e56f4f9e
VZ
40039 CXXFLAGS_OLD="$CXXFLAGS"
40040 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40041 cat >conftest.$ac_ext <<_ACEOF
40042/* confdefs.h. */
40043_ACEOF
40044cat confdefs.h >>conftest.$ac_ext
40045cat >>conftest.$ac_ext <<_ACEOF
40046/* end confdefs.h. */
40047
40048int
40049main ()
40050{
40051
40052 ;
40053 return 0;
40054}
40055_ACEOF
40056rm -f conftest.$ac_objext
40057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40058 (eval $ac_compile) 2>conftest.er1
a848cd7e 40059 ac_status=$?
ac1cb8d3
VS
40060 grep -v '^ *+' conftest.er1 >conftest.err
40061 rm -f conftest.er1
40062 cat conftest.err >&5
a848cd7e
SC
40063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40064 (exit $ac_status); } &&
ca5c6ac3 40065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40067 (eval $ac_try) 2>&5
40068 ac_status=$?
40069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40070 (exit $ac_status); }; } &&
40071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40073 (eval $ac_try) 2>&5
40074 ac_status=$?
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); }; }; then
40077 wx_cv_cflags_mthread=yes
40078else
40079 echo "$as_me: failed program was:" >&5
40080sed 's/^/| /' conftest.$ac_ext >&5
40081
40082wx_cv_cflags_mthread=no
40083
40084fi
ac1cb8d3 40085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40086
40087
40088fi
40089echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40090echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40091
40092 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40093 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40094 LDFLAGS="$LDFLAGS -mthreads"
40095 else
e56f4f9e 40096 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40097 fi
40098 ;;
40099 *-pc-os2*emx )
5ff751d6
VZ
40100 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40101 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40102 LDFLAGS="$LDFLAGS -Zmt"
40103 ;;
40104 esac
40105 fi
40106fi
40107
004ee6da
RL
40108echo "$as_me:$LINENO: checking for localtime_r" >&5
40109echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40110if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40111 echo $ECHO_N "(cached) $ECHO_C" >&6
40112else
40113 cat >conftest.$ac_ext <<_ACEOF
40114/* confdefs.h. */
40115_ACEOF
40116cat confdefs.h >>conftest.$ac_ext
40117cat >>conftest.$ac_ext <<_ACEOF
40118/* end confdefs.h. */
004ee6da 40119/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40121#define localtime_r innocuous_localtime_r
ac1cb8d3 40122
a848cd7e 40123/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40124 which can conflict with char localtime_r (); below.
a848cd7e
SC
40125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40127
a848cd7e
SC
40128#ifdef __STDC__
40129# include <limits.h>
40130#else
40131# include <assert.h>
40132#endif
ac1cb8d3 40133
004ee6da 40134#undef localtime_r
ac1cb8d3 40135
a848cd7e
SC
40136/* Override any gcc2 internal prototype to avoid an error. */
40137#ifdef __cplusplus
40138extern "C"
40139{
40140#endif
40141/* We use char because int might match the return type of a gcc2
40142 builtin and then its argument prototype would still apply. */
004ee6da 40143char localtime_r ();
a848cd7e
SC
40144/* The GNU C library defines this for functions which it implements
40145 to always fail with ENOSYS. Some functions are actually named
40146 something starting with __ and the normal name is an alias. */
004ee6da 40147#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40148choke me
40149#else
004ee6da 40150char (*f) () = localtime_r;
a848cd7e
SC
40151#endif
40152#ifdef __cplusplus
40153}
40154#endif
40155
40156int
40157main ()
40158{
004ee6da
RL
40159return f != localtime_r;
40160 ;
40161 return 0;
40162}
40163_ACEOF
40164rm -f conftest.$ac_objext conftest$ac_exeext
40165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40166 (eval $ac_link) 2>conftest.er1
40167 ac_status=$?
40168 grep -v '^ *+' conftest.er1 >conftest.err
40169 rm -f conftest.er1
40170 cat conftest.err >&5
40171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172 (exit $ac_status); } &&
ca5c6ac3 40173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40175 (eval $ac_try) 2>&5
40176 ac_status=$?
40177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178 (exit $ac_status); }; } &&
40179 { ac_try='test -s conftest$ac_exeext'
40180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181 (eval $ac_try) 2>&5
40182 ac_status=$?
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); }; }; then
40185 ac_cv_func_localtime_r=yes
40186else
40187 echo "$as_me: failed program was:" >&5
40188sed 's/^/| /' conftest.$ac_ext >&5
40189
40190ac_cv_func_localtime_r=no
40191fi
40192rm -f conftest.err conftest.$ac_objext \
40193 conftest$ac_exeext conftest.$ac_ext
40194fi
40195echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40196echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40197if test $ac_cv_func_localtime_r = yes; then
40198 cat >>confdefs.h <<\_ACEOF
40199#define HAVE_LOCALTIME_R 1
40200_ACEOF
40201
40202fi
40203
40204echo "$as_me:$LINENO: checking for gmtime_r" >&5
40205echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40206if test "${ac_cv_func_gmtime_r+set}" = set; then
40207 echo $ECHO_N "(cached) $ECHO_C" >&6
40208else
40209 cat >conftest.$ac_ext <<_ACEOF
40210/* confdefs.h. */
40211_ACEOF
40212cat confdefs.h >>conftest.$ac_ext
40213cat >>conftest.$ac_ext <<_ACEOF
40214/* end confdefs.h. */
40215/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40217#define gmtime_r innocuous_gmtime_r
40218
40219/* System header to define __stub macros and hopefully few prototypes,
40220 which can conflict with char gmtime_r (); below.
40221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40222 <limits.h> exists even on freestanding compilers. */
40223
40224#ifdef __STDC__
40225# include <limits.h>
40226#else
40227# include <assert.h>
40228#endif
40229
40230#undef gmtime_r
40231
40232/* Override any gcc2 internal prototype to avoid an error. */
40233#ifdef __cplusplus
40234extern "C"
40235{
40236#endif
40237/* We use char because int might match the return type of a gcc2
40238 builtin and then its argument prototype would still apply. */
40239char gmtime_r ();
40240/* The GNU C library defines this for functions which it implements
40241 to always fail with ENOSYS. Some functions are actually named
40242 something starting with __ and the normal name is an alias. */
40243#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40244choke me
40245#else
40246char (*f) () = gmtime_r;
40247#endif
40248#ifdef __cplusplus
40249}
40250#endif
40251
40252int
40253main ()
40254{
40255return f != gmtime_r;
40256 ;
40257 return 0;
40258}
40259_ACEOF
40260rm -f conftest.$ac_objext conftest$ac_exeext
40261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40262 (eval $ac_link) 2>conftest.er1
40263 ac_status=$?
40264 grep -v '^ *+' conftest.er1 >conftest.err
40265 rm -f conftest.er1
40266 cat conftest.err >&5
40267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268 (exit $ac_status); } &&
ca5c6ac3 40269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40271 (eval $ac_try) 2>&5
40272 ac_status=$?
40273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274 (exit $ac_status); }; } &&
40275 { ac_try='test -s conftest$ac_exeext'
40276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40277 (eval $ac_try) 2>&5
40278 ac_status=$?
40279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280 (exit $ac_status); }; }; then
40281 ac_cv_func_gmtime_r=yes
40282else
40283 echo "$as_me: failed program was:" >&5
40284sed 's/^/| /' conftest.$ac_ext >&5
40285
40286ac_cv_func_gmtime_r=no
40287fi
40288rm -f conftest.err conftest.$ac_objext \
40289 conftest$ac_exeext conftest.$ac_ext
40290fi
40291echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40292echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40293if test $ac_cv_func_gmtime_r = yes; then
40294 cat >>confdefs.h <<\_ACEOF
40295#define HAVE_GMTIME_R 1
40296_ACEOF
40297
40298fi
40299
40300echo "$as_me:$LINENO: checking for readdir_r" >&5
40301echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40302if test "${ac_cv_func_readdir_r+set}" = set; then
40303 echo $ECHO_N "(cached) $ECHO_C" >&6
40304else
40305 cat >conftest.$ac_ext <<_ACEOF
40306/* confdefs.h. */
40307_ACEOF
40308cat confdefs.h >>conftest.$ac_ext
40309cat >>conftest.$ac_ext <<_ACEOF
40310/* end confdefs.h. */
40311/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40313#define readdir_r innocuous_readdir_r
40314
40315/* System header to define __stub macros and hopefully few prototypes,
40316 which can conflict with char readdir_r (); below.
40317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40318 <limits.h> exists even on freestanding compilers. */
40319
40320#ifdef __STDC__
40321# include <limits.h>
40322#else
40323# include <assert.h>
40324#endif
40325
40326#undef readdir_r
40327
40328/* Override any gcc2 internal prototype to avoid an error. */
40329#ifdef __cplusplus
40330extern "C"
40331{
40332#endif
40333/* We use char because int might match the return type of a gcc2
40334 builtin and then its argument prototype would still apply. */
40335char readdir_r ();
40336/* The GNU C library defines this for functions which it implements
40337 to always fail with ENOSYS. Some functions are actually named
40338 something starting with __ and the normal name is an alias. */
40339#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40340choke me
40341#else
40342char (*f) () = readdir_r;
40343#endif
40344#ifdef __cplusplus
40345}
40346#endif
40347
40348int
40349main ()
40350{
40351return f != readdir_r;
40352 ;
40353 return 0;
40354}
40355_ACEOF
40356rm -f conftest.$ac_objext conftest$ac_exeext
40357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40358 (eval $ac_link) 2>conftest.er1
40359 ac_status=$?
40360 grep -v '^ *+' conftest.er1 >conftest.err
40361 rm -f conftest.er1
40362 cat conftest.err >&5
40363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364 (exit $ac_status); } &&
ca5c6ac3 40365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40367 (eval $ac_try) 2>&5
40368 ac_status=$?
40369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40370 (exit $ac_status); }; } &&
40371 { ac_try='test -s conftest$ac_exeext'
40372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40373 (eval $ac_try) 2>&5
40374 ac_status=$?
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); }; }; then
40377 ac_cv_func_readdir_r=yes
40378else
40379 echo "$as_me: failed program was:" >&5
40380sed 's/^/| /' conftest.$ac_ext >&5
40381
40382ac_cv_func_readdir_r=no
40383fi
40384rm -f conftest.err conftest.$ac_objext \
40385 conftest$ac_exeext conftest.$ac_ext
40386fi
40387echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40388echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40389if test $ac_cv_func_readdir_r = yes; then
40390 cat >>confdefs.h <<\_ACEOF
40391#define HAVE_READDIR_R 1
40392_ACEOF
40393
40394fi
40395
004ee6da 40396
004ee6da
RL
40397
40398
40399 ac_ext=c
40400ac_cpp='$CPP $CPPFLAGS'
40401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40403ac_compiler_gnu=$ac_cv_c_compiler_gnu
40404
40405 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40406echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40407
40408 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40409 echo $ECHO_N "(cached) $ECHO_C" >&6
40410else
40411
40412
2f6c5bb5 40413################################################################
004ee6da
RL
40414
40415ac_cv_func_which_gethostbyname_r=unknown
40416
40417#
40418# ONE ARGUMENT (sanity check)
40419#
40420
40421# This should fail, as there is no variant of gethostbyname_r() that takes
40422# a single argument. If it actually compiles, then we can assume that
40423# netdb.h is not declaring the function, and the compiler is thereby
40424# assuming an implicit prototype. In which case, we're out of luck.
40425#
40426cat >conftest.$ac_ext <<_ACEOF
40427/* confdefs.h. */
40428_ACEOF
40429cat confdefs.h >>conftest.$ac_ext
40430cat >>conftest.$ac_ext <<_ACEOF
40431/* end confdefs.h. */
40432#include <netdb.h>
40433int
40434main ()
40435{
40436
40437 char *name = "www.gnu.org";
40438 (void)gethostbyname_r(name) /* ; */
40439
40440 ;
40441 return 0;
40442}
40443_ACEOF
40444rm -f conftest.$ac_objext
40445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40446 (eval $ac_compile) 2>conftest.er1
40447 ac_status=$?
40448 grep -v '^ *+' conftest.er1 >conftest.err
40449 rm -f conftest.er1
40450 cat conftest.err >&5
40451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40452 (exit $ac_status); } &&
ca5c6ac3 40453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40455 (eval $ac_try) 2>&5
40456 ac_status=$?
40457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458 (exit $ac_status); }; } &&
40459 { ac_try='test -s conftest.$ac_objext'
40460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40461 (eval $ac_try) 2>&5
40462 ac_status=$?
40463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464 (exit $ac_status); }; }; then
40465 ac_cv_func_which_gethostbyname_r=no
40466else
40467 echo "$as_me: failed program was:" >&5
40468sed 's/^/| /' conftest.$ac_ext >&5
40469
40470fi
40471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40472
40473#
40474# SIX ARGUMENTS
40475# (e.g. Linux)
40476#
40477
40478if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40479
40480cat >conftest.$ac_ext <<_ACEOF
40481/* confdefs.h. */
40482_ACEOF
40483cat confdefs.h >>conftest.$ac_ext
40484cat >>conftest.$ac_ext <<_ACEOF
40485/* end confdefs.h. */
40486#include <netdb.h>
40487int
40488main ()
40489{
40490
40491 char *name = "www.gnu.org";
40492 struct hostent ret, *retp;
40493 char buf[1024];
40494 int buflen = 1024;
40495 int my_h_errno;
40496 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40497
40498 ;
40499 return 0;
40500}
40501_ACEOF
40502rm -f conftest.$ac_objext
40503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40504 (eval $ac_compile) 2>conftest.er1
40505 ac_status=$?
40506 grep -v '^ *+' conftest.er1 >conftest.err
40507 rm -f conftest.er1
40508 cat conftest.err >&5
40509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510 (exit $ac_status); } &&
ca5c6ac3 40511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40513 (eval $ac_try) 2>&5
40514 ac_status=$?
40515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516 (exit $ac_status); }; } &&
40517 { ac_try='test -s conftest.$ac_objext'
40518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40519 (eval $ac_try) 2>&5
40520 ac_status=$?
40521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40522 (exit $ac_status); }; }; then
40523 ac_cv_func_which_gethostbyname_r=six
40524else
40525 echo "$as_me: failed program was:" >&5
40526sed 's/^/| /' conftest.$ac_ext >&5
40527
40528fi
40529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40530
40531fi
40532
40533#
40534# FIVE ARGUMENTS
40535# (e.g. Solaris)
40536#
40537
40538if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40539
40540cat >conftest.$ac_ext <<_ACEOF
40541/* confdefs.h. */
40542_ACEOF
40543cat confdefs.h >>conftest.$ac_ext
40544cat >>conftest.$ac_ext <<_ACEOF
40545/* end confdefs.h. */
40546#include <netdb.h>
40547int
40548main ()
40549{
40550
40551 char *name = "www.gnu.org";
40552 struct hostent ret;
40553 char buf[1024];
40554 int buflen = 1024;
40555 int my_h_errno;
40556 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40557
40558 ;
40559 return 0;
40560}
40561_ACEOF
40562rm -f conftest.$ac_objext
40563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40564 (eval $ac_compile) 2>conftest.er1
40565 ac_status=$?
40566 grep -v '^ *+' conftest.er1 >conftest.err
40567 rm -f conftest.er1
40568 cat conftest.err >&5
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); } &&
ca5c6ac3 40571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40573 (eval $ac_try) 2>&5
40574 ac_status=$?
40575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 (exit $ac_status); }; } &&
40577 { ac_try='test -s conftest.$ac_objext'
40578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40579 (eval $ac_try) 2>&5
40580 ac_status=$?
40581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40582 (exit $ac_status); }; }; then
40583 ac_cv_func_which_gethostbyname_r=five
40584else
40585 echo "$as_me: failed program was:" >&5
40586sed 's/^/| /' conftest.$ac_ext >&5
40587
40588fi
40589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40590
40591fi
40592
40593#
40594# THREE ARGUMENTS
40595# (e.g. AIX, HP-UX, Tru64)
40596#
40597
40598if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40599
40600cat >conftest.$ac_ext <<_ACEOF
40601/* confdefs.h. */
40602_ACEOF
40603cat confdefs.h >>conftest.$ac_ext
40604cat >>conftest.$ac_ext <<_ACEOF
40605/* end confdefs.h. */
40606#include <netdb.h>
40607int
40608main ()
40609{
40610
40611 char *name = "www.gnu.org";
40612 struct hostent ret;
40613 struct hostent_data data;
40614 (void)gethostbyname_r(name, &ret, &data) /* ; */
40615
40616 ;
40617 return 0;
40618}
40619_ACEOF
40620rm -f conftest.$ac_objext
40621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40622 (eval $ac_compile) 2>conftest.er1
40623 ac_status=$?
40624 grep -v '^ *+' conftest.er1 >conftest.err
40625 rm -f conftest.er1
40626 cat conftest.err >&5
40627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40628 (exit $ac_status); } &&
ca5c6ac3 40629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40631 (eval $ac_try) 2>&5
40632 ac_status=$?
40633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40634 (exit $ac_status); }; } &&
40635 { ac_try='test -s conftest.$ac_objext'
40636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40637 (eval $ac_try) 2>&5
40638 ac_status=$?
40639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640 (exit $ac_status); }; }; then
40641 ac_cv_func_which_gethostbyname_r=three
40642else
40643 echo "$as_me: failed program was:" >&5
40644sed 's/^/| /' conftest.$ac_ext >&5
40645
40646fi
40647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40648
40649fi
40650
2f6c5bb5 40651################################################################
004ee6da
RL
40652
40653
40654fi
40655
40656case "$ac_cv_func_which_gethostbyname_r" in
40657 three)
40658 echo "$as_me:$LINENO: result: three" >&5
40659echo "${ECHO_T}three" >&6
40660 cat >>confdefs.h <<\_ACEOF
40661#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40662_ACEOF
40663
40664 ;;
40665
40666 five)
40667 echo "$as_me:$LINENO: result: five" >&5
40668echo "${ECHO_T}five" >&6
40669 cat >>confdefs.h <<\_ACEOF
40670#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40671_ACEOF
40672
40673 ;;
40674
40675 six)
40676 echo "$as_me:$LINENO: result: six" >&5
40677echo "${ECHO_T}six" >&6
40678 cat >>confdefs.h <<\_ACEOF
40679#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40680_ACEOF
40681
40682 ;;
40683
40684 no)
40685 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40686echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40687 ;;
40688
40689 unknown)
40690 echo "$as_me:$LINENO: result: can't tell" >&5
40691echo "${ECHO_T}can't tell" >&6
40692 ;;
40693
40694 *)
40695 { { echo "$as_me:$LINENO: error: internal error" >&5
40696echo "$as_me: error: internal error" >&2;}
40697 { (exit 1); exit 1; }; }
40698 ;;
40699esac
40700
5ec3bc43
JS
40701ac_ext=cc
40702ac_cpp='$CXXCPP $CPPFLAGS'
40703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40706
40707
40708
40709 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40710 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40711 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40712echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40713if test "${ac_cv_func_gethostbyname+set}" = set; then
40714 echo $ECHO_N "(cached) $ECHO_C" >&6
40715else
40716 cat >conftest.$ac_ext <<_ACEOF
40717/* confdefs.h. */
40718_ACEOF
40719cat confdefs.h >>conftest.$ac_ext
40720cat >>conftest.$ac_ext <<_ACEOF
40721/* end confdefs.h. */
40722/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40724#define gethostbyname innocuous_gethostbyname
40725
40726/* System header to define __stub macros and hopefully few prototypes,
40727 which can conflict with char gethostbyname (); below.
40728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40729 <limits.h> exists even on freestanding compilers. */
40730
40731#ifdef __STDC__
40732# include <limits.h>
40733#else
40734# include <assert.h>
40735#endif
40736
40737#undef gethostbyname
40738
40739/* Override any gcc2 internal prototype to avoid an error. */
40740#ifdef __cplusplus
40741extern "C"
40742{
40743#endif
40744/* We use char because int might match the return type of a gcc2
40745 builtin and then its argument prototype would still apply. */
40746char gethostbyname ();
40747/* The GNU C library defines this for functions which it implements
40748 to always fail with ENOSYS. Some functions are actually named
40749 something starting with __ and the normal name is an alias. */
40750#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40751choke me
40752#else
40753char (*f) () = gethostbyname;
40754#endif
40755#ifdef __cplusplus
40756}
40757#endif
40758
40759int
40760main ()
40761{
40762return f != gethostbyname;
40763 ;
40764 return 0;
40765}
40766_ACEOF
40767rm -f conftest.$ac_objext conftest$ac_exeext
40768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40769 (eval $ac_link) 2>conftest.er1
40770 ac_status=$?
40771 grep -v '^ *+' conftest.er1 >conftest.err
40772 rm -f conftest.er1
40773 cat conftest.err >&5
40774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40775 (exit $ac_status); } &&
ca5c6ac3 40776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40778 (eval $ac_try) 2>&5
40779 ac_status=$?
40780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40781 (exit $ac_status); }; } &&
40782 { ac_try='test -s conftest$ac_exeext'
40783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40784 (eval $ac_try) 2>&5
40785 ac_status=$?
40786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40787 (exit $ac_status); }; }; then
40788 ac_cv_func_gethostbyname=yes
40789else
40790 echo "$as_me: failed program was:" >&5
40791sed 's/^/| /' conftest.$ac_ext >&5
40792
40793ac_cv_func_gethostbyname=no
40794fi
40795rm -f conftest.err conftest.$ac_objext \
40796 conftest$ac_exeext conftest.$ac_ext
40797fi
40798echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40799echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40800if test $ac_cv_func_gethostbyname = yes; then
40801 cat >>confdefs.h <<\_ACEOF
40802#define HAVE_GETHOSTBYNAME 1
40803_ACEOF
40804
40805fi
40806
40807 fi
3ecd9f92 40808
81c330c6
VZ
40809echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40810echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
40811if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
40812 echo $ECHO_N "(cached) $ECHO_C" >&6
40813else
3ecd9f92
MW
40814
40815 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40816/* confdefs.h. */
40817_ACEOF
40818cat confdefs.h >>conftest.$ac_ext
40819cat >>conftest.$ac_ext <<_ACEOF
40820/* end confdefs.h. */
81c330c6 40821#include <netdb.h>
004ee6da
RL
40822int
40823main ()
40824{
40825
81c330c6
VZ
40826 char *name;
40827 char *proto;
40828 struct servent *se, *res;
40829 char buffer[2048];
40830 int buflen = 2048;
40831 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40832
40833 ;
40834 return 0;
40835}
40836_ACEOF
40837rm -f conftest.$ac_objext
40838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40839 (eval $ac_compile) 2>conftest.er1
40840 ac_status=$?
40841 grep -v '^ *+' conftest.er1 >conftest.err
40842 rm -f conftest.er1
40843 cat conftest.err >&5
40844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40845 (exit $ac_status); } &&
ca5c6ac3 40846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40848 (eval $ac_try) 2>&5
40849 ac_status=$?
40850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851 (exit $ac_status); }; } &&
40852 { ac_try='test -s conftest.$ac_objext'
40853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40854 (eval $ac_try) 2>&5
40855 ac_status=$?
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); }; }; then
81c330c6 40858 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
40859else
40860 echo "$as_me: failed program was:" >&5
40861sed 's/^/| /' conftest.$ac_ext >&5
40862
3ecd9f92 40863
81c330c6 40864 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40865/* confdefs.h. */
40866_ACEOF
40867cat confdefs.h >>conftest.$ac_ext
40868cat >>conftest.$ac_ext <<_ACEOF
40869/* end confdefs.h. */
81c330c6 40870#include <netdb.h>
004ee6da
RL
40871int
40872main ()
40873{
40874
81c330c6
VZ
40875 char *name;
40876 char *proto;
40877 struct servent *se;
40878 char buffer[2048];
40879 int buflen = 2048;
40880 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40881
40882 ;
40883 return 0;
40884}
40885_ACEOF
40886rm -f conftest.$ac_objext
40887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40888 (eval $ac_compile) 2>conftest.er1
40889 ac_status=$?
40890 grep -v '^ *+' conftest.er1 >conftest.err
40891 rm -f conftest.er1
40892 cat conftest.err >&5
40893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894 (exit $ac_status); } &&
ca5c6ac3 40895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897 (eval $ac_try) 2>&5
40898 ac_status=$?
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); }; } &&
40901 { ac_try='test -s conftest.$ac_objext'
40902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40903 (eval $ac_try) 2>&5
40904 ac_status=$?
40905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40906 (exit $ac_status); }; }; then
81c330c6 40907 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
40908else
40909 echo "$as_me: failed program was:" >&5
40910sed 's/^/| /' conftest.$ac_ext >&5
40911
3ecd9f92 40912
81c330c6 40913 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40914/* confdefs.h. */
40915_ACEOF
40916cat confdefs.h >>conftest.$ac_ext
40917cat >>conftest.$ac_ext <<_ACEOF
40918/* end confdefs.h. */
81c330c6 40919#include <netdb.h>
004ee6da
RL
40920int
40921main ()
40922{
40923
81c330c6
VZ
40924 char *name;
40925 char *proto;
40926 struct servent *se;
40927 struct servent_data data;
40928 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
40929
40930 ;
40931 return 0;
40932}
40933_ACEOF
40934rm -f conftest.$ac_objext
40935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40936 (eval $ac_compile) 2>conftest.er1
40937 ac_status=$?
40938 grep -v '^ *+' conftest.er1 >conftest.err
40939 rm -f conftest.er1
40940 cat conftest.err >&5
40941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942 (exit $ac_status); } &&
ca5c6ac3 40943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40945 (eval $ac_try) 2>&5
40946 ac_status=$?
40947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948 (exit $ac_status); }; } &&
40949 { ac_try='test -s conftest.$ac_objext'
40950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40951 (eval $ac_try) 2>&5
40952 ac_status=$?
40953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 (exit $ac_status); }; }; then
81c330c6 40955 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
40956else
40957 echo "$as_me: failed program was:" >&5
40958sed 's/^/| /' conftest.$ac_ext >&5
40959
40960ac_cv_func_which_getservbyname_r=no
81c330c6 40961
004ee6da
RL
40962fi
40963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40964
3ecd9f92 40965
004ee6da
RL
40966fi
40967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40968
3ecd9f92 40969
004ee6da
RL
40970fi
40971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 40972
004ee6da 40973
3ecd9f92
MW
40974fi
40975echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40976echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
40977
40978if test $ac_cv_func_which_getservbyname_r = six; then
40979 cat >>confdefs.h <<\_ACEOF
40980#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40981_ACEOF
40982
40983elif test $ac_cv_func_which_getservbyname_r = five; then
40984 cat >>confdefs.h <<\_ACEOF
40985#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40986_ACEOF
40987
40988elif test $ac_cv_func_which_getservbyname_r = four; then
40989 cat >>confdefs.h <<\_ACEOF
40990#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40991_ACEOF
40992
004ee6da
RL
40993fi
40994
40995
40996 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40997 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40998
40999for ac_func in getservbyname
41000do
41001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41002echo "$as_me:$LINENO: checking for $ac_func" >&5
41003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41004if eval "test \"\${$as_ac_var+set}\" = set"; then
41005 echo $ECHO_N "(cached) $ECHO_C" >&6
41006else
41007 cat >conftest.$ac_ext <<_ACEOF
41008/* confdefs.h. */
41009_ACEOF
41010cat confdefs.h >>conftest.$ac_ext
41011cat >>conftest.$ac_ext <<_ACEOF
41012/* end confdefs.h. */
41013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41015#define $ac_func innocuous_$ac_func
41016
41017/* System header to define __stub macros and hopefully few prototypes,
41018 which can conflict with char $ac_func (); below.
41019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41020 <limits.h> exists even on freestanding compilers. */
41021
41022#ifdef __STDC__
41023# include <limits.h>
41024#else
41025# include <assert.h>
41026#endif
41027
41028#undef $ac_func
41029
41030/* Override any gcc2 internal prototype to avoid an error. */
41031#ifdef __cplusplus
41032extern "C"
41033{
41034#endif
41035/* We use char because int might match the return type of a gcc2
41036 builtin and then its argument prototype would still apply. */
41037char $ac_func ();
41038/* The GNU C library defines this for functions which it implements
41039 to always fail with ENOSYS. Some functions are actually named
41040 something starting with __ and the normal name is an alias. */
41041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41042choke me
41043#else
41044char (*f) () = $ac_func;
41045#endif
41046#ifdef __cplusplus
41047}
41048#endif
41049
41050int
41051main ()
41052{
41053return f != $ac_func;
41054 ;
41055 return 0;
41056}
41057_ACEOF
41058rm -f conftest.$ac_objext conftest$ac_exeext
41059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41060 (eval $ac_link) 2>conftest.er1
41061 ac_status=$?
41062 grep -v '^ *+' conftest.er1 >conftest.err
41063 rm -f conftest.er1
41064 cat conftest.err >&5
41065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41066 (exit $ac_status); } &&
ca5c6ac3 41067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069 (eval $ac_try) 2>&5
41070 ac_status=$?
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); }; } &&
41073 { ac_try='test -s conftest$ac_exeext'
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41076 ac_status=$?
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; }; then
41079 eval "$as_ac_var=yes"
41080else
41081 echo "$as_me: failed program was:" >&5
41082sed 's/^/| /' conftest.$ac_ext >&5
41083
41084eval "$as_ac_var=no"
41085fi
41086rm -f conftest.err conftest.$ac_objext \
41087 conftest$ac_exeext conftest.$ac_ext
41088fi
41089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41091if test `eval echo '${'$as_ac_var'}'` = yes; then
41092 cat >>confdefs.h <<_ACEOF
41093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41094_ACEOF
41095 cat >>confdefs.h <<\_ACEOF
41096#define HAVE_GETSERVBYNAME 1
41097_ACEOF
41098
41099fi
41100done
41101
41102 fi
41103
004ee6da
RL
41104if test "$wxUSE_THREADS" = "yes"; then
41105 cat >>confdefs.h <<\_ACEOF
41106#define wxUSE_THREADS 1
41107_ACEOF
41108
41109
41110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41111else
56632e81 41112 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41113 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41114echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41115 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41116 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41117 echo "$as_me:$LINENO: result: yes" >&5
41118echo "${ECHO_T}yes" >&6
41119 else
41120 echo "$as_me:$LINENO: result: no" >&5
41121echo "${ECHO_T}no" >&6
41122 fi
41123 fi
41124fi
41125
41126if test "$WXGTK20" = 1 ; then
41127 cat >>confdefs.h <<_ACEOF
41128#define __WXGTK20__ $WXGTK20
41129_ACEOF
41130
41131 WXGTK12=1
41132fi
41133
41134if test "$WXGTK12" = 1 ; then
41135 cat >>confdefs.h <<_ACEOF
41136#define __WXGTK12__ $WXGTK12
41137_ACEOF
41138
41139fi
41140
41141if test "$WXGTK127" = 1 ; then
41142 cat >>confdefs.h <<_ACEOF
41143#define __WXGTK127__ $WXGTK127
41144_ACEOF
41145
41146fi
41147
41148if test "$WXGPE" = 1 ; then
41149 cat >>confdefs.h <<_ACEOF
41150#define __WXGPE__ $WXGPE
41151_ACEOF
41152
41153fi
41154
41155DEBUG_CFLAGS=
41156if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41157 DEBUG_CFLAGS="-g"
41158 wxUSE_OPTIMISE=no
41159fi
41160
41161if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41162 wxUSE_DEBUG_INFO=yes
41163 if test "$GCC" = yes; then
41164 DEBUG_CFLAGS="-ggdb"
41165 fi
41166fi
41167
41168if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41169 cat >>confdefs.h <<\_ACEOF
41170#define WXDEBUG 1
41171_ACEOF
41172
41173 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41174else
41175 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41176 if test "x$wxGTK_VERSION" = "x1" ; then
41177 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41178 fi
004ee6da
RL
41179 fi
41180fi
41181
41182if test "$wxUSE_MEM_TRACING" = "yes" ; then
41183 cat >>confdefs.h <<\_ACEOF
41184#define wxUSE_MEMORY_TRACING 1
41185_ACEOF
41186
41187 cat >>confdefs.h <<\_ACEOF
41188#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41189_ACEOF
41190
41191 cat >>confdefs.h <<\_ACEOF
41192#define wxUSE_DEBUG_NEW_ALWAYS 1
41193_ACEOF
41194
41195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41196fi
41197
41198if test "$wxUSE_DMALLOC" = "yes" ; then
41199 DMALLOC_LIBS="-ldmallocthcxx"
41200fi
41201
41202PROFILE_FLAGS=
41203if test "$wxUSE_PROFILE" = "yes" ; then
41204 PROFILE_FLAGS=" -pg"
41205fi
41206
41207if test "$GCC" = "yes" ; then
41208 if test "$wxUSE_NO_RTTI" = "yes" ; then
41209 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41210 fi
41211 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41212 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41213 fi
41214 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41215 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41216 fi
41217
41218 case "${host}" in
41219 powerpc*-*-aix* )
41220 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41221 ;;
41222 *-hppa* )
41223 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41224 ;;
41225 esac
41226fi
41227
41228OPTIMISE_CFLAGS=
41229if test "$wxUSE_OPTIMISE" = "no" ; then
41230 if test "$GCC" = yes ; then
41231 OPTIMISE_CFLAGS="-O0"
41232 fi
41233else
41234 if test "$GCC" = yes ; then
e5efa97e
VZ
41235 case "${host}" in
41236 *-pc-os2_emx | *-pc-os2-emx )
41237 OPTIMISE_CFLAGS="-O2"
41238 ;;
41239 *)
41240 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41241 ;;
41242 esac
004ee6da
RL
41243 else
41244 OPTIMISE_CFLAGS="-O"
41245 fi
41246fi
41247
41248
41249if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41250 cat >>confdefs.h <<\_ACEOF
41251#define WXWIN_COMPATIBILITY_2_4 1
41252_ACEOF
41253
41254
41255 WXWIN_COMPATIBILITY_2_6="yes"
41256fi
41257
41258if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41259 cat >>confdefs.h <<\_ACEOF
41260#define WXWIN_COMPATIBILITY_2_6 1
41261_ACEOF
41262
41263fi
41264
41265
41266if test "$wxUSE_GUI" = "yes"; then
41267 cat >>confdefs.h <<\_ACEOF
41268#define wxUSE_GUI 1
41269_ACEOF
41270
41271
41272 fi
41273
41274
41275if test "$wxUSE_UNIX" = "yes"; then
41276 cat >>confdefs.h <<\_ACEOF
41277#define wxUSE_UNIX 1
41278_ACEOF
41279
41280fi
41281
41282
41283if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41284
41285 HAVE_DL_FUNCS=0
41286 HAVE_SHL_FUNCS=0
41287 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41288 if test "$USE_DARWIN" = 1; then
41289 HAVE_DL_FUNCS=1
41290 elif test "$USE_DOS" = 1; then
41291 HAVE_DL_FUNCS=0
41292 else
41293
41294for ac_func in dlopen
41295do
41296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41297echo "$as_me:$LINENO: checking for $ac_func" >&5
41298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41299if eval "test \"\${$as_ac_var+set}\" = set"; then
41300 echo $ECHO_N "(cached) $ECHO_C" >&6
41301else
41302 cat >conftest.$ac_ext <<_ACEOF
41303/* confdefs.h. */
41304_ACEOF
41305cat confdefs.h >>conftest.$ac_ext
41306cat >>conftest.$ac_ext <<_ACEOF
41307/* end confdefs.h. */
41308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41310#define $ac_func innocuous_$ac_func
41311
41312/* System header to define __stub macros and hopefully few prototypes,
41313 which can conflict with char $ac_func (); below.
41314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41315 <limits.h> exists even on freestanding compilers. */
41316
41317#ifdef __STDC__
41318# include <limits.h>
41319#else
41320# include <assert.h>
41321#endif
41322
41323#undef $ac_func
41324
41325/* Override any gcc2 internal prototype to avoid an error. */
41326#ifdef __cplusplus
41327extern "C"
41328{
41329#endif
41330/* We use char because int might match the return type of a gcc2
41331 builtin and then its argument prototype would still apply. */
41332char $ac_func ();
41333/* The GNU C library defines this for functions which it implements
41334 to always fail with ENOSYS. Some functions are actually named
41335 something starting with __ and the normal name is an alias. */
41336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41337choke me
41338#else
41339char (*f) () = $ac_func;
41340#endif
41341#ifdef __cplusplus
41342}
41343#endif
41344
41345int
41346main ()
41347{
41348return f != $ac_func;
a848cd7e
SC
41349 ;
41350 return 0;
41351}
41352_ACEOF
41353rm -f conftest.$ac_objext conftest$ac_exeext
41354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41355 (eval $ac_link) 2>conftest.er1
a848cd7e 41356 ac_status=$?
ac1cb8d3
VS
41357 grep -v '^ *+' conftest.er1 >conftest.err
41358 rm -f conftest.er1
41359 cat conftest.err >&5
a848cd7e
SC
41360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361 (exit $ac_status); } &&
ca5c6ac3 41362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41364 (eval $ac_try) 2>&5
41365 ac_status=$?
41366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41367 (exit $ac_status); }; } &&
41368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41370 (eval $ac_try) 2>&5
41371 ac_status=$?
41372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); }; }; then
41374 eval "$as_ac_var=yes"
41375else
41376 echo "$as_me: failed program was:" >&5
41377sed 's/^/| /' conftest.$ac_ext >&5
41378
41379eval "$as_ac_var=no"
41380fi
ac1cb8d3
VS
41381rm -f conftest.err conftest.$ac_objext \
41382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41383fi
41384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41386if test `eval echo '${'$as_ac_var'}'` = yes; then
41387 cat >>confdefs.h <<_ACEOF
41388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41389_ACEOF
41390
41391 cat >>confdefs.h <<\_ACEOF
41392#define HAVE_DLOPEN 1
41393_ACEOF
41394
41395 HAVE_DL_FUNCS=1
41396
41397else
41398
41399 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41400echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41401if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41402 echo $ECHO_N "(cached) $ECHO_C" >&6
41403else
41404 ac_check_lib_save_LIBS=$LIBS
41405LIBS="-ldl $LIBS"
41406cat >conftest.$ac_ext <<_ACEOF
41407/* confdefs.h. */
41408_ACEOF
41409cat confdefs.h >>conftest.$ac_ext
41410cat >>conftest.$ac_ext <<_ACEOF
41411/* end confdefs.h. */
41412
41413/* Override any gcc2 internal prototype to avoid an error. */
41414#ifdef __cplusplus
41415extern "C"
41416#endif
41417/* We use char because int might match the return type of a gcc2
41418 builtin and then its argument prototype would still apply. */
41419char dlopen ();
41420int
41421main ()
41422{
41423dlopen ();
41424 ;
41425 return 0;
41426}
41427_ACEOF
41428rm -f conftest.$ac_objext conftest$ac_exeext
41429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41430 (eval $ac_link) 2>conftest.er1
a848cd7e 41431 ac_status=$?
ac1cb8d3
VS
41432 grep -v '^ *+' conftest.er1 >conftest.err
41433 rm -f conftest.er1
41434 cat conftest.err >&5
a848cd7e
SC
41435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41436 (exit $ac_status); } &&
ca5c6ac3 41437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439 (eval $ac_try) 2>&5
41440 ac_status=$?
41441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442 (exit $ac_status); }; } &&
41443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41445 (eval $ac_try) 2>&5
41446 ac_status=$?
41447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448 (exit $ac_status); }; }; then
41449 ac_cv_lib_dl_dlopen=yes
41450else
41451 echo "$as_me: failed program was:" >&5
41452sed 's/^/| /' conftest.$ac_ext >&5
41453
41454ac_cv_lib_dl_dlopen=no
41455fi
ac1cb8d3
VS
41456rm -f conftest.err conftest.$ac_objext \
41457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41458LIBS=$ac_check_lib_save_LIBS
41459fi
41460echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41461echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41462if test $ac_cv_lib_dl_dlopen = yes; then
41463
41464 cat >>confdefs.h <<\_ACEOF
41465#define HAVE_DLOPEN 1
41466_ACEOF
41467
41468 HAVE_DL_FUNCS=1
41469 DL_LINK=" -ldl$DL_LINK"
41470
41471else
41472
41473
41474for ac_func in shl_load
41475do
41476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41477echo "$as_me:$LINENO: checking for $ac_func" >&5
41478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41479if eval "test \"\${$as_ac_var+set}\" = set"; then
41480 echo $ECHO_N "(cached) $ECHO_C" >&6
41481else
41482 cat >conftest.$ac_ext <<_ACEOF
41483/* confdefs.h. */
41484_ACEOF
41485cat confdefs.h >>conftest.$ac_ext
41486cat >>conftest.$ac_ext <<_ACEOF
41487/* end confdefs.h. */
ac1cb8d3
VS
41488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41490#define $ac_func innocuous_$ac_func
41491
a848cd7e
SC
41492/* System header to define __stub macros and hopefully few prototypes,
41493 which can conflict with char $ac_func (); below.
41494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41496
a848cd7e
SC
41497#ifdef __STDC__
41498# include <limits.h>
41499#else
41500# include <assert.h>
41501#endif
ac1cb8d3
VS
41502
41503#undef $ac_func
41504
a848cd7e
SC
41505/* Override any gcc2 internal prototype to avoid an error. */
41506#ifdef __cplusplus
41507extern "C"
41508{
41509#endif
41510/* We use char because int might match the return type of a gcc2
41511 builtin and then its argument prototype would still apply. */
41512char $ac_func ();
41513/* The GNU C library defines this for functions which it implements
41514 to always fail with ENOSYS. Some functions are actually named
41515 something starting with __ and the normal name is an alias. */
41516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41517choke me
41518#else
41519char (*f) () = $ac_func;
41520#endif
41521#ifdef __cplusplus
41522}
41523#endif
41524
41525int
41526main ()
41527{
41528return f != $ac_func;
41529 ;
41530 return 0;
41531}
41532_ACEOF
41533rm -f conftest.$ac_objext conftest$ac_exeext
41534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41535 (eval $ac_link) 2>conftest.er1
a848cd7e 41536 ac_status=$?
ac1cb8d3
VS
41537 grep -v '^ *+' conftest.er1 >conftest.err
41538 rm -f conftest.er1
41539 cat conftest.err >&5
a848cd7e
SC
41540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541 (exit $ac_status); } &&
ca5c6ac3 41542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41544 (eval $ac_try) 2>&5
41545 ac_status=$?
41546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547 (exit $ac_status); }; } &&
41548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41550 (eval $ac_try) 2>&5
41551 ac_status=$?
41552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41553 (exit $ac_status); }; }; then
41554 eval "$as_ac_var=yes"
41555else
41556 echo "$as_me: failed program was:" >&5
41557sed 's/^/| /' conftest.$ac_ext >&5
41558
41559eval "$as_ac_var=no"
41560fi
ac1cb8d3
VS
41561rm -f conftest.err conftest.$ac_objext \
41562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41563fi
41564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41566if test `eval echo '${'$as_ac_var'}'` = yes; then
41567 cat >>confdefs.h <<_ACEOF
41568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41569_ACEOF
41570
41571 cat >>confdefs.h <<\_ACEOF
41572#define HAVE_SHL_LOAD 1
41573_ACEOF
41574
41575 HAVE_SHL_FUNCS=1
41576
41577else
41578
41579 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41580echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41581if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41582 echo $ECHO_N "(cached) $ECHO_C" >&6
41583else
41584 ac_check_lib_save_LIBS=$LIBS
41585LIBS="-lshl_load $LIBS"
41586cat >conftest.$ac_ext <<_ACEOF
41587/* confdefs.h. */
41588_ACEOF
41589cat confdefs.h >>conftest.$ac_ext
41590cat >>conftest.$ac_ext <<_ACEOF
41591/* end confdefs.h. */
41592
41593/* Override any gcc2 internal prototype to avoid an error. */
41594#ifdef __cplusplus
41595extern "C"
41596#endif
41597/* We use char because int might match the return type of a gcc2
41598 builtin and then its argument prototype would still apply. */
41599char dld ();
41600int
41601main ()
41602{
41603dld ();
41604 ;
41605 return 0;
41606}
41607_ACEOF
41608rm -f conftest.$ac_objext conftest$ac_exeext
41609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41610 (eval $ac_link) 2>conftest.er1
a848cd7e 41611 ac_status=$?
ac1cb8d3
VS
41612 grep -v '^ *+' conftest.er1 >conftest.err
41613 rm -f conftest.er1
41614 cat conftest.err >&5
a848cd7e
SC
41615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616 (exit $ac_status); } &&
ca5c6ac3 41617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41619 (eval $ac_try) 2>&5
41620 ac_status=$?
41621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41622 (exit $ac_status); }; } &&
41623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41625 (eval $ac_try) 2>&5
41626 ac_status=$?
41627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628 (exit $ac_status); }; }; then
41629 ac_cv_lib_shl_load_dld=yes
41630else
41631 echo "$as_me: failed program was:" >&5
41632sed 's/^/| /' conftest.$ac_ext >&5
41633
41634ac_cv_lib_shl_load_dld=no
41635fi
ac1cb8d3
VS
41636rm -f conftest.err conftest.$ac_objext \
41637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41638LIBS=$ac_check_lib_save_LIBS
41639fi
41640echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41641echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41642if test $ac_cv_lib_shl_load_dld = yes; then
41643
41644 HAVE_SHL_FUNCS=1
41645 DL_LINK=" -ldld$DL_LINK"
41646
41647fi
41648
41649
41650fi
41651done
41652
41653
41654fi
41655
41656
41657fi
41658done
41659
41660
41661 if test "$HAVE_DL_FUNCS" = 1; then
41662
41663for ac_func in dlerror
41664do
41665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41666echo "$as_me:$LINENO: checking for $ac_func" >&5
41667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41668if eval "test \"\${$as_ac_var+set}\" = set"; then
41669 echo $ECHO_N "(cached) $ECHO_C" >&6
41670else
41671 cat >conftest.$ac_ext <<_ACEOF
41672/* confdefs.h. */
41673_ACEOF
41674cat confdefs.h >>conftest.$ac_ext
41675cat >>conftest.$ac_ext <<_ACEOF
41676/* end confdefs.h. */
ac1cb8d3
VS
41677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41679#define $ac_func innocuous_$ac_func
41680
a848cd7e
SC
41681/* System header to define __stub macros and hopefully few prototypes,
41682 which can conflict with char $ac_func (); below.
41683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41684 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41685
a848cd7e
SC
41686#ifdef __STDC__
41687# include <limits.h>
41688#else
41689# include <assert.h>
41690#endif
ac1cb8d3
VS
41691
41692#undef $ac_func
41693
a848cd7e
SC
41694/* Override any gcc2 internal prototype to avoid an error. */
41695#ifdef __cplusplus
41696extern "C"
41697{
41698#endif
41699/* We use char because int might match the return type of a gcc2
41700 builtin and then its argument prototype would still apply. */
41701char $ac_func ();
41702/* The GNU C library defines this for functions which it implements
41703 to always fail with ENOSYS. Some functions are actually named
41704 something starting with __ and the normal name is an alias. */
41705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41706choke me
41707#else
41708char (*f) () = $ac_func;
41709#endif
41710#ifdef __cplusplus
41711}
41712#endif
41713
41714int
41715main ()
41716{
41717return f != $ac_func;
41718 ;
41719 return 0;
41720}
41721_ACEOF
41722rm -f conftest.$ac_objext conftest$ac_exeext
41723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41724 (eval $ac_link) 2>conftest.er1
a848cd7e 41725 ac_status=$?
ac1cb8d3
VS
41726 grep -v '^ *+' conftest.er1 >conftest.err
41727 rm -f conftest.er1
41728 cat conftest.err >&5
a848cd7e
SC
41729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41730 (exit $ac_status); } &&
ca5c6ac3 41731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41733 (eval $ac_try) 2>&5
41734 ac_status=$?
41735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41736 (exit $ac_status); }; } &&
41737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41739 (eval $ac_try) 2>&5
41740 ac_status=$?
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); }; }; then
41743 eval "$as_ac_var=yes"
41744else
41745 echo "$as_me: failed program was:" >&5
41746sed 's/^/| /' conftest.$ac_ext >&5
41747
41748eval "$as_ac_var=no"
41749fi
ac1cb8d3
VS
41750rm -f conftest.err conftest.$ac_objext \
41751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41752fi
41753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41755if test `eval echo '${'$as_ac_var'}'` = yes; then
41756 cat >>confdefs.h <<_ACEOF
41757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41758_ACEOF
41759 cat >>confdefs.h <<\_ACEOF
41760#define HAVE_DLERROR 1
41761_ACEOF
41762
41763else
41764
41765 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41766echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41767if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41768 echo $ECHO_N "(cached) $ECHO_C" >&6
41769else
41770 ac_check_lib_save_LIBS=$LIBS
41771LIBS="-ldl $LIBS"
41772cat >conftest.$ac_ext <<_ACEOF
41773/* confdefs.h. */
41774_ACEOF
41775cat confdefs.h >>conftest.$ac_ext
41776cat >>conftest.$ac_ext <<_ACEOF
41777/* end confdefs.h. */
41778
41779/* Override any gcc2 internal prototype to avoid an error. */
41780#ifdef __cplusplus
41781extern "C"
41782#endif
41783/* We use char because int might match the return type of a gcc2
41784 builtin and then its argument prototype would still apply. */
41785char dlerror ();
41786int
41787main ()
41788{
41789dlerror ();
41790 ;
41791 return 0;
41792}
41793_ACEOF
41794rm -f conftest.$ac_objext conftest$ac_exeext
41795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41796 (eval $ac_link) 2>conftest.er1
a848cd7e 41797 ac_status=$?
ac1cb8d3
VS
41798 grep -v '^ *+' conftest.er1 >conftest.err
41799 rm -f conftest.er1
41800 cat conftest.err >&5
a848cd7e
SC
41801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41802 (exit $ac_status); } &&
ca5c6ac3 41803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41805 (eval $ac_try) 2>&5
41806 ac_status=$?
41807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41808 (exit $ac_status); }; } &&
41809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
41815 ac_cv_lib_dl_dlerror=yes
41816else
41817 echo "$as_me: failed program was:" >&5
41818sed 's/^/| /' conftest.$ac_ext >&5
41819
41820ac_cv_lib_dl_dlerror=no
41821fi
ac1cb8d3
VS
41822rm -f conftest.err conftest.$ac_objext \
41823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41824LIBS=$ac_check_lib_save_LIBS
41825fi
41826echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41827echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41828if test $ac_cv_lib_dl_dlerror = yes; then
41829 cat >>confdefs.h <<\_ACEOF
41830#define HAVE_DLERROR 1
41831_ACEOF
41832
41833fi
41834
41835
41836
41837fi
41838done
41839
41840 fi
41841 fi
41842
41843 if test "$HAVE_DL_FUNCS" = 0; then
41844 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41845 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41846 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41847echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41848 wxUSE_DYNAMIC_LOADER=no
41849 wxUSE_DYNLIB_CLASS=no
41850 else
41851 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41852echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41853 fi
41854 fi
41855 fi
41856 fi
41857fi
41858
41859if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41860 cat >>confdefs.h <<\_ACEOF
41861#define wxUSE_DYNAMIC_LOADER 1
41862_ACEOF
41863
41864fi
41865if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41866 cat >>confdefs.h <<\_ACEOF
41867#define wxUSE_DYNLIB_CLASS 1
41868_ACEOF
41869
41870fi
41871
41872
41873
41874if test "$wxUSE_PLUGINS" = "yes" ; then
41875 if test "$wxUSE_SHARED" = "no" ; then
41876 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41877echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41878 wxUSE_PLUGINS=no
41879 fi
41880 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41881 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41882echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41883 wxUSE_PLUGINS=no
41884 fi
41885 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41886 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41887echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41888 wxUSE_PLUGINS=no
41889 fi
41890 if test "$wxUSE_PLUGINS" = "yes" ; then
41891 cat >>confdefs.h <<\_ACEOF
41892#define wxUSE_PLUGINS 1
41893_ACEOF
41894
41895 fi
41896fi
41897
41898
41899if test "$wxUSE_STL" = "yes"; then
41900 cat >>confdefs.h <<\_ACEOF
41901#define wxUSE_STL 1
41902_ACEOF
41903
41904fi
41905
41906if test "$wxUSE_APPLE_IEEE" = "yes"; then
41907 cat >>confdefs.h <<\_ACEOF
41908#define wxUSE_APPLE_IEEE 1
41909_ACEOF
41910
41911fi
41912
41913if test "$wxUSE_TIMER" = "yes"; then
41914 cat >>confdefs.h <<\_ACEOF
41915#define wxUSE_TIMER 1
41916_ACEOF
41917
41918fi
41919
9c112555 41920if test "$USE_UNIX" = "1" ; then
31714590
VZ
41921 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41922echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41923if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41924 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41925else
d12aef51
VZ
41926
41927 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41928/* confdefs.h. */
41929_ACEOF
41930cat confdefs.h >>conftest.$ac_ext
41931cat >>conftest.$ac_ext <<_ACEOF
41932/* end confdefs.h. */
d12aef51 41933
31714590 41934 #include <sys/ioctl.h>
d12aef51
VZ
41935 #include <sys/soundcard.h>
41936
41937int
41938main ()
41939{
41940
31714590 41941 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41942
41943 ;
41944 return 0;
41945}
a848cd7e 41946_ACEOF
d12aef51
VZ
41947rm -f conftest.$ac_objext conftest$ac_exeext
41948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41949 (eval $ac_link) 2>conftest.er1
a848cd7e 41950 ac_status=$?
ac1cb8d3
VS
41951 grep -v '^ *+' conftest.er1 >conftest.err
41952 rm -f conftest.er1
41953 cat conftest.err >&5
a848cd7e
SC
41954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41955 (exit $ac_status); } &&
ca5c6ac3 41956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41958 (eval $ac_try) 2>&5
41959 ac_status=$?
41960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41961 (exit $ac_status); }; } &&
d12aef51 41962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41964 (eval $ac_try) 2>&5
41965 ac_status=$?
41966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41967 (exit $ac_status); }; }; then
d12aef51 41968 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41969else
41970 echo "$as_me: failed program was:" >&5
41971sed 's/^/| /' conftest.$ac_ext >&5
41972
a848cd7e 41973
d12aef51
VZ
41974 saveLibs="$LIBS"
41975 LIBS="$saveLibs -lossaudio"
41976 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41977/* confdefs.h. */
41978_ACEOF
41979cat confdefs.h >>conftest.$ac_ext
41980cat >>conftest.$ac_ext <<_ACEOF
41981/* end confdefs.h. */
d12aef51 41982
31714590 41983 #include <sys/ioctl.h>
d12aef51
VZ
41984 #include <sys/soundcard.h>
41985
41986int
41987main ()
41988{
41989
31714590 41990 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41991
41992 ;
41993 return 0;
41994}
a848cd7e 41995_ACEOF
d12aef51
VZ
41996rm -f conftest.$ac_objext conftest$ac_exeext
41997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41998 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41999 ac_status=$?
42000 grep -v '^ *+' conftest.er1 >conftest.err
42001 rm -f conftest.er1
42002 cat conftest.err >&5
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42004 (exit $ac_status); } &&
ca5c6ac3 42005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42007 (eval $ac_try) 2>&5
42008 ac_status=$?
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); }; } &&
42011 { ac_try='test -s conftest$ac_exeext'
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42014 ac_status=$?
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; }; then
42017 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42018else
42019 echo "$as_me: failed program was:" >&5
42020sed 's/^/| /' conftest.$ac_ext >&5
42021
a848cd7e 42022
d12aef51
VZ
42023 LIBS="$saveLibs"
42024 ac_cv_header_sys_soundcard=no
42025
42026
a848cd7e 42027fi
d12aef51
VZ
42028rm -f conftest.err conftest.$ac_objext \
42029 conftest$ac_exeext conftest.$ac_ext
42030
a848cd7e
SC
42031
42032fi
d12aef51
VZ
42033rm -f conftest.err conftest.$ac_objext \
42034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42035
42036fi
d12aef51
VZ
42037echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42038echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42039
d12aef51
VZ
42040 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42041 cat >>confdefs.h <<\_ACEOF
42042#define HAVE_SYS_SOUNDCARD_H 1
42043_ACEOF
a848cd7e 42044
d12aef51
VZ
42045 else
42046 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42047 fi
9c112555
MW
42048fi
42049WITH_PLUGIN_SDL=0
42050if test "$wxUSE_SOUND" = "yes"; then
42051 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42052 if test "$wxUSE_LIBSDL" != "no"; then
42053
42054# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42055if test "${with_sdl_prefix+set}" = set; then
42056 withval="$with_sdl_prefix"
42057 sdl_prefix="$withval"
42058else
42059 sdl_prefix=""
42060fi;
42061
42062# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42063if test "${with_sdl_exec_prefix+set}" = set; then
42064 withval="$with_sdl_exec_prefix"
42065 sdl_exec_prefix="$withval"
42066else
42067 sdl_exec_prefix=""
42068fi;
42069# Check whether --enable-sdltest or --disable-sdltest was given.
42070if test "${enable_sdltest+set}" = set; then
42071 enableval="$enable_sdltest"
42072
42073else
42074 enable_sdltest=yes
42075fi;
42076
42077 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42078 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42079 if test x${SDL_CONFIG+set} != xset ; then
42080 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42081 fi
a848cd7e
SC
42082 fi
42083 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42084 sdl_args="$sdl_args --prefix=$sdl_prefix"
42085 if test x${SDL_CONFIG+set} != xset ; then
42086 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42087 fi
a848cd7e
SC
42088 fi
42089
3ecd9f92
MW
42090 if test "x$prefix" != xNONE; then
42091 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42092 fi
a848cd7e
SC
42093 # Extract the first word of "sdl-config", so it can be a program name with args.
42094set dummy sdl-config; ac_word=$2
42095echo "$as_me:$LINENO: checking for $ac_word" >&5
42096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42097if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42098 echo $ECHO_N "(cached) $ECHO_C" >&6
42099else
42100 case $SDL_CONFIG in
42101 [\\/]* | ?:[\\/]*)
42102 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42103 ;;
42104 *)
42105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42106for as_dir in $PATH
42107do
42108 IFS=$as_save_IFS
42109 test -z "$as_dir" && as_dir=.
42110 for ac_exec_ext in '' $ac_executable_extensions; do
42111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42112 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42114 break 2
42115 fi
42116done
42117done
42118
42119 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42120 ;;
42121esac
42122fi
42123SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42124
42125if test -n "$SDL_CONFIG"; then
42126 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42127echo "${ECHO_T}$SDL_CONFIG" >&6
42128else
42129 echo "$as_me:$LINENO: result: no" >&5
42130echo "${ECHO_T}no" >&6
42131fi
42132
42133 min_sdl_version=1.2.0
42134 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42135echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42136 no_sdl=""
42137 if test "$SDL_CONFIG" = "no" ; then
42138 no_sdl=yes
42139 else
42140 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42141 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42142
42143 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42144 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42145 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42146 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42147 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42149 if test "x$enable_sdltest" = "xyes" ; then
42150 ac_save_CFLAGS="$CFLAGS"
94acd38e 42151 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42152 ac_save_LIBS="$LIBS"
42153 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42154 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42155 LIBS="$LIBS $SDL_LIBS"
42156 rm -f conf.sdltest
42157 if test "$cross_compiling" = yes; then
42158 echo $ac_n "cross compiling; assumed OK... $ac_c"
42159else
42160 cat >conftest.$ac_ext <<_ACEOF
42161/* confdefs.h. */
42162_ACEOF
42163cat confdefs.h >>conftest.$ac_ext
42164cat >>conftest.$ac_ext <<_ACEOF
42165/* end confdefs.h. */
42166
42167#include <stdio.h>
42168#include <stdlib.h>
42169#include <string.h>
42170#include "SDL.h"
42171
42172char*
42173my_strdup (char *str)
42174{
42175 char *new_str;
42176
42177 if (str)
42178 {
42179 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42180 strcpy (new_str, str);
42181 }
42182 else
42183 new_str = NULL;
42184
42185 return new_str;
42186}
42187
42188int main (int argc, char *argv[])
42189{
42190 int major, minor, micro;
42191 char *tmp_version;
42192
42193 /* This hangs on some systems (?)
42194 system ("touch conf.sdltest");
42195 */
42196 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42197
42198 /* HP/UX 9 (%@#!) writes to sscanf strings */
42199 tmp_version = my_strdup("$min_sdl_version");
42200 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42201 printf("%s, bad version string\n", "$min_sdl_version");
42202 exit(1);
42203 }
42204
42205 if (($sdl_major_version > major) ||
42206 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42207 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42208 {
42209 return 0;
42210 }
42211 else
42212 {
42213 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42214 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42215 printf("*** best to upgrade to the required version.\n");
42216 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42217 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42218 printf("*** config.cache before re-running configure\n");
42219 return 1;
42220 }
42221}
42222
42223
42224_ACEOF
42225rm -f conftest$ac_exeext
42226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42227 (eval $ac_link) 2>&5
42228 ac_status=$?
42229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42232 (eval $ac_try) 2>&5
42233 ac_status=$?
42234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42235 (exit $ac_status); }; }; then
42236 :
42237else
42238 echo "$as_me: program exited with status $ac_status" >&5
42239echo "$as_me: failed program was:" >&5
42240sed 's/^/| /' conftest.$ac_ext >&5
42241
42242( exit $ac_status )
42243no_sdl=yes
42244fi
ac1cb8d3 42245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42246fi
42247 CFLAGS="$ac_save_CFLAGS"
94acd38e 42248 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42249 LIBS="$ac_save_LIBS"
42250 fi
42251 fi
42252 if test "x$no_sdl" = x ; then
42253 echo "$as_me:$LINENO: result: yes" >&5
42254echo "${ECHO_T}yes" >&6
42255
42256 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42257 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42258 cat >>confdefs.h <<\_ACEOF
42259#define wxUSE_LIBSDL 1
42260_ACEOF
42261
42262
42263 else
42264 echo "$as_me:$LINENO: result: no" >&5
42265echo "${ECHO_T}no" >&6
42266 if test "$SDL_CONFIG" = "no" ; then
42267 echo "*** The sdl-config script installed by SDL could not be found"
42268 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42269 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42270 echo "*** full path to sdl-config."
42271 else
42272 if test -f conf.sdltest ; then
42273 :
42274 else
42275 echo "*** Could not run SDL test program, checking why..."
42276 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42277 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42278 LIBS="$LIBS $SDL_LIBS"
42279 cat >conftest.$ac_ext <<_ACEOF
42280/* confdefs.h. */
42281_ACEOF
42282cat confdefs.h >>conftest.$ac_ext
42283cat >>conftest.$ac_ext <<_ACEOF
42284/* end confdefs.h. */
42285
42286#include <stdio.h>
42287#include "SDL.h"
42288
42289int main(int argc, char *argv[])
42290{ return 0; }
42291#undef main
42292#define main K_and_R_C_main
42293
42294int
42295main ()
42296{
42297 return 0;
42298 ;
42299 return 0;
42300}
42301_ACEOF
42302rm -f conftest.$ac_objext conftest$ac_exeext
42303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42304 (eval $ac_link) 2>conftest.er1
a848cd7e 42305 ac_status=$?
ac1cb8d3
VS
42306 grep -v '^ *+' conftest.er1 >conftest.err
42307 rm -f conftest.er1
42308 cat conftest.err >&5
a848cd7e
SC
42309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310 (exit $ac_status); } &&
ca5c6ac3 42311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42313 (eval $ac_try) 2>&5
42314 ac_status=$?
42315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316 (exit $ac_status); }; } &&
42317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42319 (eval $ac_try) 2>&5
42320 ac_status=$?
42321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322 (exit $ac_status); }; }; then
42323 echo "*** The test program compiled, but did not run. This usually means"
42324 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42325 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42326 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42327 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42328 echo "*** is required on your system"
42329 echo "***"
42330 echo "*** If you have an old version installed, it is best to remove it, although"
42331 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42332else
42333 echo "$as_me: failed program was:" >&5
42334sed 's/^/| /' conftest.$ac_ext >&5
42335
42336 echo "*** The test program failed to compile or link. See the file config.log for the"
42337 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42338 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42339 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42340fi
ac1cb8d3
VS
42341rm -f conftest.err conftest.$ac_objext \
42342 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42343 CFLAGS="$ac_save_CFLAGS"
94acd38e 42344 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42345 LIBS="$ac_save_LIBS"
42346 fi
42347 fi
42348 SDL_CFLAGS=""
42349 SDL_LIBS=""
42350 wxUSE_LIBSDL="no"
42351 fi
42352
42353
42354 rm -f conf.sdltest
42355
42356 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42357 WITH_PLUGIN_SDL=1
42358 fi
42359 fi
42360 fi
42361
42362 cat >>confdefs.h <<\_ACEOF
42363#define wxUSE_SOUND 1
42364_ACEOF
42365
42366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42367fi
42368
d1c38808
VZ
42369if test "$WXGTK20" = 1; then
42370 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42371 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42372
42373
3ecd9f92
MW
42374pkg_failed=no
42375echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42376echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42377
3ecd9f92
MW
42378if test -n "$PKG_CONFIG"; then
42379 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42380 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42381 else
42382 if test -n "$PKG_CONFIG" && \
42383 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42384 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42385 ac_status=$?
42386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42387 (exit $ac_status); }; then
42388 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42389else
3ecd9f92
MW
42390 pkg_failed=yes
42391fi
42392 fi
42393else
42394 pkg_failed=untried
d1c38808 42395fi
d1c38808 42396if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42397 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42398 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42399 else
42400 if test -n "$PKG_CONFIG" && \
42401 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42402 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42403 ac_status=$?
42404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42405 (exit $ac_status); }; then
42406 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42407else
3ecd9f92
MW
42408 pkg_failed=yes
42409fi
42410 fi
42411else
42412 pkg_failed=untried
d1c38808
VZ
42413fi
42414
d1c38808 42415
d1c38808 42416
3ecd9f92 42417if test $pkg_failed = yes; then
d1c38808 42418
3ecd9f92
MW
42419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42420 _pkg_short_errors_supported=yes
42421else
42422 _pkg_short_errors_supported=no
42423fi
42424 if test $_pkg_short_errors_supported = yes; then
42425 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42426 else
42427 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42428 fi
3ecd9f92
MW
42429 # Put the nasty error message in config.log where it belongs
42430 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42431
42432
3ecd9f92
MW
42433 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42434echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42435 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42436
42437
3ecd9f92 42438elif test $pkg_failed = untried; then
d1c38808
VZ
42439
42440 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42441echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42442 wxUSE_LIBGNOMEPRINT="no"
42443
42444
3ecd9f92
MW
42445else
42446 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42447 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42448 echo "$as_me:$LINENO: result: yes" >&5
42449echo "${ECHO_T}yes" >&6
d1c38808 42450
3ecd9f92
MW
42451 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42452 cat >>confdefs.h <<\_ACEOF
42453#define wxUSE_LIBGNOMEPRINT 1
42454_ACEOF
42455
42456
42457fi
d1c38808
VZ
42458 fi
42459 fi
42460fi
42461
2b850ae1
RR
42462if test "$WXGTK20" = 1; then
42463 if test "$wxUSE_MIMETYPE" = "yes" ; then
42464 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42465
42466
3ecd9f92
MW
42467pkg_failed=no
42468echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42469echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42470
3ecd9f92
MW
42471if test -n "$PKG_CONFIG"; then
42472 if test -n "$GNOMEVFS_CFLAGS"; then
42473 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42474 else
42475 if test -n "$PKG_CONFIG" && \
42476 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42477 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42478 ac_status=$?
42479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480 (exit $ac_status); }; then
42481 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42482else
3ecd9f92
MW
42483 pkg_failed=yes
42484fi
42485 fi
42486else
42487 pkg_failed=untried
2b850ae1 42488fi
2b850ae1 42489if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42490 if test -n "$GNOMEVFS_LIBS"; then
42491 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42492 else
42493 if test -n "$PKG_CONFIG" && \
42494 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42495 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42496 ac_status=$?
42497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498 (exit $ac_status); }; then
42499 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42500else
3ecd9f92
MW
42501 pkg_failed=yes
42502fi
42503 fi
42504else
42505 pkg_failed=untried
2b850ae1
RR
42506fi
42507
2b850ae1 42508
2b850ae1 42509
3ecd9f92 42510if test $pkg_failed = yes; then
2b850ae1 42511
3ecd9f92
MW
42512if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42513 _pkg_short_errors_supported=yes
42514else
42515 _pkg_short_errors_supported=no
42516fi
42517 if test $_pkg_short_errors_supported = yes; then
42518 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42519 else
42520 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42521 fi
3ecd9f92
MW
42522 # Put the nasty error message in config.log where it belongs
42523 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42524
42525
3ecd9f92
MW
42526 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42527echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42528 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42529
42530
3ecd9f92 42531elif test $pkg_failed = untried; then
2b850ae1
RR
42532
42533 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42534echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42535 wxUSE_LIBGNOMEVFS="no"
42536
42537
3ecd9f92
MW
42538else
42539 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42540 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42541 echo "$as_me:$LINENO: result: yes" >&5
42542echo "${ECHO_T}yes" >&6
2b850ae1 42543
3ecd9f92
MW
42544 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42545 cat >>confdefs.h <<\_ACEOF
42546#define wxUSE_LIBGNOMEVFS 1
42547_ACEOF
42548
42549
42550fi
2b850ae1
RR
42551 fi
42552 fi
42553fi
42554
3565d135
RR
42555if test "$WXGTK20" = 1; then
42556 if test "$wxUSE_LIBHILDON" = "yes" ; then
42557
3ecd9f92
MW
42558pkg_failed=no
42559echo "$as_me:$LINENO: checking for HILDON" >&5
42560echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42561
3ecd9f92
MW
42562if test -n "$PKG_CONFIG"; then
42563 if test -n "$HILDON_CFLAGS"; then
42564 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42565 else
42566 if test -n "$PKG_CONFIG" && \
42567 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42568 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42569 ac_status=$?
42570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42571 (exit $ac_status); }; then
42572 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42573else
3ecd9f92
MW
42574 pkg_failed=yes
42575fi
42576 fi
42577else
42578 pkg_failed=untried
3565d135 42579fi
3565d135 42580if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42581 if test -n "$HILDON_LIBS"; then
42582 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42583 else
42584 if test -n "$PKG_CONFIG" && \
42585 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42586 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42587 ac_status=$?
42588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589 (exit $ac_status); }; then
42590 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42591else
3ecd9f92
MW
42592 pkg_failed=yes
42593fi
42594 fi
42595else
42596 pkg_failed=untried
3565d135
RR
42597fi
42598
3565d135 42599
3565d135 42600
3ecd9f92 42601if test $pkg_failed = yes; then
3565d135 42602
3ecd9f92
MW
42603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42604 _pkg_short_errors_supported=yes
42605else
42606 _pkg_short_errors_supported=no
42607fi
42608 if test $_pkg_short_errors_supported = yes; then
42609 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42610 else
42611 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42612 fi
3ecd9f92
MW
42613 # Put the nasty error message in config.log where it belongs
42614 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42615
42616
3ecd9f92
MW
42617 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42618echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42619 wxUSE_LIBHILDON="no"
3565d135 42620
3565d135 42621
3ecd9f92
MW
42622elif test $pkg_failed = untried; then
42623
42624 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42625echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42626 wxUSE_LIBHILDON="no"
42627
42628
42629else
42630 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42631 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42632 echo "$as_me:$LINENO: result: yes" >&5
42633echo "${ECHO_T}yes" >&6
3565d135
RR
42634
42635 EXTRALIBS_HILDON="$HILDON_LIBS"
42636 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42637 cat >>confdefs.h <<\_ACEOF
42638#define wxUSE_LIBHILDON 1
42639_ACEOF
42640
42641
3ecd9f92 42642fi
3565d135
RR
42643 fi
42644fi
d1c38808 42645
a848cd7e
SC
42646if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42647 cat >>confdefs.h <<\_ACEOF
42648#define wxUSE_CMDLINE_PARSER 1
42649_ACEOF
42650
42651fi
42652
42653if test "$wxUSE_STOPWATCH" = "yes"; then
42654 cat >>confdefs.h <<\_ACEOF
42655#define wxUSE_STOPWATCH 1
42656_ACEOF
42657
42658fi
42659
42660if test "$wxUSE_DATETIME" = "yes"; then
42661 cat >>confdefs.h <<\_ACEOF
42662#define wxUSE_DATETIME 1
42663_ACEOF
42664
42665fi
42666
42667if test "$wxUSE_FILE" = "yes"; then
42668 cat >>confdefs.h <<\_ACEOF
42669#define wxUSE_FILE 1
42670_ACEOF
42671
42672fi
42673
42674if test "$wxUSE_FFILE" = "yes"; then
42675 cat >>confdefs.h <<\_ACEOF
42676#define wxUSE_FFILE 1
42677_ACEOF
42678
42679fi
42680
42681if test "$wxUSE_FILESYSTEM" = "yes"; then
42682 cat >>confdefs.h <<\_ACEOF
42683#define wxUSE_FILESYSTEM 1
42684_ACEOF
42685
42686fi
42687
42688if test "$wxUSE_FS_ZIP" = "yes"; then
42689 cat >>confdefs.h <<\_ACEOF
42690#define wxUSE_FS_ZIP 1
42691_ACEOF
42692
42693fi
42694
9e8e867f 42695if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42696 cat >>confdefs.h <<\_ACEOF
9e8e867f 42697#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42698_ACEOF
42699
42700fi
42701
42702if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42703 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42704 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42705echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42706 elif test "$wxUSE_ZLIB" = "no"; then
42707 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42708echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42709 else
42710 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42711#define wxUSE_ZIPSTREAM 1
42712_ACEOF
42713
81f90336 42714 fi
a848cd7e
SC
42715fi
42716
a848cd7e 42717if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42718 if test "$USE_UNIX" != 1; then
42719 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42720echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42721 wxUSE_ON_FATAL_EXCEPTION=no
42722 else
42723 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42724#define wxUSE_ON_FATAL_EXCEPTION 1
42725_ACEOF
42726
18228ab4 42727 fi
a848cd7e
SC
42728fi
42729
eaff0f0d
VZ
42730if test "$wxUSE_STACKWALKER" = "yes"; then
42731 cat >>confdefs.h <<\_ACEOF
42732#define wxUSE_STACKWALKER 1
42733_ACEOF
42734
42735fi
42736
36b6448c 42737if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42738 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42739 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42740echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42741 wxUSE_DEBUGREPORT=no
42742 else
42743 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42744#define wxUSE_DEBUGREPORT 1
42745_ACEOF
42746
21dfc162
MW
42747 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42749 fi
dfe0c803 42750 fi
36b6448c
VZ
42751fi
42752
a848cd7e
SC
42753if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42754 cat >>confdefs.h <<\_ACEOF
42755#define wxUSE_SNGLINST_CHECKER 1
42756_ACEOF
42757
42758fi
42759
42760if test "$wxUSE_BUSYINFO" = "yes"; then
42761 cat >>confdefs.h <<\_ACEOF
42762#define wxUSE_BUSYINFO 1
42763_ACEOF
42764
42765fi
42766
42767if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42768 cat >>confdefs.h <<\_ACEOF
42769#define wxUSE_STD_IOSTREAM 1
42770_ACEOF
42771
42772fi
42773
59746b65
MW
42774if test "$wxUSE_STD_STRING" = "yes"; then
42775 cat >>confdefs.h <<\_ACEOF
42776#define wxUSE_STD_STRING 1
42777_ACEOF
42778
42779fi
42780
07158944
VZ
42781if test "$wxUSE_STDPATHS" = "yes"; then
42782 cat >>confdefs.h <<\_ACEOF
42783#define wxUSE_STDPATHS 1
42784_ACEOF
42785
42786fi
42787
a848cd7e
SC
42788if test "$wxUSE_TEXTBUFFER" = "yes"; then
42789 cat >>confdefs.h <<\_ACEOF
42790#define wxUSE_TEXTBUFFER 1
42791_ACEOF
42792
42793fi
42794
42795if test "$wxUSE_TEXTFILE" = "yes"; then
42796 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42797 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42798echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42799 else
42800 cat >>confdefs.h <<\_ACEOF
42801#define wxUSE_TEXTFILE 1
42802_ACEOF
42803
42804 fi
42805fi
42806
42807if test "$wxUSE_CONFIG" = "yes" ; then
42808 if test "$wxUSE_TEXTFILE" != "yes"; then
42809 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42810echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42811 else
42812 cat >>confdefs.h <<\_ACEOF
42813#define wxUSE_CONFIG 1
89be85c2
VS
42814_ACEOF
42815
42816 cat >>confdefs.h <<\_ACEOF
42817#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42818_ACEOF
42819
42820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42821 fi
42822fi
42823
42824if test "$wxUSE_INTL" = "yes" ; then
42825 if test "$wxUSE_FILE" != "yes"; then
42826 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42827echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42828 else
42829 cat >>confdefs.h <<\_ACEOF
42830#define wxUSE_INTL 1
42831_ACEOF
42832
42833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42834 GUIDIST="$GUIDIST INTL_DIST"
42835 fi
42836fi
42837
42838if test "$wxUSE_LOG" = "yes"; then
42839 cat >>confdefs.h <<\_ACEOF
42840#define wxUSE_LOG 1
42841_ACEOF
42842
42843
42844 if test "$wxUSE_LOGGUI" = "yes"; then
42845 cat >>confdefs.h <<\_ACEOF
42846#define wxUSE_LOGGUI 1
42847_ACEOF
42848
42849 fi
42850
42851 if test "$wxUSE_LOGWINDOW" = "yes"; then
42852 cat >>confdefs.h <<\_ACEOF
42853#define wxUSE_LOGWINDOW 1
42854_ACEOF
42855
42856 fi
42857
42858 if test "$wxUSE_LOGDIALOG" = "yes"; then
42859 cat >>confdefs.h <<\_ACEOF
42860#define wxUSE_LOG_DIALOG 1
42861_ACEOF
42862
42863 fi
0b78747f
MW
42864
42865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42866fi
42867
42868if test "$wxUSE_LONGLONG" = "yes"; then
42869 cat >>confdefs.h <<\_ACEOF
42870#define wxUSE_LONGLONG 1
42871_ACEOF
42872
42873fi
42874
42875if test "$wxUSE_GEOMETRY" = "yes"; then
42876 cat >>confdefs.h <<\_ACEOF
42877#define wxUSE_GEOMETRY 1
42878_ACEOF
42879
42880fi
42881
a848cd7e
SC
42882if test "$wxUSE_STREAMS" = "yes" ; then
42883 cat >>confdefs.h <<\_ACEOF
42884#define wxUSE_STREAMS 1
42885_ACEOF
42886
42887fi
42888
8b6682b9
JS
42889if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42890 cat >>confdefs.h <<\_ACEOF
42891#define wxUSE_PRINTF_POS_PARAMS 1
42892_ACEOF
42893
42894fi
42895
42896
a848cd7e
SC
42897
42898if test "$wxUSE_DATETIME" = "yes"; then
42899
42900for ac_func in strptime
42901do
42902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42903echo "$as_me:$LINENO: checking for $ac_func" >&5
42904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42905if eval "test \"\${$as_ac_var+set}\" = set"; then
42906 echo $ECHO_N "(cached) $ECHO_C" >&6
42907else
42908 cat >conftest.$ac_ext <<_ACEOF
42909/* confdefs.h. */
42910_ACEOF
42911cat confdefs.h >>conftest.$ac_ext
42912cat >>conftest.$ac_ext <<_ACEOF
42913/* end confdefs.h. */
ac1cb8d3
VS
42914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42916#define $ac_func innocuous_$ac_func
42917
a848cd7e
SC
42918/* System header to define __stub macros and hopefully few prototypes,
42919 which can conflict with char $ac_func (); below.
42920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42921 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42922
a848cd7e
SC
42923#ifdef __STDC__
42924# include <limits.h>
42925#else
42926# include <assert.h>
42927#endif
ac1cb8d3
VS
42928
42929#undef $ac_func
42930
a848cd7e
SC
42931/* Override any gcc2 internal prototype to avoid an error. */
42932#ifdef __cplusplus
42933extern "C"
42934{
42935#endif
42936/* We use char because int might match the return type of a gcc2
42937 builtin and then its argument prototype would still apply. */
42938char $ac_func ();
42939/* The GNU C library defines this for functions which it implements
42940 to always fail with ENOSYS. Some functions are actually named
42941 something starting with __ and the normal name is an alias. */
42942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42943choke me
42944#else
42945char (*f) () = $ac_func;
42946#endif
42947#ifdef __cplusplus
42948}
42949#endif
42950
42951int
42952main ()
42953{
42954return f != $ac_func;
42955 ;
42956 return 0;
42957}
42958_ACEOF
42959rm -f conftest.$ac_objext conftest$ac_exeext
42960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42961 (eval $ac_link) 2>conftest.er1
a848cd7e 42962 ac_status=$?
ac1cb8d3
VS
42963 grep -v '^ *+' conftest.er1 >conftest.err
42964 rm -f conftest.er1
42965 cat conftest.err >&5
a848cd7e
SC
42966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967 (exit $ac_status); } &&
ca5c6ac3 42968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42970 (eval $ac_try) 2>&5
42971 ac_status=$?
42972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973 (exit $ac_status); }; } &&
42974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42976 (eval $ac_try) 2>&5
42977 ac_status=$?
42978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42979 (exit $ac_status); }; }; then
42980 eval "$as_ac_var=yes"
42981else
42982 echo "$as_me: failed program was:" >&5
42983sed 's/^/| /' conftest.$ac_ext >&5
42984
42985eval "$as_ac_var=no"
42986fi
ac1cb8d3
VS
42987rm -f conftest.err conftest.$ac_objext \
42988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42989fi
42990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42992if test `eval echo '${'$as_ac_var'}'` = yes; then
42993 cat >>confdefs.h <<_ACEOF
42994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42995_ACEOF
42996
42997fi
42998done
42999
f536f005
VZ
43000 if test "$ac_cv_func_strptime" = "yes"; then
43001 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43002echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43003if test "${wx_cv_func_strptime_decl+set}" = set; then
43004 echo $ECHO_N "(cached) $ECHO_C" >&6
43005else
43006
f536f005
VZ
43007 cat >conftest.$ac_ext <<_ACEOF
43008/* confdefs.h. */
43009_ACEOF
43010cat confdefs.h >>conftest.$ac_ext
43011cat >>conftest.$ac_ext <<_ACEOF
43012/* end confdefs.h. */
43013
43014 #include <time.h>
43015
43016int
43017main ()
43018{
43019
43020 struct tm t;
43021 strptime("foo", "bar", &t);
43022
43023 ;
43024 return 0;
43025}
43026_ACEOF
43027rm -f conftest.$ac_objext
43028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43029 (eval $ac_compile) 2>conftest.er1
43030 ac_status=$?
43031 grep -v '^ *+' conftest.er1 >conftest.err
43032 rm -f conftest.er1
43033 cat conftest.err >&5
43034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43035 (exit $ac_status); } &&
ca5c6ac3 43036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43038 (eval $ac_try) 2>&5
43039 ac_status=$?
43040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); }; } &&
43042 { ac_try='test -s conftest.$ac_objext'
43043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43044 (eval $ac_try) 2>&5
43045 ac_status=$?
43046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43047 (exit $ac_status); }; }; then
43048 wx_cv_func_strptime_decl=yes
43049else
43050 echo "$as_me: failed program was:" >&5
43051sed 's/^/| /' conftest.$ac_ext >&5
43052
43053wx_cv_func_strptime_decl=no
43054
43055fi
43056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43057
43058
43059fi
43060echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43061echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43062 fi
43063 if test "$wx_cv_func_strptime_decl" = "yes"; then
43064 cat >>confdefs.h <<\_ACEOF
43065#define HAVE_STRPTIME_DECL 1
43066_ACEOF
43067
43068 fi
a848cd7e
SC
43069
43070 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43071echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43072if test "${wx_cv_var_timezone+set}" = set; then
43073 echo $ECHO_N "(cached) $ECHO_C" >&6
43074else
43075
43076 cat >conftest.$ac_ext <<_ACEOF
43077/* confdefs.h. */
43078_ACEOF
43079cat confdefs.h >>conftest.$ac_ext
43080cat >>conftest.$ac_ext <<_ACEOF
43081/* end confdefs.h. */
43082
43083 #include <time.h>
43084
43085int
43086main ()
43087{
43088
43089 int tz;
43090 tz = timezone;
43091
43092 ;
43093 return 0;
43094}
43095_ACEOF
43096rm -f conftest.$ac_objext
43097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43098 (eval $ac_compile) 2>conftest.er1
a848cd7e 43099 ac_status=$?
ac1cb8d3
VS
43100 grep -v '^ *+' conftest.er1 >conftest.err
43101 rm -f conftest.er1
43102 cat conftest.err >&5
a848cd7e
SC
43103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43104 (exit $ac_status); } &&
ca5c6ac3 43105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43107 (eval $ac_try) 2>&5
43108 ac_status=$?
43109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43110 (exit $ac_status); }; } &&
43111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43113 (eval $ac_try) 2>&5
43114 ac_status=$?
43115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43116 (exit $ac_status); }; }; then
43117
43118 wx_cv_var_timezone=timezone
43119
43120else
43121 echo "$as_me: failed program was:" >&5
43122sed 's/^/| /' conftest.$ac_ext >&5
43123
43124
43125 cat >conftest.$ac_ext <<_ACEOF
43126/* confdefs.h. */
43127_ACEOF
43128cat confdefs.h >>conftest.$ac_ext
43129cat >>conftest.$ac_ext <<_ACEOF
43130/* end confdefs.h. */
43131
43132 #include <time.h>
43133
43134int
43135main ()
43136{
43137
43138 int tz;
43139 tz = _timezone;
43140
43141 ;
43142 return 0;
43143}
43144_ACEOF
43145rm -f conftest.$ac_objext
43146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43147 (eval $ac_compile) 2>conftest.er1
a848cd7e 43148 ac_status=$?
ac1cb8d3
VS
43149 grep -v '^ *+' conftest.er1 >conftest.err
43150 rm -f conftest.er1
43151 cat conftest.err >&5
a848cd7e
SC
43152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43153 (exit $ac_status); } &&
ca5c6ac3 43154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43156 (eval $ac_try) 2>&5
43157 ac_status=$?
43158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159 (exit $ac_status); }; } &&
43160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43162 (eval $ac_try) 2>&5
43163 ac_status=$?
43164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165 (exit $ac_status); }; }; then
43166
43167 wx_cv_var_timezone=_timezone
43168
43169else
43170 echo "$as_me: failed program was:" >&5
43171sed 's/^/| /' conftest.$ac_ext >&5
43172
43173
43174 cat >conftest.$ac_ext <<_ACEOF
43175/* confdefs.h. */
43176_ACEOF
43177cat confdefs.h >>conftest.$ac_ext
43178cat >>conftest.$ac_ext <<_ACEOF
43179/* end confdefs.h. */
43180
43181 #include <time.h>
43182
43183int
43184main ()
43185{
43186
43187 int tz;
43188 tz = __timezone;
43189
43190 ;
43191 return 0;
43192}
43193_ACEOF
43194rm -f conftest.$ac_objext
43195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43196 (eval $ac_compile) 2>conftest.er1
a848cd7e 43197 ac_status=$?
ac1cb8d3
VS
43198 grep -v '^ *+' conftest.er1 >conftest.err
43199 rm -f conftest.er1
43200 cat conftest.err >&5
a848cd7e
SC
43201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202 (exit $ac_status); } &&
ca5c6ac3 43203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43205 (eval $ac_try) 2>&5
43206 ac_status=$?
43207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208 (exit $ac_status); }; } &&
43209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211 (eval $ac_try) 2>&5
43212 ac_status=$?
43213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214 (exit $ac_status); }; }; then
43215
43216 wx_cv_var_timezone=__timezone
43217
43218else
43219 echo "$as_me: failed program was:" >&5
43220sed 's/^/| /' conftest.$ac_ext >&5
43221
43222
43223 if test "$USE_DOS" = 0 ; then
43224 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43225echo "$as_me: WARNING: no timezone variable" >&2;}
43226 fi
43227
43228
43229fi
ac1cb8d3 43230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43231
43232
43233fi
ac1cb8d3 43234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43235
43236
43237fi
ac1cb8d3 43238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43239
43240
43241fi
43242echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43243echo "${ECHO_T}$wx_cv_var_timezone" >&6
43244
43245 if test "x$wx_cv_var_timezone" != x ; then
43246 cat >>confdefs.h <<_ACEOF
43247#define WX_TIMEZONE $wx_cv_var_timezone
43248_ACEOF
43249
43250 fi
43251
43252
43253for ac_func in localtime
43254do
43255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43256echo "$as_me:$LINENO: checking for $ac_func" >&5
43257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43258if eval "test \"\${$as_ac_var+set}\" = set"; then
43259 echo $ECHO_N "(cached) $ECHO_C" >&6
43260else
43261 cat >conftest.$ac_ext <<_ACEOF
43262/* confdefs.h. */
43263_ACEOF
43264cat confdefs.h >>conftest.$ac_ext
43265cat >>conftest.$ac_ext <<_ACEOF
43266/* end confdefs.h. */
ac1cb8d3
VS
43267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43269#define $ac_func innocuous_$ac_func
43270
a848cd7e
SC
43271/* System header to define __stub macros and hopefully few prototypes,
43272 which can conflict with char $ac_func (); below.
43273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43274 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43275
a848cd7e
SC
43276#ifdef __STDC__
43277# include <limits.h>
43278#else
43279# include <assert.h>
43280#endif
ac1cb8d3
VS
43281
43282#undef $ac_func
43283
a848cd7e
SC
43284/* Override any gcc2 internal prototype to avoid an error. */
43285#ifdef __cplusplus
43286extern "C"
43287{
43288#endif
43289/* We use char because int might match the return type of a gcc2
43290 builtin and then its argument prototype would still apply. */
43291char $ac_func ();
43292/* The GNU C library defines this for functions which it implements
43293 to always fail with ENOSYS. Some functions are actually named
43294 something starting with __ and the normal name is an alias. */
43295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43296choke me
43297#else
43298char (*f) () = $ac_func;
43299#endif
43300#ifdef __cplusplus
43301}
43302#endif
43303
43304int
43305main ()
43306{
43307return f != $ac_func;
43308 ;
43309 return 0;
43310}
43311_ACEOF
43312rm -f conftest.$ac_objext conftest$ac_exeext
43313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43314 (eval $ac_link) 2>conftest.er1
a848cd7e 43315 ac_status=$?
ac1cb8d3
VS
43316 grep -v '^ *+' conftest.er1 >conftest.err
43317 rm -f conftest.er1
43318 cat conftest.err >&5
a848cd7e
SC
43319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43320 (exit $ac_status); } &&
ca5c6ac3 43321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43323 (eval $ac_try) 2>&5
43324 ac_status=$?
43325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43326 (exit $ac_status); }; } &&
43327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43329 (eval $ac_try) 2>&5
43330 ac_status=$?
43331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43332 (exit $ac_status); }; }; then
43333 eval "$as_ac_var=yes"
43334else
43335 echo "$as_me: failed program was:" >&5
43336sed 's/^/| /' conftest.$ac_ext >&5
43337
43338eval "$as_ac_var=no"
43339fi
ac1cb8d3
VS
43340rm -f conftest.err conftest.$ac_objext \
43341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43342fi
43343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43345if test `eval echo '${'$as_ac_var'}'` = yes; then
43346 cat >>confdefs.h <<_ACEOF
43347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43348_ACEOF
43349
43350fi
43351done
43352
43353
43354 if test "$ac_cv_func_localtime" = "yes"; then
43355 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43356echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43357if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43358 echo $ECHO_N "(cached) $ECHO_C" >&6
43359else
43360
43361 cat >conftest.$ac_ext <<_ACEOF
43362/* confdefs.h. */
43363_ACEOF
43364cat confdefs.h >>conftest.$ac_ext
43365cat >>conftest.$ac_ext <<_ACEOF
43366/* end confdefs.h. */
43367
43368 #include <time.h>
43369
43370int
43371main ()
43372{
43373
43374 struct tm tm;
43375 tm.tm_gmtoff++;
43376
43377 ;
43378 return 0;
43379}
43380_ACEOF
43381rm -f conftest.$ac_objext
43382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43383 (eval $ac_compile) 2>conftest.er1
a848cd7e 43384 ac_status=$?
ac1cb8d3
VS
43385 grep -v '^ *+' conftest.er1 >conftest.err
43386 rm -f conftest.er1
43387 cat conftest.err >&5
a848cd7e
SC
43388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43389 (exit $ac_status); } &&
ca5c6ac3 43390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43392 (eval $ac_try) 2>&5
43393 ac_status=$?
43394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43395 (exit $ac_status); }; } &&
43396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43398 (eval $ac_try) 2>&5
43399 ac_status=$?
43400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401 (exit $ac_status); }; }; then
43402
43403 wx_cv_struct_tm_has_gmtoff=yes
43404
43405else
43406 echo "$as_me: failed program was:" >&5
43407sed 's/^/| /' conftest.$ac_ext >&5
43408
43409wx_cv_struct_tm_has_gmtoff=no
43410
43411fi
ac1cb8d3 43412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43413
43414fi
43415echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43416echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43417 fi
43418
43419 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43420 cat >>confdefs.h <<\_ACEOF
43421#define WX_GMTOFF_IN_TM 1
43422_ACEOF
43423
43424 fi
43425
43426
43427
43428for ac_func in gettimeofday ftime
43429do
43430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43431echo "$as_me:$LINENO: checking for $ac_func" >&5
43432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43433if eval "test \"\${$as_ac_var+set}\" = set"; then
43434 echo $ECHO_N "(cached) $ECHO_C" >&6
43435else
43436 cat >conftest.$ac_ext <<_ACEOF
43437/* confdefs.h. */
43438_ACEOF
43439cat confdefs.h >>conftest.$ac_ext
43440cat >>conftest.$ac_ext <<_ACEOF
43441/* end confdefs.h. */
ac1cb8d3
VS
43442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43444#define $ac_func innocuous_$ac_func
43445
a848cd7e
SC
43446/* System header to define __stub macros and hopefully few prototypes,
43447 which can conflict with char $ac_func (); below.
43448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43449 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43450
a848cd7e
SC
43451#ifdef __STDC__
43452# include <limits.h>
43453#else
43454# include <assert.h>
43455#endif
ac1cb8d3
VS
43456
43457#undef $ac_func
43458
a848cd7e
SC
43459/* Override any gcc2 internal prototype to avoid an error. */
43460#ifdef __cplusplus
43461extern "C"
43462{
43463#endif
43464/* We use char because int might match the return type of a gcc2
43465 builtin and then its argument prototype would still apply. */
43466char $ac_func ();
43467/* The GNU C library defines this for functions which it implements
43468 to always fail with ENOSYS. Some functions are actually named
43469 something starting with __ and the normal name is an alias. */
43470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43471choke me
43472#else
43473char (*f) () = $ac_func;
43474#endif
43475#ifdef __cplusplus
43476}
43477#endif
43478
43479int
43480main ()
43481{
43482return f != $ac_func;
43483 ;
43484 return 0;
43485}
43486_ACEOF
43487rm -f conftest.$ac_objext conftest$ac_exeext
43488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43489 (eval $ac_link) 2>conftest.er1
a848cd7e 43490 ac_status=$?
ac1cb8d3
VS
43491 grep -v '^ *+' conftest.er1 >conftest.err
43492 rm -f conftest.er1
43493 cat conftest.err >&5
a848cd7e
SC
43494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43495 (exit $ac_status); } &&
ca5c6ac3 43496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43498 (eval $ac_try) 2>&5
43499 ac_status=$?
43500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501 (exit $ac_status); }; } &&
43502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43504 (eval $ac_try) 2>&5
43505 ac_status=$?
43506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43507 (exit $ac_status); }; }; then
43508 eval "$as_ac_var=yes"
43509else
43510 echo "$as_me: failed program was:" >&5
43511sed 's/^/| /' conftest.$ac_ext >&5
43512
43513eval "$as_ac_var=no"
43514fi
ac1cb8d3
VS
43515rm -f conftest.err conftest.$ac_objext \
43516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43517fi
43518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43520if test `eval echo '${'$as_ac_var'}'` = yes; then
43521 cat >>confdefs.h <<_ACEOF
43522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43523_ACEOF
43524 break
43525fi
43526done
43527
43528
43529 if test "$ac_cv_func_gettimeofday" = "yes"; then
43530 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43531echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43532if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43533 echo $ECHO_N "(cached) $ECHO_C" >&6
43534else
43535
5d7b7554 43536 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43537/* confdefs.h. */
43538_ACEOF
43539cat confdefs.h >>conftest.$ac_ext
43540cat >>conftest.$ac_ext <<_ACEOF
43541/* end confdefs.h. */
43542
43543 #include <sys/time.h>
43544 #include <unistd.h>
43545
43546int
43547main ()
43548{
43549
43550 struct timeval tv;
43551 gettimeofday(&tv, NULL);
43552
43553 ;
43554 return 0;
43555}
43556_ACEOF
43557rm -f conftest.$ac_objext
43558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43559 (eval $ac_compile) 2>conftest.er1
a848cd7e 43560 ac_status=$?
ac1cb8d3
VS
43561 grep -v '^ *+' conftest.er1 >conftest.err
43562 rm -f conftest.er1
43563 cat conftest.err >&5
a848cd7e
SC
43564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43565 (exit $ac_status); } &&
ca5c6ac3 43566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43568 (eval $ac_try) 2>&5
43569 ac_status=$?
43570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43571 (exit $ac_status); }; } &&
43572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43574 (eval $ac_try) 2>&5
43575 ac_status=$?
43576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43577 (exit $ac_status); }; }; then
43578 wx_cv_func_gettimeofday_has_2_args=yes
43579else
43580 echo "$as_me: failed program was:" >&5
43581sed 's/^/| /' conftest.$ac_ext >&5
43582
43583cat >conftest.$ac_ext <<_ACEOF
43584/* confdefs.h. */
43585_ACEOF
43586cat confdefs.h >>conftest.$ac_ext
43587cat >>conftest.$ac_ext <<_ACEOF
43588/* end confdefs.h. */
43589
43590 #include <sys/time.h>
43591 #include <unistd.h>
43592
43593int
43594main ()
43595{
43596
43597 struct timeval tv;
43598 gettimeofday(&tv);
43599
43600 ;
43601 return 0;
43602}
43603_ACEOF
43604rm -f conftest.$ac_objext
43605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43606 (eval $ac_compile) 2>conftest.er1
a848cd7e 43607 ac_status=$?
ac1cb8d3
VS
43608 grep -v '^ *+' conftest.er1 >conftest.err
43609 rm -f conftest.er1
43610 cat conftest.err >&5
a848cd7e
SC
43611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612 (exit $ac_status); } &&
ca5c6ac3 43613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615 (eval $ac_try) 2>&5
43616 ac_status=$?
43617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618 (exit $ac_status); }; } &&
43619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43621 (eval $ac_try) 2>&5
43622 ac_status=$?
43623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624 (exit $ac_status); }; }; then
43625 wx_cv_func_gettimeofday_has_2_args=no
43626else
43627 echo "$as_me: failed program was:" >&5
43628sed 's/^/| /' conftest.$ac_ext >&5
43629
43630
43631 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43632echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43633 wx_cv_func_gettimeofday_has_2_args=unknown
43634
43635
43636fi
ac1cb8d3 43637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43638
43639fi
ac1cb8d3 43640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43641
43642fi
43643echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43644echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43645
43646 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43647 cat >>confdefs.h <<\_ACEOF
43648#define WX_GETTIMEOFDAY_NO_TZ 1
43649_ACEOF
43650
43651 fi
43652 fi
43653
43654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43655fi
43656
43657
43658if test "$wxUSE_SOCKETS" = "yes"; then
43659 if test "$wxUSE_MGL" = "1"; then
43660 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43661echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43662 wxUSE_SOCKETS="no"
43663 fi
43664fi
43665
43666if test "$wxUSE_SOCKETS" = "yes"; then
43667 if test "$TOOLKIT" != "MSW"; then
43668 echo "$as_me:$LINENO: checking for socket" >&5
43669echo $ECHO_N "checking for socket... $ECHO_C" >&6
43670if test "${ac_cv_func_socket+set}" = set; then
43671 echo $ECHO_N "(cached) $ECHO_C" >&6
43672else
43673 cat >conftest.$ac_ext <<_ACEOF
43674/* confdefs.h. */
43675_ACEOF
43676cat confdefs.h >>conftest.$ac_ext
43677cat >>conftest.$ac_ext <<_ACEOF
43678/* end confdefs.h. */
ac1cb8d3
VS
43679/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43681#define socket innocuous_socket
43682
a848cd7e
SC
43683/* System header to define __stub macros and hopefully few prototypes,
43684 which can conflict with char socket (); below.
43685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43686 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43687
a848cd7e
SC
43688#ifdef __STDC__
43689# include <limits.h>
43690#else
43691# include <assert.h>
43692#endif
ac1cb8d3
VS
43693
43694#undef socket
43695
a848cd7e
SC
43696/* Override any gcc2 internal prototype to avoid an error. */
43697#ifdef __cplusplus
43698extern "C"
43699{
43700#endif
43701/* We use char because int might match the return type of a gcc2
43702 builtin and then its argument prototype would still apply. */
43703char socket ();
43704/* The GNU C library defines this for functions which it implements
43705 to always fail with ENOSYS. Some functions are actually named
43706 something starting with __ and the normal name is an alias. */
43707#if defined (__stub_socket) || defined (__stub___socket)
43708choke me
43709#else
43710char (*f) () = socket;
43711#endif
43712#ifdef __cplusplus
43713}
43714#endif
43715
43716int
43717main ()
43718{
43719return f != socket;
43720 ;
43721 return 0;
43722}
43723_ACEOF
43724rm -f conftest.$ac_objext conftest$ac_exeext
43725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43726 (eval $ac_link) 2>conftest.er1
a848cd7e 43727 ac_status=$?
ac1cb8d3
VS
43728 grep -v '^ *+' conftest.er1 >conftest.err
43729 rm -f conftest.er1
43730 cat conftest.err >&5
a848cd7e
SC
43731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43732 (exit $ac_status); } &&
ca5c6ac3 43733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43735 (eval $ac_try) 2>&5
43736 ac_status=$?
43737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 (exit $ac_status); }; } &&
43739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43741 (eval $ac_try) 2>&5
43742 ac_status=$?
43743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43744 (exit $ac_status); }; }; then
43745 ac_cv_func_socket=yes
43746else
43747 echo "$as_me: failed program was:" >&5
43748sed 's/^/| /' conftest.$ac_ext >&5
43749
43750ac_cv_func_socket=no
43751fi
ac1cb8d3
VS
43752rm -f conftest.err conftest.$ac_objext \
43753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43754fi
43755echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43756echo "${ECHO_T}$ac_cv_func_socket" >&6
43757if test $ac_cv_func_socket = yes; then
43758 :
43759else
43760
43761 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43762echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43763if test "${ac_cv_lib_socket_socket+set}" = set; then
43764 echo $ECHO_N "(cached) $ECHO_C" >&6
43765else
43766 ac_check_lib_save_LIBS=$LIBS
43767LIBS="-lsocket $LIBS"
43768cat >conftest.$ac_ext <<_ACEOF
43769/* confdefs.h. */
43770_ACEOF
43771cat confdefs.h >>conftest.$ac_ext
43772cat >>conftest.$ac_ext <<_ACEOF
43773/* end confdefs.h. */
43774
43775/* Override any gcc2 internal prototype to avoid an error. */
43776#ifdef __cplusplus
43777extern "C"
43778#endif
43779/* We use char because int might match the return type of a gcc2
43780 builtin and then its argument prototype would still apply. */
43781char socket ();
43782int
43783main ()
43784{
43785socket ();
43786 ;
43787 return 0;
43788}
43789_ACEOF
43790rm -f conftest.$ac_objext conftest$ac_exeext
43791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43792 (eval $ac_link) 2>conftest.er1
a848cd7e 43793 ac_status=$?
ac1cb8d3
VS
43794 grep -v '^ *+' conftest.er1 >conftest.err
43795 rm -f conftest.er1
43796 cat conftest.err >&5
a848cd7e
SC
43797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43798 (exit $ac_status); } &&
ca5c6ac3 43799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43801 (eval $ac_try) 2>&5
43802 ac_status=$?
43803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43804 (exit $ac_status); }; } &&
43805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43807 (eval $ac_try) 2>&5
43808 ac_status=$?
43809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43810 (exit $ac_status); }; }; then
43811 ac_cv_lib_socket_socket=yes
43812else
43813 echo "$as_me: failed program was:" >&5
43814sed 's/^/| /' conftest.$ac_ext >&5
43815
43816ac_cv_lib_socket_socket=no
43817fi
ac1cb8d3
VS
43818rm -f conftest.err conftest.$ac_objext \
43819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43820LIBS=$ac_check_lib_save_LIBS
43821fi
43822echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43823echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43824if test $ac_cv_lib_socket_socket = yes; then
43825 if test "$INET_LINK" != " -lsocket"; then
43826 INET_LINK="$INET_LINK -lsocket"
43827 fi
43828else
43829
43830 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43831echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43832 wxUSE_SOCKETS=no
43833
43834
43835fi
43836
43837
43838
43839fi
43840
43841 fi
43842fi
43843
43844if test "$wxUSE_SOCKETS" = "yes" ; then
43845 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43846 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43847echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43848if test "${wx_cv_type_getsockname3+set}" = set; then
43849 echo $ECHO_N "(cached) $ECHO_C" >&6
43850else
43851
43852 cat >conftest.$ac_ext <<_ACEOF
43853/* confdefs.h. */
43854_ACEOF
43855cat confdefs.h >>conftest.$ac_ext
43856cat >>conftest.$ac_ext <<_ACEOF
43857/* end confdefs.h. */
43858
43859 #include <sys/types.h>
43860 #include <sys/socket.h>
43861
43862int
43863main ()
43864{
43865
43866 socklen_t len;
43867 getsockname(0, 0, &len);
43868
43869 ;
43870 return 0;
43871}
43872_ACEOF
43873rm -f conftest.$ac_objext
43874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43875 (eval $ac_compile) 2>conftest.er1
a848cd7e 43876 ac_status=$?
ac1cb8d3
VS
43877 grep -v '^ *+' conftest.er1 >conftest.err
43878 rm -f conftest.er1
43879 cat conftest.err >&5
a848cd7e
SC
43880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43881 (exit $ac_status); } &&
ca5c6ac3 43882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43884 (eval $ac_try) 2>&5
43885 ac_status=$?
43886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43887 (exit $ac_status); }; } &&
43888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43890 (eval $ac_try) 2>&5
43891 ac_status=$?
43892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43893 (exit $ac_status); }; }; then
43894 wx_cv_type_getsockname3=socklen_t
43895else
43896 echo "$as_me: failed program was:" >&5
43897sed 's/^/| /' conftest.$ac_ext >&5
43898
43899
6459a506 43900 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43901 if test "$GCC" = yes ; then
c92ad099 43902 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43903 fi
43904
43905 cat >conftest.$ac_ext <<_ACEOF
43906/* confdefs.h. */
43907_ACEOF
43908cat confdefs.h >>conftest.$ac_ext
43909cat >>conftest.$ac_ext <<_ACEOF
43910/* end confdefs.h. */
43911
43912 #include <sys/types.h>
43913 #include <sys/socket.h>
43914
43915int
43916main ()
43917{
43918
43919 size_t len;
43920 getsockname(0, 0, &len);
43921
43922 ;
43923 return 0;
43924}
43925_ACEOF
43926rm -f conftest.$ac_objext
43927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43928 (eval $ac_compile) 2>conftest.er1
a848cd7e 43929 ac_status=$?
ac1cb8d3
VS
43930 grep -v '^ *+' conftest.er1 >conftest.err
43931 rm -f conftest.er1
43932 cat conftest.err >&5
a848cd7e
SC
43933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43934 (exit $ac_status); } &&
ca5c6ac3 43935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43937 (eval $ac_try) 2>&5
43938 ac_status=$?
43939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43940 (exit $ac_status); }; } &&
43941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43943 (eval $ac_try) 2>&5
43944 ac_status=$?
43945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946 (exit $ac_status); }; }; then
43947 wx_cv_type_getsockname3=size_t
43948else
43949 echo "$as_me: failed program was:" >&5
43950sed 's/^/| /' conftest.$ac_ext >&5
43951
43952cat >conftest.$ac_ext <<_ACEOF
43953/* confdefs.h. */
43954_ACEOF
43955cat confdefs.h >>conftest.$ac_ext
43956cat >>conftest.$ac_ext <<_ACEOF
43957/* end confdefs.h. */
43958
43959 #include <sys/types.h>
43960 #include <sys/socket.h>
43961
43962int
43963main ()
43964{
43965
43966 int len;
43967 getsockname(0, 0, &len);
43968
43969 ;
43970 return 0;
43971}
43972_ACEOF
43973rm -f conftest.$ac_objext
43974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43975 (eval $ac_compile) 2>conftest.er1
a848cd7e 43976 ac_status=$?
ac1cb8d3
VS
43977 grep -v '^ *+' conftest.er1 >conftest.err
43978 rm -f conftest.er1
43979 cat conftest.err >&5
a848cd7e
SC
43980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981 (exit $ac_status); } &&
ca5c6ac3 43982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43984 (eval $ac_try) 2>&5
43985 ac_status=$?
43986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987 (exit $ac_status); }; } &&
43988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43990 (eval $ac_try) 2>&5
43991 ac_status=$?
43992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43993 (exit $ac_status); }; }; then
43994 wx_cv_type_getsockname3=int
43995else
43996 echo "$as_me: failed program was:" >&5
43997sed 's/^/| /' conftest.$ac_ext >&5
43998
43999wx_cv_type_getsockname3=unknown
44000
44001fi
ac1cb8d3 44002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44003
44004fi
ac1cb8d3 44005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44006
6459a506 44007 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44008
44009
44010fi
ac1cb8d3 44011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44012
44013fi
44014echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44015echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44016
44017 if test "$wx_cv_type_getsockname3" = "unknown"; then
44018 wxUSE_SOCKETS=no
44019 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44020echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44021 else
44022 cat >>confdefs.h <<_ACEOF
9e03e02d 44023#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44024_ACEOF
44025
44026 fi
44027 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44028echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44029if test "${wx_cv_type_getsockopt5+set}" = set; then
44030 echo $ECHO_N "(cached) $ECHO_C" >&6
44031else
44032
44033 cat >conftest.$ac_ext <<_ACEOF
44034/* confdefs.h. */
44035_ACEOF
44036cat confdefs.h >>conftest.$ac_ext
44037cat >>conftest.$ac_ext <<_ACEOF
44038/* end confdefs.h. */
44039
44040 #include <sys/types.h>
44041 #include <sys/socket.h>
44042
44043int
44044main ()
44045{
44046
44047 socklen_t len;
44048 getsockopt(0, 0, 0, 0, &len);
44049
44050 ;
44051 return 0;
44052}
44053_ACEOF
44054rm -f conftest.$ac_objext
44055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44056 (eval $ac_compile) 2>conftest.er1
44057 ac_status=$?
44058 grep -v '^ *+' conftest.er1 >conftest.err
44059 rm -f conftest.er1
44060 cat conftest.err >&5
44061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44062 (exit $ac_status); } &&
ca5c6ac3 44063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44065 (eval $ac_try) 2>&5
44066 ac_status=$?
44067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44068 (exit $ac_status); }; } &&
44069 { ac_try='test -s conftest.$ac_objext'
44070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44071 (eval $ac_try) 2>&5
44072 ac_status=$?
44073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44074 (exit $ac_status); }; }; then
44075 wx_cv_type_getsockopt5=socklen_t
44076else
44077 echo "$as_me: failed program was:" >&5
44078sed 's/^/| /' conftest.$ac_ext >&5
44079
44080
6459a506 44081 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44082 if test "$GCC" = yes ; then
c92ad099 44083 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44084 fi
44085
44086 cat >conftest.$ac_ext <<_ACEOF
44087/* confdefs.h. */
44088_ACEOF
44089cat confdefs.h >>conftest.$ac_ext
44090cat >>conftest.$ac_ext <<_ACEOF
44091/* end confdefs.h. */
44092
44093 #include <sys/types.h>
44094 #include <sys/socket.h>
44095
44096int
44097main ()
44098{
44099
44100 size_t len;
44101 getsockopt(0, 0, 0, 0, &len);
44102
44103 ;
44104 return 0;
44105}
44106_ACEOF
44107rm -f conftest.$ac_objext
44108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44109 (eval $ac_compile) 2>conftest.er1
44110 ac_status=$?
44111 grep -v '^ *+' conftest.er1 >conftest.err
44112 rm -f conftest.er1
44113 cat conftest.err >&5
44114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115 (exit $ac_status); } &&
ca5c6ac3 44116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44118 (eval $ac_try) 2>&5
44119 ac_status=$?
44120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44121 (exit $ac_status); }; } &&
44122 { ac_try='test -s conftest.$ac_objext'
44123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44124 (eval $ac_try) 2>&5
44125 ac_status=$?
44126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44127 (exit $ac_status); }; }; then
44128 wx_cv_type_getsockopt5=size_t
44129else
44130 echo "$as_me: failed program was:" >&5
44131sed 's/^/| /' conftest.$ac_ext >&5
44132
44133cat >conftest.$ac_ext <<_ACEOF
44134/* confdefs.h. */
44135_ACEOF
44136cat confdefs.h >>conftest.$ac_ext
44137cat >>conftest.$ac_ext <<_ACEOF
44138/* end confdefs.h. */
44139
44140 #include <sys/types.h>
44141 #include <sys/socket.h>
44142
44143int
44144main ()
44145{
44146
44147 int len;
44148 getsockopt(0, 0, 0, 0, &len);
44149
44150 ;
44151 return 0;
44152}
44153_ACEOF
44154rm -f conftest.$ac_objext
44155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44156 (eval $ac_compile) 2>conftest.er1
44157 ac_status=$?
44158 grep -v '^ *+' conftest.er1 >conftest.err
44159 rm -f conftest.er1
44160 cat conftest.err >&5
44161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44162 (exit $ac_status); } &&
ca5c6ac3 44163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44165 (eval $ac_try) 2>&5
44166 ac_status=$?
44167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44168 (exit $ac_status); }; } &&
44169 { ac_try='test -s conftest.$ac_objext'
44170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44171 (eval $ac_try) 2>&5
44172 ac_status=$?
44173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44174 (exit $ac_status); }; }; then
44175 wx_cv_type_getsockopt5=int
44176else
44177 echo "$as_me: failed program was:" >&5
44178sed 's/^/| /' conftest.$ac_ext >&5
44179
44180wx_cv_type_getsockopt5=unknown
44181
44182fi
44183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44184
44185fi
44186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44187
6459a506 44188 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44189
44190
44191fi
44192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44193
44194fi
44195echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44196echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44197
44198 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44199 wxUSE_SOCKETS=no
44200 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44201echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44202 else
44203 cat >>confdefs.h <<_ACEOF
44204#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44205_ACEOF
44206
44207 fi
44208 fi
44209fi
44210
44211if test "$wxUSE_SOCKETS" = "yes" ; then
44212 cat >>confdefs.h <<\_ACEOF
44213#define wxUSE_SOCKETS 1
44214_ACEOF
44215
44216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44217fi
44218
44219if test "$wxUSE_PROTOCOL" = "yes"; then
44220 if test "$wxUSE_SOCKETS" != "yes"; then
44221 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44222echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44223 wxUSE_PROTOCOL=no
44224 fi
44225fi
44226
44227if test "$wxUSE_PROTOCOL" = "yes"; then
44228 cat >>confdefs.h <<\_ACEOF
44229#define wxUSE_PROTOCOL 1
44230_ACEOF
44231
44232
44233 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44234 cat >>confdefs.h <<\_ACEOF
44235#define wxUSE_PROTOCOL_HTTP 1
44236_ACEOF
44237
44238 fi
44239 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44240 cat >>confdefs.h <<\_ACEOF
44241#define wxUSE_PROTOCOL_FTP 1
44242_ACEOF
44243
44244 fi
44245 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44246 cat >>confdefs.h <<\_ACEOF
44247#define wxUSE_PROTOCOL_FILE 1
44248_ACEOF
44249
44250 fi
44251else
44252 if test "$wxUSE_FS_INET" = "yes"; then
44253 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44254echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44255 wxUSE_FS_INET="no"
44256 fi
44257fi
44258
44259if test "$wxUSE_URL" = "yes"; then
44260 if test "$wxUSE_PROTOCOL" != "yes"; then
44261 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44262echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44263 wxUSE_URL=no
44264 fi
44265 if test "$wxUSE_URL" = "yes"; then
44266 cat >>confdefs.h <<\_ACEOF
44267#define wxUSE_URL 1
44268_ACEOF
44269
44270 fi
44271fi
44272
ca5c6ac3
VZ
44273if test "$wxUSE_VARIANT" = "yes"; then
44274 cat >>confdefs.h <<\_ACEOF
44275#define wxUSE_VARIANT 1
44276_ACEOF
44277
44278fi
44279
a848cd7e
SC
44280if test "$wxUSE_FS_INET" = "yes"; then
44281 cat >>confdefs.h <<\_ACEOF
44282#define wxUSE_FS_INET 1
44283_ACEOF
44284
44285fi
44286
44287
ee45c548
MW
44288if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44289 wxUSE_JOYSTICK=no
44290
44291 if test "$TOOLKIT" = "MSW"; then
44292 wxUSE_JOYSTICK=yes
44293
44294 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44295 if test "$USE_DARWIN" = 1; then
44296 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44297echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44298 cat >conftest.$ac_ext <<_ACEOF
44299/* confdefs.h. */
44300_ACEOF
44301cat confdefs.h >>conftest.$ac_ext
44302cat >>conftest.$ac_ext <<_ACEOF
44303/* end confdefs.h. */
44304 #include <IOKit/hid/IOHIDLib.h>
44305int
44306main ()
44307{
44308 IOHIDQueueInterface *qi = NULL;
44309 IOHIDCallbackFunction cb = NULL;
44310 qi->setEventCallout(NULL, cb, NULL, NULL);
44311 ;
44312 return 0;
44313}
44314_ACEOF
44315rm -f conftest.$ac_objext
44316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44317 (eval $ac_compile) 2>conftest.er1
44318 ac_status=$?
44319 grep -v '^ *+' conftest.er1 >conftest.err
44320 rm -f conftest.er1
44321 cat conftest.err >&5
44322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44323 (exit $ac_status); } &&
ca5c6ac3 44324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44326 (eval $ac_try) 2>&5
44327 ac_status=$?
44328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44329 (exit $ac_status); }; } &&
44330 { ac_try='test -s conftest.$ac_objext'
44331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44332 (eval $ac_try) 2>&5
44333 ac_status=$?
44334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44335 (exit $ac_status); }; }; then
44336 wxUSE_JOYSTICK=yes
a848cd7e 44337
ee45c548
MW
44338else
44339 echo "$as_me: failed program was:" >&5
44340sed 's/^/| /' conftest.$ac_ext >&5
44341
44342fi
44343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44344 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44345echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44346 fi
44347
44348 else
a848cd7e
SC
44349
44350for ac_header in linux/joystick.h
44351do
44352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44353if eval "test \"\${$as_ac_Header+set}\" = set"; then
44354 echo "$as_me:$LINENO: checking for $ac_header" >&5
44355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44356if eval "test \"\${$as_ac_Header+set}\" = set"; then
44357 echo $ECHO_N "(cached) $ECHO_C" >&6
44358fi
44359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44361else
44362 # Is the header compilable?
44363echo "$as_me:$LINENO: checking $ac_header usability" >&5
44364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44365cat >conftest.$ac_ext <<_ACEOF
44366/* confdefs.h. */
44367_ACEOF
44368cat confdefs.h >>conftest.$ac_ext
44369cat >>conftest.$ac_ext <<_ACEOF
44370/* end confdefs.h. */
44371$ac_includes_default
44372#include <$ac_header>
44373_ACEOF
44374rm -f conftest.$ac_objext
44375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44376 (eval $ac_compile) 2>conftest.er1
a848cd7e 44377 ac_status=$?
ac1cb8d3
VS
44378 grep -v '^ *+' conftest.er1 >conftest.err
44379 rm -f conftest.er1
44380 cat conftest.err >&5
a848cd7e
SC
44381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382 (exit $ac_status); } &&
ca5c6ac3 44383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44385 (eval $ac_try) 2>&5
44386 ac_status=$?
44387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44388 (exit $ac_status); }; } &&
44389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391 (eval $ac_try) 2>&5
44392 ac_status=$?
44393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394 (exit $ac_status); }; }; then
44395 ac_header_compiler=yes
44396else
44397 echo "$as_me: failed program was:" >&5
44398sed 's/^/| /' conftest.$ac_ext >&5
44399
44400ac_header_compiler=no
44401fi
ac1cb8d3 44402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44404echo "${ECHO_T}$ac_header_compiler" >&6
44405
44406# Is the header present?
44407echo "$as_me:$LINENO: checking $ac_header presence" >&5
44408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44409cat >conftest.$ac_ext <<_ACEOF
44410/* confdefs.h. */
44411_ACEOF
44412cat confdefs.h >>conftest.$ac_ext
44413cat >>conftest.$ac_ext <<_ACEOF
44414/* end confdefs.h. */
44415#include <$ac_header>
44416_ACEOF
44417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44419 ac_status=$?
44420 grep -v '^ *+' conftest.er1 >conftest.err
44421 rm -f conftest.er1
44422 cat conftest.err >&5
44423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44424 (exit $ac_status); } >/dev/null; then
44425 if test -s conftest.err; then
5d7b7554
VZ
44426 ac_cpp_err=$ac_cxx_preproc_warn_flag
44427 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44428 else
44429 ac_cpp_err=
44430 fi
44431else
44432 ac_cpp_err=yes
44433fi
44434if test -z "$ac_cpp_err"; then
44435 ac_header_preproc=yes
44436else
44437 echo "$as_me: failed program was:" >&5
44438sed 's/^/| /' conftest.$ac_ext >&5
44439
44440 ac_header_preproc=no
44441fi
44442rm -f conftest.err conftest.$ac_ext
44443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44444echo "${ECHO_T}$ac_header_preproc" >&6
44445
44446# So? What about this header?
5d7b7554 44447case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44448 yes:no: )
a848cd7e
SC
44449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44453 ac_header_preproc=yes
a848cd7e 44454 ;;
ac1cb8d3 44455 no:yes:* )
a848cd7e
SC
44456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44468 (
44469 cat <<\_ASBOX
ac1cb8d3
VS
44470## ----------------------------------------- ##
44471## Report this to wx-dev@lists.wxwidgets.org ##
44472## ----------------------------------------- ##
a848cd7e
SC
44473_ASBOX
44474 ) |
44475 sed "s/^/$as_me: WARNING: /" >&2
44476 ;;
44477esac
44478echo "$as_me:$LINENO: checking for $ac_header" >&5
44479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44480if eval "test \"\${$as_ac_Header+set}\" = set"; then
44481 echo $ECHO_N "(cached) $ECHO_C" >&6
44482else
ac1cb8d3 44483 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44484fi
44485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44487
44488fi
44489if test `eval echo '${'$as_ac_Header'}'` = yes; then
44490 cat >>confdefs.h <<_ACEOF
44491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44492_ACEOF
ee45c548 44493 wxUSE_JOYSTICK=yes
a848cd7e
SC
44494fi
44495
44496done
44497
ee45c548 44498 fi
4cb1d3da 44499
ee45c548
MW
44500 if test "$wxUSE_JOYSTICK" = "yes"; then
44501 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44502#define wxUSE_JOYSTICK 1
44503_ACEOF
44504
ee45c548
MW
44505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44506 else
44507 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44508echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44509 fi
44510fi
44511
44512
44513
44514if test "$wxUSE_FONTMAP" = "yes" ; then
44515 cat >>confdefs.h <<\_ACEOF
44516#define wxUSE_FONTMAP 1
44517_ACEOF
44518
44519fi
44520
44521if test "$wxUSE_UNICODE" = "yes" ; then
44522 cat >>confdefs.h <<\_ACEOF
44523#define wxUSE_UNICODE 1
44524_ACEOF
44525
44526
44527 if test "$USE_WIN32" != 1; then
44528 wxUSE_UNICODE_MSLU=no
44529 fi
44530
44531 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44532 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44533echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44534if test "${ac_cv_lib_unicows_main+set}" = set; then
44535 echo $ECHO_N "(cached) $ECHO_C" >&6
44536else
44537 ac_check_lib_save_LIBS=$LIBS
44538LIBS="-lunicows $LIBS"
44539cat >conftest.$ac_ext <<_ACEOF
44540/* confdefs.h. */
44541_ACEOF
44542cat confdefs.h >>conftest.$ac_ext
44543cat >>conftest.$ac_ext <<_ACEOF
44544/* end confdefs.h. */
44545
44546
44547int
44548main ()
44549{
44550main ();
44551 ;
44552 return 0;
44553}
44554_ACEOF
44555rm -f conftest.$ac_objext conftest$ac_exeext
44556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44557 (eval $ac_link) 2>conftest.er1
a848cd7e 44558 ac_status=$?
ac1cb8d3
VS
44559 grep -v '^ *+' conftest.er1 >conftest.err
44560 rm -f conftest.er1
44561 cat conftest.err >&5
a848cd7e
SC
44562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44563 (exit $ac_status); } &&
ca5c6ac3 44564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44566 (eval $ac_try) 2>&5
44567 ac_status=$?
44568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44569 (exit $ac_status); }; } &&
44570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44572 (eval $ac_try) 2>&5
44573 ac_status=$?
44574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44575 (exit $ac_status); }; }; then
44576 ac_cv_lib_unicows_main=yes
44577else
44578 echo "$as_me: failed program was:" >&5
44579sed 's/^/| /' conftest.$ac_ext >&5
44580
44581ac_cv_lib_unicows_main=no
44582fi
ac1cb8d3
VS
44583rm -f conftest.err conftest.$ac_objext \
44584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44585LIBS=$ac_check_lib_save_LIBS
44586fi
44587echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44588echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44589if test $ac_cv_lib_unicows_main = yes; then
44590
44591 cat >>confdefs.h <<\_ACEOF
44592#define wxUSE_UNICODE_MSLU 1
44593_ACEOF
44594
44595
44596else
44597
44598 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44599 Applications will only run on Windows NT/2000/XP!" >&5
44600echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44601 Applications will only run on Windows NT/2000/XP!" >&2;}
44602 wxUSE_UNICODE_MSLU=no
44603
44604fi
44605
44606 fi
44607fi
44608
44609if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44610 cat >>confdefs.h <<\_ACEOF
44611#define wxUSE_EXPERIMENTAL_PRINTF 1
44612_ACEOF
44613
44614fi
44615
44616
44617if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44618 cat >>confdefs.h <<\_ACEOF
44619#define wxUSE_POSTSCRIPT 1
44620_ACEOF
44621
44622fi
44623
44624cat >>confdefs.h <<\_ACEOF
44625#define wxUSE_AFM_FOR_POSTSCRIPT 1
44626_ACEOF
44627
44628
44629cat >>confdefs.h <<\_ACEOF
44630#define wxUSE_NORMALIZED_PS_FONTS 1
44631_ACEOF
44632
44633
44634
44635if test "$wxUSE_CONSTRAINTS" = "yes"; then
44636 cat >>confdefs.h <<\_ACEOF
44637#define wxUSE_CONSTRAINTS 1
44638_ACEOF
44639
44640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44641fi
44642
8a7b1113
VZ
44643if test "$wxUSE_MDI" = "yes"; then
44644 cat >>confdefs.h <<\_ACEOF
44645#define wxUSE_MDI 1
44646_ACEOF
44647
44648
44649 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44650 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44651#define wxUSE_MDI_ARCHITECTURE 1
44652_ACEOF
44653
8a7b1113
VZ
44654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44655 fi
a848cd7e
SC
44656fi
44657
44658if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44659 cat >>confdefs.h <<\_ACEOF
44660#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44661_ACEOF
44662
44663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44664 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44666 fi
44667fi
44668
44669if test "$wxUSE_HELP" = "yes"; then
44670 cat >>confdefs.h <<\_ACEOF
44671#define wxUSE_HELP 1
44672_ACEOF
44673
44674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44675
44676 if test "$wxUSE_MSW" = 1; then
44677 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44678 cat >>confdefs.h <<\_ACEOF
44679#define wxUSE_MS_HTML_HELP 1
44680_ACEOF
44681
44682 fi
44683 fi
44684
44685 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44686 if test "$wxUSE_HTML" = "yes"; then
44687 cat >>confdefs.h <<\_ACEOF
44688#define wxUSE_WXHTML_HELP 1
44689_ACEOF
44690
44691 else
44692 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44693echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44694 wxUSE_WXHTML_HELP=no
44695 fi
44696 fi
44697fi
44698
44699if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44700 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44701 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44702echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44703 else
44704 cat >>confdefs.h <<\_ACEOF
44705#define wxUSE_PRINTING_ARCHITECTURE 1
44706_ACEOF
44707
44708 fi
44709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44710fi
44711
44712if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44713 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44714echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44715 { (exit 1); exit 1; }; }
44716fi
44717
44718
efdf6afe
VZ
44719if test "$wxUSE_METAFILE" = "yes"; then
44720 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44721 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44722echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44723 wxUSE_METAFILE=no
44724 fi
44725fi
44726
44727
a848cd7e
SC
44728if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44729 -o "$wxUSE_CLIPBOARD" = "yes" \
44730 -o "$wxUSE_OLE" = "yes" \
44731 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44732
44733for ac_header in ole2.h
44734do
44735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44736if eval "test \"\${$as_ac_Header+set}\" = set"; then
44737 echo "$as_me:$LINENO: checking for $ac_header" >&5
44738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44739if eval "test \"\${$as_ac_Header+set}\" = set"; then
44740 echo $ECHO_N "(cached) $ECHO_C" >&6
44741fi
44742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44744else
44745 # Is the header compilable?
44746echo "$as_me:$LINENO: checking $ac_header usability" >&5
44747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44748cat >conftest.$ac_ext <<_ACEOF
44749/* confdefs.h. */
44750_ACEOF
44751cat confdefs.h >>conftest.$ac_ext
44752cat >>conftest.$ac_ext <<_ACEOF
44753/* end confdefs.h. */
44754$ac_includes_default
44755#include <$ac_header>
44756_ACEOF
44757rm -f conftest.$ac_objext
44758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44759 (eval $ac_compile) 2>conftest.er1
a848cd7e 44760 ac_status=$?
ac1cb8d3
VS
44761 grep -v '^ *+' conftest.er1 >conftest.err
44762 rm -f conftest.er1
44763 cat conftest.err >&5
a848cd7e
SC
44764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765 (exit $ac_status); } &&
ca5c6ac3 44766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44768 (eval $ac_try) 2>&5
44769 ac_status=$?
44770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44771 (exit $ac_status); }; } &&
44772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44774 (eval $ac_try) 2>&5
44775 ac_status=$?
44776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44777 (exit $ac_status); }; }; then
44778 ac_header_compiler=yes
44779else
44780 echo "$as_me: failed program was:" >&5
44781sed 's/^/| /' conftest.$ac_ext >&5
44782
44783ac_header_compiler=no
44784fi
ac1cb8d3 44785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44787echo "${ECHO_T}$ac_header_compiler" >&6
44788
44789# Is the header present?
44790echo "$as_me:$LINENO: checking $ac_header presence" >&5
44791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44792cat >conftest.$ac_ext <<_ACEOF
44793/* confdefs.h. */
44794_ACEOF
44795cat confdefs.h >>conftest.$ac_ext
44796cat >>conftest.$ac_ext <<_ACEOF
44797/* end confdefs.h. */
44798#include <$ac_header>
44799_ACEOF
44800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44802 ac_status=$?
44803 grep -v '^ *+' conftest.er1 >conftest.err
44804 rm -f conftest.er1
44805 cat conftest.err >&5
44806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); } >/dev/null; then
44808 if test -s conftest.err; then
5d7b7554
VZ
44809 ac_cpp_err=$ac_cxx_preproc_warn_flag
44810 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44811 else
44812 ac_cpp_err=
44813 fi
44814else
44815 ac_cpp_err=yes
44816fi
44817if test -z "$ac_cpp_err"; then
44818 ac_header_preproc=yes
44819else
44820 echo "$as_me: failed program was:" >&5
44821sed 's/^/| /' conftest.$ac_ext >&5
44822
44823 ac_header_preproc=no
44824fi
44825rm -f conftest.err conftest.$ac_ext
44826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44827echo "${ECHO_T}$ac_header_preproc" >&6
44828
44829# So? What about this header?
5d7b7554 44830case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44831 yes:no: )
a848cd7e
SC
44832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44836 ac_header_preproc=yes
a848cd7e 44837 ;;
ac1cb8d3 44838 no:yes:* )
a848cd7e
SC
44839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44851 (
44852 cat <<\_ASBOX
ac1cb8d3
VS
44853## ----------------------------------------- ##
44854## Report this to wx-dev@lists.wxwidgets.org ##
44855## ----------------------------------------- ##
a848cd7e
SC
44856_ASBOX
44857 ) |
44858 sed "s/^/$as_me: WARNING: /" >&2
44859 ;;
44860esac
44861echo "$as_me:$LINENO: checking for $ac_header" >&5
44862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44863if eval "test \"\${$as_ac_Header+set}\" = set"; then
44864 echo $ECHO_N "(cached) $ECHO_C" >&6
44865else
ac1cb8d3 44866 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44867fi
44868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44870
44871fi
44872if test `eval echo '${'$as_ac_Header'}'` = yes; then
44873 cat >>confdefs.h <<_ACEOF
44874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44875_ACEOF
44876
44877fi
44878
44879done
44880
44881
44882 if test "$ac_cv_header_ole2_h" = "yes" ; then
44883 if test "$GCC" = yes ; then
a848cd7e
SC
44884 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44885echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44886 cat >conftest.$ac_ext <<_ACEOF
44887/* confdefs.h. */
44888_ACEOF
44889cat confdefs.h >>conftest.$ac_ext
44890cat >>conftest.$ac_ext <<_ACEOF
44891/* end confdefs.h. */
44892#include <windows.h>
44893 #include <ole2.h>
44894int
44895main ()
44896{
44897
44898 ;
44899 return 0;
44900}
44901_ACEOF
44902rm -f conftest.$ac_objext
44903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44904 (eval $ac_compile) 2>conftest.er1
a848cd7e 44905 ac_status=$?
ac1cb8d3
VS
44906 grep -v '^ *+' conftest.er1 >conftest.err
44907 rm -f conftest.er1
44908 cat conftest.err >&5
a848cd7e
SC
44909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44910 (exit $ac_status); } &&
ca5c6ac3 44911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44913 (eval $ac_try) 2>&5
44914 ac_status=$?
44915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44916 (exit $ac_status); }; } &&
44917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44919 (eval $ac_try) 2>&5
44920 ac_status=$?
44921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44922 (exit $ac_status); }; }; then
44923 echo "$as_me:$LINENO: result: no" >&5
44924echo "${ECHO_T}no" >&6
44925else
44926 echo "$as_me: failed program was:" >&5
44927sed 's/^/| /' conftest.$ac_ext >&5
44928
44929echo "$as_me:$LINENO: result: yes" >&5
44930echo "${ECHO_T}yes" >&6
5ff751d6 44931 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44932fi
ac1cb8d3 44933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44934 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44935 if test "$wxUSE_OLE" = "yes" ; then
44936 cat >>confdefs.h <<\_ACEOF
44937#define wxUSE_OLE 1
f43426c1
RD
44938_ACEOF
44939
44940 cat >>confdefs.h <<\_ACEOF
44941#define wxUSE_OLE_AUTOMATION 1
44942_ACEOF
44943
44944 cat >>confdefs.h <<\_ACEOF
44945#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
44946_ACEOF
44947
0b78747f 44948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44949 fi
44950 fi
44951
44952 if test "$wxUSE_DATAOBJ" = "yes" ; then
44953 cat >>confdefs.h <<\_ACEOF
44954#define wxUSE_DATAOBJ 1
44955_ACEOF
44956
44957 fi
44958 else
44959 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44960echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44961
44962 wxUSE_CLIPBOARD=no
44963 wxUSE_DRAG_AND_DROP=no
44964 wxUSE_DATAOBJ=no
44965 wxUSE_OLE=no
44966 fi
44967
44968 if test "$wxUSE_METAFILE" = "yes"; then
44969 cat >>confdefs.h <<\_ACEOF
44970#define wxUSE_METAFILE 1
44971_ACEOF
44972
44973
44974 cat >>confdefs.h <<\_ACEOF
44975#define wxUSE_ENH_METAFILE 1
44976_ACEOF
44977
44978 fi
44979fi
44980
44981if test "$wxUSE_IPC" = "yes"; then
0b78747f 44982 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44983 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44984echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44985 wxUSE_IPC=no
a848cd7e
SC
44986 fi
44987
0b78747f
MW
44988 if test "$wxUSE_IPC" = "yes"; then
44989 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44990#define wxUSE_IPC 1
44991_ACEOF
44992
0b78747f
MW
44993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44994 fi
a848cd7e
SC
44995fi
44996
eb730a0c 44997if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44998 if test "$wxUSE_MGL" = 1; then
44999 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45000echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45001 wxUSE_DATAOBJ=no
45002 else
45003 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45004#define wxUSE_DATAOBJ 1
45005_ACEOF
45006
2113bc77 45007 fi
eb730a0c
JS
45008else
45009 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45010echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45011 wxUSE_CLIPBOARD=no
45012 wxUSE_DRAG_AND_DROP=no
45013fi
45014
a848cd7e
SC
45015if test "$wxUSE_CLIPBOARD" = "yes"; then
45016 if test "$wxUSE_MGL" = 1; then
45017 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45018echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45019 wxUSE_CLIPBOARD=no
45020 fi
45021
45022 if test "$wxUSE_CLIPBOARD" = "yes"; then
45023 cat >>confdefs.h <<\_ACEOF
45024#define wxUSE_CLIPBOARD 1
45025_ACEOF
45026
a848cd7e
SC
45027 fi
45028fi
45029
45030if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45031 if test "$wxUSE_GTK" = 1; then
45032 if test "$WXGTK12" != 1; then
45033 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45034echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45035 wxUSE_DRAG_AND_DROP=no
45036 fi
45037 fi
45038
45039 if test "$wxUSE_MOTIF" = 1; then
45040 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45041echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45042 wxUSE_DRAG_AND_DROP=no
45043 fi
45044
45045 if test "$wxUSE_X11" = 1; then
45046 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45047echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45048 wxUSE_DRAG_AND_DROP=no
45049 fi
45050
45051 if test "$wxUSE_MGL" = 1; then
45052 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45053echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45054 wxUSE_DRAG_AND_DROP=no
45055 fi
45056
45057 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45058 cat >>confdefs.h <<\_ACEOF
45059#define wxUSE_DRAG_AND_DROP 1
45060_ACEOF
45061
45062 fi
45063
45064fi
45065
45066if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45068fi
45069
45070if test "$wxUSE_SPLINES" = "yes" ; then
45071 cat >>confdefs.h <<\_ACEOF
45072#define wxUSE_SPLINES 1
45073_ACEOF
45074
45075fi
45076
fbe2ca43
SN
45077if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45078 cat >>confdefs.h <<\_ACEOF
45079#define wxUSE_MOUSEWHEEL 1
45080_ACEOF
45081
45082fi
45083
a848cd7e
SC
45084
45085USES_CONTROLS=0
45086if test "$wxUSE_CONTROLS" = "yes"; then
45087 USES_CONTROLS=1
45088fi
45089
45090if test "$wxUSE_ACCEL" = "yes"; then
45091 cat >>confdefs.h <<\_ACEOF
45092#define wxUSE_ACCEL 1
45093_ACEOF
45094
45095 USES_CONTROLS=1
45096fi
45097
45098if test "$wxUSE_BUTTON" = "yes"; then
45099 cat >>confdefs.h <<\_ACEOF
45100#define wxUSE_BUTTON 1
45101_ACEOF
45102
45103 USES_CONTROLS=1
45104fi
45105
45106if test "$wxUSE_BMPBUTTON" = "yes"; then
45107 cat >>confdefs.h <<\_ACEOF
45108#define wxUSE_BMPBUTTON 1
45109_ACEOF
45110
45111 USES_CONTROLS=1
45112fi
45113
45114if test "$wxUSE_CALCTRL" = "yes"; then
45115 cat >>confdefs.h <<\_ACEOF
45116#define wxUSE_CALENDARCTRL 1
45117_ACEOF
45118
45119 USES_CONTROLS=1
45120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45121fi
45122
45123if test "$wxUSE_CARET" = "yes"; then
45124 cat >>confdefs.h <<\_ACEOF
45125#define wxUSE_CARET 1
45126_ACEOF
45127
45128 USES_CONTROLS=1
45129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45130fi
45131
45132if test "$wxUSE_COMBOBOX" = "yes"; then
45133 cat >>confdefs.h <<\_ACEOF
45134#define wxUSE_COMBOBOX 1
45135_ACEOF
45136
45137 USES_CONTROLS=1
45138fi
45139
a57d600f 45140if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45141 cat >>confdefs.h <<\_ACEOF
a57d600f 45142#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45143_ACEOF
45144
45145 USES_CONTROLS=1
45146fi
45147
a848cd7e
SC
45148if test "$wxUSE_CHOICE" = "yes"; then
45149 cat >>confdefs.h <<\_ACEOF
45150#define wxUSE_CHOICE 1
45151_ACEOF
45152
45153 USES_CONTROLS=1
45154fi
45155
92bbdbcd
WS
45156if test "$wxUSE_CHOICEBOOK" = "yes"; then
45157 cat >>confdefs.h <<\_ACEOF
45158#define wxUSE_CHOICEBOOK 1
45159_ACEOF
45160
45161 USES_CONTROLS=1
45162fi
45163
a848cd7e
SC
45164if test "$wxUSE_CHECKBOX" = "yes"; then
45165 cat >>confdefs.h <<\_ACEOF
45166#define wxUSE_CHECKBOX 1
45167_ACEOF
45168
45169 USES_CONTROLS=1
45170fi
45171
45172if test "$wxUSE_CHECKLST" = "yes"; then
45173 cat >>confdefs.h <<\_ACEOF
45174#define wxUSE_CHECKLISTBOX 1
45175_ACEOF
45176
45177 USES_CONTROLS=1
45178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45179fi
45180
e9263684
VZ
45181if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45182 cat >>confdefs.h <<\_ACEOF
45183#define wxUSE_COLOURPICKERCTRL 1
45184_ACEOF
45185
45186 USES_CONTROLS=1
45187fi
45188
da98e9be
VZ
45189if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45190 cat >>confdefs.h <<\_ACEOF
45191#define wxUSE_DATEPICKCTRL 1
45192_ACEOF
45193
45194 USES_CONTROLS=1
45195fi
45196
e9263684
VZ
45197if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45198 cat >>confdefs.h <<\_ACEOF
45199#define wxUSE_DIRPICKERCTRL 1
45200_ACEOF
45201
45202 USES_CONTROLS=1
45203fi
45204
45205if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45206 cat >>confdefs.h <<\_ACEOF
45207#define wxUSE_FILEPICKERCTRL 1
45208_ACEOF
45209
45210 USES_CONTROLS=1
45211fi
45212
45213if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45214 cat >>confdefs.h <<\_ACEOF
45215#define wxUSE_FONTPICKERCTRL 1
45216_ACEOF
45217
45218 USES_CONTROLS=1
45219fi
45220
a848cd7e
SC
45221if test "$wxUSE_DISPLAY" = "yes"; then
45222 cat >>confdefs.h <<\_ACEOF
45223#define wxUSE_DISPLAY 1
45224_ACEOF
45225
0b78747f 45226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45227fi
45228
45229if test "$wxUSE_GAUGE" = "yes"; then
45230 cat >>confdefs.h <<\_ACEOF
45231#define wxUSE_GAUGE 1
45232_ACEOF
45233
45234 USES_CONTROLS=1
45235fi
45236
45237if test "$wxUSE_GRID" = "yes"; then
45238 cat >>confdefs.h <<\_ACEOF
45239#define wxUSE_GRID 1
45240_ACEOF
45241
45242 USES_CONTROLS=1
45243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45244fi
45245
6954625c
VZ
45246if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45247 cat >>confdefs.h <<\_ACEOF
45248#define wxUSE_HYPERLINKCTRL 1
45249_ACEOF
45250
45251 USES_CONTROLS=1
45252fi
45253
95a46303
RR
45254if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45255 cat >>confdefs.h <<\_ACEOF
45256#define wxUSE_BITMAPCOMBOBOX 1
45257_ACEOF
45258
45259 USES_CONTROLS=1
45260fi
45261
20e34ecc
RR
45262if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45263 cat >>confdefs.h <<\_ACEOF
45264#define wxUSE_DATAVIEWCTRL 1
45265_ACEOF
45266
45267 USES_CONTROLS=1
45268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45269fi
45270
a848cd7e
SC
45271if test "$wxUSE_IMAGLIST" = "yes"; then
45272 cat >>confdefs.h <<\_ACEOF
45273#define wxUSE_IMAGLIST 1
45274_ACEOF
45275
45276fi
45277
45278if test "$wxUSE_LISTBOOK" = "yes"; then
45279 cat >>confdefs.h <<\_ACEOF
45280#define wxUSE_LISTBOOK 1
45281_ACEOF
45282
45283 USES_CONTROLS=1
45284fi
45285
45286if test "$wxUSE_LISTBOX" = "yes"; then
45287 cat >>confdefs.h <<\_ACEOF
45288#define wxUSE_LISTBOX 1
45289_ACEOF
45290
45291 USES_CONTROLS=1
0b78747f 45292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45293fi
45294
45295if test "$wxUSE_LISTCTRL" = "yes"; then
45296 if test "$wxUSE_IMAGLIST" = "yes"; then
45297 cat >>confdefs.h <<\_ACEOF
45298#define wxUSE_LISTCTRL 1
45299_ACEOF
45300
45301 USES_CONTROLS=1
45302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45303 else
45304 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45305echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45306 fi
45307fi
45308
45309if test "$wxUSE_NOTEBOOK" = "yes"; then
45310 cat >>confdefs.h <<\_ACEOF
45311#define wxUSE_NOTEBOOK 1
45312_ACEOF
45313
45314 USES_CONTROLS=1
45315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45316fi
45317
a57d600f 45318if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45319 cat >>confdefs.h <<\_ACEOF
a57d600f 45320#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45321_ACEOF
45322
45323 USES_CONTROLS=1
45324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45325fi
45326
a848cd7e
SC
45327
45328if test "$wxUSE_RADIOBOX" = "yes"; then
45329 cat >>confdefs.h <<\_ACEOF
45330#define wxUSE_RADIOBOX 1
45331_ACEOF
45332
45333 USES_CONTROLS=1
45334fi
45335
45336if test "$wxUSE_RADIOBTN" = "yes"; then
45337 cat >>confdefs.h <<\_ACEOF
45338#define wxUSE_RADIOBTN 1
45339_ACEOF
45340
45341 USES_CONTROLS=1
45342fi
45343
45344if test "$wxUSE_SASH" = "yes"; then
45345 cat >>confdefs.h <<\_ACEOF
45346#define wxUSE_SASH 1
45347_ACEOF
45348
45349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45350fi
45351
45352if test "$wxUSE_SCROLLBAR" = "yes"; then
45353 cat >>confdefs.h <<\_ACEOF
45354#define wxUSE_SCROLLBAR 1
45355_ACEOF
45356
45357 USES_CONTROLS=1
45358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45359fi
45360
45361if test "$wxUSE_SLIDER" = "yes"; then
45362 cat >>confdefs.h <<\_ACEOF
45363#define wxUSE_SLIDER 1
45364_ACEOF
45365
45366 USES_CONTROLS=1
45367fi
45368
45369if test "$wxUSE_SPINBTN" = "yes"; then
45370 cat >>confdefs.h <<\_ACEOF
45371#define wxUSE_SPINBTN 1
45372_ACEOF
45373
45374 USES_CONTROLS=1
45375fi
45376
45377if test "$wxUSE_SPINCTRL" = "yes"; then
45378 cat >>confdefs.h <<\_ACEOF
45379#define wxUSE_SPINCTRL 1
45380_ACEOF
45381
45382 USES_CONTROLS=1
45383fi
45384
45385if test "$wxUSE_SPLITTER" = "yes"; then
45386 cat >>confdefs.h <<\_ACEOF
45387#define wxUSE_SPLITTER 1
45388_ACEOF
45389
45390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45391fi
45392
45393if test "$wxUSE_STATBMP" = "yes"; then
45394 cat >>confdefs.h <<\_ACEOF
45395#define wxUSE_STATBMP 1
45396_ACEOF
45397
45398 USES_CONTROLS=1
45399fi
45400
45401if test "$wxUSE_STATBOX" = "yes"; then
45402 cat >>confdefs.h <<\_ACEOF
45403#define wxUSE_STATBOX 1
45404_ACEOF
45405
45406 USES_CONTROLS=1
45407fi
45408
45409if test "$wxUSE_STATTEXT" = "yes"; then
45410 cat >>confdefs.h <<\_ACEOF
45411#define wxUSE_STATTEXT 1
45412_ACEOF
45413
45414 USES_CONTROLS=1
45415fi
45416
45417if test "$wxUSE_STATLINE" = "yes"; then
45418 cat >>confdefs.h <<\_ACEOF
45419#define wxUSE_STATLINE 1
45420_ACEOF
45421
45422 USES_CONTROLS=1
45423fi
45424
45425if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45426 cat >>confdefs.h <<\_ACEOF
45427#define wxUSE_NATIVE_STATUSBAR 1
45428_ACEOF
45429
a848cd7e
SC
45430 cat >>confdefs.h <<\_ACEOF
45431#define wxUSE_STATUSBAR 1
45432_ACEOF
45433
45434 USES_CONTROLS=1
45435
45436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45437fi
45438
f10e38c4 45439if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45440 cat >>confdefs.h <<\_ACEOF
45441#define wxUSE_TAB_DIALOG 1
45442_ACEOF
45443
a848cd7e
SC
45444fi
45445
45446if test "$wxUSE_TEXTCTRL" = "yes"; then
45447 cat >>confdefs.h <<\_ACEOF
45448#define wxUSE_TEXTCTRL 1
45449_ACEOF
45450
45451 USES_CONTROLS=1
45452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45453fi
45454
45455if test "$wxUSE_TOGGLEBTN" = "yes"; then
45456 if test "$wxUSE_COCOA" = 1 ; then
45457 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45458echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45459 wxUSE_TOGGLEBTN=no
45460 fi
a848cd7e
SC
45461
45462 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45463 cat >>confdefs.h <<\_ACEOF
45464#define wxUSE_TOGGLEBTN 1
45465_ACEOF
45466
45467 USES_CONTROLS=1
45468 fi
45469fi
45470
a848cd7e
SC
45471if test "$wxUSE_TOOLBAR" = "yes"; then
45472 cat >>confdefs.h <<\_ACEOF
45473#define wxUSE_TOOLBAR 1
45474_ACEOF
45475
45476 USES_CONTROLS=1
45477
452b6243
VS
45478 if test "$wxUSE_UNIVERSAL" = "yes"; then
45479 wxUSE_TOOLBAR_NATIVE="no"
45480 else
45481 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45482 cat >>confdefs.h <<\_ACEOF
45483#define wxUSE_TOOLBAR_NATIVE 1
45484_ACEOF
45485
a848cd7e
SC
45486 fi
45487
45488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45489fi
45490
45491if test "$wxUSE_TOOLTIPS" = "yes"; then
45492 if test "$wxUSE_MOTIF" = 1; then
45493 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45494echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45495 else
45496 if test "$wxUSE_UNIVERSAL" = "yes"; then
45497 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45498echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45499 else
45500 cat >>confdefs.h <<\_ACEOF
45501#define wxUSE_TOOLTIPS 1
45502_ACEOF
45503
45504 fi
45505 fi
45506fi
45507
0093c2fc
VZ
45508if test "$wxUSE_TREEBOOK" = "yes"; then
45509 cat >>confdefs.h <<\_ACEOF
45510#define wxUSE_TREEBOOK 1
45511_ACEOF
45512
45513 USES_CONTROLS=1
45514fi
45515
5ec3bc43
JS
45516if test "$wxUSE_TOOLBOOK" = "yes"; then
45517 cat >>confdefs.h <<\_ACEOF
45518#define wxUSE_TOOLBOOK 1
45519_ACEOF
45520
45521 USES_CONTROLS=1
45522fi
45523
a848cd7e
SC
45524if test "$wxUSE_TREECTRL" = "yes"; then
45525 if test "$wxUSE_IMAGLIST" = "yes"; then
45526 cat >>confdefs.h <<\_ACEOF
45527#define wxUSE_TREECTRL 1
45528_ACEOF
45529
45530 USES_CONTROLS=1
45531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45532 else
45533 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45534echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45535 fi
45536fi
45537
45538if test "$wxUSE_POPUPWIN" = "yes"; then
45539 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45540 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45541echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45542 else
45543 if test "$wxUSE_PM" = 1; then
45544 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45545echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45546 else
45547 cat >>confdefs.h <<\_ACEOF
45548#define wxUSE_POPUPWIN 1
45549_ACEOF
45550
0b78747f 45551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45552
45553 USES_CONTROLS=1
45554 fi
45555 fi
45556fi
45557
0dcd06dd 45558if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45559 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45560 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45561echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45562 else
45563 cat >>confdefs.h <<\_ACEOF
45564#define wxUSE_DIALUP_MANAGER 1
45565_ACEOF
45566
45567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45568 fi
45569fi
45570
a848cd7e
SC
45571if test "$wxUSE_TIPWINDOW" = "yes"; then
45572 if test "$wxUSE_PM" = 1; then
45573 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45574echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45575 else
45576 cat >>confdefs.h <<\_ACEOF
45577#define wxUSE_TIPWINDOW 1
45578_ACEOF
45579
45580 fi
45581fi
45582
45583if test "$USES_CONTROLS" = 1; then
45584 cat >>confdefs.h <<\_ACEOF
45585#define wxUSE_CONTROLS 1
45586_ACEOF
45587
45588fi
45589
45590
45591if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45592 cat >>confdefs.h <<\_ACEOF
45593#define wxUSE_ACCESSIBILITY 1
45594_ACEOF
45595
45596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45597fi
45598
38b4a946
VZ
45599if test "$wxUSE_DC_CACHEING" = "yes"; then
45600 cat >>confdefs.h <<\_ACEOF
45601#define wxUSE_DC_CACHEING 1
45602_ACEOF
45603
45604fi
45605
a848cd7e
SC
45606if test "$wxUSE_DRAGIMAGE" = "yes"; then
45607 cat >>confdefs.h <<\_ACEOF
45608#define wxUSE_DRAGIMAGE 1
45609_ACEOF
45610
45611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45612fi
45613
45614if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45615 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45616 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45617echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45618 else
45619 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45620#define wxUSE_EXCEPTIONS 1
45621_ACEOF
45622
07bea8f0
VS
45623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45624 fi
a848cd7e
SC
45625fi
45626
45627USE_HTML=0
45628if test "$wxUSE_HTML" = "yes"; then
45629 cat >>confdefs.h <<\_ACEOF
45630#define wxUSE_HTML 1
45631_ACEOF
45632
45633 USE_HTML=1
45634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45635 if test "$wxUSE_MAC" = 1; then
45636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45637 fi
a848cd7e 45638fi
646b6ec1 45639if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45640 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45641 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45642 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45643 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45644echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45645if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45646 echo $ECHO_N "(cached) $ECHO_C" >&6
45647else
45648 cat >conftest.$ac_ext <<_ACEOF
45649/* confdefs.h. */
45650_ACEOF
45651cat confdefs.h >>conftest.$ac_ext
45652cat >>conftest.$ac_ext <<_ACEOF
45653/* end confdefs.h. */
45654#include <Carbon/Carbon.h>
45655
45656#include <WebKit/HIWebView.h>
45657_ACEOF
45658rm -f conftest.$ac_objext
45659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45660 (eval $ac_compile) 2>conftest.er1
45661 ac_status=$?
45662 grep -v '^ *+' conftest.er1 >conftest.err
45663 rm -f conftest.er1
45664 cat conftest.err >&5
45665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45666 (exit $ac_status); } &&
ca5c6ac3 45667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45669 (eval $ac_try) 2>&5
45670 ac_status=$?
45671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45672 (exit $ac_status); }; } &&
45673 { ac_try='test -s conftest.$ac_objext'
45674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45675 (eval $ac_try) 2>&5
45676 ac_status=$?
45677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45678 (exit $ac_status); }; }; then
45679 ac_cv_header_WebKit_HIWebView_h=yes
45680else
45681 echo "$as_me: failed program was:" >&5
45682sed 's/^/| /' conftest.$ac_ext >&5
45683
45684ac_cv_header_WebKit_HIWebView_h=no
45685fi
45686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45687fi
45688echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45689echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45690if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45691
45692 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45693#define wxUSE_WEBKIT 1
45694_ACEOF
45695
07bea8f0
VS
45696 WEBKIT_LINK="-framework WebKit"
45697
45698else
45699
45700 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45701echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45702 wxUSE_WEBKIT=no
45703
646b6ec1
VS
45704fi
45705
07bea8f0
VS
45706
45707 CPPFLAGS="$old_CPPFLAGS"
45708 elif test "$wxUSE_COCOA" = 1; then
45709 cat >>confdefs.h <<\_ACEOF
45710#define wxUSE_WEBKIT 1
45711_ACEOF
45712
45713 else
45714 wxUSE_WEBKIT=no
45715 fi
45716fi
45717
9a8f0513
VS
45718USE_XRC=0
45719if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45720 if test "$wxUSE_XML" != "yes"; then
45721 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45722echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45723 wxUSE_XRC=no
45724 else
45725 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45726#define wxUSE_XRC 1
45727_ACEOF
45728
d2ebf0b7
VS
45729 USE_XRC=1
45730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45731 fi
9a8f0513 45732fi
07bea8f0 45733
3f60522a
JS
45734USE_AUI=0
45735if test "$wxUSE_AUI" = "yes"; then
45736 cat >>confdefs.h <<\_ACEOF
45737#define wxUSE_AUI 1
45738_ACEOF
45739
45740 USE_AUI=1
45741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45742fi
45743
a848cd7e
SC
45744if test "$wxUSE_MENUS" = "yes"; then
45745 cat >>confdefs.h <<\_ACEOF
45746#define wxUSE_MENUS 1
45747_ACEOF
45748
45749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45750fi
45751
45752if test "$wxUSE_METAFILE" = "yes"; then
45753 cat >>confdefs.h <<\_ACEOF
45754#define wxUSE_METAFILE 1
45755_ACEOF
45756
45757fi
45758
45759if test "$wxUSE_MIMETYPE" = "yes"; then
45760 cat >>confdefs.h <<\_ACEOF
45761#define wxUSE_MIMETYPE 1
45762_ACEOF
45763
45764fi
45765
45766if test "$wxUSE_MINIFRAME" = "yes"; then
45767 cat >>confdefs.h <<\_ACEOF
45768#define wxUSE_MINIFRAME 1
45769_ACEOF
45770
45771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45772fi
45773
45774if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45775 cat >>confdefs.h <<\_ACEOF
45776#define wxUSE_SYSTEM_OPTIONS 1
45777_ACEOF
45778
45779 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45780 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45782 fi
45783fi
45784
45785
45786if test "$wxUSE_VALIDATORS" = "yes"; then
45787 cat >>confdefs.h <<\_ACEOF
45788#define wxUSE_VALIDATORS 1
45789_ACEOF
45790
45791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45792fi
45793
45794if test "$wxUSE_PALETTE" = "yes" ; then
45795 cat >>confdefs.h <<\_ACEOF
45796#define wxUSE_PALETTE 1
45797_ACEOF
45798
45799fi
45800
45801if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45802 LIBS=" -lunicows $LIBS"
45803fi
45804
91dea314
MW
45805USE_RICHTEXT=0
45806if test "$wxUSE_RICHTEXT" = "yes"; then
45807 cat >>confdefs.h <<\_ACEOF
45808#define wxUSE_RICHTEXT 1
45809_ACEOF
45810
45811 USE_RICHTEXT=1
45812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45813fi
45814
f43426c1
RD
45815if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
45816 cat >>confdefs.h <<\_ACEOF
45817#define wxUSE_GRAPHICS_CONTEXT 1
45818_ACEOF
45819
45820fi
45821
a848cd7e
SC
45822
45823if test "$wxUSE_IMAGE" = "yes" ; then
45824 cat >>confdefs.h <<\_ACEOF
45825#define wxUSE_IMAGE 1
45826_ACEOF
45827
45828
45829 if test "$wxUSE_GIF" = "yes" ; then
45830 cat >>confdefs.h <<\_ACEOF
45831#define wxUSE_GIF 1
45832_ACEOF
45833
45834 fi
45835
45836 if test "$wxUSE_PCX" = "yes" ; then
45837 cat >>confdefs.h <<\_ACEOF
45838#define wxUSE_PCX 1
45839_ACEOF
45840
45841 fi
45842
45843 if test "$wxUSE_IFF" = "yes" ; then
45844 cat >>confdefs.h <<\_ACEOF
45845#define wxUSE_IFF 1
45846_ACEOF
45847
45848 fi
45849
45850 if test "$wxUSE_PNM" = "yes" ; then
45851 cat >>confdefs.h <<\_ACEOF
45852#define wxUSE_PNM 1
45853_ACEOF
45854
45855 fi
45856
45857 if test "$wxUSE_XPM" = "yes" ; then
45858 cat >>confdefs.h <<\_ACEOF
45859#define wxUSE_XPM 1
45860_ACEOF
45861
45862 fi
45863
45864 if test "$wxUSE_ICO_CUR" = "yes" ; then
45865 cat >>confdefs.h <<\_ACEOF
45866#define wxUSE_ICO_CUR 1
45867_ACEOF
45868
45869 fi
45870fi
45871
45872
45873if test "$wxUSE_CHOICEDLG" = "yes"; then
45874 cat >>confdefs.h <<\_ACEOF
45875#define wxUSE_CHOICEDLG 1
45876_ACEOF
45877
45878fi
45879
45880if test "$wxUSE_COLOURDLG" = "yes"; then
45881 cat >>confdefs.h <<\_ACEOF
45882#define wxUSE_COLOURDLG 1
45883_ACEOF
45884
45885fi
45886
45887if test "$wxUSE_FILEDLG" = "yes"; then
45888 cat >>confdefs.h <<\_ACEOF
45889#define wxUSE_FILEDLG 1
45890_ACEOF
45891
45892fi
45893
45894if test "$wxUSE_FINDREPLDLG" = "yes"; then
45895 cat >>confdefs.h <<\_ACEOF
45896#define wxUSE_FINDREPLDLG 1
45897_ACEOF
45898
45899fi
45900
45901if test "$wxUSE_FONTDLG" = "yes"; then
45902 cat >>confdefs.h <<\_ACEOF
45903#define wxUSE_FONTDLG 1
45904_ACEOF
45905
45906fi
45907
45908if test "$wxUSE_DIRDLG" = "yes"; then
45909 if test "$wxUSE_TREECTRL" != "yes"; then
45910 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45911echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45912 else
45913 cat >>confdefs.h <<\_ACEOF
45914#define wxUSE_DIRDLG 1
45915_ACEOF
45916
45917 fi
45918fi
45919
45920if test "$wxUSE_MSGDLG" = "yes"; then
45921 cat >>confdefs.h <<\_ACEOF
45922#define wxUSE_MSGDLG 1
45923_ACEOF
45924
45925fi
45926
45927if test "$wxUSE_NUMBERDLG" = "yes"; then
45928 cat >>confdefs.h <<\_ACEOF
45929#define wxUSE_NUMBERDLG 1
45930_ACEOF
45931
45932fi
45933
45934if test "$wxUSE_PROGRESSDLG" = "yes"; then
45935 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45936 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45937echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45938 else
45939 cat >>confdefs.h <<\_ACEOF
45940#define wxUSE_PROGRESSDLG 1
45941_ACEOF
45942
45943 fi
45944fi
45945
45946if test "$wxUSE_SPLASH" = "yes"; then
45947 cat >>confdefs.h <<\_ACEOF
45948#define wxUSE_SPLASH 1
45949_ACEOF
45950
2057db16 45951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45952fi
45953
45954if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45955 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45956 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45957echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45958 else
45959 cat >>confdefs.h <<\_ACEOF
45960#define wxUSE_STARTUP_TIPS 1
45961_ACEOF
45962
45963 fi
45964fi
45965
45966if test "$wxUSE_TEXTDLG" = "yes"; then
45967 cat >>confdefs.h <<\_ACEOF
45968#define wxUSE_TEXTDLG 1
45969_ACEOF
45970
45971fi
45972
45973if test "$wxUSE_WIZARDDLG" = "yes"; then
45974 cat >>confdefs.h <<\_ACEOF
45975#define wxUSE_WIZARDDLG 1
45976_ACEOF
45977
45978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45979fi
45980
45981
f10e38c4
VZ
45982USE_MEDIA=0
45983
ce756cb0 45984if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45985 USE_MEDIA=1
45986
ce756cb0 45987 if test "$wxUSE_GTK" = 1; then
c9a66001 45988 wxUSE_GSTREAMER="no"
ce756cb0 45989
f10e38c4
VZ
45990 GST_VERSION_MAJOR=0
45991 GST_VERSION_MINOR=10
2f6c5bb5 45992 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45993
45994 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45995
3ecd9f92
MW
45996pkg_failed=no
45997echo "$as_me:$LINENO: checking for GST" >&5
45998echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 45999
3ecd9f92
MW
46000if test -n "$PKG_CONFIG"; then
46001 if test -n "$GST_CFLAGS"; then
46002 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46003 else
46004 if test -n "$PKG_CONFIG" && \
46005 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46006 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46007 ac_status=$?
46008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46009 (exit $ac_status); }; then
46010 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46011else
3ecd9f92
MW
46012 pkg_failed=yes
46013fi
46014 fi
46015else
46016 pkg_failed=untried
dae87f93 46017fi
dae87f93 46018if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46019 if test -n "$GST_LIBS"; then
46020 pkg_cv_GST_LIBS="$GST_LIBS"
46021 else
46022 if test -n "$PKG_CONFIG" && \
46023 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46024 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46025 ac_status=$?
46026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46027 (exit $ac_status); }; then
46028 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46029else
3ecd9f92
MW
46030 pkg_failed=yes
46031fi
46032 fi
46033else
46034 pkg_failed=untried
dae87f93
RN
46035fi
46036
dae87f93 46037
2f6c5bb5 46038
3ecd9f92 46039if test $pkg_failed = yes; then
ce756cb0 46040
3ecd9f92
MW
46041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46042 _pkg_short_errors_supported=yes
46043else
46044 _pkg_short_errors_supported=no
46045fi
46046 if test $_pkg_short_errors_supported = yes; then
46047 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46048 else
46049 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46050 fi
3ecd9f92
MW
46051 # Put the nasty error message in config.log where it belongs
46052 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46053
46054
3ecd9f92
MW
46055 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46056echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46057 GST_VERSION_MINOR=8
dae87f93 46058
ce756cb0 46059
3ecd9f92 46060elif test $pkg_failed = untried; then
dae87f93 46061
2f6c5bb5
VZ
46062 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46063echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46064 GST_VERSION_MINOR=8
dae87f93 46065
2f6c5bb5 46066
3ecd9f92
MW
46067else
46068 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46069 GST_LIBS=$pkg_cv_GST_LIBS
46070 echo "$as_me:$LINENO: result: yes" >&5
46071echo "${ECHO_T}yes" >&6
46072
46073 wxUSE_GSTREAMER="yes"
46074 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46075
3ecd9f92 46076fi
2f6c5bb5
VZ
46077 else
46078 GST_VERSION_MINOR=8
f10e38c4 46079 fi
dae87f93 46080
2f6c5bb5
VZ
46081 if test $GST_VERSION_MINOR = "8"; then
46082 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46083
3ecd9f92
MW
46084pkg_failed=no
46085echo "$as_me:$LINENO: checking for GST" >&5
46086echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46087
3ecd9f92
MW
46088if test -n "$PKG_CONFIG"; then
46089 if test -n "$GST_CFLAGS"; then
46090 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46091 else
46092 if test -n "$PKG_CONFIG" && \
46093 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46094 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46095 ac_status=$?
46096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097 (exit $ac_status); }; then
46098 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46099else
3ecd9f92
MW
46100 pkg_failed=yes
46101fi
46102 fi
46103else
46104 pkg_failed=untried
dae87f93 46105fi
f10e38c4 46106if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46107 if test -n "$GST_LIBS"; then
46108 pkg_cv_GST_LIBS="$GST_LIBS"
46109 else
46110 if test -n "$PKG_CONFIG" && \
46111 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46112 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46113 ac_status=$?
46114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46115 (exit $ac_status); }; then
46116 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46117else
3ecd9f92
MW
46118 pkg_failed=yes
46119fi
46120 fi
46121else
46122 pkg_failed=untried
dae87f93
RN
46123fi
46124
ce756cb0 46125
2f6c5bb5 46126
3ecd9f92 46127if test $pkg_failed = yes; then
dae87f93 46128
3ecd9f92
MW
46129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46130 _pkg_short_errors_supported=yes
46131else
46132 _pkg_short_errors_supported=no
46133fi
46134 if test $_pkg_short_errors_supported = yes; then
46135 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46136 else
46137 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46138 fi
3ecd9f92
MW
46139 # Put the nasty error message in config.log where it belongs
46140 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46141
46142
3ecd9f92
MW
46143 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46144echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46145
3ecd9f92 46146elif test $pkg_failed = untried; then
ce756cb0 46147
2f6c5bb5
VZ
46148 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46149echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46150
3ecd9f92
MW
46151else
46152 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46153 GST_LIBS=$pkg_cv_GST_LIBS
46154 echo "$as_me:$LINENO: result: yes" >&5
46155echo "${ECHO_T}yes" >&6
46156 wxUSE_GSTREAMER="yes"
46157fi
dae87f93 46158 fi
ce756cb0 46159
f10e38c4 46160
dae87f93 46161 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46162 case "${host}" in
46163 *-*-solaris2* )
46164 if "$GCC" = yes; then
46165 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46166 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46167 fi
46168 esac
46169
46170 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46171 LIBS="$GST_LIBS $LIBS"
46172
dae87f93 46173 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46174#define wxUSE_GSTREAMER 1
46175_ACEOF
46176
2f6c5bb5
VZ
46177 else
46178 USE_MEDIA=0
ce756cb0
RN
46179 fi
46180 fi
2f6c5bb5
VZ
46181
46182 if test $USE_MEDIA = 1; then
46183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46184 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46185#define wxUSE_MEDIACTRL 1
46186_ACEOF
46187
2f6c5bb5 46188 fi
ce756cb0
RN
46189fi
46190
46191
a848cd7e
SC
46192if test "$cross_compiling" = "yes"; then
46193 OSINFO="\"$host\""
46194else
46195 OSINFO=`uname -s -r -m`
46196 OSINFO="\"$OSINFO\""
46197fi
46198
46199cat >>confdefs.h <<_ACEOF
46200#define WXWIN_OS_DESCRIPTION $OSINFO
46201_ACEOF
46202
46203
46204
46205if test "x$prefix" != "xNONE"; then
46206 wxPREFIX=$prefix
46207else
46208 wxPREFIX=$ac_default_prefix
46209fi
46210
46211cat >>confdefs.h <<_ACEOF
46212#define wxINSTALL_PREFIX "$wxPREFIX"
46213_ACEOF
46214
46215
a848cd7e
SC
46216
46217
46218CORE_BASE_LIBS="net base"
46219CORE_GUI_LIBS="adv core"
46220
46221if test "$wxUSE_XML" = "yes" ; then
46222 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46223fi
46224if test "$wxUSE_ODBC" != "no" ; then
46225 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46226 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46227fi
46228if test "$wxUSE_HTML" = "yes" ; then
46229 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46230fi
61639efb
VZ
46231if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46232 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46233fi
9a8f0513
VS
46234if test "$wxUSE_XRC" = "yes" ; then
46235 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46236fi
3f60522a
JS
46237if test "$wxUSE_AUI" = "yes" ; then
46238 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46239fi
a848cd7e
SC
46240
46241if test "$wxUSE_GUI" != "yes"; then
46242 CORE_GUI_LIBS=""
46243fi
46244
46245
46246
46247
46248
5d7b7554
VZ
46249ac_ext=c
46250ac_cpp='$CPP $CPPFLAGS'
46251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46253ac_compiler_gnu=$ac_cv_c_compiler_gnu
46254
a848cd7e
SC
46255
46256
a848cd7e 46257if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46258 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46259 if test "$USE_DARWIN" = 1; then
46260 LDFLAGS="$LDFLAGS -framework QuickTime"
46261 else
46262 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46263 fi
07bea8f0 46264 fi
5dcf30a0 46265 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46266 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46267 else
46268 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46269 fi
a848cd7e
SC
46270fi
46271if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46272 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46273 if test "$wxUSE_MEDIACTRL" = "yes"; then
46274 LDFLAGS="$LDFLAGS -framework QuickTime"
46275 fi
a848cd7e 46276fi
19b27e78
MW
46277if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46278 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46279fi
a848cd7e 46280
a848cd7e
SC
46281LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46282
a848cd7e
SC
46283if test "$wxUSE_GUI" = "yes"; then
46284
46285
8bce5cda
MW
46286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46287 dynamic erase event exec font image minimal mobile \
46288 mobile/wxedit mobile/styles propsize render \
9e39d889 46289 rotate shaped vscroll widgets"
a848cd7e
SC
46290
46291 if test "$wxUSE_MONOLITHIC" != "yes"; then
46292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46293 fi
0b78747f 46294 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46296 if test "$wxUSE_UNIVERSAL" != "yes"; then
46297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46298 fi
46299 fi
46300 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46302 fi
a848cd7e
SC
46303else
46304 SAMPLES_SUBDIRS="console"
46305fi
46306
46307
48f625bc 46308if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46309 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46310elif test "$GCC" = yes ; then
46311 CWARNINGS="-Wall -Wundef"
46312fi
46313
48f625bc 46314if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46315 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46316elif test "$GXX" = yes ; then
46317 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46318fi
a848cd7e 46319
a848cd7e 46320
5ff751d6
VZ
46321WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46322WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46323
46324
c92ad099 46325CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46326 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46327 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46328 $CPPFLAGS `
5ff751d6 46329
8aeeb05c 46330C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46331CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46332CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46333
46334WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46335
a848cd7e 46336
95986553
DE
46337if test "x$MWCC" = "xyes"; then
46338
46339 CC="$CC -cwd source -I-"
46340 CXX="$CXX -cwd source -I-"
46341fi
46342
a848cd7e 46343
0c3c69fc 46344LIBS=`echo $LIBS`
a848cd7e
SC
46345EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46346EXTRALIBS_XML="$EXPAT_LINK"
46347EXTRALIBS_HTML="$MSPACK_LINK"
46348EXTRALIBS_ODBC="$ODBC_LINK"
46349if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46350 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46351fi
46352if test "$wxUSE_OPENGL" = "yes"; then
46353 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46354fi
46355
8aeeb05c 46356LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46357
5ff751d6 46358WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46359
46360if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46361 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46362fi
46363if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46364 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46365fi
46366if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46367 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46368fi
46369if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46370 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46371fi
46372if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46373 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46374fi
46375if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46376 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46377fi
46378if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46379 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46380fi
46381
46382for i in $wxconfig_3rdparty ; do
5ff751d6 46383 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46384done
46385
46386
46387if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46388 WXUNIV=1
4353a8df
VZ
46389
46390 case "$wxUNIV_THEMES" in
46391 ''|all)
46392 cat >>confdefs.h <<\_ACEOF
46393#define wxUSE_ALL_THEMES 1
46394_ACEOF
46395
46396 ;;
46397
46398 *)
46399 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46400 cat >>confdefs.h <<_ACEOF
46401#define wxUSE_THEME_$t 1
46402_ACEOF
46403
46404 done
46405 esac
a848cd7e
SC
46406else
46407 WXUNIV=0
46408fi
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418if test $wxUSE_MONOLITHIC = "yes" ; then
46419 MONOLITHIC=1
46420else
46421 MONOLITHIC=0
46422fi
46423
46424if test $wxUSE_PLUGINS = "yes" ; then
46425 USE_PLUGINS=1
46426else
46427 USE_PLUGINS=0
46428fi
46429
46430if test $wxUSE_ODBC != "no" ; then
46431 USE_ODBC=1
46432else
46433 USE_ODBC=0
46434fi
46435
16358932
VZ
46436if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46437 USE_QA=1
46438else
46439 USE_QA=0
46440fi
46441
a848cd7e
SC
46442if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46443 OFFICIAL_BUILD=1
46444else
46445 OFFICIAL_BUILD=0
46446fi
46447
46448
46449
46450
46451
46452
46453
46454
46455
46456
46457
46458
46459
46460
46461
46462
46463
46464
46465
ceec2216 46466
d1c38808 46467
3565d135 46468
2b850ae1 46469
a848cd7e
SC
46470
46471
46472TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46473
46474
46475
46476
46477
46478
46479
46480
4d4ff94c
VZ
46481case "$TOOLKIT" in
46482 GTK)
c2e9ada4 46483 TOOLKIT_DESC="GTK+"
4d4ff94c 46484 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46485 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46486 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46487 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46488 fi
46489 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46490 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46491 fi
46492 if test "$wxUSE_LIBHILDON" = "yes"; then
46493 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46494 fi
46495
46496 if test "$TOOLKIT_EXTRA" != ""; then
46497 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46498 fi
4d4ff94c 46499 fi
9a8f0513 46500 ;;
4d4ff94c 46501
c2e9ada4
VZ
46502 ?*)
46503 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46504 ;;
46505
4d4ff94c 46506 *)
c2e9ada4 46507 TOOLKIT_DESC="base only"
9a8f0513 46508 ;;
4d4ff94c 46509esac
a848cd7e 46510
fb00f58d
JS
46511if test "$wxUSE_WINE" = "yes"; then
46512 BAKEFILE_FORCE_PLATFORM=win32
46513fi
46514
7afc46ab 46515if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46516 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46517 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46518 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46519 else
46520 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46521 fi
46522 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46523 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46524 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46525 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46526 bk_use_pch=no
46527 fi
46528 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46529 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46530fi
46531
9a8f0513 46532
1e9e8aba
DE
46533
46534
a848cd7e 46535 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46536 if test "x${host}" = "x" ; then
46537 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46538echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46539 { (exit 1); exit 1; }; }
46540 fi
46541
a848cd7e
SC
46542 BAKEFILE_HOST="${host}"
46543 fi
46544
46545 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46546
46547 if test -n "$ac_tool_prefix"; then
46548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46549set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46550echo "$as_me:$LINENO: checking for $ac_word" >&5
46551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46552if test "${ac_cv_prog_RANLIB+set}" = set; then
46553 echo $ECHO_N "(cached) $ECHO_C" >&6
46554else
46555 if test -n "$RANLIB"; then
46556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46557else
46558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46559for as_dir in $PATH
46560do
46561 IFS=$as_save_IFS
46562 test -z "$as_dir" && as_dir=.
46563 for ac_exec_ext in '' $ac_executable_extensions; do
46564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46567 break 2
46568 fi
46569done
46570done
46571
46572fi
46573fi
46574RANLIB=$ac_cv_prog_RANLIB
46575if test -n "$RANLIB"; then
46576 echo "$as_me:$LINENO: result: $RANLIB" >&5
46577echo "${ECHO_T}$RANLIB" >&6
46578else
46579 echo "$as_me:$LINENO: result: no" >&5
46580echo "${ECHO_T}no" >&6
46581fi
46582
46583fi
46584if test -z "$ac_cv_prog_RANLIB"; then
46585 ac_ct_RANLIB=$RANLIB
46586 # Extract the first word of "ranlib", so it can be a program name with args.
46587set dummy ranlib; ac_word=$2
46588echo "$as_me:$LINENO: checking for $ac_word" >&5
46589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46590if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46591 echo $ECHO_N "(cached) $ECHO_C" >&6
46592else
46593 if test -n "$ac_ct_RANLIB"; then
46594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46595else
46596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46597for as_dir in $PATH
46598do
46599 IFS=$as_save_IFS
46600 test -z "$as_dir" && as_dir=.
46601 for ac_exec_ext in '' $ac_executable_extensions; do
46602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46603 ac_cv_prog_ac_ct_RANLIB="ranlib"
46604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46605 break 2
46606 fi
46607done
46608done
46609
46610 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46611fi
46612fi
46613ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46614if test -n "$ac_ct_RANLIB"; then
46615 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46616echo "${ECHO_T}$ac_ct_RANLIB" >&6
46617else
46618 echo "$as_me:$LINENO: result: no" >&5
46619echo "${ECHO_T}no" >&6
46620fi
46621
46622 RANLIB=$ac_ct_RANLIB
46623else
46624 RANLIB="$ac_cv_prog_RANLIB"
46625fi
46626
46627 # Find a good install program. We prefer a C program (faster),
46628# so one script is as good as another. But avoid the broken or
46629# incompatible versions:
46630# SysV /etc/install, /usr/sbin/install
46631# SunOS /usr/etc/install
46632# IRIX /sbin/install
46633# AIX /bin/install
46634# AmigaOS /C/install, which installs bootblocks on floppy discs
46635# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46636# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46637# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46638# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46639# ./install, which can be erroneously created by make from ./install.sh.
46640echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46641echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46642if test -z "$INSTALL"; then
46643if test "${ac_cv_path_install+set}" = set; then
46644 echo $ECHO_N "(cached) $ECHO_C" >&6
46645else
46646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46647for as_dir in $PATH
46648do
46649 IFS=$as_save_IFS
46650 test -z "$as_dir" && as_dir=.
46651 # Account for people who put trailing slashes in PATH elements.
46652case $as_dir/ in
46653 ./ | .// | /cC/* | \
46654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46655 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46656 /usr/ucb/* ) ;;
46657 *)
46658 # OSF1 and SCO ODT 3.0 have their own names for install.
46659 # Don't use installbsd from OSF since it installs stuff as root
46660 # by default.
46661 for ac_prog in ginstall scoinst install; do
46662 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46663 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46664 if test $ac_prog = install &&
46665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46666 # AIX install. It has an incompatible calling convention.
46667 :
46668 elif test $ac_prog = install &&
46669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46670 # program-specific install script used by HP pwplus--don't use.
46671 :
46672 else
46673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46674 break 3
46675 fi
46676 fi
a848cd7e
SC
46677 done
46678 done
46679 ;;
46680esac
46681done
46682
46683
46684fi
46685 if test "${ac_cv_path_install+set}" = set; then
46686 INSTALL=$ac_cv_path_install
46687 else
46688 # As a last resort, use the slow shell script. We don't cache a
46689 # path for INSTALL within a source directory, because that will
46690 # break other packages using the cache if that directory is
46691 # removed, or if the path is relative.
46692 INSTALL=$ac_install_sh
46693 fi
46694fi
46695echo "$as_me:$LINENO: result: $INSTALL" >&5
46696echo "${ECHO_T}$INSTALL" >&6
46697
46698# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46699# It thinks the first close brace ends the variable substitution.
46700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46701
46702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46703
46704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46705
46706 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46707echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46708LN_S=$as_ln_s
46709if test "$LN_S" = "ln -s"; then
46710 echo "$as_me:$LINENO: result: yes" >&5
46711echo "${ECHO_T}yes" >&6
46712else
46713 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46714echo "${ECHO_T}no, using $LN_S" >&6
46715fi
46716
46717
46718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46719echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46720set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46721if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46722 echo $ECHO_N "(cached) $ECHO_C" >&6
46723else
46724 cat >conftest.make <<\_ACEOF
46725all:
46726 @echo 'ac_maketemp="$(MAKE)"'
46727_ACEOF
46728# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46729eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46730if test -n "$ac_maketemp"; then
46731 eval ac_cv_prog_make_${ac_make}_set=yes
46732else
46733 eval ac_cv_prog_make_${ac_make}_set=no
46734fi
46735rm -f conftest.make
46736fi
46737if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46738 echo "$as_me:$LINENO: result: yes" >&5
46739echo "${ECHO_T}yes" >&6
46740 SET_MAKE=
46741else
46742 echo "$as_me:$LINENO: result: no" >&5
46743echo "${ECHO_T}no" >&6
46744 SET_MAKE="MAKE=${MAKE-make}"
46745fi
46746
46747
46748
46749 if test -n "$ac_tool_prefix"; then
46750 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46751set dummy ${ac_tool_prefix}ar; ac_word=$2
46752echo "$as_me:$LINENO: checking for $ac_word" >&5
46753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46754if test "${ac_cv_prog_AR+set}" = set; then
46755 echo $ECHO_N "(cached) $ECHO_C" >&6
46756else
46757 if test -n "$AR"; then
46758 ac_cv_prog_AR="$AR" # Let the user override the test.
46759else
46760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46761for as_dir in $PATH
46762do
46763 IFS=$as_save_IFS
46764 test -z "$as_dir" && as_dir=.
46765 for ac_exec_ext in '' $ac_executable_extensions; do
46766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46767 ac_cv_prog_AR="${ac_tool_prefix}ar"
46768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46769 break 2
46770 fi
46771done
46772done
46773
46774fi
46775fi
46776AR=$ac_cv_prog_AR
46777if test -n "$AR"; then
46778 echo "$as_me:$LINENO: result: $AR" >&5
46779echo "${ECHO_T}$AR" >&6
46780else
46781 echo "$as_me:$LINENO: result: no" >&5
46782echo "${ECHO_T}no" >&6
46783fi
46784
46785fi
46786if test -z "$ac_cv_prog_AR"; then
46787 ac_ct_AR=$AR
46788 # Extract the first word of "ar", so it can be a program name with args.
46789set dummy ar; ac_word=$2
46790echo "$as_me:$LINENO: checking for $ac_word" >&5
46791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46792if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46793 echo $ECHO_N "(cached) $ECHO_C" >&6
46794else
46795 if test -n "$ac_ct_AR"; then
46796 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46797else
46798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46799for as_dir in $PATH
46800do
46801 IFS=$as_save_IFS
46802 test -z "$as_dir" && as_dir=.
46803 for ac_exec_ext in '' $ac_executable_extensions; do
46804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46805 ac_cv_prog_ac_ct_AR="ar"
46806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46807 break 2
46808 fi
46809done
46810done
46811
46812 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46813fi
46814fi
46815ac_ct_AR=$ac_cv_prog_ac_ct_AR
46816if test -n "$ac_ct_AR"; then
46817 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46818echo "${ECHO_T}$ac_ct_AR" >&6
46819else
46820 echo "$as_me:$LINENO: result: no" >&5
46821echo "${ECHO_T}no" >&6
46822fi
46823
46824 AR=$ac_ct_AR
46825else
46826 AR="$ac_cv_prog_AR"
46827fi
46828
46829 if test -n "$ac_tool_prefix"; then
46830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46831set dummy ${ac_tool_prefix}strip; ac_word=$2
46832echo "$as_me:$LINENO: checking for $ac_word" >&5
46833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46834if test "${ac_cv_prog_STRIP+set}" = set; then
46835 echo $ECHO_N "(cached) $ECHO_C" >&6
46836else
46837 if test -n "$STRIP"; then
46838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46839else
46840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46841for as_dir in $PATH
46842do
46843 IFS=$as_save_IFS
46844 test -z "$as_dir" && as_dir=.
46845 for ac_exec_ext in '' $ac_executable_extensions; do
46846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46847 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46849 break 2
46850 fi
46851done
46852done
46853
46854fi
46855fi
46856STRIP=$ac_cv_prog_STRIP
46857if test -n "$STRIP"; then
46858 echo "$as_me:$LINENO: result: $STRIP" >&5
46859echo "${ECHO_T}$STRIP" >&6
46860else
46861 echo "$as_me:$LINENO: result: no" >&5
46862echo "${ECHO_T}no" >&6
46863fi
46864
46865fi
46866if test -z "$ac_cv_prog_STRIP"; then
46867 ac_ct_STRIP=$STRIP
46868 # Extract the first word of "strip", so it can be a program name with args.
46869set dummy strip; ac_word=$2
46870echo "$as_me:$LINENO: checking for $ac_word" >&5
46871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46872if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46873 echo $ECHO_N "(cached) $ECHO_C" >&6
46874else
46875 if test -n "$ac_ct_STRIP"; then
46876 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46877else
46878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46879for as_dir in $PATH
46880do
46881 IFS=$as_save_IFS
46882 test -z "$as_dir" && as_dir=.
46883 for ac_exec_ext in '' $ac_executable_extensions; do
46884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46885 ac_cv_prog_ac_ct_STRIP="strip"
46886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46887 break 2
46888 fi
46889done
46890done
46891
46892 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46893fi
46894fi
46895ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46896if test -n "$ac_ct_STRIP"; then
46897 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46898echo "${ECHO_T}$ac_ct_STRIP" >&6
46899else
46900 echo "$as_me:$LINENO: result: no" >&5
46901echo "${ECHO_T}no" >&6
46902fi
46903
46904 STRIP=$ac_ct_STRIP
46905else
46906 STRIP="$ac_cv_prog_STRIP"
46907fi
46908
46909 if test -n "$ac_tool_prefix"; then
46910 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46911set dummy ${ac_tool_prefix}nm; ac_word=$2
46912echo "$as_me:$LINENO: checking for $ac_word" >&5
46913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46914if test "${ac_cv_prog_NM+set}" = set; then
46915 echo $ECHO_N "(cached) $ECHO_C" >&6
46916else
46917 if test -n "$NM"; then
46918 ac_cv_prog_NM="$NM" # Let the user override the test.
46919else
46920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46921for as_dir in $PATH
46922do
46923 IFS=$as_save_IFS
46924 test -z "$as_dir" && as_dir=.
46925 for ac_exec_ext in '' $ac_executable_extensions; do
46926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46927 ac_cv_prog_NM="${ac_tool_prefix}nm"
46928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46929 break 2
46930 fi
46931done
46932done
46933
46934fi
46935fi
46936NM=$ac_cv_prog_NM
46937if test -n "$NM"; then
46938 echo "$as_me:$LINENO: result: $NM" >&5
46939echo "${ECHO_T}$NM" >&6
46940else
46941 echo "$as_me:$LINENO: result: no" >&5
46942echo "${ECHO_T}no" >&6
46943fi
46944
46945fi
46946if test -z "$ac_cv_prog_NM"; then
46947 ac_ct_NM=$NM
46948 # Extract the first word of "nm", so it can be a program name with args.
46949set dummy nm; ac_word=$2
46950echo "$as_me:$LINENO: checking for $ac_word" >&5
46951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46952if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46953 echo $ECHO_N "(cached) $ECHO_C" >&6
46954else
46955 if test -n "$ac_ct_NM"; then
46956 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46957else
46958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46959for as_dir in $PATH
46960do
46961 IFS=$as_save_IFS
46962 test -z "$as_dir" && as_dir=.
46963 for ac_exec_ext in '' $ac_executable_extensions; do
46964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46965 ac_cv_prog_ac_ct_NM="nm"
46966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46967 break 2
46968 fi
46969done
46970done
46971
46972 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46973fi
46974fi
46975ac_ct_NM=$ac_cv_prog_ac_ct_NM
46976if test -n "$ac_ct_NM"; then
46977 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46978echo "${ECHO_T}$ac_ct_NM" >&6
46979else
46980 echo "$as_me:$LINENO: result: no" >&5
46981echo "${ECHO_T}no" >&6
46982fi
46983
46984 NM=$ac_ct_NM
46985else
46986 NM="$ac_cv_prog_NM"
46987fi
46988
46989
46990 case ${BAKEFILE_HOST} in
46991 *-hp-hpux* )
1e9e8aba 46992 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46993 ;;
46994 *) INSTALL_DIR="$INSTALL -d"
46995 ;;
46996 esac
46997
46998
46999 LDFLAGS_GUI=
47000 case ${BAKEFILE_HOST} in
47001 *-*-cygwin* | *-*-mingw32* )
47002 LDFLAGS_GUI="-mwindows"
47003 esac
47004
47005
47006 fi
47007
47008 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47009echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47010if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47011 echo $ECHO_N "(cached) $ECHO_C" >&6
47012else
47013
47014 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47015 egrep -s GNU > /dev/null); then
47016 bakefile_cv_prog_makeisgnu="yes"
47017 else
47018 bakefile_cv_prog_makeisgnu="no"
47019 fi
47020
47021fi
47022echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47023echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47024
47025 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47026 IF_GNU_MAKE=""
47027 else
47028 IF_GNU_MAKE="#"
47029 fi
47030
47031
47032
47033 PLATFORM_UNIX=0
47034 PLATFORM_WIN32=0
47035 PLATFORM_MSDOS=0
47036 PLATFORM_MAC=0
1e9e8aba 47037 PLATFORM_MACOS=0
a848cd7e
SC
47038 PLATFORM_MACOSX=0
47039 PLATFORM_OS2=0
1e9e8aba 47040 PLATFORM_BEOS=0
a848cd7e
SC
47041
47042 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47043 case "${BAKEFILE_HOST}" in
810b94f0 47044 *-*-mingw32* )
a848cd7e
SC
47045 PLATFORM_WIN32=1
47046 ;;
47047 *-pc-msdosdjgpp )
47048 PLATFORM_MSDOS=1
47049 ;;
47050 *-pc-os2_emx | *-pc-os2-emx )
47051 PLATFORM_OS2=1
47052 ;;
47bd5406 47053 *-*-darwin* )
a848cd7e
SC
47054 PLATFORM_MAC=1
47055 PLATFORM_MACOSX=1
47056 ;;
1e9e8aba
DE
47057 *-*-beos* )
47058 PLATFORM_BEOS=1
47059 ;;
47060 powerpc-apple-macos* )
47061 PLATFORM_MAC=1
47062 PLATFORM_MACOS=1
47063 ;;
a848cd7e
SC
47064 * )
47065 PLATFORM_UNIX=1
47066 ;;
47067 esac
47068 else
47069 case "$BAKEFILE_FORCE_PLATFORM" in
47070 win32 )
47071 PLATFORM_WIN32=1
47072 ;;
47073 msdos )
47074 PLATFORM_MSDOS=1
47075 ;;
47076 os2 )
47077 PLATFORM_OS2=1
47078 ;;
47079 darwin )
47080 PLATFORM_MAC=1
47081 PLATFORM_MACOSX=1
47082 ;;
47083 unix )
47084 PLATFORM_UNIX=1
47085 ;;
1e9e8aba
DE
47086 beos )
47087 PLATFORM_BEOS=1
47088 ;;
a848cd7e
SC
47089 * )
47090 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47091echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47092 { (exit 1); exit 1; }; }
47093 ;;
47094 esac
47095 fi
47096
47097
47098
47099
47100
47101
47102
47103
47104
1e9e8aba
DE
47105
47106
a848cd7e
SC
47107 # Check whether --enable-omf or --disable-omf was given.
47108if test "${enable_omf+set}" = set; then
47109 enableval="$enable_omf"
47110 bk_os2_use_omf="$enableval"
47111fi;
47112
47113 case "${BAKEFILE_HOST}" in
47114 *-*-darwin* )
47bd5406
VZ
47115 if test "x$GCC" = "xyes"; then
47116 CFLAGS="$CFLAGS -fno-common"
47117 CXXFLAGS="$CXXFLAGS -fno-common"
47118 fi
47119 if test "x$XLCC" = "xyes"; then
47120 CFLAGS="$CFLAGS -qnocommon"
47121 CXXFLAGS="$CXXFLAGS -qnocommon"
47122 fi
a848cd7e
SC
47123 ;;
47124
47125 *-pc-os2_emx | *-pc-os2-emx )
47126 if test "x$bk_os2_use_omf" = "xyes" ; then
47127 AR=emxomfar
47128 RANLIB=:
47129 LDFLAGS="-Zomf $LDFLAGS"
47130 CFLAGS="-Zomf $CFLAGS"
47131 CXXFLAGS="-Zomf $CXXFLAGS"
47132 OS2_LIBEXT="lib"
47133 else
47134 OS2_LIBEXT="a"
47135 fi
47136 ;;
1e9e8aba
DE
47137
47138 i*86-*-beos* )
47139 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47140 ;;
a848cd7e
SC
47141 esac
47142
47143
47144 SO_SUFFIX="so"
47145 SO_SUFFIX_MODULE="so"
47146 EXEEXT=""
47147 LIBPREFIX="lib"
47148 LIBEXT=".a"
47149 DLLPREFIX="lib"
47150 DLLPREFIX_MODULE=""
47151 DLLIMP_SUFFIX=""
810b94f0 47152 dlldir="$libdir"
a848cd7e
SC
47153
47154 case "${BAKEFILE_HOST}" in
47155 *-hp-hpux* )
47156 SO_SUFFIX="sl"
47157 SO_SUFFIX_MODULE="sl"
47158 ;;
47159 *-*-aix* )
47160 SO_SUFFIX="a"
47161 SO_SUFFIX_MODULE="a"
47162 ;;
810b94f0
MW
47163 *-*-cygwin* )
47164 SO_SUFFIX="dll"
47165 SO_SUFFIX_MODULE="dll"
47166 DLLIMP_SUFFIX="dll.a"
47167 EXEEXT=".exe"
47168 DLLPREFIX="cyg"
47169 dlldir="$bindir"
47170 ;;
47171 *-*-mingw32* )
a848cd7e
SC
47172 SO_SUFFIX="dll"
47173 SO_SUFFIX_MODULE="dll"
47174 DLLIMP_SUFFIX="dll.a"
47175 EXEEXT=".exe"
47176 DLLPREFIX=""
810b94f0 47177 dlldir="$bindir"
a848cd7e
SC
47178 ;;
47179 *-pc-msdosdjgpp )
47180 EXEEXT=".exe"
47181 DLLPREFIX=""
810b94f0 47182 dlldir="$bindir"
a848cd7e
SC
47183 ;;
47184 *-pc-os2_emx | *-pc-os2-emx )
47185 SO_SUFFIX="dll"
47186 SO_SUFFIX_MODULE="dll"
47187 DLLIMP_SUFFIX=$OS2_LIBEXT
47188 EXEEXT=".exe"
47189 DLLPREFIX=""
47190 LIBPREFIX=""
47191 LIBEXT=".$OS2_LIBEXT"
810b94f0 47192 dlldir="$bindir"
a848cd7e 47193 ;;
47bd5406 47194 *-*-darwin* )
a848cd7e
SC
47195 SO_SUFFIX="dylib"
47196 SO_SUFFIX_MODULE="bundle"
47197 ;;
47198 esac
47199
47200 if test "x$DLLIMP_SUFFIX" = "x" ; then
47201 DLLIMP_SUFFIX="$SO_SUFFIX"
47202 fi
47203
47204
47205
47206
47207
47208
47209
47210
47211
47212
47213
810b94f0 47214
1e9e8aba
DE
47215 PIC_FLAG=""
47216 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47217 PIC_FLAG="-fPIC"
47218 fi
47219
1e9e8aba
DE
47220 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47221 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47222 WINDOWS_IMPLIB=0
1e9e8aba 47223
a848cd7e
SC
47224 case "${BAKEFILE_HOST}" in
47225 *-hp-hpux* )
1e9e8aba 47226 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47227 LDFLAGS="$LDFLAGS -L/usr/lib"
47228
47229 SHARED_LD_CC="${CC} -b -o"
47230 SHARED_LD_CXX="${CXX} -b -o"
47231 PIC_FLAG="+Z"
47232 fi
47233 ;;
47234
47235 *-*-linux* )
47236 if test "x$GCC" != "xyes"; then
47237 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47238echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47239if test "${bakefile_cv_prog_icc+set}" = set; then
47240 echo $ECHO_N "(cached) $ECHO_C" >&6
47241else
47242
47243 cat >conftest.$ac_ext <<_ACEOF
47244/* confdefs.h. */
47245_ACEOF
47246cat confdefs.h >>conftest.$ac_ext
47247cat >>conftest.$ac_ext <<_ACEOF
47248/* end confdefs.h. */
47249
47250int
47251main ()
47252{
47253
47254 #ifndef __INTEL_COMPILER
e5efa97e 47255 This is not ICC
a848cd7e
SC
47256 #endif
47257
47258 ;
47259 return 0;
47260}
47261_ACEOF
47262rm -f conftest.$ac_objext
47263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47264 (eval $ac_compile) 2>conftest.er1
a848cd7e 47265 ac_status=$?
ac1cb8d3
VS
47266 grep -v '^ *+' conftest.er1 >conftest.err
47267 rm -f conftest.er1
47268 cat conftest.err >&5
a848cd7e
SC
47269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47270 (exit $ac_status); } &&
ca5c6ac3 47271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47273 (eval $ac_try) 2>&5
47274 ac_status=$?
47275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47276 (exit $ac_status); }; } &&
47277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47279 (eval $ac_try) 2>&5
47280 ac_status=$?
47281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47282 (exit $ac_status); }; }; then
47283 bakefile_cv_prog_icc=yes
47284else
47285 echo "$as_me: failed program was:" >&5
47286sed 's/^/| /' conftest.$ac_ext >&5
47287
47288bakefile_cv_prog_icc=no
47289
47290fi
ac1cb8d3 47291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47292
47293fi
47294echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47295echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47296 if test "$bakefile_cv_prog_icc" = "yes"; then
47297 PIC_FLAG="-KPIC"
47298 fi
47299 fi
47300 ;;
47301
47302 *-*-solaris2* )
47303 if test "x$GCC" != xyes ; then
47304 SHARED_LD_CC="${CC} -G -o"
47305 SHARED_LD_CXX="${CXX} -G -o"
47306 PIC_FLAG="-KPIC"
47307 fi
47308 ;;
47309
47310 *-*-darwin* )
47311
473276a9
VS
47312D='$'
47313cat <<EOF >shared-ld-sh
a848cd7e
SC
47314#!/bin/sh
47315#-----------------------------------------------------------------------------
47316#-- Name: distrib/mac/shared-ld-sh
47317#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47318#-- Author: Gilles Depeyrot
47319#-- Copyright: (c) 2002 Gilles Depeyrot
47320#-- Licence: any use permitted
47321#-----------------------------------------------------------------------------
47322
47323verbose=0
47324args=""
47325objects=""
47326linking_flag="-dynamiclib"
810b94f0 47327ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47328
473276a9
VS
47329while test ${D}# -gt 0; do
47330 case ${D}1 in
a848cd7e
SC
47331
47332 -v)
47333 verbose=1
47334 ;;
47335
47336 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47337 # collect these options and values
473276a9 47338 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47339 shift
47340 ;;
47341
810b94f0
MW
47342 -s|-Wl,*)
47343 # collect these load args
47344 ldargs="${D}{ldargs} ${D}1"
2113bc77 47345 ;;
810b94f0
MW
47346
47347 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47348 # collect these options
473276a9 47349 args="${D}{args} ${D}1"
a848cd7e
SC
47350 ;;
47351
47352 -dynamiclib|-bundle)
473276a9 47353 linking_flag="${D}1"
a848cd7e
SC
47354 ;;
47355
47356 -*)
473276a9 47357 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47358 exit 1
47359 ;;
47360
47361 *.o | *.a | *.dylib)
47362 # collect object files
473276a9 47363 objects="${D}{objects} ${D}1"
a848cd7e
SC
47364 ;;
47365
47366 *)
473276a9 47367 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47368 exit 1
47369 ;;
47370
47371 esac
47372 shift
47373done
47374
810b94f0
MW
47375status=0
47376
a848cd7e
SC
47377#
47378# Link one module containing all the others
47379#
473276a9 47380if test ${D}{verbose} = 1; then
810b94f0 47381 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47382fi
810b94f0 47383c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47384status=${D}?
a848cd7e
SC
47385
47386#
810b94f0
MW
47387# Link the shared library from the single module created, but only if the
47388# previous command didn't fail:
a848cd7e 47389#
810b94f0
MW
47390if test ${D}{status} = 0; then
47391 if test ${D}{verbose} = 1; then
47392 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47393 fi
47394 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47395 status=${D}?
a848cd7e
SC
47396fi
47397
47398#
47399# Remove intermediate module
47400#
473276a9 47401rm -f master.${D}${D}.o
a848cd7e 47402
810b94f0 47403exit ${D}status
a848cd7e 47404EOF
473276a9 47405
583d6b4b
VZ
47406 chmod +x shared-ld-sh
47407
47408 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47409 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47410
47411
47412 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47413echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47414if test "${bakefile_cv_gcc31+set}" = set; then
47415 echo $ECHO_N "(cached) $ECHO_C" >&6
47416else
47417
47418 cat >conftest.$ac_ext <<_ACEOF
47419/* confdefs.h. */
47420_ACEOF
47421cat confdefs.h >>conftest.$ac_ext
47422cat >>conftest.$ac_ext <<_ACEOF
47423/* end confdefs.h. */
47424
47425int
47426main ()
47427{
47428
47429 #if (__GNUC__ < 3) || \
47430 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47431 This is old gcc
583d6b4b 47432 #endif
a848cd7e 47433
583d6b4b
VZ
47434 ;
47435 return 0;
47436}
47437_ACEOF
47438rm -f conftest.$ac_objext
47439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47440 (eval $ac_compile) 2>conftest.er1
47441 ac_status=$?
47442 grep -v '^ *+' conftest.er1 >conftest.err
47443 rm -f conftest.er1
47444 cat conftest.err >&5
47445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47446 (exit $ac_status); } &&
ca5c6ac3 47447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
47448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47449 (eval $ac_try) 2>&5
47450 ac_status=$?
47451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47452 (exit $ac_status); }; } &&
47453 { ac_try='test -s conftest.$ac_objext'
47454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47455 (eval $ac_try) 2>&5
47456 ac_status=$?
47457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47458 (exit $ac_status); }; }; then
47459
47460 bakefile_cv_gcc31=yes
47461
47462else
47463 echo "$as_me: failed program was:" >&5
47464sed 's/^/| /' conftest.$ac_ext >&5
47465
47466
47467 bakefile_cv_gcc31=no
47468
47469
47470fi
47471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47472
47473fi
47474echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47475echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47476 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47477 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47478 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47479 else
47480 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47481 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47482 fi
47483
47bd5406
VZ
47484 if test "x$GCC" == "xyes"; then
47485 PIC_FLAG="-dynamic -fPIC"
47486 fi
47487 if test "x$XLCC" = "xyes"; then
47488 PIC_FLAG="-dynamic -DPIC"
47489 fi
a848cd7e
SC
47490 ;;
47491
47492 *-*-aix* )
f6b50c59 47493 if test "x$GCC" = "xyes"; then
583d6b4b 47494 PIC_FLAG=""
f6b50c59 47495
583d6b4b
VZ
47496 case "${BAKEFILE_HOST}" in
47497 *-*-aix5* )
47498 LD_EXPFULL="-Wl,-bexpfull"
47499 ;;
47500 esac
f6b50c59 47501
583d6b4b
VZ
47502 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47503 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47504 else
47505 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47506set dummy makeC++SharedLib; ac_word=$2
47507echo "$as_me:$LINENO: checking for $ac_word" >&5
47508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47509if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47510 echo $ECHO_N "(cached) $ECHO_C" >&6
47511else
47512 if test -n "$AIX_CXX_LD"; then
47513 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47514else
47515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47516for as_dir in $PATH
47517do
47518 IFS=$as_save_IFS
47519 test -z "$as_dir" && as_dir=.
47520 for ac_exec_ext in '' $ac_executable_extensions; do
47521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47522 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47524 break 2
47525 fi
47526done
47527done
47528
47529 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47530fi
47531fi
47532AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47533if test -n "$AIX_CXX_LD"; then
47534 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47535echo "${ECHO_T}$AIX_CXX_LD" >&6
47536else
47537 echo "$as_me:$LINENO: result: no" >&5
47538echo "${ECHO_T}no" >&6
47539fi
47540
f6b50c59 47541 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47542 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47543 fi
47544 ;;
47545
47546 *-*-beos* )
1e9e8aba
DE
47547 SHARED_LD_CC="${LD} -nostart -o"
47548 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47549 ;;
47550
47551 *-*-irix* )
47552 if test "x$GCC" != "xyes"; then
47553 PIC_FLAG="-KPIC"
47554 fi
47555 ;;
47556
47557 *-*-cygwin* | *-*-mingw32* )
47558 PIC_FLAG=""
1e9e8aba
DE
47559 SHARED_LD_CC="\$(CC) -shared -o"
47560 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 47561 WINDOWS_IMPLIB=1
a848cd7e
SC
47562 ;;
47563
47564 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
47565 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47566 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 47567 PIC_FLAG=""
473276a9
VS
47568
47569D='$'
47570cat <<EOF >dllar.sh
47571#!/bin/sh
47572#
47573# dllar - a tool to build both a .dll and an .a file
47574# from a set of object (.o) files for EMX/OS2.
47575#
47576# Written by Andrew Zabolotny, bit@freya.etu.ru
47577# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47578#
47579# This script will accept a set of files on the command line.
47580# All the public symbols from the .o files will be exported into
47581# a .DEF file, then linker will be run (through gcc) against them to
47582# build a shared library consisting of all given .o files. All libraries
47583# (.a) will be first decompressed into component .o files then act as
47584# described above. You can optionally give a description (-d "description")
47585# which will be put into .DLL. To see the list of accepted options (as well
47586# as command-line format) simply run this program without options. The .DLL
47587# is built to be imported by name (there is no guarantee that new versions
47588# of the library you build will have same ordinals for same symbols).
47589#
47590# dllar is free software; you can redistribute it and/or modify
47591# it under the terms of the GNU General Public License as published by
47592# the Free Software Foundation; either version 2, or (at your option)
47593# any later version.
47594#
47595# dllar is distributed in the hope that it will be useful,
47596# but WITHOUT ANY WARRANTY; without even the implied warranty of
47597# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47598# GNU General Public License for more details.
47599#
47600# You should have received a copy of the GNU General Public License
47601# along with dllar; see the file COPYING. If not, write to the Free
47602# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47603# 02111-1307, USA.
47604
47605# To successfuly run this program you will need:
47606# - Current drive should have LFN support (HPFS, ext2, network, etc)
47607# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47608# - gcc
47609# (used to build the .dll)
47610# - emxexp
47611# (used to create .def file from .o files)
47612# - emximp
47613# (used to create .a file from .def file)
47614# - GNU text utilites (cat, sort, uniq)
47615# used to process emxexp output
47616# - GNU file utilities (mv, rm)
47617# - GNU sed
47618# - lxlite (optional, see flag below)
47619# (used for general .dll cleanup)
47620#
47621
47622flag_USE_LXLITE=1;
47623
47624#
47625# helper functions
47626# basnam, variant of basename, which does _not_ remove the path, _iff_
47627# second argument (suffix to remove) is given
47628basnam(){
47629 case ${D}# in
47630 1)
1e9e8aba 47631 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47632 ;;
47633 2)
47634 echo ${D}1 | sed 's/'${D}2'${D}//'
47635 ;;
47636 *)
47637 echo "error in basnam ${D}*"
47638 exit 8
47639 ;;
47640 esac
47641}
47642
47643# Cleanup temporary files and output
47644CleanUp() {
47645 cd ${D}curDir
47646 for i in ${D}inputFiles ; do
47647 case ${D}i in
47648 *!)
47649 rm -rf \`basnam ${D}i !\`
47650 ;;
47651 *)
47652 ;;
47653 esac
47654 done
47655
47656 # Kill result in case of failure as there is just to many stupid make/nmake
47657 # things out there which doesn't do this.
1e9e8aba 47658 if [ ${D}# -eq 0 ]; then
473276a9
VS
47659 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47660 fi
47661}
47662
47663# Print usage and exit script with rc=1.
47664PrintHelp() {
b1d22ded
DE
47665 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47666 echo ' [-name-mangler-script script.sh]'
47667 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47668 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47669 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47670 echo ' [*.o] [*.a]'
473276a9
VS
47671 echo '*> "output_file" should have no extension.'
47672 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47673 echo ' The import library name is derived from this and is set to "name".a,'
47674 echo ' unless overridden by -import'
47675 echo '*> "importlib_name" should have no extension.'
47676 echo ' If it has the .o, or .a extension, it is automatically removed.'
47677 echo ' This name is used as the import library name and may be longer and'
47678 echo ' more descriptive than the DLL name which has to follow the old '
47679 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47680 echo '*> "script.sh may be given to override the output_file name by a'
47681 echo ' different name. It is mainly useful if the regular make process'
47682 echo ' of some package does not take into account OS/2 restriction of'
47683 echo ' DLL name lengths. It takes the importlib name as input and is'
47684 echo ' supposed to procude a shorter name as output. The script should'
47685 echo ' expect to get importlib_name without extension and should produce'
47686 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47687 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47688 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47689 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47690 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47691 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47692 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47693 echo ' If the last character of a symbol is "*", all symbols beginning'
47694 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47695 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47696 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47697 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47698 echo ' C runtime DLLs.'
b1d22ded 47699 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47700 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47701 echo ' unchanged to GCC at the end of command line.'
47702 echo '*> If you create a DLL from a library and you do not specify -o,'
47703 echo ' the basename for DLL and import library will be set to library name,'
47704 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47705 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47706 echo ' library will be renamed into gcc_s.a.'
47707 echo '--------'
47708 echo 'Example:'
47709 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47710 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47711 CleanUp
47712 exit 1
47713}
47714
47715# Execute a command.
47716# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47717# @Uses Whatever CleanUp() uses.
47718doCommand() {
47719 echo "${D}*"
47720 eval ${D}*
47721 rcCmd=${D}?
47722
1e9e8aba 47723 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47724 echo "command failed, exit code="${D}rcCmd
47725 CleanUp
47726 exit ${D}rcCmd
47727 fi
47728}
47729
47730# main routine
47731# setup globals
47732cmdLine=${D}*
47733outFile=""
47734outimpFile=""
47735inputFiles=""
b1d22ded 47736renameScript=""
473276a9
VS
47737description=""
47738CC=gcc.exe
47739CFLAGS="-s -Zcrtdll"
47740EXTRA_CFLAGS=""
47741EXPORT_BY_ORDINALS=0
47742exclude_symbols=""
47743library_flags=""
47744curDir=\`pwd\`
47745curDirS=curDir
47746case ${D}curDirS in
47747*/)
47748 ;;
47749*)
47750 curDirS=${D}{curDirS}"/"
47751 ;;
47752esac
47753# Parse commandline
47754libsToLink=0
b1d22ded 47755omfLinking=0
1e9e8aba 47756while [ ${D}1 ]; do
473276a9
VS
47757 case ${D}1 in
47758 -ord*)
47759 EXPORT_BY_ORDINALS=1;
47760 ;;
47761 -o*)
47762 shift
47763 outFile=${D}1
47764 ;;
47765 -i*)
47766 shift
47767 outimpFile=${D}1
47768 ;;
b1d22ded
DE
47769 -name-mangler-script)
47770 shift
47771 renameScript=${D}1
47772 ;;
473276a9
VS
47773 -d*)
47774 shift
47775 description=${D}1
47776 ;;
47777 -f*)
47778 shift
47779 CFLAGS=${D}1
47780 ;;
47781 -c*)
47782 shift
47783 CC=${D}1
47784 ;;
47785 -h*)
47786 PrintHelp
47787 ;;
47788 -ex*)
47789 shift
47790 exclude_symbols=${D}{exclude_symbols}${D}1" "
47791 ;;
47792 -libf*)
47793 shift
47794 library_flags=${D}{library_flags}${D}1" "
47795 ;;
47796 -nocrt*)
47797 CFLAGS="-s"
47798 ;;
47799 -nolxl*)
47800 flag_USE_LXLITE=0
47801 ;;
47802 -* | /*)
47803 case ${D}1 in
47804 -L* | -l*)
47805 libsToLink=1
47806 ;;
b1d22ded
DE
47807 -Zomf)
47808 omfLinking=1
47809 ;;
473276a9
VS
47810 *)
47811 ;;
47812 esac
47813 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47814 ;;
b1d22ded
DE
47815 *.dll)
47816 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47817 if [ ${D}omfLinking -eq 1 ]; then
47818 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47819 else
47820 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47821 fi
47822 ;;
473276a9
VS
47823 *)
47824 found=0;
1e9e8aba 47825 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47826 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47827 else
47828 for file in ${D}1 ; do
1e9e8aba 47829 if [ -f ${D}file ]; then
473276a9
VS
47830 inputFiles="${D}{inputFiles} ${D}file"
47831 found=1
47832 fi
47833 done
1e9e8aba 47834 if [ ${D}found -eq 0 ]; then
473276a9
VS
47835 echo "ERROR: No file(s) found: "${D}1
47836 exit 8
47837 fi
47838 fi
47839 ;;
47840 esac
47841 shift
47842done # iterate cmdline words
47843
47844#
1e9e8aba 47845if [ -z "${D}inputFiles" ]; then
473276a9
VS
47846 echo "dllar: no input files"
47847 PrintHelp
47848fi
47849
47850# Now extract all .o files from .a files
47851newInputFiles=""
47852for file in ${D}inputFiles ; do
47853 case ${D}file in
47854 *.a | *.lib)
47855 case ${D}file in
47856 *.a)
47857 suffix=".a"
47858 AR="ar"
47859 ;;
47860 *.lib)
47861 suffix=".lib"
47862 AR="emxomfar"
47863 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47864 ;;
47865 *)
47866 ;;
47867 esac
47868 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47869 mkdir ${D}dirname
1e9e8aba 47870 if [ ${D}? -ne 0 ]; then
473276a9
VS
47871 echo "Failed to create subdirectory ./${D}dirname"
47872 CleanUp
47873 exit 8;
47874 fi
47875 # Append '!' to indicate archive
47876 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47877 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47878 cd ${D}curDir
47879 found=0;
47880 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47881 if [ -f ${D}subfile ]; then
473276a9 47882 found=1
1e9e8aba 47883 if [ -s ${D}subfile ]; then
473276a9
VS
47884 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47885 newInputFiles="${D}newInputFiles ${D}subfile"
47886 fi
47887 fi
47888 done
1e9e8aba
DE
47889 if [ ${D}found -eq 0 ]; then
47890 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47891 fi
47892 ;;
47893 *)
47894 newInputFiles="${D}{newInputFiles} ${D}file"
47895 ;;
47896 esac
47897done
47898inputFiles="${D}newInputFiles"
47899
47900# Output filename(s).
47901do_backup=0;
1e9e8aba 47902if [ -z ${D}outFile ]; then
473276a9
VS
47903 do_backup=1;
47904 set outFile ${D}inputFiles; outFile=${D}2
47905fi
47906
47907# If it is an archive, remove the '!' and the '_%' suffixes
47908case ${D}outFile in
47909*_%!)
47910 outFile=\`basnam ${D}outFile _%!\`
47911 ;;
47912*)
47913 ;;
47914esac
47915case ${D}outFile in
47916*.dll)
47917 outFile=\`basnam ${D}outFile .dll\`
47918 ;;
47919*.DLL)
47920 outFile=\`basnam ${D}outFile .DLL\`
47921 ;;
47922*.o)
47923 outFile=\`basnam ${D}outFile .o\`
47924 ;;
47925*.obj)
47926 outFile=\`basnam ${D}outFile .obj\`
47927 ;;
47928*.a)
47929 outFile=\`basnam ${D}outFile .a\`
47930 ;;
47931*.lib)
47932 outFile=\`basnam ${D}outFile .lib\`
47933 ;;
47934*)
47935 ;;
47936esac
47937case ${D}outimpFile in
47938*.a)
47939 outimpFile=\`basnam ${D}outimpFile .a\`
47940 ;;
47941*.lib)
47942 outimpFile=\`basnam ${D}outimpFile .lib\`
47943 ;;
47944*)
47945 ;;
47946esac
1e9e8aba 47947if [ -z ${D}outimpFile ]; then
473276a9
VS
47948 outimpFile=${D}outFile
47949fi
47950defFile="${D}{outFile}.def"
47951arcFile="${D}{outimpFile}.a"
47952arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47953
47954#create ${D}dllFile as something matching 8.3 restrictions,
47955if [ -z ${D}renameScript ] ; then
47956 dllFile="${D}outFile"
47957else
47958 dllFile=\`${D}renameScript ${D}outimpFile\`
47959fi
473276a9 47960
1e9e8aba
DE
47961if [ ${D}do_backup -ne 0 ] ; then
47962 if [ -f ${D}arcFile ] ; then
473276a9
VS
47963 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47964 fi
1e9e8aba 47965 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47966 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47967 fi
47968fi
47969
47970# Extract public symbols from all the object files.
47971tmpdefFile=${D}{defFile}_%
47972rm -f ${D}tmpdefFile
47973for file in ${D}inputFiles ; do
47974 case ${D}file in
47975 *!)
47976 ;;
47977 *)
47978 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47979 ;;
47980 esac
47981done
47982
47983# Create the def file.
47984rm -f ${D}defFile
47985echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47986dllFile="${D}{dllFile}.dll"
47987if [ ! -z ${D}description ]; then
1e9e8aba 47988 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47989fi
47990echo "EXPORTS" >> ${D}defFile
47991
47992doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47993grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47994
47995# Checks if the export is ok or not.
47996for word in ${D}exclude_symbols; do
47997 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47998 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47999done
48000
48001
1e9e8aba
DE
48002if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48003 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48004 sed '
48005 N
48006 : loop
1e9e8aba 48007 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48008 t loop
48009 ' > ${D}{tmpdefFile}%
48010 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48011else
48012 rm -f ${D}{tmpdefFile}%
48013fi
48014cat ${D}tmpdefFile >> ${D}defFile
48015rm -f ${D}tmpdefFile
48016
48017# Do linking, create implib, and apply lxlite.
48018gccCmdl="";
48019for file in ${D}inputFiles ; do
48020 case ${D}file in
48021 *!)
48022 ;;
48023 *)
48024 gccCmdl="${D}gccCmdl ${D}file"
48025 ;;
48026 esac
48027done
48028doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48029touch "${D}{outFile}.dll"
48030
48031doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48032if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48033 add_flags="";
1e9e8aba 48034 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48035 add_flags="-ynd"
48036 fi
48037 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48038fi
48039doCommand "emxomf -s -l ${D}arcFile"
48040
48041# Successful exit.
48042CleanUp 1
48043exit 0
48044EOF
48045
48046 chmod +x dllar.sh
a848cd7e
SC
48047 ;;
48048
1e9e8aba 48049 powerpc-apple-macos* | \
0ad5d837 48050 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48051 *-*-sunos4* | \
48052 *-*-osf* | \
48053 *-*-dgux5* | \
47a7e797
MW
48054 *-*-sysv5* | \
48055 *-pc-msdosdjgpp )
a848cd7e
SC
48056 ;;
48057
48058 *)
3ecd9f92 48059 esac
a848cd7e 48060
2057db16
VS
48061 if test "x$PIC_FLAG" != "x" ; then
48062 PIC_FLAG="$PIC_FLAG -DPIC"
48063 fi
48064
a848cd7e
SC
48065 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48066 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48067 fi
48068 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48069 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48070 fi
48071
48072
48073
48074
48075
48076
48077
48078
810b94f0 48079
a848cd7e
SC
48080 USE_SOVERSION=0
48081 USE_SOVERLINUX=0
48082 USE_SOVERSOLARIS=0
810b94f0 48083 USE_SOVERCYGWIN=0
a848cd7e
SC
48084 USE_SOSYMLINKS=0
48085 USE_MACVERSION=0
48086 SONAME_FLAG=
48087
48088 case "${BAKEFILE_HOST}" in
0ad5d837 48089 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48090 SONAME_FLAG="-Wl,-soname,"
48091 USE_SOVERSION=1
48092 USE_SOVERLINUX=1
48093 USE_SOSYMLINKS=1
48094 ;;
48095
a848cd7e
SC
48096 *-*-solaris2* )
48097 SONAME_FLAG="-h "
48098 USE_SOVERSION=1
48099 USE_SOVERSOLARIS=1
48100 USE_SOSYMLINKS=1
48101 ;;
48102
48103 *-*-darwin* )
48104 USE_MACVERSION=1
48105 USE_SOVERSION=1
48106 USE_SOSYMLINKS=1
48107 ;;
810b94f0
MW
48108
48109 *-*-cygwin* )
48110 USE_SOVERSION=1
48111 USE_SOVERCYGWIN=1
48112 ;;
a848cd7e
SC
48113 esac
48114
48115
48116
48117
48118
48119
48120
48121
48122
810b94f0 48123
f10e38c4
VZ
48124 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48125if test "${enable_dependency_tracking+set}" = set; then
48126 enableval="$enable_dependency_tracking"
48127 bk_use_trackdeps="$enableval"
48128fi;
48129
a848cd7e
SC
48130 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48131echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48132
f10e38c4
VZ
48133 if test "x$bk_use_trackdeps" = "xno" ; then
48134 DEPS_TRACKING=0
48135 echo "$as_me:$LINENO: result: disabled" >&5
48136echo "${ECHO_T}disabled" >&6
48137 else
48138 DEPS_TRACKING=1
48139
48140 if test "x$GCC" = "xyes"; then
48141 DEPSMODE=gcc
48142 case "${BAKEFILE_HOST}" in
48143 *-*-darwin* )
48144 DEPSFLAG="-no-cpp-precomp -MMD"
48145 ;;
48146 * )
48147 DEPSFLAG="-MMD"
48148 ;;
48149 esac
48150 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48151echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48152 elif test "x$MWCC" = "xyes"; then
48153 DEPSMODE=mwcc
48154 DEPSFLAG="-MM"
48155 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48156echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48157 elif test "x$SUNCC" = "xyes"; then
48158 DEPSMODE=unixcc
48159 DEPSFLAG="-xM1"
48160 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48161echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48162 elif test "x$SGICC" = "xyes"; then
48163 DEPSMODE=unixcc
48164 DEPSFLAG="-M"
48165 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48166echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48167 elif test "x$HPCC" = "xyes"; then
48168 DEPSMODE=unixcc
48169 DEPSFLAG="+make"
48170 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48171echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48172 elif test "x$COMPAQCC" = "xyes"; then
48173 DEPSMODE=gcc
48174 DEPSFLAG="-MD"
48175 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48176echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48177 else
48178 DEPS_TRACKING=0
48179 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48180echo "${ECHO_T}none" >&6
f10e38c4 48181 fi
a848cd7e 48182
f10e38c4 48183 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48184
48185D='$'
48186cat <<EOF >bk-deps
a848cd7e
SC
48187#!/bin/sh
48188
48189# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48190# script. It is used to track C/C++ files dependencies in portable way.
48191#
48192# Permission is given to use this file in any way.
48193
473276a9 48194DEPSMODE=${DEPSMODE}
a848cd7e 48195DEPSDIR=.deps
0ad5d837 48196DEPSFLAG="${DEPSFLAG}"
a848cd7e 48197
473276a9 48198mkdir -p ${D}DEPSDIR
a848cd7e 48199
473276a9 48200if test ${D}DEPSMODE = gcc ; then
0ad5d837 48201 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48202 status=${D}?
48203 if test ${D}{status} != 0 ; then
48204 exit ${D}{status}
a848cd7e
SC
48205 fi
48206 # move created file to the location we want it in:
473276a9
VS
48207 while test ${D}# -gt 0; do
48208 case "${D}1" in
a848cd7e
SC
48209 -o )
48210 shift
473276a9 48211 objfile=${D}1
a848cd7e
SC
48212 ;;
48213 -* )
48214 ;;
48215 * )
473276a9 48216 srcfile=${D}1
a848cd7e
SC
48217 ;;
48218 esac
48219 shift
48220 done
1e9e8aba
DE
48221 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48222 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48223 if test -f ${D}depfile ; then
48224 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48225 rm -f ${D}depfile
a848cd7e 48226 else
a1aa0349 48227 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48228 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48229 if test ! -f ${D}depfile ; then
48230 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48231 depfile="${D}objfile.d"
48232 fi
473276a9
VS
48233 if test -f ${D}depfile ; then
48234 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48235 rm -f ${D}depfile
a848cd7e
SC
48236 fi
48237 fi
48238 exit 0
81f90336 48239elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48240 ${D}* || exit ${D}?
81f90336
MW
48241 # Run mwcc again with -MM and redirect into the dep file we want
48242 # NOTE: We can't use shift here because we need ${D}* to be valid
48243 prevarg=
48244 for arg in ${D}* ; do
48245 if test "${D}prevarg" = "-o"; then
48246 objfile=${D}arg
48247 else
48248 case "${D}arg" in
48249 -* )
48250 ;;
48251 * )
48252 srcfile=${D}arg
48253 ;;
48254 esac
48255 fi
48256 prevarg="${D}arg"
48257 done
0ad5d837 48258 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48259 exit 0
0ad5d837 48260elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48261 ${D}* || exit ${D}?
a9e5b1f0
MW
48262 # Run compiler again with deps flag and redirect into the dep file.
48263 # It doesn't work if the '-o FILE' option is used, but without it the
48264 # dependency file will contain the wrong name for the object. So it is
48265 # removed from the command line, and the dep file is fixed with sed.
48266 cmd=""
48267 while test ${D}# -gt 0; do
48268 case "${D}1" in
48269 -o )
48270 shift
48271 objfile=${D}1
48272 ;;
48273 * )
48274 eval arg${D}#=\\${D}1
48275 cmd="${D}cmd \\${D}arg${D}#"
48276 ;;
48277 esac
48278 shift
48279 done
0ad5d837 48280 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48281 exit 0
a848cd7e 48282else
473276a9
VS
48283 ${D}*
48284 exit ${D}?
a848cd7e
SC
48285fi
48286EOF
473276a9 48287
f10e38c4
VZ
48288 chmod +x bk-deps
48289 fi
a848cd7e
SC
48290 fi
48291
48292
48293
48294
a848cd7e
SC
48295 case ${BAKEFILE_HOST} in
48296 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48297 if test -n "$ac_tool_prefix"; then
48298 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48299set dummy ${ac_tool_prefix}windres; ac_word=$2
48300echo "$as_me:$LINENO: checking for $ac_word" >&5
48301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48302if test "${ac_cv_prog_WINDRES+set}" = set; then
48303 echo $ECHO_N "(cached) $ECHO_C" >&6
48304else
48305 if test -n "$WINDRES"; then
48306 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48307else
48308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48309for as_dir in $PATH
48310do
48311 IFS=$as_save_IFS
48312 test -z "$as_dir" && as_dir=.
48313 for ac_exec_ext in '' $ac_executable_extensions; do
48314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48315 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48317 break 2
48318 fi
48319done
48320done
48321
48322fi
48323fi
48324WINDRES=$ac_cv_prog_WINDRES
48325if test -n "$WINDRES"; then
48326 echo "$as_me:$LINENO: result: $WINDRES" >&5
48327echo "${ECHO_T}$WINDRES" >&6
48328else
48329 echo "$as_me:$LINENO: result: no" >&5
48330echo "${ECHO_T}no" >&6
48331fi
48332
48333fi
48334if test -z "$ac_cv_prog_WINDRES"; then
48335 ac_ct_WINDRES=$WINDRES
48336 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48337set dummy windres; ac_word=$2
48338echo "$as_me:$LINENO: checking for $ac_word" >&5
48339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48340if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48341 echo $ECHO_N "(cached) $ECHO_C" >&6
48342else
8ced02f6
DE
48343 if test -n "$ac_ct_WINDRES"; then
48344 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48345else
48346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48347for as_dir in $PATH
48348do
48349 IFS=$as_save_IFS
48350 test -z "$as_dir" && as_dir=.
48351 for ac_exec_ext in '' $ac_executable_extensions; do
48352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48353 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48355 break 2
48356 fi
48357done
48358done
48359
a848cd7e
SC
48360fi
48361fi
8ced02f6
DE
48362ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48363if test -n "$ac_ct_WINDRES"; then
48364 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48365echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48366else
48367 echo "$as_me:$LINENO: result: no" >&5
48368echo "${ECHO_T}no" >&6
48369fi
48370
8ced02f6
DE
48371 WINDRES=$ac_ct_WINDRES
48372else
48373 WINDRES="$ac_cv_prog_WINDRES"
48374fi
48375
a848cd7e
SC
48376 ;;
48377
1e9e8aba 48378 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48379 # Extract the first word of "Rez", so it can be a program name with args.
48380set dummy Rez; ac_word=$2
48381echo "$as_me:$LINENO: checking for $ac_word" >&5
48382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48383if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48384 echo $ECHO_N "(cached) $ECHO_C" >&6
48385else
8ced02f6
DE
48386 if test -n "$REZ"; then
48387 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48388else
48389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48390for as_dir in $PATH
48391do
48392 IFS=$as_save_IFS
48393 test -z "$as_dir" && as_dir=.
48394 for ac_exec_ext in '' $ac_executable_extensions; do
48395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48396 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48398 break 2
48399 fi
48400done
48401done
48402
8ced02f6 48403 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48404fi
48405fi
8ced02f6
DE
48406REZ=$ac_cv_prog_REZ
48407if test -n "$REZ"; then
48408 echo "$as_me:$LINENO: result: $REZ" >&5
48409echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48410else
48411 echo "$as_me:$LINENO: result: no" >&5
48412echo "${ECHO_T}no" >&6
48413fi
48414
48415 # Extract the first word of "SetFile", so it can be a program name with args.
48416set dummy SetFile; ac_word=$2
48417echo "$as_me:$LINENO: checking for $ac_word" >&5
48418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48419if test "${ac_cv_prog_SETFILE+set}" = set; then
48420 echo $ECHO_N "(cached) $ECHO_C" >&6
48421else
48422 if test -n "$SETFILE"; then
48423 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48424else
48425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48426for as_dir in $PATH
48427do
48428 IFS=$as_save_IFS
48429 test -z "$as_dir" && as_dir=.
48430 for ac_exec_ext in '' $ac_executable_extensions; do
48431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48432 ac_cv_prog_SETFILE="SetFile"
48433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48434 break 2
48435 fi
48436done
48437done
48438
48439 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48440fi
48441fi
48442SETFILE=$ac_cv_prog_SETFILE
48443if test -n "$SETFILE"; then
48444 echo "$as_me:$LINENO: result: $SETFILE" >&5
48445echo "${ECHO_T}$SETFILE" >&6
48446else
48447 echo "$as_me:$LINENO: result: no" >&5
48448echo "${ECHO_T}no" >&6
48449fi
48450
48451 ;;
48452 esac
48453
48454
48455
48456
48457
8ced02f6 48458
f10e38c4 48459 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48460
dcc1b6ad 48461
f10e38c4 48462BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48463
646b6ec1 48464
74b84332 48465
a848cd7e
SC
48466 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48467if test "${enable_precomp_headers+set}" = set; then
48468 enableval="$enable_precomp_headers"
48469 bk_use_pch="$enableval"
48470fi;
48471
48472 GCC_PCH=0
f10e38c4
VZ
48473 ICC_PCH=0
48474 USE_PCH=0
a848cd7e 48475
5c60e845
MW
48476 case ${BAKEFILE_HOST} in
48477 *-*-cygwin* )
48478 bk_use_pch="no"
48479 ;;
48480 esac
48481
a848cd7e
SC
48482 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48483 if test "x$GCC" = "xyes"; then
48484 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48485echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48486 cat >conftest.$ac_ext <<_ACEOF
48487/* confdefs.h. */
48488_ACEOF
48489cat confdefs.h >>conftest.$ac_ext
48490cat >>conftest.$ac_ext <<_ACEOF
48491/* end confdefs.h. */
48492
48493int
48494main ()
48495{
48496
48497 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48498 There is no PCH support
a848cd7e
SC
48499 #endif
48500 #if (__GNUC__ < 3)
e5efa97e 48501 There is no PCH support
a848cd7e
SC
48502 #endif
48503 #if (__GNUC__ == 3) && \
48504 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48505 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48506 ( defined(__INTEL_COMPILER) )
e5efa97e 48507 There is no PCH support
a848cd7e
SC
48508 #endif
48509
48510 ;
48511 return 0;
48512}
48513_ACEOF
48514rm -f conftest.$ac_objext
48515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48516 (eval $ac_compile) 2>conftest.er1
a848cd7e 48517 ac_status=$?
ac1cb8d3
VS
48518 grep -v '^ *+' conftest.er1 >conftest.err
48519 rm -f conftest.er1
48520 cat conftest.err >&5
a848cd7e
SC
48521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48522 (exit $ac_status); } &&
ca5c6ac3 48523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48525 (eval $ac_try) 2>&5
48526 ac_status=$?
48527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48528 (exit $ac_status); }; } &&
48529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48531 (eval $ac_try) 2>&5
48532 ac_status=$?
48533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48534 (exit $ac_status); }; }; then
48535
48536 echo "$as_me:$LINENO: result: yes" >&5
48537echo "${ECHO_T}yes" >&6
a848cd7e
SC
48538 GCC_PCH=1
48539
48540else
48541 echo "$as_me: failed program was:" >&5
48542sed 's/^/| /' conftest.$ac_ext >&5
48543
48544
f10e38c4
VZ
48545 cat >conftest.$ac_ext <<_ACEOF
48546/* confdefs.h. */
48547_ACEOF
48548cat confdefs.h >>conftest.$ac_ext
48549cat >>conftest.$ac_ext <<_ACEOF
48550/* end confdefs.h. */
48551
48552int
48553main ()
48554{
48555
48556 #if !defined(__INTEL_COMPILER) || \
48557 (__INTEL_COMPILER < 800)
e5efa97e 48558 There is no PCH support
f10e38c4
VZ
48559 #endif
48560
48561 ;
48562 return 0;
48563}
48564_ACEOF
48565rm -f conftest.$ac_objext
48566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48567 (eval $ac_compile) 2>conftest.er1
48568 ac_status=$?
48569 grep -v '^ *+' conftest.er1 >conftest.err
48570 rm -f conftest.er1
48571 cat conftest.err >&5
48572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48573 (exit $ac_status); } &&
ca5c6ac3 48574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
48575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48576 (eval $ac_try) 2>&5
48577 ac_status=$?
48578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48579 (exit $ac_status); }; } &&
48580 { ac_try='test -s conftest.$ac_objext'
48581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48582 (eval $ac_try) 2>&5
48583 ac_status=$?
48584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48585 (exit $ac_status); }; }; then
48586
48587 echo "$as_me:$LINENO: result: yes" >&5
48588echo "${ECHO_T}yes" >&6
48589 ICC_PCH=1
48590
48591else
48592 echo "$as_me: failed program was:" >&5
48593sed 's/^/| /' conftest.$ac_ext >&5
48594
48595
48596 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
48597echo "${ECHO_T}no" >&6
48598
48599fi
ac1cb8d3 48600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
48601
48602fi
48603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48604 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48605 USE_PCH=1
1e9e8aba
DE
48606
48607D='$'
48608cat <<EOF >bk-make-pch
a848cd7e
SC
48609#!/bin/sh
48610
48611# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48612# script. It is used to generated precompiled headers.
48613#
48614# Permission is given to use this file in any way.
48615
1e9e8aba
DE
48616outfile="${D}{1}"
48617header="${D}{2}"
a848cd7e
SC
48618shift
48619shift
48620
f10e38c4
VZ
48621compiler=""
48622headerfile=""
48623
1e9e8aba 48624while test ${D}{#} -gt 0; do
f10e38c4 48625 add_to_cmdline=1
1e9e8aba 48626 case "${D}{1}" in
a848cd7e 48627 -I* )
1e9e8aba
DE
48628 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48629 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48630 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48631 fi
48632 ;;
f10e38c4
VZ
48633 -use-pch|-use_pch )
48634 shift
48635 add_to_cmdline=0
48636 ;;
a848cd7e 48637 esac
f10e38c4
VZ
48638 if test ${D}add_to_cmdline = 1 ; then
48639 compiler="${D}{compiler} ${D}{1}"
48640 fi
a848cd7e
SC
48641 shift
48642done
48643
1e9e8aba 48644if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48645 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48646else
1e9e8aba
DE
48647 if test -f ${D}{outfile} ; then
48648 rm -f ${D}{outfile}
a848cd7e 48649 else
1e9e8aba 48650 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48651 fi
1e9e8aba 48652 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48653 mkdir -p .deps
f10e38c4
VZ
48654 if test "x${GCC_PCH}" = "x1" ; then
48655 # can do this because gcc is >= 3.4:
48656 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48657 elif test "x${ICC_PCH}" = "x1" ; then
48658 filename=pch_gen-${D}${D}
48659 file=${D}{filename}.c
48660 dfile=${D}{filename}.d
48661 cat > ${D}file <<EOT
48662#include "${D}header"
48663EOT
48664 # using -MF icc complains about differing command lines in creation/use
48665 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48666 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48667 rm -f ${D}file ${D}dfile ${D}{filename}.o
48668 fi
1e9e8aba 48669 exit ${D}{?}
a848cd7e
SC
48670fi
48671EOF
1e9e8aba 48672
a848cd7e
SC
48673 chmod +x bk-make-pch
48674 fi
48675 fi
48676 fi
48677
48678
48679
f10e38c4 48680
a848cd7e
SC
48681 COND_BUILD_DEBUG="#"
48682 if test "x$BUILD" = "xdebug" ; then
48683 COND_BUILD_DEBUG=""
48684 fi
48685
48686 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48687 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48688 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48689 fi
48690
48691 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48692 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48693 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48694 fi
48695
48696 COND_BUILD_DEBUG_UNICODE_0="#"
48697 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48698 COND_BUILD_DEBUG_UNICODE_0=""
48699 fi
48700
48701 COND_BUILD_DEBUG_UNICODE_1="#"
48702 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48703 COND_BUILD_DEBUG_UNICODE_1=""
48704 fi
48705
48706 COND_BUILD_RELEASE="#"
48707 if test "x$BUILD" = "xrelease" ; then
48708 COND_BUILD_RELEASE=""
48709 fi
48710
48711 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48712 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48713 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48714 fi
48715
48716 COND_BUILD_RELEASE_UNICODE_0="#"
48717 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48718 COND_BUILD_RELEASE_UNICODE_0=""
48719 fi
48720
48721 COND_BUILD_RELEASE_UNICODE_1="#"
48722 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48723 COND_BUILD_RELEASE_UNICODE_1=""
48724 fi
48725
48726 COND_DEBUG_FLAG_1="#"
48727 if test "x$DEBUG_FLAG" = "x1" ; then
48728 COND_DEBUG_FLAG_1=""
48729 fi
48730
48731 COND_DEBUG_INFO_0="#"
48732 if test "x$DEBUG_INFO" = "x0" ; then
48733 COND_DEBUG_INFO_0=""
48734 fi
48735
48736 COND_DEBUG_INFO_1="#"
48737 if test "x$DEBUG_INFO" = "x1" ; then
48738 COND_DEBUG_INFO_1=""
48739 fi
48740
48741 COND_DEPS_TRACKING_0="#"
48742 if test "x$DEPS_TRACKING" = "x0" ; then
48743 COND_DEPS_TRACKING_0=""
48744 fi
48745
48746 COND_DEPS_TRACKING_1="#"
48747 if test "x$DEPS_TRACKING" = "x1" ; then
48748 COND_DEPS_TRACKING_1=""
48749 fi
48750
48751 COND_GCC_PCH_1="#"
48752 if test "x$GCC_PCH" = "x1" ; then
48753 COND_GCC_PCH_1=""
48754 fi
48755
f10e38c4
VZ
48756 COND_ICC_PCH_1="#"
48757 if test "x$ICC_PCH" = "x1" ; then
48758 COND_ICC_PCH_1=""
48759 fi
48760
a848cd7e
SC
48761 COND_MONOLITHIC_0="#"
48762 if test "x$MONOLITHIC" = "x0" ; then
48763 COND_MONOLITHIC_0=""
48764 fi
48765
48766 COND_MONOLITHIC_0_SHARED_0="#"
48767 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48768 COND_MONOLITHIC_0_SHARED_0=""
48769 fi
48770
3f60522a
JS
48771 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48772 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48773 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48774 fi
48775
a848cd7e
SC
48776 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48777 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48778 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48779 fi
48780
90970d69
DE
48781 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48782 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48783 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48784 fi
48785
f10e38c4
VZ
48786 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48787 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48788 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48789 fi
48790
a848cd7e
SC
48791 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48792 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48793 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48794 fi
48795
6671c68b
VZ
48796 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48797 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48798 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48799 fi
48800
a848cd7e
SC
48801 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48802 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48803 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48804 fi
48805
8b6682b9
JS
48806 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48807 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48808 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48809 fi
48810
ceec2216
RL
48811 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48812 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48813 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48814 fi
48815
a848cd7e
SC
48816 COND_MONOLITHIC_0_SHARED_1="#"
48817 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48818 COND_MONOLITHIC_0_SHARED_1=""
48819 fi
48820
3f60522a
JS
48821 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48822 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48823 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48824 fi
48825
a848cd7e
SC
48826 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48827 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48828 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48829 fi
48830
90970d69
DE
48831 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48832 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48833 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48834 fi
48835
f10e38c4
VZ
48836 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48837 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48838 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48839 fi
48840
a848cd7e
SC
48841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48842 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48844 fi
48845
6671c68b
VZ
48846 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48847 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48848 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48849 fi
48850
a848cd7e
SC
48851 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48852 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48853 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48854 fi
48855
8b6682b9
JS
48856 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48857 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48858 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48859 fi
48860
ceec2216
RL
48861 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48862 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48863 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48864 fi
48865
e5efa97e
VZ
48866 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48867 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48868 COND_MONOLITHIC_0_USE_MEDIA_1=""
48869 fi
48870
a848cd7e
SC
48871 COND_MONOLITHIC_0_USE_ODBC_1="#"
48872 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48873 COND_MONOLITHIC_0_USE_ODBC_1=""
48874 fi
48875
48876 COND_MONOLITHIC_1="#"
48877 if test "x$MONOLITHIC" = "x1" ; then
48878 COND_MONOLITHIC_1=""
48879 fi
48880
48881 COND_MONOLITHIC_1_SHARED_0="#"
48882 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48883 COND_MONOLITHIC_1_SHARED_0=""
48884 fi
48885
48886 COND_MONOLITHIC_1_SHARED_1="#"
48887 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48888 COND_MONOLITHIC_1_SHARED_1=""
48889 fi
48890
48891 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48892 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48893 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48894 fi
48895
48896 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48897 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48898 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48899 fi
48900
eb730a0c
JS
48901 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48902 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48903 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48904 fi
48905
a848cd7e
SC
48906 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48907 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48908 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48909 fi
48910
48911 COND_PLATFORM_MACOSX_1="#"
48912 if test "x$PLATFORM_MACOSX" = "x1" ; then
48913 COND_PLATFORM_MACOSX_1=""
48914 fi
48915
a30f955f
VS
48916 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48917 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48918 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48919 fi
48920
a848cd7e
SC
48921 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48922 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48923 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48924 fi
48925
48926 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48927 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48928 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48929 fi
48930
48931 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48932 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48933 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48934 fi
48935
fc480dc1
DE
48936 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48937 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48938 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48939 fi
48940
1e9e8aba
DE
48941 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48942 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48943 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48944 fi
48945
ebee3cd0
VS
48946 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48947 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48948 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48949 fi
48950
48951 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48952 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48953 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48954 fi
48955
a848cd7e
SC
48956 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48957 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48958 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48959 fi
48960
48961 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48962 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48963 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48964 fi
48965
b48a2016
DE
48966 COND_PLATFORM_MACOS_1="#"
48967 if test "x$PLATFORM_MACOS" = "x1" ; then
48968 COND_PLATFORM_MACOS_1=""
48969 fi
48970
083508af
MW
48971 COND_PLATFORM_MAC_1="#"
48972 if test "x$PLATFORM_MAC" = "x1" ; then
48973 COND_PLATFORM_MAC_1=""
48974 fi
48975
e5efa97e
VZ
48976 COND_PLATFORM_MSDOS_0="#"
48977 if test "x$PLATFORM_MSDOS" = "x0" ; then
48978 COND_PLATFORM_MSDOS_0=""
48979 fi
48980
83d8eb47
MW
48981 COND_PLATFORM_MSDOS_1="#"
48982 if test "x$PLATFORM_MSDOS" = "x1" ; then
48983 COND_PLATFORM_MSDOS_1=""
48984 fi
48985
a848cd7e
SC
48986 COND_PLATFORM_OS2_1="#"
48987 if test "x$PLATFORM_OS2" = "x1" ; then
48988 COND_PLATFORM_OS2_1=""
48989 fi
48990
48991 COND_PLATFORM_UNIX_0="#"
48992 if test "x$PLATFORM_UNIX" = "x0" ; then
48993 COND_PLATFORM_UNIX_0=""
48994 fi
48995
48996 COND_PLATFORM_UNIX_1="#"
48997 if test "x$PLATFORM_UNIX" = "x1" ; then
48998 COND_PLATFORM_UNIX_1=""
48999 fi
49000
49001 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49002 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49003 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49004 fi
49005
49006 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49007 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49008 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49009 fi
49010
49011 COND_PLATFORM_WIN32_0="#"
49012 if test "x$PLATFORM_WIN32" = "x0" ; then
49013 COND_PLATFORM_WIN32_0=""
49014 fi
49015
49016 COND_PLATFORM_WIN32_1="#"
49017 if test "x$PLATFORM_WIN32" = "x1" ; then
49018 COND_PLATFORM_WIN32_1=""
49019 fi
49020
49021 COND_SHARED_0="#"
49022 if test "x$SHARED" = "x0" ; then
49023 COND_SHARED_0=""
49024 fi
49025
083508af
MW
49026 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49027 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49028 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49029 fi
49030
49031 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49032 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49033 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49034 fi
49035
49036 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49037 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49038 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49039 fi
49040
a848cd7e
SC
49041 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49042 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49043 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49044 fi
49045
49046 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49047 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49048 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49049 fi
49050
49051 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49052 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49053 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49054 fi
49055
49056 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49057 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49058 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49059 fi
49060
083508af
MW
49061 COND_SHARED_0_USE_XRC_1="#"
49062 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49063 COND_SHARED_0_USE_XRC_1=""
49064 fi
49065
a848cd7e
SC
49066 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49067 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49068 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49069 fi
49070
49071 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49072 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49073 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49074 fi
49075
49076 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49077 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49078 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49079 fi
49080
49081 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49082 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49083 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49084 fi
49085
49086 COND_SHARED_1="#"
49087 if test "x$SHARED" = "x1" ; then
49088 COND_SHARED_1=""
49089 fi
49090
49091 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49092 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49093 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49094 fi
49095
083508af
MW
49096 COND_SHARED_1_USE_XRC_1="#"
49097 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49098 COND_SHARED_1_USE_XRC_1=""
49099 fi
49100
a30f955f
VS
49101 COND_TOOLKIT_="#"
49102 if test "x$TOOLKIT" = "x" ; then
49103 COND_TOOLKIT_=""
49104 fi
49105
a848cd7e
SC
49106 COND_TOOLKIT_COCOA="#"
49107 if test "x$TOOLKIT" = "xCOCOA" ; then
49108 COND_TOOLKIT_COCOA=""
49109 fi
49110
a49baeab
DE
49111 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49112 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49113 COND_TOOLKIT_COCOA_USE_GUI_1=""
49114 fi
49115
a848cd7e
SC
49116 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49117 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49118 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49119 fi
49120
b3c86150
VS
49121 COND_TOOLKIT_DFB="#"
49122 if test "x$TOOLKIT" = "xDFB" ; then
49123 COND_TOOLKIT_DFB=""
49124 fi
49125
49126 COND_TOOLKIT_DFB_USE_GUI_1="#"
49127 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49128 COND_TOOLKIT_DFB_USE_GUI_1=""
49129 fi
49130
a848cd7e
SC
49131 COND_TOOLKIT_GTK="#"
49132 if test "x$TOOLKIT" = "xGTK" ; then
49133 COND_TOOLKIT_GTK=""
49134 fi
49135
d044deea
MW
49136 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49137 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49138 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49139 fi
49140
49141 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49142 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49143 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49144 fi
49145
49146 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49147 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49148 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49149 fi
49150
49151 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49152 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49153 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49154 fi
49155
49156 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49157 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49158 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49159 fi
49160
49161 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49162 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49163 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49164 fi
49165
a848cd7e
SC
49166 COND_TOOLKIT_GTK_USE_GUI_1="#"
49167 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49168 COND_TOOLKIT_GTK_USE_GUI_1=""
49169 fi
49170
a848cd7e
SC
49171 COND_TOOLKIT_MAC="#"
49172 if test "x$TOOLKIT" = "xMAC" ; then
49173 COND_TOOLKIT_MAC=""
49174 fi
49175
49176 COND_TOOLKIT_MAC_USE_GUI_1="#"
49177 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49178 COND_TOOLKIT_MAC_USE_GUI_1=""
49179 fi
49180
49181 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49182 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49183 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49184 fi
49185
49186 COND_TOOLKIT_MGL="#"
49187 if test "x$TOOLKIT" = "xMGL" ; then
49188 COND_TOOLKIT_MGL=""
49189 fi
49190
49191 COND_TOOLKIT_MGL_USE_GUI_1="#"
49192 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49193 COND_TOOLKIT_MGL_USE_GUI_1=""
49194 fi
49195
49196 COND_TOOLKIT_MOTIF="#"
49197 if test "x$TOOLKIT" = "xMOTIF" ; then
49198 COND_TOOLKIT_MOTIF=""
49199 fi
49200
49201 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49202 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49203 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49204 fi
49205
49206 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49207 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49208 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49209 fi
49210
49211 COND_TOOLKIT_MSW="#"
49212 if test "x$TOOLKIT" = "xMSW" ; then
49213 COND_TOOLKIT_MSW=""
49214 fi
49215
49216 COND_TOOLKIT_MSW_USE_GUI_1="#"
49217 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49218 COND_TOOLKIT_MSW_USE_GUI_1=""
49219 fi
49220
49221 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49222 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49223 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49224 fi
49225
0ee4059d
DE
49226 COND_TOOLKIT_MSW_WXUNIV_0="#"
49227 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49228 COND_TOOLKIT_MSW_WXUNIV_0=""
49229 fi
49230
a848cd7e
SC
49231 COND_TOOLKIT_PM="#"
49232 if test "x$TOOLKIT" = "xPM" ; then
49233 COND_TOOLKIT_PM=""
49234 fi
49235
49236 COND_TOOLKIT_PM_USE_GUI_1="#"
49237 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49238 COND_TOOLKIT_PM_USE_GUI_1=""
49239 fi
49240
49241 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49242 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49243 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49244 fi
49245
3fd9c298
DE
49246 COND_TOOLKIT_WINCE="#"
49247 if test "x$TOOLKIT" = "xWINCE" ; then
49248 COND_TOOLKIT_WINCE=""
49249 fi
49250
49251 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49252 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49253 COND_TOOLKIT_WINCE_USE_GUI_1=""
49254 fi
49255
49256 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49257 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49258 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49259 fi
49260
0ee4059d
DE
49261 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49262 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49263 COND_TOOLKIT_WINCE_WXUNIV_0=""
49264 fi
49265
a848cd7e
SC
49266 COND_TOOLKIT_X11="#"
49267 if test "x$TOOLKIT" = "xX11" ; then
49268 COND_TOOLKIT_X11=""
49269 fi
49270
49271 COND_TOOLKIT_X11_USE_GUI_1="#"
49272 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49273 COND_TOOLKIT_X11_USE_GUI_1=""
49274 fi
49275
49276 COND_UNICODE_1="#"
49277 if test "x$UNICODE" = "x1" ; then
49278 COND_UNICODE_1=""
49279 fi
49280
49281 COND_USE_EXCEPTIONS_0="#"
49282 if test "x$USE_EXCEPTIONS" = "x0" ; then
49283 COND_USE_EXCEPTIONS_0=""
49284 fi
49285
49286 COND_USE_EXCEPTIONS_1="#"
49287 if test "x$USE_EXCEPTIONS" = "x1" ; then
49288 COND_USE_EXCEPTIONS_1=""
49289 fi
49290
49291 COND_USE_GUI_0="#"
49292 if test "x$USE_GUI" = "x0" ; then
49293 COND_USE_GUI_0=""
49294 fi
49295
49296 COND_USE_GUI_1="#"
49297 if test "x$USE_GUI" = "x1" ; then
49298 COND_USE_GUI_1=""
49299 fi
49300
49301 COND_USE_GUI_1_WXUNIV_0="#"
49302 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49303 COND_USE_GUI_1_WXUNIV_0=""
49304 fi
49305
49306 COND_USE_GUI_1_WXUNIV_1="#"
49307 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49308 COND_USE_GUI_1_WXUNIV_1=""
49309 fi
49310
49311 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49312 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49313 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49314 fi
49315
49316 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49317 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49318 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49319 fi
49320
49321 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49322 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49323 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49324 fi
49325
083508af
MW
49326 COND_USE_ODBC_1="#"
49327 if test "x$USE_ODBC" = "x1" ; then
49328 COND_USE_ODBC_1=""
49329 fi
49330
49331 COND_USE_OPENGL_1="#"
49332 if test "x$USE_OPENGL" = "x1" ; then
49333 COND_USE_OPENGL_1=""
49334 fi
49335
f10e38c4
VZ
49336 COND_USE_PCH_1="#"
49337 if test "x$USE_PCH" = "x1" ; then
49338 COND_USE_PCH_1=""
49339 fi
49340
a848cd7e
SC
49341 COND_USE_PLUGINS_0="#"
49342 if test "x$USE_PLUGINS" = "x0" ; then
49343 COND_USE_PLUGINS_0=""
49344 fi
49345
0b78747f
MW
49346 COND_USE_RTTI_0="#"
49347 if test "x$USE_RTTI" = "x0" ; then
49348 COND_USE_RTTI_0=""
49349 fi
49350
49351 COND_USE_RTTI_1="#"
49352 if test "x$USE_RTTI" = "x1" ; then
49353 COND_USE_RTTI_1=""
49354 fi
49355
a848cd7e
SC
49356 COND_USE_SOSYMLINKS_1="#"
49357 if test "x$USE_SOSYMLINKS" = "x1" ; then
49358 COND_USE_SOSYMLINKS_1=""
49359 fi
49360
eb730a0c
JS
49361 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49362 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49363 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49364 fi
49365
a848cd7e
SC
49366 COND_USE_SOVERLINUX_1="#"
49367 if test "x$USE_SOVERLINUX" = "x1" ; then
49368 COND_USE_SOVERLINUX_1=""
49369 fi
49370
49371 COND_USE_SOVERSION_0="#"
49372 if test "x$USE_SOVERSION" = "x0" ; then
49373 COND_USE_SOVERSION_0=""
49374 fi
49375
49376 COND_USE_SOVERSOLARIS_1="#"
49377 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49378 COND_USE_SOVERSOLARIS_1=""
49379 fi
49380
0b78747f
MW
49381 COND_USE_THREADS_0="#"
49382 if test "x$USE_THREADS" = "x0" ; then
49383 COND_USE_THREADS_0=""
49384 fi
49385
49386 COND_USE_THREADS_1="#"
49387 if test "x$USE_THREADS" = "x1" ; then
49388 COND_USE_THREADS_1=""
49389 fi
49390
a13a7f89
RL
49391 COND_USE_XRC_1="#"
49392 if test "x$USE_XRC" = "x1" ; then
49393 COND_USE_XRC_1=""
49394 fi
49395
eb730a0c
JS
49396 COND_WINDOWS_IMPLIB_1="#"
49397 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49398 COND_WINDOWS_IMPLIB_1=""
49399 fi
49400
a848cd7e
SC
49401 COND_WITH_PLUGIN_SDL_1="#"
49402 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49403 COND_WITH_PLUGIN_SDL_1=""
49404 fi
49405
1e6eb025
VZ
49406 COND_WXUNIV_0="#"
49407 if test "x$WXUNIV" = "x0" ; then
49408 COND_WXUNIV_0=""
49409 fi
49410
a848cd7e
SC
49411 COND_WXUNIV_1="#"
49412 if test "x$WXUNIV" = "x1" ; then
49413 COND_WXUNIV_1=""
49414 fi
49415
49416 COND_WXUSE_EXPAT_BUILTIN="#"
49417 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49418 COND_WXUSE_EXPAT_BUILTIN=""
49419 fi
49420
49421 COND_WXUSE_LIBJPEG_BUILTIN="#"
49422 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49423 COND_WXUSE_LIBJPEG_BUILTIN=""
49424 fi
49425
49426 COND_WXUSE_LIBPNG_BUILTIN="#"
49427 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49428 COND_WXUSE_LIBPNG_BUILTIN=""
49429 fi
49430
49431 COND_WXUSE_LIBTIFF_BUILTIN="#"
49432 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49433 COND_WXUSE_LIBTIFF_BUILTIN=""
49434 fi
49435
49436 COND_WXUSE_ODBC_BUILTIN="#"
49437 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49438 COND_WXUSE_ODBC_BUILTIN=""
49439 fi
49440
49441 COND_WXUSE_REGEX_BUILTIN="#"
49442 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49443 COND_WXUSE_REGEX_BUILTIN=""
49444 fi
49445
49446 COND_WXUSE_ZLIB_BUILTIN="#"
49447 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49448 COND_WXUSE_ZLIB_BUILTIN=""
49449 fi
49450
49451
49452
810b94f0
MW
49453 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49454 { { 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
49455echo "$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;}
49456 { (exit 1); exit 1; }; }
49457 fi
49458
2057db16
VS
49459 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49460 { { 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
49461echo "$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;}
49462 { (exit 1); exit 1; }; }
49463 fi
49464
a848cd7e 49465
7afc46ab
KO
49466
49467if test "$wxUSE_MAC" = 1 ; then
95768535 49468 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49469 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49470 mv temp bk-deps
49471 chmod +x bk-deps
49472 fi
49473fi
49474
ceec2216
RL
49475if test "$wxUSE_SHARED" = "yes"; then
49476
49477 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49478 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49479
5b674b9d
DE
49480 case "${host}" in
49481 *-pc-os2_emx | *-pc-os2-emx )
49482 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49483 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49484 cp -p ${srcdir}/src/os2/dllnames.sh .
49485 cp -p ${srcdir}/src/os2/dllar.sh .
49486 ;;
49487 esac
ceec2216
RL
49488else
49489
49490 EXE_LINKER="$CXX -o"
49491
49492fi
69120ee4
VZ
49493if test "$wxUSE_OMF" = "yes"; then
49494 case "${host}" in
49495 *-pc-os2_emx | *-pc-os2-emx )
49496 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49497 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49498 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49499 ;;
49500 esac
49501fi
a848cd7e 49502
c08ebc62 49503if test $GCC_PCH = 1 ; then
254e8e29 49504 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49505fi
a848cd7e 49506
5ff751d6 49507WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49508
49509SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49510
49511
49512
49513
49514
49515
49516
49517
49518
49519
49520
49521
49522
49523
49524
49525
49526
49527
49528
49529
49530
49531
49532
49533
49534
49535
49536
49537
49538
49539
49540
49541
49542
49543
49544
49545
49546
49547
49548
49549
49550
49551
a848cd7e
SC
49552
49553
49554
49555
49556
49557
49558
49559
49560
49561
49562
49563
a848cd7e
SC
49564
49565
ddd14b14 49566
370d2fd7 49567
8ced02f6 49568
a848cd7e
SC
49569
49570
49571echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49572echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49573set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49574if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49575 echo $ECHO_N "(cached) $ECHO_C" >&6
49576else
49577 cat >conftest.make <<\_ACEOF
49578all:
49579 @echo 'ac_maketemp="$(MAKE)"'
49580_ACEOF
49581# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49582eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49583if test -n "$ac_maketemp"; then
49584 eval ac_cv_prog_make_${ac_make}_set=yes
49585else
49586 eval ac_cv_prog_make_${ac_make}_set=no
49587fi
49588rm -f conftest.make
49589fi
49590if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49591 echo "$as_me:$LINENO: result: yes" >&5
49592echo "${ECHO_T}yes" >&6
49593 SET_MAKE=
49594else
49595 echo "$as_me:$LINENO: result: no" >&5
49596echo "${ECHO_T}no" >&6
49597 SET_MAKE="MAKE=${MAKE-make}"
49598fi
49599
49600
a848cd7e 49601
ceec2216
RL
49602 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49603
a848cd7e 49604
5c60e845
MW
49605if test "$USE_WIN32" = 1; then
49606 ac_config_commands="$ac_config_commands
49607 rcdefs.h
49608 "
49609
49610fi
49611
ceec2216 49612 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 49613
a848cd7e 49614
ceec2216 49615 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49616
ceec2216
RL
49617
49618 ac_config_files="$ac_config_files version-script Makefile"
49619
49620
5c60e845 49621 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49622
49623
9103d280 49624
1c14217d 49625if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49626if test "$wxUSE_GUI" = "yes"; then
49627 SUBDIRS="samples demos utils contrib"
49628else SUBDIRS="samples utils"
49629fi
49630
49631
49632
49633# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49634if test "${with_cppunit_prefix+set}" = set; then
49635 withval="$with_cppunit_prefix"
49636 cppunit_config_prefix="$withval"
49637else
49638 cppunit_config_prefix=""
49639fi;
49640
49641# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49642if test "${with_cppunit_exec_prefix+set}" = set; then
49643 withval="$with_cppunit_exec_prefix"
49644 cppunit_config_exec_prefix="$withval"
49645else
49646 cppunit_config_exec_prefix=""
49647fi;
49648
49649 if test x$cppunit_config_exec_prefix != x ; then
49650 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49651 if test x${CPPUNIT_CONFIG+set} != xset ; then
49652 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49653 fi
49654 fi
49655 if test x$cppunit_config_prefix != x ; then
49656 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49657 if test x${CPPUNIT_CONFIG+set} != xset ; then
49658 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49659 fi
49660 fi
49661
49662 # Extract the first word of "cppunit-config", so it can be a program name with args.
49663set dummy cppunit-config; ac_word=$2
49664echo "$as_me:$LINENO: checking for $ac_word" >&5
49665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49666if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49667 echo $ECHO_N "(cached) $ECHO_C" >&6
49668else
49669 case $CPPUNIT_CONFIG in
49670 [\\/]* | ?:[\\/]*)
49671 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49672 ;;
49673 *)
49674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49675for as_dir in $PATH
49676do
49677 IFS=$as_save_IFS
49678 test -z "$as_dir" && as_dir=.
49679 for ac_exec_ext in '' $ac_executable_extensions; do
49680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49681 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49683 break 2
49684 fi
49685done
49686done
49687
49688 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49689 ;;
49690esac
49691fi
49692CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49693
49694if test -n "$CPPUNIT_CONFIG"; then
49695 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49696echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49697else
49698 echo "$as_me:$LINENO: result: no" >&5
49699echo "${ECHO_T}no" >&6
49700fi
49701
49702 cppunit_version_min=1.8.0
49703
49704 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49705echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49706 no_cppunit=""
49707 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49708 echo "$as_me:$LINENO: result: no" >&5
49709echo "${ECHO_T}no" >&6
a848cd7e
SC
49710 no_cppunit=yes
49711 else
49712 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49713 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49714 cppunit_version=`$CPPUNIT_CONFIG --version`
49715
49716 cppunit_major_version=`echo $cppunit_version | \
49717 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49718 cppunit_minor_version=`echo $cppunit_version | \
49719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49720 cppunit_micro_version=`echo $cppunit_version | \
49721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49722
49723 cppunit_major_min=`echo $cppunit_version_min | \
49724 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49725 cppunit_minor_min=`echo $cppunit_version_min | \
49726 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49727 cppunit_micro_min=`echo $cppunit_version_min | \
49728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49729
49730 cppunit_version_proper=`expr \
49731 $cppunit_major_version \> $cppunit_major_min \| \
49732 $cppunit_major_version \= $cppunit_major_min \& \
49733 $cppunit_minor_version \> $cppunit_minor_min \| \
49734 $cppunit_major_version \= $cppunit_major_min \& \
49735 $cppunit_minor_version \= $cppunit_minor_min \& \
49736 $cppunit_micro_version \>= $cppunit_micro_min `
49737
49738 if test "$cppunit_version_proper" = "1" ; then
49739 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49740echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49741 else
49742 echo "$as_me:$LINENO: result: no" >&5
49743echo "${ECHO_T}no" >&6
49744 no_cppunit=yes
49745 fi
49746 fi
49747
49748 if test "x$no_cppunit" = x ; then
c2218763 49749 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49750 else
49751 CPPUNIT_CFLAGS=""
49752 CPPUNIT_LIBS=""
c2218763 49753 :
a848cd7e
SC
49754 fi
49755
49756
49757
49758
49759
49760for subdir in `echo $SUBDIRS`; do
49761 if test -d ${srcdir}/${subdir} ; then
49762 if test "$wxUSE_GUI" = "yes"; then
49763 if test ${subdir} = "samples"; then
49764 makefiles="samples/Makefile.in $makefiles"
49765 for sample in `echo $SAMPLES_SUBDIRS`; do
49766 if test -d $srcdir/samples/$sample; then
49767 makefiles="samples/$sample/Makefile.in $makefiles"
49768 fi
49769 done
9c112555
MW
49770 else
49771 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49772 eval "disabled=\$$disabled_var"
49773 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49774 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49775 fi
49776 else if test ${subdir} = "samples"; then
49777 makefiles="samples/Makefile.in samples/console/Makefile.in"
49778 elif test ${subdir} = "utils"; then
6537ccf8
VS
49779 makefiles=""
49780 for util in HelpGen tex2rtf ; do
49781 if test -d $srcdir/utils/$util ; then
49782 makefiles="utils/$util/Makefile.in \
49783 utils/$util/src/Makefile.in \
49784 $makefiles"
49785 fi
49786 done
a848cd7e
SC
49787 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49788 fi
49789 fi
49790
49791 for mkin in $makefiles ; do
49792 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49793 ac_config_files="$ac_config_files $mk"
49794
49795 done
49796 fi
49797done
1c14217d 49798fi
a848cd7e
SC
49799cat >confcache <<\_ACEOF
49800# This file is a shell script that caches the results of configure
49801# tests run on this system so they can be shared between configure
49802# scripts and configure runs, see configure's option --config-cache.
49803# It is not useful on other systems. If it contains results you don't
49804# want to keep, you may remove or edit it.
49805#
49806# config.status only pays attention to the cache file if you give it
49807# the --recheck option to rerun configure.
49808#
49809# `ac_cv_env_foo' variables (set or unset) will be overridden when
49810# loading this file, other *unset* `ac_cv_foo' will be assigned the
49811# following values.
49812
49813_ACEOF
49814
49815# The following way of writing the cache mishandles newlines in values,
49816# but we know of no workaround that is simple, portable, and efficient.
49817# So, don't put newlines in cache variables' values.
49818# Ultrix sh set writes to stderr and can't be redirected directly,
49819# and sets the high bit in the cache file unless we assign to the vars.
49820{
49821 (set) 2>&1 |
49822 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49823 *ac_space=\ *)
49824 # `set' does not quote correctly, so add quotes (double-quote
49825 # substitution turns \\\\ into \\, and sed turns \\ into \).
49826 sed -n \
ac1cb8d3
VS
49827 "s/'/'\\\\''/g;
49828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49829 ;;
49830 *)
49831 # `set' quotes correctly as required by POSIX, so do not add quotes.
49832 sed -n \
ac1cb8d3 49833 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49834 ;;
49835 esac;
49836} |
49837 sed '
49838 t clear
49839 : clear
49840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49841 t end
49842 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49843 : end' >>confcache
49844if diff $cache_file confcache >/dev/null 2>&1; then :; else
49845 if test -w $cache_file; then
49846 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49847 cat confcache >$cache_file
49848 else
49849 echo "not updating unwritable cache $cache_file"
49850 fi
49851fi
49852rm -f confcache
49853
49854test "x$prefix" = xNONE && prefix=$ac_default_prefix
49855# Let make expand exec_prefix.
49856test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49857
49858# VPATH may cause trouble with some makes, so we remove $(srcdir),
49859# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49860# trailing colons and then remove the whole line if VPATH becomes empty
49861# (actually we leave an empty line to preserve line numbers).
49862if test "x$srcdir" = x.; then
ac1cb8d3 49863 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49864s/:*\$(srcdir):*/:/;
49865s/:*\${srcdir}:*/:/;
49866s/:*@srcdir@:*/:/;
ac1cb8d3 49867s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49868s/:*$//;
ac1cb8d3 49869s/^[^=]*=[ ]*$//;
a848cd7e
SC
49870}'
49871fi
49872
49873DEFS=-DHAVE_CONFIG_H
49874
49875ac_libobjs=
49876ac_ltlibobjs=
49877for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49878 # 1. Remove the extension, and $U if already installed.
49879 ac_i=`echo "$ac_i" |
ac1cb8d3 49880 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49881 # 2. Add them.
49882 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49883 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49884done
49885LIBOBJS=$ac_libobjs
49886
49887LTLIBOBJS=$ac_ltlibobjs
49888
49889
49890
49891: ${CONFIG_STATUS=./config.status}
49892ac_clean_files_save=$ac_clean_files
49893ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49894{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49895echo "$as_me: creating $CONFIG_STATUS" >&6;}
49896cat >$CONFIG_STATUS <<_ACEOF
49897#! $SHELL
49898# Generated by $as_me.
49899# Run this file to recreate the current configuration.
49900# Compiler output produced by configure, useful for debugging
49901# configure, is in config.log if it exists.
49902
49903debug=false
49904ac_cs_recheck=false
49905ac_cs_silent=false
49906SHELL=\${CONFIG_SHELL-$SHELL}
49907_ACEOF
49908
49909cat >>$CONFIG_STATUS <<\_ACEOF
49910## --------------------- ##
49911## M4sh Initialization. ##
49912## --------------------- ##
49913
49914# Be Bourne compatible
49915if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49916 emulate sh
49917 NULLCMD=:
49918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49919 # is contrary to our usage. Disable this feature.
49920 alias -g '${1+"$@"}'='"$@"'
49921elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49922 set -o posix
49923fi
ac1cb8d3 49924DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49925
49926# Support unset when possible.
ac1cb8d3 49927if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49928 as_unset=unset
49929else
49930 as_unset=false
49931fi
49932
49933
49934# Work around bugs in pre-3.0 UWIN ksh.
49935$as_unset ENV MAIL MAILPATH
49936PS1='$ '
49937PS2='> '
49938PS4='+ '
49939
49940# NLS nuisances.
49941for as_var in \
49942 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49943 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49944 LC_TELEPHONE LC_TIME
49945do
ac1cb8d3 49946 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49947 eval $as_var=C; export $as_var
49948 else
49949 $as_unset $as_var
49950 fi
49951done
49952
49953# Required to use basename.
49954if expr a : '\(a\)' >/dev/null 2>&1; then
49955 as_expr=expr
49956else
49957 as_expr=false
49958fi
49959
49960if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49961 as_basename=basename
49962else
49963 as_basename=false
49964fi
49965
49966
49967# Name of the executable.
49968as_me=`$as_basename "$0" ||
49969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49970 X"$0" : 'X\(//\)$' \| \
49971 X"$0" : 'X\(/\)$' \| \
49972 . : '\(.\)' 2>/dev/null ||
49973echo X/"$0" |
49974 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49975 /^X\/\(\/\/\)$/{ s//\1/; q; }
49976 /^X\/\(\/\).*/{ s//\1/; q; }
49977 s/.*/./; q'`
49978
49979
49980# PATH needs CR, and LINENO needs CR and PATH.
49981# Avoid depending upon Character Ranges.
49982as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49983as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49984as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49985as_cr_digits='0123456789'
49986as_cr_alnum=$as_cr_Letters$as_cr_digits
49987
49988# The user is always right.
49989if test "${PATH_SEPARATOR+set}" != set; then
49990 echo "#! /bin/sh" >conf$$.sh
49991 echo "exit 0" >>conf$$.sh
49992 chmod +x conf$$.sh
49993 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49994 PATH_SEPARATOR=';'
49995 else
49996 PATH_SEPARATOR=:
49997 fi
49998 rm -f conf$$.sh
49999fi
50000
50001
50002 as_lineno_1=$LINENO
50003 as_lineno_2=$LINENO
50004 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50005 test "x$as_lineno_1" != "x$as_lineno_2" &&
50006 test "x$as_lineno_3" = "x$as_lineno_2" || {
50007 # Find who we are. Look in the path if we contain no path at all
50008 # relative or not.
50009 case $0 in
50010 *[\\/]* ) as_myself=$0 ;;
50011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50012for as_dir in $PATH
50013do
50014 IFS=$as_save_IFS
50015 test -z "$as_dir" && as_dir=.
50016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50017done
50018
50019 ;;
50020 esac
50021 # We did not find ourselves, most probably we were run as `sh COMMAND'
50022 # in which case we are not to be found in the path.
50023 if test "x$as_myself" = x; then
50024 as_myself=$0
50025 fi
50026 if test ! -f "$as_myself"; then
50027 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50028echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50029 { (exit 1); exit 1; }; }
50030 fi
50031 case $CONFIG_SHELL in
50032 '')
50033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50034for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50035do
50036 IFS=$as_save_IFS
50037 test -z "$as_dir" && as_dir=.
50038 for as_base in sh bash ksh sh5; do
50039 case $as_dir in
50040 /*)
50041 if ("$as_dir/$as_base" -c '
50042 as_lineno_1=$LINENO
50043 as_lineno_2=$LINENO
50044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50045 test "x$as_lineno_1" != "x$as_lineno_2" &&
50046 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50047 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50048 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50049 CONFIG_SHELL=$as_dir/$as_base
50050 export CONFIG_SHELL
50051 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50052 fi;;
50053 esac
50054 done
50055done
50056;;
50057 esac
50058
50059 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50060 # uniformly replaced by the line number. The first 'sed' inserts a
50061 # line-number line before each line; the second 'sed' does the real
50062 # work. The second script uses 'N' to pair each line-number line
50063 # with the numbered line, and appends trailing '-' during
50064 # substitution so that $LINENO is not a special case at line end.
50065 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50066 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50067 sed '=' <$as_myself |
50068 sed '
50069 N
50070 s,$,-,
50071 : loop
50072 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50073 t loop
50074 s,-$,,
50075 s,^['$as_cr_digits']*\n,,
50076 ' >$as_me.lineno &&
50077 chmod +x $as_me.lineno ||
50078 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50079echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50080 { (exit 1); exit 1; }; }
50081
50082 # Don't try to exec as it changes $[0], causing all sort of problems
50083 # (the dirname of $[0] is not the place where we might find the
50084 # original and so on. Autoconf is especially sensible to this).
50085 . ./$as_me.lineno
50086 # Exit status is that of the last command.
50087 exit
50088}
50089
50090
50091case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50092 *c*,-n*) ECHO_N= ECHO_C='
50093' ECHO_T=' ' ;;
50094 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50095 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50096esac
50097
50098if expr a : '\(a\)' >/dev/null 2>&1; then
50099 as_expr=expr
50100else
50101 as_expr=false
50102fi
50103
50104rm -f conf$$ conf$$.exe conf$$.file
50105echo >conf$$.file
50106if ln -s conf$$.file conf$$ 2>/dev/null; then
50107 # We could just check for DJGPP; but this test a) works b) is more generic
50108 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50109 if test -f conf$$.exe; then
50110 # Don't use ln at all; we don't have any links
50111 as_ln_s='cp -p'
50112 else
50113 as_ln_s='ln -s'
50114 fi
50115elif ln conf$$.file conf$$ 2>/dev/null; then
50116 as_ln_s=ln
50117else
50118 as_ln_s='cp -p'
50119fi
50120rm -f conf$$ conf$$.exe conf$$.file
50121
50122if mkdir -p . 2>/dev/null; then
50123 as_mkdir_p=:
50124else
ac1cb8d3 50125 test -d ./-p && rmdir ./-p
a848cd7e
SC
50126 as_mkdir_p=false
50127fi
50128
50129as_executable_p="test -f"
50130
50131# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50132as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50133
50134# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50135as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50136
50137
50138# IFS
50139# We need space, tab and new line, in precisely that order.
50140as_nl='
50141'
50142IFS=" $as_nl"
50143
50144# CDPATH.
50145$as_unset CDPATH
50146
50147exec 6>&1
50148
50149# Open the log real soon, to keep \$[0] and so on meaningful, and to
50150# report actual input values of CONFIG_FILES etc. instead of their
50151# values after options handling. Logging --version etc. is OK.
50152exec 5>>config.log
50153{
50154 echo
50155 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50156## Running $as_me. ##
50157_ASBOX
50158} >&5
50159cat >&5 <<_CSEOF
50160
dd8df4fc 50161This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 50162generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50163
50164 CONFIG_FILES = $CONFIG_FILES
50165 CONFIG_HEADERS = $CONFIG_HEADERS
50166 CONFIG_LINKS = $CONFIG_LINKS
50167 CONFIG_COMMANDS = $CONFIG_COMMANDS
50168 $ $0 $@
50169
50170_CSEOF
50171echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50172echo >&5
50173_ACEOF
50174
50175# Files that config.status was made for.
50176if test -n "$ac_config_files"; then
50177 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50178fi
50179
50180if test -n "$ac_config_headers"; then
50181 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50182fi
50183
50184if test -n "$ac_config_links"; then
50185 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50186fi
50187
50188if test -n "$ac_config_commands"; then
50189 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50190fi
50191
50192cat >>$CONFIG_STATUS <<\_ACEOF
50193
50194ac_cs_usage="\
50195\`$as_me' instantiates files from templates according to the
50196current configuration.
50197
50198Usage: $0 [OPTIONS] [FILE]...
50199
50200 -h, --help print this help, then exit
50201 -V, --version print version number, then exit
50202 -q, --quiet do not print progress messages
50203 -d, --debug don't remove temporary files
50204 --recheck update $as_me by reconfiguring in the same conditions
50205 --file=FILE[:TEMPLATE]
ac1cb8d3 50206 instantiate the configuration file FILE
a848cd7e 50207 --header=FILE[:TEMPLATE]
ac1cb8d3 50208 instantiate the configuration header FILE
a848cd7e
SC
50209
50210Configuration files:
50211$config_files
50212
50213Configuration headers:
50214$config_headers
50215
50216Configuration commands:
50217$config_commands
50218
50219Report bugs to <bug-autoconf@gnu.org>."
50220_ACEOF
50221
50222cat >>$CONFIG_STATUS <<_ACEOF
50223ac_cs_version="\\
dd8df4fc 50224wxWidgets config.status 2.7.0
ac1cb8d3 50225configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50226 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50227
ac1cb8d3 50228Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50229This config.status script is free software; the Free Software Foundation
50230gives unlimited permission to copy, distribute and modify it."
50231srcdir=$srcdir
50232INSTALL="$INSTALL"
50233_ACEOF
50234
50235cat >>$CONFIG_STATUS <<\_ACEOF
50236# If no file are specified by the user, then we need to provide default
50237# value. By we need to know if files were specified by the user.
50238ac_need_defaults=:
50239while test $# != 0
50240do
50241 case $1 in
50242 --*=*)
50243 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50244 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50245 ac_shift=:
50246 ;;
50247 -*)
50248 ac_option=$1
50249 ac_optarg=$2
50250 ac_shift=shift
50251 ;;
50252 *) # This is not an option, so the user has probably given explicit
50253 # arguments.
50254 ac_option=$1
50255 ac_need_defaults=false;;
50256 esac
50257
50258 case $ac_option in
50259 # Handling of the options.
50260_ACEOF
50261cat >>$CONFIG_STATUS <<\_ACEOF
50262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50263 ac_cs_recheck=: ;;
50264 --version | --vers* | -V )
50265 echo "$ac_cs_version"; exit 0 ;;
50266 --he | --h)
50267 # Conflict between --help and --header
50268 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50269Try \`$0 --help' for more information." >&5
50270echo "$as_me: error: ambiguous option: $1
50271Try \`$0 --help' for more information." >&2;}
50272 { (exit 1); exit 1; }; };;
50273 --help | --hel | -h )
50274 echo "$ac_cs_usage"; exit 0 ;;
50275 --debug | --d* | -d )
50276 debug=: ;;
50277 --file | --fil | --fi | --f )
50278 $ac_shift
50279 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50280 ac_need_defaults=false;;
50281 --header | --heade | --head | --hea )
50282 $ac_shift
50283 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50284 ac_need_defaults=false;;
50285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50286 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50287 ac_cs_silent=: ;;
50288
50289 # This is an error.
50290 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50291Try \`$0 --help' for more information." >&5
50292echo "$as_me: error: unrecognized option: $1
50293Try \`$0 --help' for more information." >&2;}
50294 { (exit 1); exit 1; }; } ;;
50295
50296 *) ac_config_targets="$ac_config_targets $1" ;;
50297
50298 esac
50299 shift
50300done
50301
50302ac_configure_extra_args=
50303
50304if $ac_cs_silent; then
50305 exec 6>/dev/null
50306 ac_configure_extra_args="$ac_configure_extra_args --silent"
50307fi
50308
50309_ACEOF
50310cat >>$CONFIG_STATUS <<_ACEOF
50311if \$ac_cs_recheck; then
50312 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50313 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50314fi
50315
50316_ACEOF
50317
50318cat >>$CONFIG_STATUS <<_ACEOF
50319#
50320# INIT-COMMANDS section.
50321#
50322
5c60e845
MW
50323
50324 CPP="$CPP"
50325 infile="$srcdir/include/wx/msw/genrcdefs.h"
50326 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50327
50328
ceec2216
RL
50329 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50330 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50331 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50332 LN_S="${LN_S}"
a848cd7e
SC
50333
50334
50335_ACEOF
50336
50337
50338
50339cat >>$CONFIG_STATUS <<\_ACEOF
50340for ac_config_target in $ac_config_targets
50341do
50342 case "$ac_config_target" in
50343 # Handling of arguments.
ceec2216
RL
50344 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50345 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50346 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50347 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50348 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50349 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50350 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50351 "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
50352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50353echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50354 { (exit 1); exit 1; }; };;
50355 esac
50356done
50357
50358# If the user did not use the arguments to specify the items to instantiate,
50359# then the envvar interface is used. Set only those that are not.
50360# We use the long form for the default assignment because of an extremely
50361# bizarre bug on SunOS 4.1.3.
50362if $ac_need_defaults; then
50363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50366fi
50367
50368# Have a temporary directory for convenience. Make it in the build tree
50369# simply because there is no reason to put it here, and in addition,
50370# creating and moving files from /tmp can sometimes cause problems.
50371# Create a temporary directory, and hook for its removal unless debugging.
50372$debug ||
50373{
50374 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50375 trap '{ (exit 1); exit 1; }' 1 2 13 15
50376}
50377
50378# Create a (secure) tmp directory for tmp files.
50379
50380{
50381 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50382 test -n "$tmp" && test -d "$tmp"
50383} ||
50384{
50385 tmp=./confstat$$-$RANDOM
50386 (umask 077 && mkdir $tmp)
50387} ||
50388{
50389 echo "$me: cannot create a temporary directory in ." >&2
50390 { (exit 1); exit 1; }
50391}
50392
50393_ACEOF
50394
50395cat >>$CONFIG_STATUS <<_ACEOF
50396
50397#
50398# CONFIG_FILES section.
50399#
50400
50401# No need to generate the scripts if there are no CONFIG_FILES.
50402# This happens for instance when ./config.status config.h
50403if test -n "\$CONFIG_FILES"; then
50404 # Protect against being on the right side of a sed subst in config.status.
50405 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50406 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50407s,@SHELL@,$SHELL,;t t
50408s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50409s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50410s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50411s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50412s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50413s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50414s,@exec_prefix@,$exec_prefix,;t t
50415s,@prefix@,$prefix,;t t
50416s,@program_transform_name@,$program_transform_name,;t t
50417s,@bindir@,$bindir,;t t
50418s,@sbindir@,$sbindir,;t t
50419s,@libexecdir@,$libexecdir,;t t
50420s,@datadir@,$datadir,;t t
50421s,@sysconfdir@,$sysconfdir,;t t
50422s,@sharedstatedir@,$sharedstatedir,;t t
50423s,@localstatedir@,$localstatedir,;t t
50424s,@libdir@,$libdir,;t t
50425s,@includedir@,$includedir,;t t
50426s,@oldincludedir@,$oldincludedir,;t t
50427s,@infodir@,$infodir,;t t
50428s,@mandir@,$mandir,;t t
50429s,@build_alias@,$build_alias,;t t
50430s,@host_alias@,$host_alias,;t t
50431s,@target_alias@,$target_alias,;t t
50432s,@DEFS@,$DEFS,;t t
50433s,@ECHO_C@,$ECHO_C,;t t
50434s,@ECHO_N@,$ECHO_N,;t t
50435s,@ECHO_T@,$ECHO_T,;t t
50436s,@LIBS@,$LIBS,;t t
50437s,@build@,$build,;t t
50438s,@build_cpu@,$build_cpu,;t t
50439s,@build_vendor@,$build_vendor,;t t
50440s,@build_os@,$build_os,;t t
50441s,@host@,$host,;t t
50442s,@host_cpu@,$host_cpu,;t t
50443s,@host_vendor@,$host_vendor,;t t
50444s,@host_os@,$host_os,;t t
50445s,@target@,$target,;t t
50446s,@target_cpu@,$target_cpu,;t t
50447s,@target_vendor@,$target_vendor,;t t
50448s,@target_os@,$target_os,;t t
50449s,@CC@,$CC,;t t
50450s,@CFLAGS@,$CFLAGS,;t t
50451s,@LDFLAGS@,$LDFLAGS,;t t
50452s,@CPPFLAGS@,$CPPFLAGS,;t t
50453s,@ac_ct_CC@,$ac_ct_CC,;t t
50454s,@EXEEXT@,$EXEEXT,;t t
50455s,@OBJEXT@,$OBJEXT,;t t
50456s,@CPP@,$CPP,;t t
50457s,@EGREP@,$EGREP,;t t
50458s,@CXX@,$CXX,;t t
50459s,@CXXFLAGS@,$CXXFLAGS,;t t
50460s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50461s,@RANLIB@,$RANLIB,;t t
50462s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50463s,@AR@,$AR,;t t
8c80d384 50464s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50465s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50466s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50467s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50468s,@STRIP@,$STRIP,;t t
8c80d384 50469s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50470s,@WINDRES@,$WINDRES,;t t
50471s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50472s,@DLLTOOL@,$DLLTOOL,;t t
50473s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50474s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50475s,@LN_S@,$LN_S,;t t
50476s,@CXXCPP@,$CXXCPP,;t t
50477s,@subdirs@,$subdirs,;t t
50478s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50479s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50480s,@GTK_LIBS@,$GTK_LIBS,;t t
50481s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50482s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50483s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50484s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50485s,@X_CFLAGS@,$X_CFLAGS,;t t
50486s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50487s,@X_LIBS@,$X_LIBS,;t t
50488s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50489s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50490s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50491s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50492s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50493s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50494s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50495s,@REZ@,$REZ,;t t
a848cd7e
SC
50496s,@DEREZ@,$DEREZ,;t t
50497s,@SETFILE@,$SETFILE,;t t
50498s,@LIBICONV@,$LIBICONV,;t t
50499s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50500s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50501s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50502s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50503s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50504s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50505s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50506s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50507s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50508s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
50509s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50510s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50511s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50512s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50513s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50514s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50515s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50516s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50517s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50518s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50519s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50520s,@VENDOR@,$VENDOR,;t t
50521s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50522s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50523s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50524s,@WXUNIV@,$WXUNIV,;t t
50525s,@MONOLITHIC@,$MONOLITHIC,;t t
50526s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50527s,@EXTRALIBS@,$EXTRALIBS,;t t
50528s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50529s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50530s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50531s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50532s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50533s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50534s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50535s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50536s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50537s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50538s,@UNICODE@,$UNICODE,;t t
50539s,@BUILD@,$BUILD,;t t
50540s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50541s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50542s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50543s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50544s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50545s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50546s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50547s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50548s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50549s,@SET_MAKE@,$SET_MAKE,;t t
50550s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50551s,@NM@,$NM,;t t
50552s,@ac_ct_NM@,$ac_ct_NM,;t t
50553s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50554s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50555s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50556s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50557s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50558s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 50559s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
50560s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50561s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 50562s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
50563s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50564s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50565s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50566s,@LIBPREFIX@,$LIBPREFIX,;t t
50567s,@LIBEXT@,$LIBEXT,;t t
50568s,@DLLPREFIX@,$DLLPREFIX,;t t
50569s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50570s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50571s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50572s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50573s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50574s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50575s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50576s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50577s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50578s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50579s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50580s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50581s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
50582s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50583s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50584s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50585s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50586s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 50587s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
50588s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50589s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50590s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50591s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50592s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50593s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50594s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50595s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50596s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50597s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50598s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50599s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50600s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50601s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50602s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 50603s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
50604s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50605s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 50606s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 50607s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 50608s,@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 50609s,@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 50610s,@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 50611s,@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 50612s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 50613s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 50614s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 50615s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 50616s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 50617s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50618s,@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 50619s,@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 50620s,@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 50621s,@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 50622s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50623s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50624s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50625s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50626s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50627s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50628s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50629s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50630s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50631s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50632s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50633s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50634s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50635s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50636s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50637s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50638s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50639s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50640s,@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
50641s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50642s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50643s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50644s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50645s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50646s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50647s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50648s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50649s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50650s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50651s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50652s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50653s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50654s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50655s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50656s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50657s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50658s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50659s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50660s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50661s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50662s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50663s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50664s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50665s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50666s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50667s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50668s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50669s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50670s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50671s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50672s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50673s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50674s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 50675s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
50676s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50677s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 50678s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50679s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50680s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50681s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50682s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50683s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50684s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50685s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50686s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50687s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50688s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50689s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50690s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50691s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50692s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50693s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50694s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50695s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50696s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50697s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50698s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50699s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50700s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50701s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50702s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50703s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50704s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50705s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50706s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50707s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50708s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50709s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50710s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50711s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50712s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50713s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50714s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50715s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50716s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50717s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50718s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50719s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50720s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50721s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50722s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50723s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50724s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50725s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50726s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50727s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50728s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50729s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50730s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50731s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50732s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50733s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50734s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50735s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50736s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50737s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50738s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50739s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50740s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50741s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50742s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50743s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50744s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50745s,@USE_GUI@,$USE_GUI,;t t
50746s,@AFMINSTALL@,$AFMINSTALL,;t t
50747s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50748s,@TOOLKIT@,$TOOLKIT,;t t
50749s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50750s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50751s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50752s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50753s,@WIDGET_SET@,$WIDGET_SET,;t t
50754s,@WX_RELEASE@,$WX_RELEASE,;t t
50755s,@WX_VERSION@,$WX_VERSION,;t t
50756s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50757s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50758s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50759s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50760s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50761s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50762s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50763s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50764s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50765s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50766s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50767s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50768s,@DISTDIR@,$DISTDIR,;t t
50769s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50770s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50771s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50772s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50773s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50774s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50775s,@RESFLAGS@,$RESFLAGS,;t t
50776s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50777s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50778s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50779s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50780s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50781s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50782s,@GCC@,$GCC,;t t
a848cd7e
SC
50783s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50784s,@LIBOBJS@,$LIBOBJS,;t t
50785s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50786CEOF
50787
50788_ACEOF
50789
50790 cat >>$CONFIG_STATUS <<\_ACEOF
50791 # Split the substitutions into bite-sized pieces for seds with
50792 # small command number limits, like on Digital OSF/1 and HP-UX.
50793 ac_max_sed_lines=48
50794 ac_sed_frag=1 # Number of current file.
50795 ac_beg=1 # First line for current file.
50796 ac_end=$ac_max_sed_lines # Line after last line for current file.
50797 ac_more_lines=:
50798 ac_sed_cmds=
50799 while $ac_more_lines; do
50800 if test $ac_beg -gt 1; then
50801 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50802 else
50803 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50804 fi
50805 if test ! -s $tmp/subs.frag; then
50806 ac_more_lines=false
50807 else
50808 # The purpose of the label and of the branching condition is to
50809 # speed up the sed processing (if there are no `@' at all, there
50810 # is no need to browse any of the substitutions).
50811 # These are the two extra sed commands mentioned above.
50812 (echo ':t
50813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50814 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50815 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50816 else
ac1cb8d3 50817 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50818 fi
50819 ac_sed_frag=`expr $ac_sed_frag + 1`
50820 ac_beg=$ac_end
50821 ac_end=`expr $ac_end + $ac_max_sed_lines`
50822 fi
50823 done
50824 if test -z "$ac_sed_cmds"; then
50825 ac_sed_cmds=cat
50826 fi
50827fi # test -n "$CONFIG_FILES"
50828
50829_ACEOF
50830cat >>$CONFIG_STATUS <<\_ACEOF
50831for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50832 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50833 case $ac_file in
50834 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50835 cat >$tmp/stdin
50836 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50838 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50840 * ) ac_file_in=$ac_file.in ;;
50841 esac
50842
50843 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50844 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50846 X"$ac_file" : 'X\(//\)[^/]' \| \
50847 X"$ac_file" : 'X\(//\)$' \| \
50848 X"$ac_file" : 'X\(/\)' \| \
50849 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50850echo X"$ac_file" |
50851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50853 /^X\(\/\/\)$/{ s//\1/; q; }
50854 /^X\(\/\).*/{ s//\1/; q; }
50855 s/.*/./; q'`
50856 { if $as_mkdir_p; then
50857 mkdir -p "$ac_dir"
50858 else
50859 as_dir="$ac_dir"
50860 as_dirs=
50861 while test ! -d "$as_dir"; do
50862 as_dirs="$as_dir $as_dirs"
50863 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50865 X"$as_dir" : 'X\(//\)[^/]' \| \
50866 X"$as_dir" : 'X\(//\)$' \| \
50867 X"$as_dir" : 'X\(/\)' \| \
50868 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50869echo X"$as_dir" |
50870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50872 /^X\(\/\/\)$/{ s//\1/; q; }
50873 /^X\(\/\).*/{ s//\1/; q; }
50874 s/.*/./; q'`
50875 done
50876 test ! -n "$as_dirs" || mkdir $as_dirs
50877 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50878echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50879 { (exit 1); exit 1; }; }; }
50880
50881 ac_builddir=.
50882
50883if test "$ac_dir" != .; then
50884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50885 # A "../" for each directory in $ac_dir_suffix.
50886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50887else
50888 ac_dir_suffix= ac_top_builddir=
50889fi
50890
50891case $srcdir in
50892 .) # No --srcdir option. We are building in place.
50893 ac_srcdir=.
50894 if test -z "$ac_top_builddir"; then
50895 ac_top_srcdir=.
50896 else
50897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50898 fi ;;
50899 [\\/]* | ?:[\\/]* ) # Absolute path.
50900 ac_srcdir=$srcdir$ac_dir_suffix;
50901 ac_top_srcdir=$srcdir ;;
50902 *) # Relative path.
50903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50905esac
ac1cb8d3
VS
50906
50907# Do not use `cd foo && pwd` to compute absolute paths, because
50908# the directories may not exist.
50909case `pwd` in
50910.) ac_abs_builddir="$ac_dir";;
50911*)
50912 case "$ac_dir" in
50913 .) ac_abs_builddir=`pwd`;;
50914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50916 esac;;
50917esac
50918case $ac_abs_builddir in
50919.) ac_abs_top_builddir=${ac_top_builddir}.;;
50920*)
50921 case ${ac_top_builddir}. in
50922 .) ac_abs_top_builddir=$ac_abs_builddir;;
50923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50925 esac;;
50926esac
50927case $ac_abs_builddir in
50928.) ac_abs_srcdir=$ac_srcdir;;
50929*)
50930 case $ac_srcdir in
50931 .) ac_abs_srcdir=$ac_abs_builddir;;
50932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50934 esac;;
50935esac
50936case $ac_abs_builddir in
50937.) ac_abs_top_srcdir=$ac_top_srcdir;;
50938*)
50939 case $ac_top_srcdir in
50940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50943 esac;;
50944esac
a848cd7e
SC
50945
50946
50947 case $INSTALL in
50948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50949 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50950 esac
50951
a848cd7e
SC
50952 # Let's still pretend it is `configure' which instantiates (i.e., don't
50953 # use $as_me), people would be surprised to read:
50954 # /* config.h. Generated by config.status. */
50955 if test x"$ac_file" = x-; then
50956 configure_input=
50957 else
50958 configure_input="$ac_file. "
50959 fi
50960 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50961 sed 's,.*/,,'` by configure."
a848cd7e
SC
50962
50963 # First look for the input files in the build tree, otherwise in the
50964 # src tree.
50965 ac_file_inputs=`IFS=:
50966 for f in $ac_file_in; do
50967 case $f in
50968 -) echo $tmp/stdin ;;
50969 [\\/$]*)
ac1cb8d3
VS
50970 # Absolute (can't be DOS-style, as IFS=:)
50971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50972echo "$as_me: error: cannot find input file: $f" >&2;}
50973 { (exit 1); exit 1; }; }
ac1cb8d3 50974 echo "$f";;
a848cd7e 50975 *) # Relative
ac1cb8d3
VS
50976 if test -f "$f"; then
50977 # Build tree
50978 echo "$f"
50979 elif test -f "$srcdir/$f"; then
50980 # Source tree
50981 echo "$srcdir/$f"
50982 else
50983 # /dev/null tree
50984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50985echo "$as_me: error: cannot find input file: $f" >&2;}
50986 { (exit 1); exit 1; }; }
ac1cb8d3 50987 fi;;
a848cd7e
SC
50988 esac
50989 done` || { (exit 1); exit 1; }
ca5c6ac3
VZ
50990
50991 if test x"$ac_file" != x-; then
50992 { echo "$as_me:$LINENO: creating $ac_file" >&5
50993echo "$as_me: creating $ac_file" >&6;}
50994 rm -f "$ac_file"
50995 fi
a848cd7e
SC
50996_ACEOF
50997cat >>$CONFIG_STATUS <<_ACEOF
50998 sed "$ac_vpsub
50999$extrasub
51000_ACEOF
51001cat >>$CONFIG_STATUS <<\_ACEOF
51002:t
51003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51004s,@configure_input@,$configure_input,;t t
51005s,@srcdir@,$ac_srcdir,;t t
51006s,@abs_srcdir@,$ac_abs_srcdir,;t t
51007s,@top_srcdir@,$ac_top_srcdir,;t t
51008s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51009s,@builddir@,$ac_builddir,;t t
51010s,@abs_builddir@,$ac_abs_builddir,;t t
51011s,@top_builddir@,$ac_top_builddir,;t t
51012s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51013s,@INSTALL@,$ac_INSTALL,;t t
51014" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51015 rm -f $tmp/stdin
51016 if test x"$ac_file" != x-; then
51017 mv $tmp/out $ac_file
51018 else
51019 cat $tmp/out
51020 rm -f $tmp/out
51021 fi
51022
ceec2216
RL
51023 # Run the commands associated with the file.
51024 case $ac_file in
51025 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51026 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51027 esac
a848cd7e
SC
51028done
51029_ACEOF
51030cat >>$CONFIG_STATUS <<\_ACEOF
51031
51032#
51033# CONFIG_HEADER section.
51034#
51035
51036# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51037# NAME is the cpp macro being defined and VALUE is the value it is being given.
51038#
51039# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51040ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51041ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51042ac_dC=' '
51043ac_dD=',;t'
51044# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51045ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51046ac_uB='$,\1#\2define\3'
51047ac_uC=' '
51048ac_uD=',;t'
51049
51050for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51052 case $ac_file in
51053 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51054 cat >$tmp/stdin
51055 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51057 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51058 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51059 * ) ac_file_in=$ac_file.in ;;
51060 esac
51061
51062 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51063echo "$as_me: creating $ac_file" >&6;}
51064
51065 # First look for the input files in the build tree, otherwise in the
51066 # src tree.
51067 ac_file_inputs=`IFS=:
51068 for f in $ac_file_in; do
51069 case $f in
51070 -) echo $tmp/stdin ;;
51071 [\\/$]*)
ac1cb8d3
VS
51072 # Absolute (can't be DOS-style, as IFS=:)
51073 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51074echo "$as_me: error: cannot find input file: $f" >&2;}
51075 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51076 # Do quote $f, to prevent DOS paths from being IFS'd.
51077 echo "$f";;
a848cd7e 51078 *) # Relative
ac1cb8d3
VS
51079 if test -f "$f"; then
51080 # Build tree
51081 echo "$f"
51082 elif test -f "$srcdir/$f"; then
51083 # Source tree
51084 echo "$srcdir/$f"
51085 else
51086 # /dev/null tree
51087 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51088echo "$as_me: error: cannot find input file: $f" >&2;}
51089 { (exit 1); exit 1; }; }
ac1cb8d3 51090 fi;;
a848cd7e
SC
51091 esac
51092 done` || { (exit 1); exit 1; }
51093 # Remove the trailing spaces.
ac1cb8d3 51094 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51095
51096_ACEOF
51097
51098# Transform confdefs.h into two sed scripts, `conftest.defines' and
51099# `conftest.undefs', that substitutes the proper values into
51100# config.h.in to produce config.h. The first handles `#define'
51101# templates, and the second `#undef' templates.
51102# And first: Protect against being on the right side of a sed subst in
51103# config.status. Protect against being in an unquoted here document
51104# in config.status.
51105rm -f conftest.defines conftest.undefs
51106# Using a here document instead of a string reduces the quoting nightmare.
51107# Putting comments in sed scripts is not portable.
51108#
51109# `end' is used to avoid that the second main sed command (meant for
51110# 0-ary CPP macros) applies to n-ary macro definitions.
51111# See the Autoconf documentation for `clear'.
51112cat >confdef2sed.sed <<\_ACEOF
51113s/[\\&,]/\\&/g
51114s,[\\$`],\\&,g
51115t clear
51116: clear
ac1cb8d3 51117s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51118t end
ac1cb8d3 51119s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51120: end
51121_ACEOF
51122# If some macros were called several times there might be several times
51123# the same #defines, which is useless. Nevertheless, we may not want to
51124# sort them, since we want the *last* AC-DEFINE to be honored.
51125uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51126sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51127rm -f confdef2sed.sed
51128
51129# This sed command replaces #undef with comments. This is necessary, for
51130# example, in the case of _POSIX_SOURCE, which is predefined and required
51131# on some systems where configure will not decide to define it.
51132cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51133s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51134_ACEOF
51135
51136# Break up conftest.defines because some shells have a limit on the size
51137# of here documents, and old seds have small limits too (100 cmds).
51138echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51139echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51140echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51141echo ' :' >>$CONFIG_STATUS
51142rm -f conftest.tail
51143while grep . conftest.defines >/dev/null
51144do
51145 # Write a limited-size here document to $tmp/defines.sed.
51146 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51147 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51148 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51149 # Work around the forget-to-reset-the-flag bug.
51150 echo 't clr' >>$CONFIG_STATUS
51151 echo ': clr' >>$CONFIG_STATUS
51152 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51153 echo 'CEOF
51154 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51155 rm -f $tmp/in
51156 mv $tmp/out $tmp/in
51157' >>$CONFIG_STATUS
51158 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51159 rm -f conftest.defines
51160 mv conftest.tail conftest.defines
51161done
51162rm -f conftest.defines
51163echo ' fi # grep' >>$CONFIG_STATUS
51164echo >>$CONFIG_STATUS
51165
51166# Break up conftest.undefs because some shells have a limit on the size
51167# of here documents, and old seds have small limits too (100 cmds).
51168echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51169rm -f conftest.tail
51170while grep . conftest.undefs >/dev/null
51171do
51172 # Write a limited-size here document to $tmp/undefs.sed.
51173 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51174 # Speed up: don't consider the non `#undef'
ac1cb8d3 51175 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51176 # Work around the forget-to-reset-the-flag bug.
51177 echo 't clr' >>$CONFIG_STATUS
51178 echo ': clr' >>$CONFIG_STATUS
51179 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51180 echo 'CEOF
51181 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51182 rm -f $tmp/in
51183 mv $tmp/out $tmp/in
51184' >>$CONFIG_STATUS
51185 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51186 rm -f conftest.undefs
51187 mv conftest.tail conftest.undefs
51188done
51189rm -f conftest.undefs
51190
51191cat >>$CONFIG_STATUS <<\_ACEOF
51192 # Let's still pretend it is `configure' which instantiates (i.e., don't
51193 # use $as_me), people would be surprised to read:
51194 # /* config.h. Generated by config.status. */
51195 if test x"$ac_file" = x-; then
51196 echo "/* Generated by configure. */" >$tmp/config.h
51197 else
51198 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51199 fi
51200 cat $tmp/in >>$tmp/config.h
51201 rm -f $tmp/in
51202 if test x"$ac_file" != x-; then
51203 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51204 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51205echo "$as_me: $ac_file is unchanged" >&6;}
51206 else
51207 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51209 X"$ac_file" : 'X\(//\)[^/]' \| \
51210 X"$ac_file" : 'X\(//\)$' \| \
51211 X"$ac_file" : 'X\(/\)' \| \
51212 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51213echo X"$ac_file" |
51214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51216 /^X\(\/\/\)$/{ s//\1/; q; }
51217 /^X\(\/\).*/{ s//\1/; q; }
51218 s/.*/./; q'`
51219 { if $as_mkdir_p; then
51220 mkdir -p "$ac_dir"
51221 else
51222 as_dir="$ac_dir"
51223 as_dirs=
51224 while test ! -d "$as_dir"; do
51225 as_dirs="$as_dir $as_dirs"
51226 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51228 X"$as_dir" : 'X\(//\)[^/]' \| \
51229 X"$as_dir" : 'X\(//\)$' \| \
51230 X"$as_dir" : 'X\(/\)' \| \
51231 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51232echo X"$as_dir" |
51233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51235 /^X\(\/\/\)$/{ s//\1/; q; }
51236 /^X\(\/\).*/{ s//\1/; q; }
51237 s/.*/./; q'`
51238 done
51239 test ! -n "$as_dirs" || mkdir $as_dirs
51240 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51241echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51242 { (exit 1); exit 1; }; }; }
51243
51244 rm -f $ac_file
51245 mv $tmp/config.h $ac_file
51246 fi
51247 else
51248 cat $tmp/config.h
51249 rm -f $tmp/config.h
51250 fi
51251done
51252_ACEOF
51253cat >>$CONFIG_STATUS <<\_ACEOF
51254
51255#
51256# CONFIG_COMMANDS section.
51257#
51258for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51259 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51260 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51261 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51262$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51263 X"$ac_dest" : 'X\(//\)[^/]' \| \
51264 X"$ac_dest" : 'X\(//\)$' \| \
51265 X"$ac_dest" : 'X\(/\)' \| \
51266 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51267echo X"$ac_dest" |
51268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51270 /^X\(\/\/\)$/{ s//\1/; q; }
51271 /^X\(\/\).*/{ s//\1/; q; }
51272 s/.*/./; q'`
ac1cb8d3
VS
51273 { if $as_mkdir_p; then
51274 mkdir -p "$ac_dir"
51275 else
51276 as_dir="$ac_dir"
51277 as_dirs=
51278 while test ! -d "$as_dir"; do
51279 as_dirs="$as_dir $as_dirs"
51280 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51281$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51282 X"$as_dir" : 'X\(//\)[^/]' \| \
51283 X"$as_dir" : 'X\(//\)$' \| \
51284 X"$as_dir" : 'X\(/\)' \| \
51285 . : '\(.\)' 2>/dev/null ||
51286echo X"$as_dir" |
51287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51289 /^X\(\/\/\)$/{ s//\1/; q; }
51290 /^X\(\/\).*/{ s//\1/; q; }
51291 s/.*/./; q'`
51292 done
51293 test ! -n "$as_dirs" || mkdir $as_dirs
51294 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51295echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51296 { (exit 1); exit 1; }; }; }
51297
a848cd7e
SC
51298 ac_builddir=.
51299
51300if test "$ac_dir" != .; then
51301 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51302 # A "../" for each directory in $ac_dir_suffix.
51303 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51304else
51305 ac_dir_suffix= ac_top_builddir=
51306fi
51307
51308case $srcdir in
51309 .) # No --srcdir option. We are building in place.
51310 ac_srcdir=.
51311 if test -z "$ac_top_builddir"; then
51312 ac_top_srcdir=.
51313 else
51314 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51315 fi ;;
51316 [\\/]* | ?:[\\/]* ) # Absolute path.
51317 ac_srcdir=$srcdir$ac_dir_suffix;
51318 ac_top_srcdir=$srcdir ;;
51319 *) # Relative path.
51320 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51321 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51322esac
ac1cb8d3
VS
51323
51324# Do not use `cd foo && pwd` to compute absolute paths, because
51325# the directories may not exist.
51326case `pwd` in
51327.) ac_abs_builddir="$ac_dir";;
51328*)
51329 case "$ac_dir" in
51330 .) ac_abs_builddir=`pwd`;;
51331 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51332 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51333 esac;;
51334esac
51335case $ac_abs_builddir in
51336.) ac_abs_top_builddir=${ac_top_builddir}.;;
51337*)
51338 case ${ac_top_builddir}. in
51339 .) ac_abs_top_builddir=$ac_abs_builddir;;
51340 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51341 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51342 esac;;
51343esac
51344case $ac_abs_builddir in
51345.) ac_abs_srcdir=$ac_srcdir;;
51346*)
51347 case $ac_srcdir in
51348 .) ac_abs_srcdir=$ac_abs_builddir;;
51349 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51350 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51351 esac;;
51352esac
51353case $ac_abs_builddir in
51354.) ac_abs_top_srcdir=$ac_top_srcdir;;
51355*)
51356 case $ac_top_srcdir in
51357 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51358 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51359 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51360 esac;;
51361esac
a848cd7e
SC
51362
51363
51364 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51365echo "$as_me: executing $ac_dest commands" >&6;}
51366 case $ac_dest in
5c60e845
MW
51367 rcdefs.h )
51368 mkdir -p $outdir &&
51369 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51370 ;;
ceec2216
RL
51371 wx-config ) rm -f wx-config
51372 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51373 ;;
a848cd7e
SC
51374 esac
51375done
51376_ACEOF
51377
51378cat >>$CONFIG_STATUS <<\_ACEOF
51379
51380{ (exit 0); exit 0; }
51381_ACEOF
51382chmod +x $CONFIG_STATUS
51383ac_clean_files=$ac_clean_files_save
51384
51385
51386# configure is writing to config.log, and then calls config.status.
51387# config.status does its own redirection, appending to config.log.
51388# Unfortunately, on DOS this fails, as config.log is still kept open
51389# by configure, so config.status won't be able to write to it; its
51390# output is simply discarded. So we exec the FD to /dev/null,
51391# effectively closing config.log, so it can be properly (re)opened and
51392# appended to by config.status. When coming back to configure, we
51393# need to make the FD available again.
51394if test "$no_create" != yes; then
51395 ac_cs_success=:
51396 ac_config_status_args=
51397 test "$silent" = yes &&
51398 ac_config_status_args="$ac_config_status_args --quiet"
51399 exec 5>/dev/null
51400 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51401 exec 5>>config.log
51402 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51403 # would make configure fail if this is the last instruction.
51404 $ac_cs_success || { (exit 1); exit 1; }
51405fi
51406
51407#
51408# CONFIG_SUBDIRS section.
51409#
51410if test "$no_recursion" != yes; then
51411
51412 # Remove --cache-file and --srcdir arguments so they do not pile up.
51413 ac_sub_configure_args=
51414 ac_prev=
51415 for ac_arg in $ac_configure_args; do
51416 if test -n "$ac_prev"; then
51417 ac_prev=
51418 continue
51419 fi
51420 case $ac_arg in
51421 -cache-file | --cache-file | --cache-fil | --cache-fi \
51422 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51423 ac_prev=cache_file ;;
51424 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51425 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51426 | --c=*)
51427 ;;
51428 --config-cache | -C)
51429 ;;
51430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51431 ac_prev=srcdir ;;
51432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51433 ;;
51434 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51435 ac_prev=prefix ;;
51436 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51437 ;;
51438 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51439 esac
51440 done
51441
51442 # Always prepend --prefix to ensure using the same prefix
51443 # in subdir configurations.
51444 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51445
51446 ac_popdir=`pwd`
51447 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51448
51449 # Do not complain, so a configure script can configure whichever
51450 # parts of a large source tree are present.
51451 test -d $srcdir/$ac_dir || continue
51452
51453 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51454echo "$as_me: configuring in $ac_dir" >&6;}
51455 { if $as_mkdir_p; then
51456 mkdir -p "$ac_dir"
51457 else
51458 as_dir="$ac_dir"
51459 as_dirs=
51460 while test ! -d "$as_dir"; do
51461 as_dirs="$as_dir $as_dirs"
51462 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51464 X"$as_dir" : 'X\(//\)[^/]' \| \
51465 X"$as_dir" : 'X\(//\)$' \| \
51466 X"$as_dir" : 'X\(/\)' \| \
51467 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51468echo X"$as_dir" |
51469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51471 /^X\(\/\/\)$/{ s//\1/; q; }
51472 /^X\(\/\).*/{ s//\1/; q; }
51473 s/.*/./; q'`
51474 done
51475 test ! -n "$as_dirs" || mkdir $as_dirs
51476 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51477echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51478 { (exit 1); exit 1; }; }; }
51479
51480 ac_builddir=.
51481
51482if test "$ac_dir" != .; then
51483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51484 # A "../" for each directory in $ac_dir_suffix.
51485 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51486else
51487 ac_dir_suffix= ac_top_builddir=
51488fi
51489
51490case $srcdir in
51491 .) # No --srcdir option. We are building in place.
51492 ac_srcdir=.
51493 if test -z "$ac_top_builddir"; then
51494 ac_top_srcdir=.
51495 else
51496 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51497 fi ;;
51498 [\\/]* | ?:[\\/]* ) # Absolute path.
51499 ac_srcdir=$srcdir$ac_dir_suffix;
51500 ac_top_srcdir=$srcdir ;;
51501 *) # Relative path.
51502 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51503 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51504esac
ac1cb8d3
VS
51505
51506# Do not use `cd foo && pwd` to compute absolute paths, because
51507# the directories may not exist.
51508case `pwd` in
51509.) ac_abs_builddir="$ac_dir";;
51510*)
51511 case "$ac_dir" in
51512 .) ac_abs_builddir=`pwd`;;
51513 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51514 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51515 esac;;
51516esac
51517case $ac_abs_builddir in
51518.) ac_abs_top_builddir=${ac_top_builddir}.;;
51519*)
51520 case ${ac_top_builddir}. in
51521 .) ac_abs_top_builddir=$ac_abs_builddir;;
51522 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51523 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51524 esac;;
51525esac
51526case $ac_abs_builddir in
51527.) ac_abs_srcdir=$ac_srcdir;;
51528*)
51529 case $ac_srcdir in
51530 .) ac_abs_srcdir=$ac_abs_builddir;;
51531 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51532 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51533 esac;;
51534esac
51535case $ac_abs_builddir in
51536.) ac_abs_top_srcdir=$ac_top_srcdir;;
51537*)
51538 case $ac_top_srcdir in
51539 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51540 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51541 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51542 esac;;
51543esac
a848cd7e
SC
51544
51545
51546 cd $ac_dir
51547
51548 # Check for guested configure; otherwise get Cygnus style configure.
51549 if test -f $ac_srcdir/configure.gnu; then
51550 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51551 elif test -f $ac_srcdir/configure; then
51552 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51553 elif test -f $ac_srcdir/configure.in; then
51554 ac_sub_configure=$ac_configure
51555 else
51556 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51557echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51558 ac_sub_configure=
51559 fi
51560
51561 # The recursion is here.
51562 if test -n "$ac_sub_configure"; then
51563 # Make the cache file name correct relative to the subdirectory.
51564 case $cache_file in
51565 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51566 *) # Relative path.
ac1cb8d3 51567 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
51568 esac
51569
51570 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51571echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51572 # The eval makes quoting arguments work.
51573 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51574 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51575 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51576echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51577 { (exit 1); exit 1; }; }
51578 fi
51579
ca5c6ac3 51580 cd "$ac_popdir"
a848cd7e
SC
51581 done
51582fi
51583
51584
51585echo
77ffb593 51586echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 51587echo ""
c2e9ada4 51588echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 51589echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 51590
77ffb593
JS
51591echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
51592echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
51593echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 51594
77ffb593 51595echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
51596echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
51597echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 51598
77ffb593 51599echo " Which libraries should wxWidgets use?"
a848cd7e
SC
51600echo " jpeg ${wxUSE_LIBJPEG-none}"
51601echo " png ${wxUSE_LIBPNG-none}"
51602echo " regex ${wxUSE_REGEX}"
51603echo " tiff ${wxUSE_LIBTIFF-none}"
51604if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51605echo " xpm ${wxUSE_LIBXPM-none}"
51606fi
51607echo " zlib ${wxUSE_ZLIB}"
51608echo " odbc ${wxUSE_ODBC}"
51609echo " expat ${wxUSE_EXPAT}"
51610echo " libmspack ${wxUSE_LIBMSPACK}"
51611echo " sdl ${wxUSE_LIBSDL}"
51612
51613echo ""
51614